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

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #e0e7ff;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --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;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.page-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.page-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-header h1 { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.page-header nav { display: flex; align-items: center; gap: .75rem; }
.page-header .user-info { font-size: .85rem; color: var(--gray-500); }

.main-content { padding: 2rem 0; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.card-header h2 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 1.25rem; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  white-space: nowrap;
}

.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-danger  { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled)  { background: #b91c1c; }
.btn-ghost   { background: transparent; color: var(--gray-600); border: 1px solid var(--gray-300); }
.btn-ghost:hover:not(:disabled)   { background: var(--gray-100); }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: .875rem; font-weight: 500; color: var(--gray-700); }

.form-control {
  padding: .5rem .75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .875rem;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Tables ────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  background: var(--gray-50);
  padding: .6rem .9rem;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--gray-200);
}

tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .1s; }
tbody tr:hover { background: var(--gray-50); }
tbody td { padding: .65rem .9rem; color: var(--gray-700); }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger  { background: var(--danger-light);  color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-gray    { background: var(--gray-100);      color: var(--gray-600); }

/* ── Login page ────────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

.login-card .logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-card .logo h1 { font-size: 1.5rem; color: var(--primary); font-weight: 800; }
.login-card .logo p  { color: var(--gray-500); font-size: .875rem; margin-top: .25rem; }

/* ── Alert ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: .65rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1rem;
}

.alert-error   { background: var(--danger-light);  color: var(--danger); }
.alert-success { background: var(--success-light); color: var(--success); }
.alert-info    { background: var(--primary-light); color: var(--primary); }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; }

.tab-btn {
  padding: .6rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray-400); line-height: 1; }
.modal-close:hover { color: var(--gray-700); }

/* ── Coupon public page ────────────────────────────────────────────────────── */
.coupon-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem;
}

.coupon-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.coupon-card .coupon-top {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  color: white;
}

.coupon-top .greeting { font-size: .9rem; opacity: .85; margin-bottom: .25rem; }
.coupon-top .client   { font-size: 1.6rem; font-weight: 800; }
.coupon-top .offer    { margin-top: .75rem; font-size: 1.1rem; font-weight: 600; opacity: .9; }
.coupon-top .desc     { margin-top: .35rem; font-size: .875rem; opacity: .75; }

.coupon-card .coupon-body { padding: 1.5rem; text-align: center; }

.coupon-body .timer-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: .75rem;
}

.timer {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.timer-unit .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  background: var(--gray-100);
  border-radius: var(--radius);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.timer-unit .lbl { font-size: .7rem; color: var(--gray-400); margin-top: .35rem; text-transform: uppercase; }

.timer-sep { font-size: 2rem; font-weight: 800; color: var(--gray-300); align-self: flex-start; padding-top: .35rem; }

.expired-msg {
  padding: .75rem 1rem;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-checkout {
  width: 100%;
  padding: .9rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: opacity .15s, transform .1s;
}

.btn-checkout:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-checkout:disabled { background: var(--gray-300); cursor: not-allowed; transform: none; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.text-muted  { color: var(--gray-400); font-size: .85rem; }
.text-right  { text-align: right; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }

/* ── Copy URL box ──────────────────────────────────────────────────────────── */
.url-box {
  display: flex;
  gap: .5rem;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .5rem .75rem;
  margin-top: .75rem;
}

.url-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: .8rem;
  color: var(--gray-700);
  outline: none;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .timer-unit .num { width: 52px; height: 52px; font-size: 1.75rem; }
  .hide-sm { display: none; }
}

/* ── Coupon page v2 — glass redesign ──────────────────────────────────────── */

/* Body override — escopo apenas no coupon.html */
body.coupon-body-bg {
  background: hsl(228, 28%, 6%);
  color: white;
}

/* Coupon page container — fundo transparente (orbs no fixed layer) */
body.coupon-body-bg .coupon-page {
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

/* ── Logo da marca ── */
.cp-brand-logo {
  font-family: 'Voltaire', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.50), 0 0 80px rgba(139, 92, 246, 0.20);
  user-select: none;
  animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Orbs animados ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 9s ease-in-out infinite alternate;
}

.orb-purple {
  width: 700px;
  height: 700px;
  top: -15%;
  left: -12%;
  background: rgba(139, 92, 246, 0.14);
  filter: blur(110px);
  animation-delay: 0s;
}

.orb-blue {
  width: 600px;
  height: 600px;
  bottom: -12%;
  right: -10%;
  background: rgba(59, 130, 246, 0.10);
  filter: blur(100px);
  animation-delay: -3.5s;
}

.orb-violet {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  background: rgba(168, 85, 247, 0.08);
  filter: blur(90px);
  animation-name: orbFloatCenter;
  animation-delay: -5.5s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 45px) scale(1.1); }
}

@keyframes orbFloatCenter {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(calc(-50% + 40px), calc(-50% + 30px)) scale(1.08); }
}

/* ── Estado: carregando ── */
.cp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.80);
}

.cp-loading-icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: hsl(260, 95%, 78%);
  animation: loadingPulse 1.6s ease-in-out infinite;
}

.cp-loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 0.03em;
}

@keyframes loadingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
  50%       { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0.14); }
}

