/* ============================================================
   My-SSL Free — Main Stylesheet
   Brand: my-ssl.com / free.my-ssl.com
   ============================================================ */

:root {
  --primary:       #ffd905;
  --primary-dark:  #e6c300;
  --primary-light: #fffce0;
  --primary-text:  #091c28;   /* cool dark teal — text on yellow */
  --link:          #1a9dc9;   /* cool cyan-blue for hyperlinks */
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  /* Cool teal-slate scale */
  --gray-50:       #eef7fa;
  --gray-100:      #d9eef5;
  --gray-200:      #b3d6e6;
  --gray-300:      #85b8ce;
  --gray-400:      #5896b0;
  --gray-500:      #3d7590;
  --gray-600:      #2b5a70;
  --gray-700:      #1c3f52;
  --gray-800:      #112b3a;
  --gray-900:      #091c28;
  --radius:        0.75rem;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fcfcf9;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  background: var(--gray-100);
  padding: .125rem .375rem;
  border-radius: .25rem;
  font-size: .875em;
  color: var(--link);
}

pre {
  background: var(--gray-800);
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .85rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* ── Layout ─────────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ──────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,28,40,.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fcfcf9;
  text-decoration: none;
}

.nav-brand:hover, .nav-brand:hover span { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(252,252,249,.75);
  font-size: .925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}

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

/* Primary button in nav must stay dark regardless of .nav-links a color */
.nav-links .btn-primary { color: var(--primary-text); }
.nav-links .btn-primary:hover { color: var(--primary-text); }

/* Ghost button on dark nav */
.nav-links .btn-ghost {
  color: rgba(252,252,249,.85);
  border-color: rgba(252,252,249,.2);
}
.nav-links .btn-ghost:hover {
  background: rgba(252,252,249,.08);
  color: #fcfcf9;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.125rem;
  border-radius: .5rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

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

.btn-outline {
  background: transparent;
  color: var(--gray-800);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); color: var(--primary-text); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }

