/* ============================================================
   Bizgifts Shopify Connector — Main Stylesheet
   Design: Shopify-inspired green theme
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-500: #008060;
  --green-600: #00694d;
  --green-700: #004c3f;
  --teal-500:  #00a47c;
  --teal-600:  #007a5e;
  --green-400: #00bf8a;

  --grad-primary: linear-gradient(135deg, #008060 0%, #00a47c 100%);
  --grad-hero:    linear-gradient(135deg, #004c3f 0%, #008060 50%, #00a47c 100%);
  --grad-card:    linear-gradient(135deg, rgba(0,128,96,.08) 0%, rgba(0,164,124,.08) 100%);

  --white:        #ffffff;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-300:     #d1d5db;
  --gray-400:     #9ca3af;
  --gray-500:     #6b7280;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-800:     #1f2937;
  --gray-900:     #111827;

  --success-bg:   #d1fae5;
  --success-fg:   #065f46;
  --error-bg:     #fee2e2;
  --error-fg:     #991b1b;
  --info-bg:      #dbeafe;
  --info-fg:      #1e40af;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-full:  9999px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.06);
  --shadow-glow:  0 0 40px rgba(0,128,96,.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: #0a1a13;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Animated Background Canvas ---- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1a13 0%, #0d2018 40%, #0a1f16 100%);
}

.orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: .5;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #008060 0%, transparent 70%);
  top: -200px; left: -150px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00a47c 0%, transparent 70%);
  bottom: -150px; right: -100px;
}

/* ---- Navbar ---- */
.navbar {
  position: relative;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10,26,19,.7);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
  letter-spacing: -.5px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

/* ---- Main Content Wrapper ---- */
.main-content {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 64px - 80px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.08); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,128,96,.4), 0 2px 8px rgba(0,164,124,.2);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0,128,96,.6), 0 4px 16px rgba(0,164,124,.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border-color: rgba(255,255,255,.2);
}

.btn-lg   { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-xl   { padding: 18px 40px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* ---- Hero ---- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { justify-self: center; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0,128,96,.15);
  border: 1px solid rgba(0,128,96,.3);
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: var(--radius-full);
  background: #00a47c;
  box-shadow: 0 0 8px #00a47c;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { text-align: left; }

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* ---- Mockup Card ---- */
.hero-visual { perspective: 1000px; }

.mockup-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  width: 380px;
  max-width: 100%;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.2);
}
.mockup-dots span:first-child { background: #ff6b6b; }
.mockup-dots span:nth-child(2) { background: #ffd166; }
.mockup-dots span:last-child  { background: #6bcb77; }

.mockup-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-left: auto;
}

.mockup-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-label {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

.mockup-value {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  font-family: 'SFMono-Regular', 'Consolas', monospace;
}

.mockup-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.mockup-badge.connected {
  background: rgba(16,185,129,.2);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,.3);
}

.mockup-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.mockup-pulse {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

/* ---- Sections ---- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(0,128,96,.15);
  border: 1px solid rgba(0,128,96,.25);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.55);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Features Grid ---- */
.features { background: rgba(255,255,255,.02); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,128,96,.3);
  box-shadow: 0 16px 48px rgba(0,0,0,.2), 0 0 24px rgba(0,128,96,.1);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-purple { background: rgba(0,128,96,.2);  color: #6ee7b7; }
.icon-blue   { background: rgba(0,164,124,.2); color: #6ee7b7; }
.icon-indigo { background: rgba(0,191,138,.2); color: #6ee7b7; }
.icon-violet { background: rgba(0,128,96,.2);  color: #6ee7b7; }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.feature-desc {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}

/* ---- Steps ---- */
.how-it-works .section-inner { padding-bottom: 100px; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 700px) { .steps { flex-direction: column; align-items: center; } }

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.step-number {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,128,96,.4);
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  max-width: 220px;
}

.step-connector {
  flex: 0 0 80px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,128,96,.4), rgba(0,164,124,.4));
  margin-top: 27px;
  position: relative;
}

@media (max-width: 700px) {
  .step-connector {
    width: 2px;
    height: 40px;
    flex: 0 0 40px;
    margin-top: 0;
    margin-left: 27px;
    background: linear-gradient(180deg, rgba(0,128,96,.4), rgba(0,164,124,.4));
    align-self: flex-start;
  }
}

/* ---- CTA Section ---- */
.cta-section { padding: 0 24px 100px; }

.cta-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,128,96,.2) 0%, rgba(0,164,124,.2) 100%);
  border: 1px solid rgba(0,128,96,.3);
  text-align: center;
  box-shadow: 0 0 60px rgba(0,128,96,.15);
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ---- Form Cards ---- */
.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 144px);
  padding: 40px 24px;
}