/* ── Estado: erro de página ── */
.cp-error {
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.90);
  font-family: 'Inter', sans-serif;
}

.cp-error-icon {
  font-size: 2.2rem;
  color: #f87171;
  margin-bottom: 0.875rem;
}

/* ── Card principal ── */
body.coupon-body-bg .coupon-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.025) 100%
  );
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(139, 92, 246, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  animation: cardReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Borda diagonal — canto superior-esquerdo branco */
body.coupon-body-bg .coupon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  -webkit-mask-image: linear-gradient(135deg, white, transparent 50%);
  mask-image: linear-gradient(135deg, white, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Borda diagonal — canto inferior-direito roxo */
body.coupon-body-bg .coupon-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.42);
  -webkit-mask-image: linear-gradient(135deg, transparent 50%, white);
  mask-image: linear-gradient(135deg, transparent 50%, white);
  pointer-events: none;
  z-index: 1;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Topo do card ── */
body.coupon-body-bg .coupon-card .coupon-top {
  background: transparent;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

/* Glow radial no topo */
body.coupon-body-bg .coupon-card .coupon-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% -20%,
    rgba(139, 92, 246, 0.28) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Círculo ícone decorativo */
.cp-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: hsl(260, 95%, 78%);
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.28);
}

body.coupon-body-bg .coupon-top .greeting {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.coupon-body-bg .coupon-top .client {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(200, 190, 255, 0.85) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: none;
}

/* Badge da oferta — pill roxo */
.cp-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.30);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
}

.cp-offer-icon {
  font-size: 0.72rem;
  color: hsl(260, 95%, 78%);
}

body.coupon-body-bg .coupon-top .offer {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(270, 90%, 82%);
  margin: 0;
}

body.coupon-body-bg .coupon-top .desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── Divisor glass ── */
.cp-divider {
  height: 1px;
  margin: 0 1.75rem;
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.20) 15%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.20) 85%,
    transparent
  );
}

/* ── Body do card ── */
body.coupon-body-bg .coupon-card .coupon-body {
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

body.coupon-body-bg .coupon-body .timer-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

/* ── Timer — blocos glass ── */
body.coupon-body-bg .timer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

body.coupon-body-bg .timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

body.coupon-body-bg .timer-unit .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.08) inset;
  color: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.3s ease;
}

body.coupon-body-bg #t-seconds {
  color: hsl(260, 95%, 82%);
  animation: secondsTick 1s ease-in-out infinite;
}

@keyframes secondsTick {
  0%   { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
  50%  { box-shadow: 0 0 14px 3px rgba(139, 92, 246, 0.28); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

body.coupon-body-bg .timer-unit .lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.coupon-body-bg .timer-sep {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.22);
  align-self: flex-start;
  padding-top: 0.8rem;
  line-height: 1;
}

/* ── Mensagem expirado ── */
body.coupon-body-bg .expired-msg {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: #fca5a5;
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ── Erro de checkout ── */
.cp-checkout-error {
  color: #fca5a5;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.cp-checkout-error::before {
  content: '\f057';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Botão CTA ── */
body.coupon-body-bg .btn-checkout {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(
    135deg,
    hsl(260, 95%, 63%) 0%,
    hsl(250, 95%, 58%) 50%,
    hsl(270, 95%, 68%) 100%
  );
  color: white;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.42);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease,
    opacity 0.15s ease;
  letter-spacing: 0.02em;
}

body.coupon-body-bg .btn-checkout:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 0 55px rgba(139, 92, 246, 0.65),
    0 8px 22px rgba(139, 92, 246, 0.32);
  opacity: 1;
}

body.coupon-body-bg .btn-checkout:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.38);
}

body.coupon-body-bg .btn-checkout:disabled {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.30);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-checkout .btn-icon {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

body.coupon-body-bg .btn-checkout:hover:not(:disabled) .btn-icon {
  transform: translateX(3px) rotate(-30deg);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  body.coupon-body-bg .timer-unit .num {
    width: 58px;
    height: 58px;
    font-size: 1.65rem;
    border-radius: 0.65rem;
  }

  body.coupon-body-bg .coupon-top .client {
    font-size: 1.5rem;
  }

  .cp-icon-circle {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }

  body.coupon-body-bg .coupon-card .coupon-top {
    padding: 2rem 1.5rem 1.75rem;
  }

  body.coupon-body-bg .coupon-card .coupon-body {
    padding: 1.5rem;
  }

  .orb-purple { width: 320px; height: 320px; }
  .orb-blue   { width: 260px; height: 260px; }
  .orb-violet { width: 200px; height: 200px; }
}

/* ── App dark theme (páginas internas) ────────────────────────────────────── */

body.app-dark {
  background: hsl(228, 28%, 6%);
  color: rgba(255, 255, 255, 0.88);
}

/* ── Header ── */
body.app-dark .page-header {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 32px rgba(0, 0, 0, 0.5);
}

/* Logo ASIMOV nos cabeçalhos */
.app-logo {
  font-family: 'Voltaire', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.90) !important;
  text-shadow: 0 0 22px rgba(139, 92, 246, 0.52);
  text-decoration: none !important;
  line-height: 1;
}

/* Tag "Admin" ao lado do logo */
.app-header-section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: hsl(260, 95%, 75%);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.app-nav-sep {
  opacity: 0.30;
  margin: 0 0.3rem;
}

