:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --btn-gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --success-color: #1EB53A;
  --bg-color: #0f0c1b;
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #c2bfe0;
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  background-image: var(--primary-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(15, 12, 27, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, #c2bfe0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-lang {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--card-border);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-lang:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
  gap: 4rem;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-section h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 0%, #e2dff0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Setup Card */
.setup-container {
  display: flex;
  justify-content: center;
}

.setup-card {
  background: rgba(15, 12, 27, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.setup-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.selector-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.selector-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.selector-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.selector-btn.active {
  background: #fff;
  color: #0f0c1b;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Permission section */
.permission-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.permission-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.status-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff4a4a;
}

.status-indicator.granted {
  color: var(--success-color);
}

/* Actions */
.btn-action {
  width: 100%;
  padding: 1rem;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--success-color);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 181, 58, 0.3);
}

.btn-primary:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 181, 58, 0.45);
  filter: brightness(1.1);
}

.btn-primary.disabled, .btn-primary:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-secondary.granted {
  background: rgba(30, 181, 58, 0.15);
  color: var(--success-color);
  border-color: rgba(30, 181, 58, 0.3);
}

.privacy-warning {
  font-size: 0.75rem;
  color: #ff6b6b;
  line-height: 1.4;
  text-align: center;
}

/* AdSense Integration Styles */
.adsense-wrapper {
  margin: 20px auto;
  text-align: center;
}

.adsense-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

#adsense-container {
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.animate-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 1.5rem;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.75rem;
  }
  
  .setup-container {
    width: 100%;
  }
  
  .setup-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 1rem;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .setup-card {
    padding: 1.5rem;
  }
}
