/* ===== AS Extensions — Global Styles ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Navigation ===== */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  text-decoration: none;
}

/* ===== Page Container ===== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.page-container.narrow {
  max-width: 800px;
}

.page-container.mid {
  max-width: 960px;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Extension Cards Grid ===== */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.ext-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ext-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ext-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.ext-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
}

.ext-card-title {
  font-size: 20px;
  font-weight: 700;
}

.ext-card-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ext-card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.ext-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.badge-category {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-price {
  background: var(--success-bg);
  color: var(--success);
}

.ext-card-actions {
  display: flex;
  gap: 10px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Feature List ===== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ===== Privacy / How-to Sections ===== */
.ext-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}

.ext-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-alt);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.ext-section-header:hover { background: #f3f4f6; }

.ext-section-header img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.ext-section-header h2 {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.ext-section-toggle {
  font-size: 20px;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.ext-section.open .ext-section-toggle {
  transform: rotate(180deg);
}

.ext-section-body {
  display: none;
  padding: 24px;
  line-height: 1.7;
}

.ext-section.open .ext-section-body {
  display: block;
}

.ext-section-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.ext-section-body h3:first-child { margin-top: 0; }

.ext-section-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.ext-section-body li {
  margin-bottom: 6px;
  font-size: 15px;
}

.ext-section-body p {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text);
}

/* ===== Steps ===== */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  padding: 10px 0 10px 40px;
  position: relative;
  font-size: 15px;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Shortcuts Table ===== */
.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.shortcuts-table th,
.shortcuts-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.shortcuts-table th {
  background: var(--bg-alt);
  font-weight: 600;
}

.shortcuts-table kbd {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Payment Page ===== */
.pay-container {
  max-width: 480px;
  margin: 60px auto;
  padding: 0 24px;
}

.pay-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.pay-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.pay-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pay-tagline {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

.pay-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pay-price-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pay-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.pay-region-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.pay-region-select label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pay-region-select select {
  padding: 5px 28px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
  appearance: auto;
}

.pay-region-select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.15);
}

#razorpay-section, #paypal-section {
  margin-top: 16px;
}

.pay-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

/* ===== Success Page ===== */
.success-container {
  max-width: 520px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}

.success-container h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-container p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ===== Terms Page ===== */
.terms-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}

.terms-content p, .terms-content li {
  font-size: 15px;
  line-height: 1.7;
}

.terms-content ul, .terms-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.terms-content li { margin-bottom: 6px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 60px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .ext-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .pay-card { padding: 28px 20px; }
  .pay-price { font-size: 28px; }
}