body.app-dark .user-info {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

/* ── Cards ── */
body.app-dark .card {
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 48px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

body.app-dark .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.6rem;
}

body.app-dark .card-header h2 {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

body.app-dark .card-body {
  padding: 1.4rem;
}

/* Ícone accent nos cabeçalhos */
.app-icon-accent {
  color: hsl(260, 95%, 72%);
  margin-right: 0.45rem;
  opacity: 0.85;
}

/* ── Tabelas ── */
body.app-dark table thead th {
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.30);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
}

body.app-dark table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  transition: background 0.15s ease;
}

body.app-dark table tbody tr:last-child {
  border-bottom: none;
}

body.app-dark table tbody tr:hover {
  background: rgba(139, 92, 246, 0.08);
}

body.app-dark table tbody td {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.855rem;
  padding: 0.9rem 1rem;
  white-space: nowrap;
}

.app-table-loading {
  padding: 2.5rem !important;
  text-align: center;
  color: rgba(255, 255, 255, 0.28) !important;
  font-size: 0.875rem;
}

/* ── Formulários ── */
body.app-dark .form-group label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

body.app-dark .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 0.625rem;
}

body.app-dark .form-control:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

body.app-dark .form-control::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

body.app-dark select.form-control option {
  background: hsl(225, 18%, 16%);
  color: rgba(255, 255, 255, 0.88);
}

/* ── Botões ── */
body.app-dark .btn-primary {
  background: linear-gradient(135deg, hsl(260, 95%, 62%), hsl(250, 95%, 57%));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.28);
  border: none;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.app-dark .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, hsl(260, 95%, 67%), hsl(250, 95%, 62%));
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

body.app-dark .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

body.app-dark .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.62);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

body.app-dark .btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

body.app-dark .btn-danger {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: #fca5a5;
}

body.app-dark .btn-danger:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.28);
}

/* ── Badges ── */
body.app-dark .badge-success { background: rgba(22, 163, 74, 0.16); color: #86efac; border: 1px solid rgba(22,163,74,0.22); }
body.app-dark .badge-danger  { background: rgba(220, 38, 38, 0.16); color: #fca5a5; border: 1px solid rgba(220,38,38,0.22); }
body.app-dark .badge-warning { background: rgba(217, 119, 6, 0.16); color: #fcd34d; border: 1px solid rgba(217,119,6,0.22); }
body.app-dark .badge-primary { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.25); }
body.app-dark .badge-gray    { background: rgba(255, 255, 255, 0.07); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.10); }

/* ── Tabs ── */
body.app-dark .tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.5rem;
}

body.app-dark .tab-btn {
  color: rgba(255, 255, 255, 0.42);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  transition: color 0.15s;
}

body.app-dark .tab-btn:hover {
  color: rgba(255, 255, 255, 0.72);
}

body.app-dark .tab-btn.active {
  color: hsl(260, 95%, 76%);
  border-bottom-color: hsl(260, 95%, 63%);
}

/* ── Modais ── */
body.app-dark .modal-backdrop {
  background: rgba(0, 0, 0, 0.68);
}

body.app-dark .modal {
  background: hsl(225, 20%, 13%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.10),
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(139, 92, 246, 0.08);
}

body.app-dark .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

body.app-dark .modal-header h3 {
  color: rgba(255, 255, 255, 0.90);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

body.app-dark .modal-close {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.3rem;
  transition: color 0.15s;
}

body.app-dark .modal-close:hover {
  color: rgba(255, 255, 255, 0.72);
}

/* ── Alertas ── */
body.app-dark .alert-error {
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.22);
}

body.app-dark .alert-success {
  background: rgba(22, 163, 74, 0.12);
  color: #86efac;
  border: 1px solid rgba(22, 163, 74, 0.22);
}

body.app-dark .alert-info {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.22);
}

/* ── URL box ── */
body.app-dark .url-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.625rem;
}

body.app-dark .url-box input {
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Geist Mono', 'Space Mono', monospace;
  font-size: 0.78rem;
}

/* ── Link accent ── */
.app-link {
  color: hsl(260, 95%, 76%) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.app-link:hover {
  color: hsl(260, 95%, 85%) !important;
}

/* ── text-muted override ── */
body.app-dark .text-muted {
  color: rgba(255, 255, 255, 0.32);
}

/* ── Checkbox ── */
body.app-dark input[type="checkbox"] {
  accent-color: hsl(260, 95%, 63%);
  width: 1rem;
  height: 1rem;
}

/* ── Login page ── */
body.app-dark .login-wrap {
  background: hsl(225, 20%, 10%);
  position: relative;
  overflow: hidden;
}

body.app-dark .login-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.10),
    0 8px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(139, 92, 246, 0.12);
}

body.app-dark .login-card .logo {
  text-align: center;
  margin-bottom: 2rem;
}

body.app-dark .login-card .logo h1 {
  font-family: 'Voltaire', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.20em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 28px rgba(139, 92, 246, 0.58);
  background: none;
}

body.app-dark .login-card .logo p {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  margin-top: 0.3rem;
}

/* ── Main content padding ── */
body.app-dark .main-content {
  padding: 2rem 0;
}