.form-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.form-card-header {
  padding: 40px 40px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.step-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0,128,96,.15);
  border: 1px solid rgba(0,128,96,.25);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.form-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0,128,96,.4);
}

.form-icon.icon-success  { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 24px rgba(16,185,129,.4); }
.form-icon.icon-error    { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 24px rgba(239,68,68,.4); }
.form-icon.icon-connected{ background: linear-gradient(135deg, #10b981, #008060); box-shadow: 0 8px 24px rgba(16,185,129,.3); }

.form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

.form-card-body { padding: 32px 40px; }

.form-card-footer {
  padding: 20px 40px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: 13px;
}
.form-card-footer svg { flex-shrink: 0; }
.success-footer { justify-content: flex-start; }

/* ---- Form Fields ---- */
.field-group { margin-bottom: 24px; }

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
}

.input-wrapper {
  display: flex;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-wrapper:focus-within {
  border-color: rgba(0,128,96,.6);
  box-shadow: 0 0 0 3px rgba(0,128,96,.15);
}

.field-input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
}
.field-input::placeholder { color: rgba(255,255,255,.25); }

.input-suffix {
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border-left: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: rgba(255,255,255,.3);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.form-note {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  text-align: center;
}

/* ---- Info Boxes ---- */
.info-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.info-row:last-child { border-bottom: none; }

.info-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  flex-shrink: 0;
}

.info-value {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  text-align: right;
  word-break: break-all;
}

/* ---- Status Badges ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.status-installed {
  background: rgba(245,158,11,.15);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,.25);
}
.status-connected {
  background: rgba(16,185,129,.15);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,.25);
}

/* ---- Scope Chips ---- */
.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.scope-chip {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(0,128,96,.2);
  border: 1px solid rgba(0,128,96,.3);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 600;
  font-family: 'SFMono-Regular', monospace;
}

/* ---- Generate Token Page ---- */
.generate-note {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-bottom: 24px;
  text-align: center;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}

.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(0,128,96,.3);
  border-top-color: #008060;
  border-radius: var(--radius-full);
  animation: spin 700ms linear infinite;
}

/* ---- Success Page ---- */
.success-card { border-color: rgba(16,185,129,.2); }

.success-header {
  padding: 40px 40px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.success-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  box-shadow: 0 0 32px rgba(16,185,129,.5);
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.55);
}

/* ---- Token Reveal ---- */
.token-reveal { margin-bottom: 24px; }

.token-row { margin-bottom: 16px; }

.token-field { display: flex; flex-direction: column; gap: 6px; }

.token-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.token-value-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.8);
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  word-break: break-all;
}

.token-value-box.copyable { cursor: pointer; }
.token-value-box.copyable:hover { border-color: rgba(0,128,96,.4); }

.copy-btn {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.4);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.copy-btn:hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }
.copy-btn.copied { color: #6ee7b7; }

.token-hint {
  font-size: 11px;
  color: rgba(255,255,255,.3);
}

.scope-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.scope-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0,128,96,.2);
  border: 1px solid rgba(0,128,96,.3);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  font-family: 'SFMono-Regular', monospace;
}

/* ---- Alerts ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }

.alert-success {
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.25);
  color: #6ee7b7;
}
.alert-error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
}
.alert-info {
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  color: #93c5fd;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}

.footer-text {
  font-size: 14px;
  color: rgba(255,255,255,.45);
}
.footer-text strong { color: rgba(255,255,255,.65); }

.footer-sub {
  font-size: 12px;
  color: rgba(255,255,255,.25);
  margin-top: 4px;
}