.btn-white {
  background: #fcfcf9;
  color: var(--primary-text);
  border: 1.5px solid var(--primary);
}
.btn-white:hover { background: var(--primary-light); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-yellow {
  background: var(--primary);
  color: var(--primary-text);
  border: 1px solid var(--primary-dark);
}
.btn-yellow:hover { background: var(--primary-dark); }

.btn-lg {
  padding: .875rem 1.75rem;
  font-size: 1rem;
}

.btn-full { width: 100%; justify-content: center; }

.btn-sm {
  padding: .35rem .75rem;
  font-size: .8rem;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fcfcf9 0%, #f7f7f0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,217,5,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255,217,5,.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: var(--primary-text);
  padding: .375rem 1rem;
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid var(--primary-dark);
  box-shadow: 0 2px 8px rgba(255,217,5,.35);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}

/* gradient-text: #fcfcf9 → #ffd905 spec — rendered dark-on-light in hero,
   and light-on-dark inside .cta-box (dark bg makes #fcfcf9 visible) */
.gradient-text {
  background: linear-gradient(135deg, #d4a000 0%, #ffd905 50%, #d4a000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* When gradient-text sits on the dark CTA background, override to the brand spec */
.cta-box .gradient-text {
  background: linear-gradient(135deg, #fcfcf9 0%, #ffd905 50%, #fcfcf9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.02em;
}
.stat-label { font-size: .875rem; color: var(--gray-400); margin-top: .25rem; }
.stat-divider { width: 1px; height: 40px; background: var(--gray-200); }

/* Browser mockup */
.hero-visual { max-width: 720px; margin: 0 auto; }

.browser-mockup {
  background: #fcfcf9;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
}

.browser-bar {
  background: #f1f5f9;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.browser-dots { display: flex; gap: .375rem; }
.browser-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #fc685f; }
.browser-dots span:nth-child(2) { background: #fdbc40; }
.browser-dots span:nth-child(3) { background: #34c749; }

.browser-url {
  flex: 1;
  background: #fcfcf9;
  border: 1px solid var(--gray-200);
  border-radius: .375rem;
  padding: .375rem .75rem;
  font-size: .8rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: .375rem;
}

.browser-content { padding: 1.5rem; }

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: left;
}

.cert-icon { flex-shrink: 0; }
.cert-title { font-weight: 600; color: #065f46; }
.cert-sub { font-size: .8rem; color: var(--gray-400); }
.cert-expires { font-size: .8rem; color: var(--gray-400); margin-top: .25rem; }
.cert-status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
  margin-left: auto;
  flex-shrink: 0;
}

.cert-files {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-align: left;
}

.cert-file {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem .875rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: .5rem;
  font-size: .875rem;
  color: var(--gray-700);
}

.file-icon { font-size: 1rem; }
.file-size { margin-left: auto; color: var(--gray-400); font-size: .8rem; }

/* ── Trust bar ───────────────────────────────────────────────── */

.trust-bar {
  background: #fcfcf9;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}

.trust-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
}

/* ── Sections ────────────────────────────────────────────────── */

.section { padding: 6rem 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Steps ───────────────────────────────────────────────────── */

.steps {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}

.step-icon {
  width: 64px; height: 64px;
  border-radius: 1rem;
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-text);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--gray-800);
}

.step p { font-size: .9rem; color: var(--gray-500); line-height: 1.6; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--gray-300);
  padding-top: 2rem;
  align-self: flex-start;
}

/* ── Features grid ───────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fcfcf9;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-green  { background: #dcfce7; color: #16a34a; }
.feature-icon-purple { background: #ede9fe; color: #7c3aed; }
.feature-icon-blue   { background: var(--primary-light); color: var(--primary-text); }
.feature-icon-orange { background: #ffedd5; color: #ea580c; }
.feature-icon-red    { background: #fee2e2; color: #dc2626; }
.feature-icon-teal   { background: #ccfbf1; color: #0d9488; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--gray-800);
}

.feature-card p { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

/* ── CTA ─────────────────────────────────────────────────────── */

.cta-section { padding: 5rem 0; }

.cta-box {
  background: linear-gradient(135deg, #091c28 0%, #1c3f52 50%, #091c28 100%);
  border-radius: 1.5rem;
  padding: 4rem 3rem;
  text-align: center;
  color: #fcfcf9;
  box-shadow: 0 20px 40px -10px rgba(9,28,40,.5);
  border: 1px solid rgba(255,217,5,.15);
}

.cta-box h2 { color: #fcfcf9; }

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .75rem;
}

.cta-box p { color: rgba(252,252,249,.75); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────────────────────────── */

.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: .5rem; }
.footer ul a { color: var(--gray-400); font-size: .875rem; text-decoration: none; }
.footer ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 2rem;
  font-size: .8rem;
  text-align: center;
}

.footer .nav-brand { color: #fff; }

/* ── Auth pages ──────────────────────────────────────────────── */

.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fcfcf9;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--gray-900);
  margin-bottom: .375rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--gray-400);
  font-size: .9rem;
  margin-bottom: 2rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.auth-footer { text-align: center; font-size: .875rem; color: var(--gray-500); margin-top: 1.5rem; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  width: 100%;
  padding: .625rem 1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: .5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
  cursor: pointer;
  margin-bottom: .25rem;
}
.btn-google:hover {
  background: var(--gray-50, #f9fafb);
  border-color: var(--gray-300);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--gray-400);
  font-size: .8125rem;
  margin: .5rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.form-terms {
  font-size: .8rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: .5rem;
}

/* ── Forms ───────────────────────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: .375rem; }

.form-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
}

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

.form-hint { font-size: .8rem; color: var(--gray-400); }
.form-hint-link { font-size: .8rem; color: var(--link); }

.form-input {
  width: 100%;
  padding: .625rem .875rem;
  border: 1.5px solid var(--gray-300);
  border-radius: .5rem;
  font-size: .925rem;
  color: var(--gray-800);
  background: #fcfcf9;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,217,5,.2);
}

.input-with-icon { position: relative; }
.input-with-icon svg {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.input-icon-pad { padding-left: 2.625rem; }

/* ── Radio cards ─────────────────────────────────────────────── */

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }

.radio-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all .15s;
  background: #fcfcf9;
}

.radio-card input[type="radio"] { display: none; }
.radio-card:hover { border-color: var(--primary); background: var(--primary-light); }
.radio-card.active { border-color: var(--primary); background: var(--primary-light); }

.radio-card-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.radio-card-title { font-weight: 600; font-size: .9rem; color: var(--gray-800); margin-bottom: .375rem; }
.radio-card-desc { font-size: .8rem; color: var(--gray-500); line-height: 1.5; }

/* ── Password field with toggle ─────────────────────────────── */
.input-password-wrap {
  position: relative;
}
.input-password-wrap .form-input {
  padding-right: 2.75rem;
}
.btn-pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: .25rem;
  display: flex;
  align-items: center;
  transition: color .15s;
  line-height: 1;
}
.btn-pw-toggle:hover { color: var(--gray-600); }

/* ── Password strength bar ──────────────────────────────────── */
.strength-bar {
  display: flex;
  gap: .25rem;
  margin-top: .375rem;
}
.strength-segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  transition: background .3s;
}
.strength-segment.s-weak   { background: var(--danger); }
.strength-segment.s-fair   { background: var(--warning); }
.strength-segment.s-good   { background: var(--link); }
.strength-segment.s-strong { background: var(--success); }
.strength-label {
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: .2rem;
  min-height: 1em;
}