/* ── Scrollbar personalizada ── */
body.app-dark ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body.app-dark ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

body.app-dark ::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 3px;
}

body.app-dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.55);
}

/* ── Dashboard redesign ───────────────────────────────────────────────────── */

/* ── User avatar no header ── */
.dash-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(260,95%,63%), hsl(250,95%,50%));
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 0.4rem;
  box-shadow: 0 0 10px rgba(139,92,246,0.35);
  flex-shrink: 0;
}

.dash-role-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.40);
}

/* ── Hero ── */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0 2rem;
  animation: fadeSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.dash-greeting {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  line-height: 1.2;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.dash-wave {
  display: inline-block;
  animation: waveHand 2s ease-in-out 0.6s 1;
  transform-origin: 70% 70%;
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  15%       { transform: rotate(14deg); }
  30%       { transform: rotate(-8deg); }
  45%       { transform: rotate(14deg); }
  60%       { transform: rotate(-4deg); }
  75%       { transform: rotate(10deg); }
}

.dash-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.38);
}

.dash-new-btn {
  white-space: nowrap;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.9rem !important;
  border-radius: 0.875rem !important;
  flex-shrink: 0;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stat cards grid ── */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  animation: fadeSlideUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.08s both;
}

.dash-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
  cursor: default;
}

.dash-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.06) inset;
}

/* Barra de cor no topo de cada card */
.dash-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 1.1rem 1.1rem 0 0;
}

/* Variantes de cor — só a barra topo + glow lateral sutil */
.dash-stat-purple::before { background: linear-gradient(90deg, hsl(260,90%,66%), transparent 80%); }
.dash-stat-purple:hover    { border-color: rgba(139,92,246,0.22); }

.dash-stat-green::before   { background: linear-gradient(90deg, hsl(145,60%,48%), transparent 80%); }
.dash-stat-green:hover     { border-color: rgba(22,163,74,0.22); }

.dash-stat-blue::before    { background: linear-gradient(90deg, hsl(213,90%,60%), transparent 80%); }
.dash-stat-blue:hover      { border-color: rgba(59,130,246,0.22); }

.dash-stat-amber::before   { background: linear-gradient(90deg, hsl(38,92%,55%), transparent 80%); }
.dash-stat-amber:hover     { border-color: rgba(245,158,11,0.22); }

/* Ícone dos stats */
.dash-stat-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.dash-stat-purple .dash-stat-icon-wrap { background: rgba(139,92,246,0.14); color: hsl(260,90%,78%); border: 1px solid rgba(139,92,246,0.20); }
.dash-stat-green  .dash-stat-icon-wrap { background: rgba(22,163,74,0.14);  color: #86efac; border: 1px solid rgba(22,163,74,0.20); }
.dash-stat-blue   .dash-stat-icon-wrap { background: rgba(59,130,246,0.14); color: #93c5fd; border: 1px solid rgba(59,130,246,0.20); }
.dash-stat-amber  .dash-stat-icon-wrap { background: rgba(245,158,11,0.14); color: #fcd34d; border: 1px solid rgba(245,158,11,0.20); }

/* Número e label */
.dash-stat-body { flex: 1; }

.dash-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}
.dash-stat-purple .dash-stat-value { color: hsl(260,95%,82%); }
.dash-stat-green  .dash-stat-value { color: #86efac; }
.dash-stat-blue   .dash-stat-value { color: #93c5fd; }
.dash-stat-amber  .dash-stat-value { color: #fcd34d; }

.dash-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.40);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Ícone de fundo decorativo */
.dash-stat-bg-icon {
  position: absolute;
  right: -0.5rem;
  bottom: -0.75rem;
  font-size: 4rem;
  opacity: 0.05;
  pointer-events: none;
  line-height: 1;
}

/* ── Tabela card ── */
.dash-table-card {
  animation: fadeSlideUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.15s both;
  position: relative;
  overflow: hidden;
}

/* Gradient de profundidade no card da tabela */
.dash-table-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 0% 10%, rgba(139,92,246,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dash-table-card > * { position: relative; z-index: 1; }

.dash-table-header {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.25rem;
  padding: 1.4rem 1.6rem 1.25rem !important;
}

.dash-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
  margin-top: 0.15rem;
}

/* Entrada animada das linhas */
@keyframes rowEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-row-enter {
  animation: rowEnter 0.35s ease both;
}

/* Hover na linha com acento roxo esquerdo */
body.app-dark table tbody tr.dash-row-enter {
  position: relative;
}

body.app-dark table tbody tr.dash-row-enter:hover {
  background: linear-gradient(90deg, rgba(139,92,246,0.10) 0%, rgba(139,92,246,0.03) 100%);
}

body.app-dark table tbody tr.dash-row-enter:hover td:first-child {
  box-shadow: inset 3px 0 0 hsl(260,95%,65%);
}

/* Avatar do cliente na tabela */
.dash-td-client {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.dash-client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.28);
  color: hsl(260,95%,78%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Célula de notas truncada */
.dash-notes-cell {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,0.45) !important;
  font-size: 0.8rem !important;
}

/* Botão copiar link */
.dash-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.775rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.dash-copy-btn:hover {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.35);
  color: hsl(260,95%,80%);
  transform: translateY(-1px);
}

.dash-copy-btn.dash-copy-success {
  background: rgba(22,163,74,0.15);
  border-color: rgba(22,163,74,0.35);
  color: #86efac;
}

/* ── Empty state ── */
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  text-align: center;
}

.dash-empty-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: hsl(260,95%,75%);
  margin-bottom: 0.5rem;
}

.dash-empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
}

