@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #121221;
  --bg-panel: #1a1a2e;
  --accent: #FFCD30;
  --accent-glow: rgba(255, 205, 48, 0.3);
  --glass: rgba(26, 26, 46, 0.65);
  --glass-border: rgba(255, 255, 255, 0.05);
  --text-main: #e0e0e0;
  --text-muted: rgba(224, 224, 224, 0.6);
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 15% 30%, rgba(255, 205, 48, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 85% 70%, rgba(26, 26, 46, 0.8) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(18, 18, 33, 1) 0%, transparent 100%),
              var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 30px;
  line-height: 1.6;
}

/* Subtle dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px, 30px 30px;
  background-position: 0 0, 15px 15px;
  pointer-events: none;
  z-index: 0;
}

.page-wrapper {
  width: 100%;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.uninstall-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
  color: var(--accent);
  text-shadow: 0 0 1.5em var(--accent-glow);
  line-height: 1.2;
}

/* Main card */
.uninstall-container {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  margin-bottom: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.form-wrapper {
  padding: 32px;
}

.form-wrapper h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
  text-transform: uppercase;
}

.form-wrapper p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

textarea {
  width: 100%;
  min-height: 130px;
  background: rgba(18, 18, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 205, 48, 0.15);
}

/* Success panel */
#formSuccess {
  display: none;
  text-align: center;
  padding: 40px 0;
}

#formSuccess h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 0 1em var(--accent-glow);
}

#formSuccess p {
  color: var(--text-main);
  font-weight: 500;
}

/* Alternative CTA */
.alt-cta {
  text-align: center;
  padding: 24px 32px;
  background: rgba(255, 205, 48, 0.03);
  border: 1px solid rgba(255, 205, 48, 0.15);
  border-radius: 18px;
}

.alt-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.alt-cta p strong {
  color: var(--text-main);
  font-weight: 700;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffcd30 0%, #ff9900 100%);
  color: #000 !important;
  text-decoration: none;
  padding: 20px 45px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  border-radius: 16px;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 40px rgba(255, 205, 48, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 205, 48, 0.5);
}

.cta-button:active {
  transform: translateY(-2px) scale(0.98);
}

/* Secondary CTA Button (Outline Glassmorphism) */
.cta-button.secondary {
  background: var(--glass);
  color: #fff !important;
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.cta-button.secondary:active {
  transform: translateY(-2px) scale(0.98);
}

@keyframes pulse-ring {
  0%   { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(255, 205, 48, 0.6); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(255, 205, 48, 0); }
  100% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(255, 205, 48, 0); }
}

@media (max-width: 640px) {
  .uninstall-title {
    font-size: 1.75rem;
  }
}

/* Custom Language Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropdown-trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.dropdown .dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.dropdown .dropdown-trigger .globe-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  stroke: var(--accent);
}

.dropdown .dropdown-trigger .chevron-icon {
  width: 12px;
  height: 12px;
  opacity: 0.4;
  transition: transform 0.2s ease;
  stroke: currentColor;
}

.dropdown.open .dropdown-trigger .chevron-icon {
  transform: rotate(180deg);
}

.dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18, 18, 33, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown .dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 600;
  cursor: pointer;
}

.dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.dropdown .dropdown-item.active {
  color: var(--accent);
  background: rgba(255, 205, 48, 0.1);
  font-weight: 700;
  cursor: default;
  pointer-events: none;
}