/* ── Dashboard layout ────────────────────────────────────────── */

.dashboard-body { background: #fcfcf9; }

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #fcfcf9;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-section {
  padding: .75rem 1.25rem .375rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.nav-divider { height: 1px; background: var(--gray-100); margin: .75rem 1.25rem; }

.nav-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem 1.25rem;
  color: var(--gray-600);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
  border-radius: 0;
}

.nav-item:hover {
  background: var(--primary-light);
  color: var(--gray-900);
  text-decoration: none;
}

.nav-item.active {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: inset -3px 0 0 var(--primary-dark);
  font-weight: 600;
}

.nav-item-cta {
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  margin: .5rem 1rem;
  border-radius: .5rem;
  padding: .75rem 1rem;
  box-shadow: 0 2px 6px rgba(255,217,5,.3);
}

.nav-item-cta:hover {
  background: var(--primary-dark);
  color: var(--primary-text);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.user-info {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.user-name { font-size: .875rem; font-weight: 600; color: var(--gray-800); }
.user-email { font-size: .75rem; color: var(--gray-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }

.btn-logout {
  display: block;
  padding: .5rem .875rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: .5rem;
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.btn-logout:hover { background: #fee2e2; color: var(--danger); text-decoration: none; }

.dashboard-main {
  flex: 1;
  padding: 2rem;
  max-width: calc(100vw - 260px);
  overflow-x: auto;
}

/* ── Page headers ────────────────────────────────────────────── */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.02em;
}

.page-subtitle { color: var(--gray-400); font-size: .9rem; margin-top: .25rem; }

/* ── Cards ───────────────────────────────────────────────────── */

.card {
  background: #fcfcf9;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 1.5rem; }
.card-danger { border-color: #fecaca; }

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Stats ───────────────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fcfcf9;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-blue   { background: var(--primary-light); color: var(--primary-text); }
.stat-icon-green  { background: #dcfce7; color: #16a34a; }
.stat-icon-yellow { background: #fef3c7; color: #d97706; }
.stat-icon-purple { background: #ede9fe; color: #7c3aed; }

.stat-card-value { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); letter-spacing: -.02em; }
.stat-card-label { font-size: .8rem; color: var(--gray-400); margin-top: .2rem; }

/* ── Tables ──────────────────────────────────────────────────── */

.table-responsive { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.table th {
  padding: .75rem 1.25rem;
  background: #fcfcf9;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--gray-200);
}

.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--primary-light); }

.domain-name {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--gray-800);
}

.badge-type {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: .2rem .6rem;
  border-radius: 1rem;
  font-size: .75rem;
  font-weight: 500;
}

.expires { font-size: .875rem; color: var(--gray-600); display: flex; align-items: center; gap: .375rem; }
.expires-soon { color: var(--warning); }
.days-badge {
  background: #fef3c7;
  color: #92400e;
  padding: .1rem .4rem;
  border-radius: .25rem;
  font-size: .7rem;
  font-weight: 600;
}
.text-muted { color: var(--gray-300); }
.text-warning { color: var(--warning); }

.action-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Alerts ──────────────────────────────────────────────────── */

.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #f0fdf4;
  color: #065f46;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Empty state ─────────────────────────────────────────────── */

.empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.125rem; font-weight: 700; color: var(--gray-700); margin-bottom: .5rem; }
.empty-state p { color: var(--gray-400); margin-bottom: 1.5rem; }

/* ── Domain detail ───────────────────────────────────────────── */

.detail-list { display: grid; grid-template-columns: auto 1fr; gap: .75rem 1.5rem; font-size: .9rem; }
.detail-list dt { color: var(--gray-400); font-weight: 500; white-space: nowrap; }
.detail-list dd { color: var(--gray-800); }

.download-grid { display: flex; flex-direction: column; gap: .75rem; }

.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: .75rem;
  text-decoration: none;
  transition: all .15s;
  color: var(--gray-700);
}

.download-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
  color: var(--primary-text);
}

.download-card-warning:hover { border-color: var(--warning); background: #fffbeb; }
.download-icon { font-size: 1.5rem; flex-shrink: 0; }
.download-name { font-weight: 600; font-size: .9rem; }
.download-desc { font-size: .8rem; color: var(--gray-400); margin-top: .2rem; }
.download-card svg { margin-left: auto; color: var(--gray-400); flex-shrink: 0; }

.install-instructions {
  margin-top: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: .75rem;
  overflow: hidden;
}

.tab-group {
  display: flex;
  background: #fcfcf9;
  border-bottom: 1px solid var(--gray-200);
}

.tab {
  padding: .625rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}

.tab:hover { color: var(--gray-800); }
.tab.active { color: var(--gray-900); border-bottom-color: var(--primary); font-weight: 600; background: transparent; }

.tab-content { padding: 1rem 1.25rem; }

/* ── Verify page ─────────────────────────────────────────────── */

.step-list { display: flex; flex-direction: column; gap: 1.5rem; }

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .125rem;
}

.step-item strong { display: block; font-weight: 600; margin-bottom: .375rem; color: var(--gray-800); }
.step-item p { font-size: .875rem; color: var(--gray-500); margin-bottom: .75rem; }

.code-block {
  display: block;
  background: var(--gray-800);
  color: #e2e8f0;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-family: monospace;
  font-size: .8rem;
  word-break: break-all;
  white-space: pre-wrap;
}

.code-copyable {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--gray-800);
  border-radius: .5rem;
  padding: .625rem 1rem;
}

.code-copyable code {
  background: transparent;
  color: #e2e8f0;
  font-size: .8rem;
  word-break: break-all;
  flex: 1;
}

.btn-copy {
  background: var(--gray-700);
  color: #e2e8f0;
  border: none;
  border-radius: .375rem;
  padding: .25rem .625rem;
  font-size: .75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.btn-copy:hover { background: var(--primary); color: var(--primary-text); }

.dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin-top: .75rem;
}

.dns-table th {
  text-align: left;
  padding: .5rem .75rem;
  background: #fcfcf9;
  color: var(--gray-500);
  font-weight: 500;
  width: 80px;
  border: 1px solid var(--gray-200);
}

.dns-table td {
  padding: .5rem .75rem;
  border: 1px solid var(--gray-200);
}

/* Status timeline */
.status-timeline { display: flex; flex-direction: column; gap: 1.25rem; }

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  opacity: .4;
}

.timeline-item.done, .timeline-item.active { opacity: 1; }

.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  margin-top: .25rem;
  flex-shrink: 0;
}