/* ── Filtros do dashboard ── */
.dash-filters {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}

.dash-filter-search {
  position: relative;
  flex: 1;
  min-width: 175px;
}

.dash-filter-search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.26);
  font-size: .75rem;
  pointer-events: none;
  transition: color .15s;
}

.dash-filter-search:focus-within .dash-filter-search-icon {
  color: hsl(260,95%,72%);
}

.dash-filter-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem;
  color: rgba(255,255,255,.88);
  padding: .6rem .9rem .6rem 2.35rem;
  font-family: 'Inter', sans-serif;
  font-size: .845rem;
  transition: border-color .18s, box-shadow .18s;
}

.dash-filter-input::placeholder { color: rgba(255,255,255,.22); }

.dash-filter-input:focus {
  border-color: rgba(139,92,246,.50);
  box-shadow: 0 0 0 3px rgba(139,92,246,.12);
  outline: none;
}

.dash-filter-select-wrap {
  min-width: 152px;
}

.dash-filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem;
  color: rgba(255,255,255,.72);
  padding: .6rem 2.2rem .6rem .9rem;
  font-family: 'Inter', sans-serif;
  font-size: .845rem;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}

.dash-filter-select:focus {
  border-color: rgba(139,92,246,.50);
  box-shadow: 0 0 0 3px rgba(139,92,246,.12);
  outline: none;
}

.dash-filter-select option {
  background: hsl(228,28%,10%);
  color: rgba(255,255,255,.88);
}

.dash-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: .75rem;
  color: rgba(255,255,255,.48);
  padding: .6rem .85rem;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}

.dash-filter-clear:hover {
  background: rgba(220,38,38,.12);
  border-color: rgba(220,38,38,.28);
  color: #fca5a5;
}

.dash-filter-count {
  font-family: 'Inter', sans-serif;
  font-size: .76rem;
  color: rgba(255,255,255,.28);
  white-space: nowrap;
  margin-left: auto;
  padding-left: .5rem;
}

/* ── Botão desativar cupom ── */
.dash-deactivate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(220,38,38,0.22);
  background: rgba(220,38,38,0.08);
  color: #fca5a5;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.dash-deactivate-btn:hover:not(:disabled) {
  background: rgba(220,38,38,0.20);
  border-color: rgba(220,38,38,0.40);
  color: #f87171;
  transform: scale(1.10);
}

.dash-deactivate-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Linha de cupom desativado */
.dash-row-inactive td {
  opacity: 0.45;
}

.dash-row-inactive .dash-client-avatar {
  background: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.38) !important;
  box-shadow: none !important;
}

/* Label "Desativado" após desativação */
.dash-deactivated-label {
  font-size: 0.75rem;
  color: rgba(220,38,38,0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.dash-empty-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .dash-hero { flex-direction: column; align-items: flex-start; padding: 1.5rem 0 1.25rem; }
  .dash-greeting { font-size: 1.35rem; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .dash-stat-value { font-size: 1.4rem; }
}

/* ── Create Coupon redesign ───────────────────────────────────────────────── */

/* Layout de duas colunas */
.cc-container {
  max-width: 1000px !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  animation: fadeSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Coluna esquerda ── */
.cc-left {
  display: flex;
  flex-direction: column;
}

/* ── Cabeçalho do formulário ── */
.cc-form-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cc-form-header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: rgba(139,92,246,0.16);
  border: 1px solid rgba(139,92,246,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: hsl(260,95%,78%);
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(139,92,246,0.18);
}

.cc-form-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cc-form-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.36);
  margin-top: 0.2rem;
}

/* ── Campos do formulário ── */
.cc-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cc-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cc-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cc-label i { color: hsl(260,95%,72%); font-size: 0.72rem; }

.cc-required {
  color: hsl(260,95%,75%);
  font-size: 0.85em;
  margin-left: 0.1rem;
}

.cc-optional {
  font-weight: 400;
  color: rgba(255,255,255,0.28);
  font-size: 0.9em;
  margin-left: 0.2rem;
}

/* Input estilizado */
.cc-input.form-control {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 0.75rem !important;
  color: rgba(255,255,255,0.88) !important;
  padding: 0.75rem 1rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
}

.cc-input.form-control:focus {
  background: rgba(139,92,246,0.07) !important;
  border-color: rgba(139,92,246,0.50) !important;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.14) !important;
}

.cc-input.form-control::placeholder {
  color: rgba(255,255,255,0.22) !important;
}

/* Select wrapper com seta customizada */
.cc-select-wrap {
  position: relative;
}

.cc-select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem !important;
}

.cc-select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.30);
  font-size: 0.72rem;
  pointer-events: none;
  transition: color 0.15s;
}

.cc-select-wrap:focus-within .cc-select-arrow {
  color: hsl(260,95%,75%);
}

/* datetime-local: corrige ícone do calendário no dark mode */
.cc-datetime::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(2) hue-rotate(220deg);
  cursor: pointer;
  opacity: 0.6;
}
.cc-datetime::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Botões de expiração rápida */
.cc-quick-expiry {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}
.cc-quick-btn {
  flex: 1;
  padding: .35rem .5rem;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cc-quick-btn:hover {
  background: rgba(139,92,246,.25);
  border-color: rgba(139,92,246,.5);
  color: #fff;
}

/* Textarea */
.cc-textarea.form-control {
  resize: vertical;
  min-height: 88px;
}

/* Botão de submit */
.cc-submit-btn {
  width: 100%;
  padding: 0.95rem 1.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, hsl(260,95%,62%), hsl(250,95%,56%));
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 0 28px rgba(139,92,246,0.35);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
  letter-spacing: 0.01em;
}

.cc-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(139,92,246,0.55), 0 8px 20px rgba(139,92,246,0.25);
}

.cc-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.cc-submit-btn:disabled {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.30);
  box-shadow: none;
  cursor: not-allowed;
}

/* ── Estado de sucesso ── */
.cc-result-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: 2rem 1rem;
  animation: fadeSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.cc-result-check {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(22,163,74,0.15);
  border: 2px solid rgba(22,163,74,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #86efac;
  box-shadow: 0 0 40px rgba(22,163,74,0.25);
  animation: resultCheckPop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes resultCheckPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.cc-result-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.02em;
}

.cc-result-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.40);
  margin-top: -0.25rem;
}

/* Caixa do URL */
.cc-result-url-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-color 0.18s;
}

.cc-result-url-box:focus-within {
  border-color: rgba(139,92,246,0.40);
}

.cc-result-url-icon {
  padding: 0 0.85rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.cc-result-url-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.65);
  font-family: 'Geist Mono', 'Space Mono', monospace;
  font-size: 0.75rem;
  padding: 0.75rem 0;
  min-width: 0;
}

.cc-result-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  background: rgba(139,92,246,0.18);
  border: none;
  border-left: 1px solid rgba(139,92,246,0.25);
  color: hsl(260,95%,80%);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cc-result-copy-btn:hover {
  background: rgba(139,92,246,0.28);
  color: white;
}

.cc-result-copy-btn.cc-copy-success {
  background: rgba(22,163,74,0.20);
  border-left-color: rgba(22,163,74,0.30);
  color: #86efac;
}

/* Botões de ação pós-criação */
.cc-result-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.cc-result-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ── Coluna direita: preview ── */
.cc-right {
  position: sticky;
  top: calc(60px + 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cc-preview-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.30);
  align-self: flex-start;
}

/* Mini cupom de preview */
.cc-preview-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.25),
    0 0 30px rgba(139,92,246,0.12);
  transition: box-shadow 0.3s ease;
}

.cc-preview-card:hover {
  box-shadow:
    0 12px 40px rgba(0,0,0,0.30),
    0 0 40px rgba(139,92,246,0.20);
}

/* Bordas diagonais do preview */
.cc-preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.45);
  mask-image: linear-gradient(135deg, white, transparent 55%);
  -webkit-mask-image: linear-gradient(135deg, white, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.cc-preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  border: 1px solid rgba(139,92,246,0.45);
  mask-image: linear-gradient(135deg, transparent 45%, white);
  -webkit-mask-image: linear-gradient(135deg, transparent 45%, white);
  pointer-events: none;
  z-index: 1;
}

/* Topo do preview */
.cc-prev-top {
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
  position: relative;
}

.cc-prev-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.18) 0%, transparent 68%);
  pointer-events: none;
}

.cc-prev-greeting {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.cc-prev-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.68));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  transition: all 0.2s ease;
}

.cc-prev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139,92,246,0.16);
  border: 1px solid rgba(139,92,246,0.30);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(270,90%,80%);
}

.cc-prev-badge-icon {
  font-size: 0.65rem;
  color: hsl(260,95%,75%);
}

/* Divider */
.cc-prev-divider {
  height: 1px;
  margin: 0 1.25rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20) 40%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.20) 60%, transparent);
}

/* Corpo do preview */
.cc-prev-body {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
}

.cc-prev-timer-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Timer do preview */
.cc-prev-timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.cc-prev-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.cc-prev-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
  transition: all 0.15s ease;
}

.cc-prev-secs {
  color: hsl(260,95%,82%) !important;
  animation: secondsTick 1s ease-in-out infinite;
}

.cc-prev-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cc-prev-sep {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.18);
  padding-top: 0.65rem;
  line-height: 1;
}

/* Botão CTA no preview */
.cc-prev-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, hsl(260,95%,63%), hsl(250,95%,58%));
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(139,92,246,0.35);
  letter-spacing: 0.01em;
}

/* Dica abaixo do preview */
.cc-preview-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.22);
  text-align: center;
  line-height: 1.5;
}

/* ── Responsivo ── */
@media (max-width: 860px) {
  .cc-container {
    grid-template-columns: 1fr;
    max-width: 520px !important;
    gap: 2rem;
  }

  .cc-right {
    position: static;
    order: -1;
  }

  .cc-preview-card {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .cc-prev-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .cc-form-title { font-size: 1.15rem; }
}

/* ── Admin redesign ───────────────────────────────────────────────────────── */

/* ── Hero ── */
.adm-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0 2rem;
  animation: fadeSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.adm-hero-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.adm-hero-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: hsl(260,95%,76%);
  box-shadow: 0 0 22px rgba(139,92,246,0.20);
  flex-shrink: 0;
}