.timeline-item.done .timeline-dot { background: var(--success); }
.timeline-item.active .timeline-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(255,217,5,.3); }

.timeline-title { font-size: .9rem; font-weight: 600; color: var(--gray-800); }
.timeline-sub { font-size: .8rem; color: var(--gray-400); margin-top: .1rem; }

/* Verify status */
.verify-status {
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  font-size: .9rem;
  margin-top: 1rem;
}

.verify-loading { background: var(--primary-light); color: var(--primary-text); }
.verify-success { background: #f0fdf4; color: #065f46; }
.verify-error   { background: #fef2f2; color: #991b1b; }

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: .5rem;
  padding: .875rem 1rem;
  font-size: .875rem;
  color: #991b1b;
}

.error-box p { margin-top: .375rem; }

/* ── Checklist ───────────────────────────────────────────────── */

.checklist { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.checklist li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9rem;
  color: var(--gray-700);
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 0;
}

.info-list li {
  padding-left: 1rem;
  position: relative;
  font-size: .875rem;
  color: var(--gray-600);
}

.info-list li::before { content: '•'; position: absolute; left: 0; color: var(--gray-300); }

/* ── Spinner ─────────────────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Pagination ──────────────────────────────────────────────── */

.pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  padding: 1.5rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: var(--gray-600);
}