.adm-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.adm-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  margin-top: 0.2rem;
}

/* ── Pill tabs ── */
.adm-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  padding: 0.3rem;
  margin-bottom: 1.75rem;
  width: fit-content;
}

.adm-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 0.625rem;
  background: transparent;
  color: rgba(255,255,255,0.42);
  font-family: 'Inter', sans-serif;
  font-size: 0.855rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.adm-tab-btn i {
  font-size: 0.78rem;
  opacity: 0.8;
}

.adm-tab-btn:hover:not(.active) {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.70);
}

.adm-tab-btn.active {
  background: rgba(139,92,246,0.22);
  color: hsl(260,95%,82%);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.35),
    0 2px 12px rgba(139,92,246,0.18);
  font-weight: 600;
}

.adm-tab-btn.active i {
  opacity: 1;
}

/* ── Cards ── */
.adm-card {
  animation: fadeSlideUp 0.45s cubic-bezier(0.16,1,0.3,1) both;
}

.adm-card-header {
  padding: 1.35rem 1.5rem !important;
}

.adm-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
  margin-top: 0.2rem;
}

/* ── Responsivo ── */
@media (max-width: 640px) {
  .adm-hero { padding: 1.75rem 0 1.5rem; }
  .adm-hero-title { font-size: 1.2rem; }
  .adm-tabs { width: 100%; }
  .adm-tab-btn span { display: none; }
  .adm-tab-btn { padding: 0.6rem 1rem; justify-content: center; flex: 1; }
  .adm-tab-btn i { font-size: 0.95rem; opacity: 1; }
}

/* ── Admin Relatório ─────────────────────────────────────────────────────── */

.rpt-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rpt-consultant-card {
  position: relative;
  background: rgba(255,255,255,.05);
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  overflow: hidden;
}
.rpt-consultant-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.rpt-consultant-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.rpt-consultant-card.rpt-card-selected {
  background: rgba(139,92,246,.12);
}
.rpt-consultant-card.rpt-card-selected::before {
  background: linear-gradient(135deg, rgba(139,92,246,.55), rgba(139,92,246,.15));
}

.rpt-card-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.rpt-card-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(265,70%,55%), hsl(220,70%,55%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.rpt-card-name {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  line-height: 1.2;
}
.rpt-card-total {
  font-size: .75rem;
  color: rgba(255,255,255,.38);
  margin-top: .1rem;
}

.rpt-card-stats {
  display: flex;
  gap: .5rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.rpt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.05);
  border-radius: .5rem;
  padding: .35rem .6rem;
  min-width: 3rem;
}
.rpt-stat-value {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
}
.rpt-stat-label {
  font-size: .65rem;
  color: rgba(255,255,255,.38);
  margin-top: .15rem;
  white-space: nowrap;
}
.rpt-stat-active  .rpt-stat-value { color: hsl(145,60%,55%); }
.rpt-stat-clicked .rpt-stat-value { color: hsl(265,70%,70%); }
.rpt-stat-expired .rpt-stat-value { color: hsl(0,70%,65%); }

.rpt-card-bar-wrap {
  height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .45rem;
}
.rpt-card-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, hsl(265,70%,55%), hsl(200,80%,55%));
  transition: width .6s ease;
}
.rpt-card-bar-label {
  font-size: .7rem;
  color: rgba(255,255,255,.38);
  text-align: right;
}

.rpt-detail-card {
  margin-top: 0;
}

/* ── Admin modais ─────────────────────────────────────────────────────────── */

/* Modal mais largo e refinado */
body.app-dark .adm-modal {
  max-width: 460px;
  padding: 0;
  overflow: hidden;
}

/* Header do modal */
.adm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  margin-bottom: 0 !important;
}

.adm-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.adm-modal-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(139,92,246,0.16);
  border: 1px solid rgba(139,92,246,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: hsl(260,95%,78%);
  flex-shrink: 0;
}

.adm-modal-icon-tag {
  background: rgba(59,130,246,0.14);
  border-color: rgba(59,130,246,0.26);
  color: hsl(215,90%,72%);
}

body.app-dark .adm-modal .modal-header h3 {
  font-size: 1rem;
}

/* Formulário dentro do modal */
.adm-modal-form {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Campo do formulário */
.adm-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.adm-form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255,255,255,0.46);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.adm-form-label i {
  font-size: 0.68rem;
  color: hsl(260,95%,70%);
  opacity: 0.80;
}

/* Inputs do modal — sobrescreve lgn-input para tamanho modal */
.adm-modal-form .lgn-input.form-control {
  padding: 0.72rem 1rem 0.72rem 2.65rem !important;
  font-size: 0.875rem !important;
}

/* Select dentro do modal */
.adm-modal-form .cc-input.form-control {
  padding-top: 0.72rem !important;
  padding-bottom: 0.72rem !important;
  font-size: 0.875rem !important;
}

/* Checkboxes agrupados */
.adm-form-checks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.adm-form-check {
  /* campo individual já tem gap de .adm-form-field */
}

.adm-check-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  transition: background 0.15s, border-color 0.15s;
}