.pagination a:hover { background: var(--primary-light); color: var(--primary-text); text-decoration: none; }
.pagination .current { background: var(--primary); color: var(--primary-text); border-color: var(--primary-dark); font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .nav-links .btn-ghost { display: none; }
  .trust-grid { gap: 1rem; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .dashboard-main { max-width: 100%; padding: 1rem; }
  .radio-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .site-banner .container { flex-direction: column; gap: .25rem; }
}

/* ── My-SSL Brand elements ───────────────────────────────────── */

.site-banner {
  background: var(--gray-900);
  color: rgba(252,252,249,.8);
  padding: .45rem 0;
  font-size: .78rem;
  text-align: center;
  border-bottom: 2px solid var(--primary);
}

.site-banner .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
}

.site-banner a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,217,5,.4);
}

.site-banner a:hover { border-bottom-color: var(--primary); text-decoration: none; }

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
}

.sidebar-logo {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 44px;
  width: auto;
}

/* ── Status badges (replaces Tailwind classes everywhere) ────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 1rem;
  font-size: .73rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-info    { background: var(--primary-light); color: var(--primary-text); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ── Keyboard / focus accessibility ─────────────────────────── */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Mobile navigation hamburger ─────────────────────────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .375rem;
  border-radius: .375rem;
  transition: background .15s;
}
.nav-hamburger:hover { background: rgba(255,255,255,.1); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(252,252,249,.9);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ───────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(9,28,40,.98);
    border-bottom: 2px solid var(--primary);
    flex-direction: column;
    padding: 1rem;
    gap: .5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: .625rem .875rem;
    border-radius: .5rem;
    width: 100%;
  }
  .nav-links a:hover { background: rgba(255,255,255,.08); }
  .nav-links .btn-ghost { display: flex !important; }
  .nav { position: sticky; }
}

/* ── Mobile dashboard sidebar toggle ─────────────────────────── */

.sidebar-mobile-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  background: var(--primary);
  color: var(--primary-text);
  font-size: .875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 149;
}
.sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  .sidebar-mobile-toggle { display: flex; }

  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 150;
    transition: left .25s ease;
    box-shadow: none;
  }

  .sidebar.open {
    left: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
  }

  .dashboard-main {
    max-width: 100%;
    padding: 1rem;
  }
}

/* ── Form section heading ────────────────────────────────────── */

.form-section-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: .5rem;
}

/* ── API key reveal ──────────────────────────────────────────── */

.api-key-wrap {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--gray-800);
  border-radius: .5rem;
  padding: .875rem 1rem;
  margin-bottom: 1rem;
}
.api-key-value {
  display: block;
  min-width: 0;
}
.api-key-value > code,
.api-key-value > .api-key-masked {
  display: block;
  width: 100%;
  min-width: 0;
  background: transparent;
  color: #f1f5f9;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-key-masked { letter-spacing: .2em; }
.api-key-value > [hidden] { display: none; }

.api-key-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.api-key-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255, 255, 255, .08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .375rem;
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.api-key-btn:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.api-key-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.api-key-btn-danger {
  background: rgba(239, 68, 68, .15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, .45);
}
.api-key-btn-danger:hover {
  background: rgba(239, 68, 68, .28);
  color: #fff;
  border-color: rgba(239, 68, 68, .75);
}

/* ── Admin: email notifications ──────────────────────────────── */

.smtp-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: .85rem 1.1rem;
  color: #0c4a6e;
  font-size: .9rem;
  line-height: 1.5;
}
.smtp-card.smtp-card-dev {
  background: #fff6cc;
  border-color: #f5d76e;
  border-left-color: #ffd905;
  color: #5a4a00;
}
.smtp-card-dev strong { color: #3f3500; }
.smtp-card code {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .08);
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .82rem;
}
.smtp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}



.enable-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.enable-toggle.is-on {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
.enable-toggle.is-off {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}
.enable-toggle:hover:not(:disabled) { filter: brightness(.96); border-color: currentColor; }
.enable-toggle:disabled { cursor: not-allowed; opacity: .6; }

.badge-warning {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: .1rem .55rem;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ── Admin: verify-toggle + danger-ghost + modal ─────────────── */

.verify-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.verify-toggle.is-verified   { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.verify-toggle.is-unverified { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.verify-toggle:hover:not(:disabled) {
  filter: brightness(.96);
  border-color: currentColor;
}
.verify-toggle:disabled { cursor: not-allowed; opacity: .65; }
.verify-toggle-icon { font-size: .9rem; line-height: 1; }

.btn-danger-ghost {
  background: transparent;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.btn-danger-ghost:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 28, 40, .55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal[hidden] { display: none; }
.admin-modal-card {
  background: var(--bg-card, #fff);
  border-radius: 14px;
  padding: 1.75rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.admin-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: var(--gray-800);
}
.admin-modal-sub {
  font-size: .85rem;
  color: var(--gray-500);
  margin: 0 0 1.25rem;
}
.admin-modal .form-group { margin-bottom: 1rem; }
.admin-modal-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: .5rem;
  padding: .6rem .8rem;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .5rem;
}

/* ── Verify-email banner ──────────────────────────────────────── */

.verify-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff6cc;
  border: 1px solid #f5d76e;
  border-left: 4px solid #ffd905;
  border-radius: .5rem;
  padding: .85rem 1.1rem;
  margin: 0 0 1.25rem;
  color: #5a4a00;
  font-size: .9rem;
  line-height: 1.45;
}
.verify-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffd905;
  color: #091c28;
  border-radius: 50%;
  flex-shrink: 0;
}
.verify-banner-text { flex: 1; min-width: 220px; }
.verify-banner-text strong { color: #3f3500; }
.verify-banner-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.verify-banner-btn {
  background: #091c28;
  color: #ffd905;
  border: 1px solid #091c28;
  border-radius: .375rem;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.verify-banner-btn:hover { background: #1c3f52; color: #fff; }
.verify-banner-btn-ghost {
  background: transparent;
  color: #5a4a00;
  border-color: #c7a838;
}
.verify-banner-btn-ghost:hover { background: rgba(0,0,0,.05); color: #3f3500; }

/* ── Admin log filter bar ────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
}
.filter-bar .form-input { max-width: 180px; }

/* ── Danger zone ─────────────────────────────────────────────── */

.card-danger .card-header {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}
.card-danger .card-title { color: #991b1b; }
.card-danger .card-body {
  background: #fffafa;
}

/* ── Settings section badge ──────────────────────────────────── */

.setting-badge-on  { background:#dcfce7;color:#166534;padding:.15rem .5rem;border-radius:1rem;font-size:.72rem;font-weight:700 }
.setting-badge-off { background:#fee2e2;color:#991b1b;padding:.15rem .5rem;border-radius:1rem;font-size:.72rem;font-weight:700 }

/* ── Reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Admin stats grid 3-col variant ─────────────────────────── */
.stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .stats-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