.adm-check-label:hover {
  background: rgba(139,92,246,0.07);
  border-color: rgba(139,92,246,0.20);
}

.adm-check-label input[type="checkbox"] {
  flex-shrink: 0;
}

.adm-check-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.855rem;
  color: rgba(255,255,255,0.68);
  display: flex;
  align-items: center;
}

/* Rodapé do modal */
.adm-modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0.25rem;
}

.adm-save-btn {
  padding: 0.65rem 1.5rem !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
}

/* ── Login redesign ───────────────────────────────────────────────────────── */

body.lgn-body {
  background: hsl(225, 20%, 8%);
}

/* ── Layout ── */
.lgn-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ── Card principal ── */
.lgn-card {
  width: 100%;
  max-width: 420px;
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 1.5rem;
  padding: 2.75rem 2.25rem 2.5rem;
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.10),
    0 8px 60px rgba(0,0,0,0.55),
    0 0 50px rgba(139,92,246,0.10);
  animation: fadeSlideUp 0.55s cubic-bezier(0.16,1,0.3,1) both;
  overflow: hidden;
}

/* Borda diagonal branca (canto superior esquerdo) */
.lgn-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.48);
  mask-image: linear-gradient(135deg, white, transparent 50%);
  -webkit-mask-image: linear-gradient(135deg, white, transparent 50%);
  pointer-events: none;
}

/* Borda diagonal roxa (canto inferior direito) */
.lgn-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(139,92,246,0.50);
  mask-image: linear-gradient(135deg, transparent 50%, white);
  -webkit-mask-image: linear-gradient(135deg, transparent 50%, white);
  pointer-events: none;
}

/* ── Linha accent no topo ── */
.lgn-top-accent {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsl(260,95%,68%) 40%, hsl(250,95%,75%) 60%, transparent);
  border-radius: 0 0 4px 4px;
  opacity: 0.9;
}

/* ── Branding ── */
.lgn-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.lgn-brand::before {
  content: '';
  position: absolute;
  inset: -1.5rem -2.25rem 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.16) 0%, transparent 65%);
  pointer-events: none;
}

.lgn-logo-ring {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(139,92,246,0.14);
  border: 1.5px solid rgba(139,92,246,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow:
    0 0 0 6px rgba(139,92,246,0.06),
    0 0 30px rgba(139,92,246,0.22);
  position: relative;
}

.lgn-logo-text {
  font-family: 'Voltaire', sans-serif;
  font-size: 1.65rem;
  color: hsl(260,95%,80%);
  letter-spacing: 0.04em;
  line-height: 1;
}

.lgn-title {
  font-family: 'Voltaire', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 28px rgba(139,92,246,0.55);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.lgn-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.80rem;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.01em;
}

/* ── Alert ── */
.lgn-alert {
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.855rem;
}

/* ── Formulário ── */
.lgn-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.lgn-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lgn-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.03em;
}

/* ── Input com ícone embutido ── */
.lgn-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lgn-input-icon {
  position: absolute;
  left: 1rem;
  color: rgba(255,255,255,0.28);
  font-size: 0.82rem;
  pointer-events: none;
  transition: color 0.18s;
  z-index: 1;
}

.lgn-input.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 0.875rem !important;
  color: rgba(255,255,255,0.90) !important;
  padding: 0.85rem 1rem 0.85rem 2.75rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
}

.lgn-input.form-control::placeholder {
  color: rgba(255,255,255,0.20) !important;
}

.lgn-input.form-control:focus {
  background: rgba(139,92,246,0.07) !important;
  border-color: rgba(139,92,246,0.52) !important;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15) !important;
  outline: none !important;
}

/* Ícone acende no focus */
.lgn-input-wrap:focus-within .lgn-input-icon {
  color: hsl(260,95%,72%);
}

/* Campo de senha: padding extra à direita para o toggle */
.lgn-input-password {
  padding-right: 3rem !important;
}

/* ── Toggle de senha ── */
.lgn-pwd-toggle {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.28);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.35rem;
  transition: color 0.15s;
  line-height: 1;
}

.lgn-pwd-toggle:hover {
  color: rgba(255,255,255,0.62);
}

/* ── Botão de submit ── */
.lgn-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, hsl(260,95%,62%), hsl(250,95%,56%), hsl(270,95%,65%));
  background-size: 200% 200%;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 30px rgba(139,92,246,0.38),
    0 4px 16px rgba(139,92,246,0.22);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
}

.lgn-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 0 46px rgba(139,92,246,0.58),
    0 8px 24px rgba(139,92,246,0.30);
}

.lgn-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.lgn-submit-btn:disabled {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.28);
  box-shadow: none;
  cursor: not-allowed;
}

.lgn-btn-arrow {
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.lgn-submit-btn:hover:not(:disabled) .lgn-btn-arrow {
  transform: translateX(4px);
}

/* ── Responsivo ── */
@media (max-width: 480px) {
  .lgn-card {
    padding: 2.25rem 1.5rem 2rem;
    border-radius: 1.25rem;
  }
  .lgn-title { font-size: 1.75rem; }
  .lgn-logo-ring { width: 3.5rem; height: 3.5rem; }
  .lgn-logo-text { font-size: 1.4rem; }
}
