/* ============================================================
   COMENT�RIOS REAIS � Styles
   Rosa + Branco | Premium | Mobile-First
   ============================================================ */

:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --pink-light: #fce7f3;
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: var(--font); }
input, textarea { font-family: var(--font); }

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pink-100);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--pink-600);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-logo span { color: var(--gray-800); }
.navbar-actions { display: flex; gap: 10px; }
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--pink-200);
  color: var(--pink-600);
}
.btn-outline:hover { background: var(--pink-50); border-color: var(--pink-500); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: white;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; display: block; text-align: center; }

/* Hero */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--pink-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(236,72,153,0.06) 0%, transparent 50%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink-100);
  color: var(--pink-700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 16px;
  position: relative;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Pain Section */
.pain-section {
  padding: 80px 24px;
  text-align: center;
  background: var(--white);
}
.pain-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.pain-section .subtitle {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto 40px;
}
.pain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.pain-card {
  background: var(--white);
  border: 2px solid var(--pink-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.pain-card:hover {
  border-color: var(--pink-500);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.1);
}
.pain-card-icon { font-size: 36px; margin-bottom: 14px; }
.pain-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pain-card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* Solution Section */
.solution-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--pink-50) 0%, var(--white) 100%);
  text-align: center;
}
.solution-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 40px;
}
.solution-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.solution-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--pink-200);
  border-radius: var(--radius);
  padding: 20px;
}
.solution-step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.solution-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.solution-step p { font-size: 13px; color: var(--gray-500); }

/* CTA Section */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
}
.cta-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}
.cta-section .btn-white {
  background: white;
  color: var(--pink-600);
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-section .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }

/* Footer */
.footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
  border-top: 1px solid var(--gray-100);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--pink-50) 0%, var(--white) 100%);
}
.auth-card {
  background: white;
  border: 2px solid var(--pink-200);
  border-radius: 20px;
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.08);
}
.auth-card h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  color: var(--gray-900);
}
.form-group { margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--gray-600); display: block; margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--pink-500); }
.auth-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--gray-500); }
.auth-link a { color: var(--pink-600); font-weight: 600; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-layout {
  padding-top: 70px;
  min-height: 100vh;
  background: var(--gray-50);
}
.dash-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
}
.dash-header {
  margin-bottom: 24px;
}
.dash-header h1 { font-size: 22px; font-weight: 800; }
.dash-header p { font-size: 13px; color: var(--gray-500); }
.dash-balance {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}
.dash-balance-label { font-size: 12px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.dash-balance-value { font-size: 32px; font-weight: 900; margin-top: 4px; }

/* Order Card */
.order-card {
  background: white;
  border: 1.5px solid var(--pink-100);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow:
    0 1px 2px rgba(236, 72, 153, 0.04),
    0 4px 12px rgba(236, 72, 153, 0.06),
    0 12px 32px rgba(236, 72, 153, 0.08),
    0 24px 48px rgba(15, 15, 25, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.order-card:hover {
  box-shadow:
    0 1px 2px rgba(236, 72, 153, 0.05),
    0 6px 16px rgba(236, 72, 153, 0.08),
    0 18px 40px rgba(236, 72, 153, 0.10),
    0 32px 64px rgba(15, 15, 25, 0.07);
  transform: translateY(-2px);
}
.order-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.order-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.order-type-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  background: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
}
.order-type-tab.active {
  border-color: var(--pink-500);
  background: var(--pink-50);
  color: var(--pink-600);
}
.order-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13px;
  resize: none;
  margin-top: 12px;
  transition: border-color 0.2s;
}
.order-textarea:focus { outline: none; border-color: var(--pink-500); }

/* Toast */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--gray-800);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease;
}
.toast.error { background: #ef4444; }
.toast.success { background: #10b981; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Mobile */
@media (max-width: 768px) {
  .navbar-actions .btn-outline { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .pain-cards { grid-template-columns: 1fr; }
}


/* ============================================================
   NAVBAR DO APP (logado) + MENU
   ============================================================ */
.navbar-app {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pink-100);
}

.navbar-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.navbar-link {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar-link:hover {
  background: var(--pink-50);
  color: var(--pink-600);
}

.navbar-link.active {
  background: var(--pink-100);
  color: var(--pink-700);
}

.navbar-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--gray-50);
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
}

.navbar-user:hover {
  background: var(--pink-50);
  border-color: var(--pink-200);
}

.navbar-user svg {
  color: var(--gray-500);
  transition: transform 0.2s;
}

.navbar-user:hover svg {
  transform: rotate(180deg);
  color: var(--pink-600);
}

.navbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.navbar-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--gray-100);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: all 0.2s;
  z-index: 1000;
}

.user-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
}

.user-dropdown-item:hover {
  background: var(--pink-50);
  color: var(--pink-700);
}

.user-dropdown-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 4px;
}

/* Mobile bottom tabs */
.mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--pink-100);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.15s;
}

.mobile-tab-icon {
  font-size: 20px;
  line-height: 1;
}

.mobile-tab.active {
  color: var(--pink-600);
}

@media (max-width: 720px) {
  .navbar-menu { display: none; }
  .navbar-username { display: none; }
  .mobile-tabs { display: flex; }
  .dash-layout { padding-bottom: 80px !important; }
}

/* ============================================================
   P�GINA MEU PERFIL
   ============================================================ */
.profile-card {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 6px;
}

.profile-meta {
  font-size: 12px;
  opacity: 0.75;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stat {
  background: white;
  border: 1.5px solid var(--pink-100);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow:
    0 1px 2px rgba(236, 72, 153, 0.04),
    0 4px 10px rgba(236, 72, 153, 0.06),
    0 10px 24px rgba(15, 15, 25, 0.04);
}

.profile-stat:hover {
  border-color: var(--pink-300, var(--pink-200));
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(236, 72, 153, 0.05),
    0 6px 16px rgba(236, 72, 153, 0.10),
    0 20px 40px rgba(236, 72, 153, 0.12);
}

.profile-stat-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.profile-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}

.section-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.danger-zone {
  border: 2px solid #fee2e2 !important;
  background: #fef2f2 !important;
}

.btn-danger {
  background: #ef4444 !important;
  color: white !important;
}

.btn-danger:hover {
  background: #dc2626 !important;
}

@media (max-width: 520px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
  .profile-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .profile-stat {
    padding: 12px 6px;
  }
  .profile-stat-value {
    font-size: 15px;
  }
  .profile-stat-icon {
    font-size: 20px;
  }
}


/* ============================================================
   P�GINA ADICIONAR SALDO (RECARGA PIX)
   ============================================================ */

.recharge-method {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
  border-radius: 18px;
  padding: 20px 26px;
  color: white;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.25);
}

.recharge-method-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 6px;
}

.recharge-method-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.recharge-card {
  background: white;
  border: 1.5px solid var(--pink-100);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow:
    0 1px 2px rgba(236, 72, 153, 0.04),
    0 4px 12px rgba(236, 72, 153, 0.06),
    0 12px 32px rgba(236, 72, 153, 0.08),
    0 24px 48px rgba(15, 15, 25, 0.05);
}

.recharge-field {
  margin-bottom: 18px;
}

.recharge-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--pink-600);
  margin-bottom: 10px;
}

.recharge-input {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  transition: all 0.2s;
  background: var(--white);
  font-family: var(--font);
}

.recharge-input:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.recharge-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 8px;
}

.recharge-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.recharge-preset {
  padding: 14px 8px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.recharge-preset:hover {
  border-color: var(--pink-300, var(--pink-200));
  background: var(--pink-50);
  color: var(--pink-700);
}

.recharge-preset.active {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}

.recharge-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border: 1px solid var(--pink-200);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.recharge-summary-left {
  flex: 1;
}

.recharge-summary-left strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.recharge-summary-left p {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.5;
}

.recharge-summary-right {
  background: white;
  border-radius: 12px;
  padding: 12px 18px;
  text-align: right;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.recharge-summary-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pink-600);
  margin-bottom: 4px;
  line-height: 1.2;
}

.recharge-summary-value {
  font-size: 20px;
  font-weight: 800;
  color: #f43f5e;
  line-height: 1;
}

.btn-generate-pix {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 40%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
  font-family: var(--font);
}

.btn-generate-pix:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.45);
}

.btn-pix-icon {
  font-family: monospace;
  font-size: 14px;
  background: rgba(255,255,255,0.2);
  padding: 3px 6px;
  border-radius: 4px;
}

/* Hist�rico de recargas */
.recharge-history {
  background: white;
  border: 1.5px solid var(--pink-100);
  border-radius: 20px;
  padding: 26px;
  box-shadow:
    0 1px 2px rgba(236, 72, 153, 0.04),
    0 4px 12px rgba(236, 72, 153, 0.06),
    0 12px 32px rgba(236, 72, 153, 0.08),
    0 24px 48px rgba(15, 15, 25, 0.05);
}

.recharge-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.recharge-history-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.recharge-history-header p {
  font-size: 13px;
  color: var(--gray-500);
}

.btn-refresh {
  background: white;
  border: 1.5px solid var(--gray-200);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-refresh:hover {
  border-color: var(--pink-300, var(--pink-200));
  color: var(--pink-700);
  background: var(--pink-50);
}

.recharge-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
}

.recharge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.recharge-table thead {
  background: var(--gray-50);
}

.recharge-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gray-500);
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
}

.recharge-table th.text-right { text-align: right; }

.recharge-table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.recharge-table tbody tr:last-child td {
  border-bottom: none;
}

.recharge-table tbody tr:hover {
  background: var(--pink-50);
}

.recharge-empty {
  text-align: center;
  padding: 48px 20px !important;
  color: var(--gray-500);
}

.recharge-empty-icon {
  font-size: 42px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.recharge-empty p {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.recharge-empty span {
  font-size: 12.5px;
  color: var(--gray-500);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pill.paid {
  background: #dcfce7;
  color: #15803d;
}

.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.failed {
  background: #fee2e2;
  color: #b91c1c;
}

/* Responsivo */
@media (max-width: 720px) {
  .recharge-presets {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .recharge-preset {
    padding: 12px 6px;
    font-size: 13px;
  }
  .recharge-summary {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .recharge-summary-right {
    text-align: center;
    min-width: 0;
  }
  .recharge-history-header {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-refresh {
    align-self: flex-end;
  }
  .recharge-card {
    padding: 20px;
  }
  .recharge-history {
    padding: 20px;
  }
}


/* ============================================================
   BOT�O HAMBURGER E MENU LATERAL PREMIUM
   ============================================================ */

.navbar-menu-btn {
  background: white;
  border: 1.5px solid var(--pink-100);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.08);
}

.navbar-menu-btn:hover {
  border-color: var(--pink-300, var(--pink-200));
  background: var(--pink-50);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.18);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.hamburger-icon span {
  height: 2.5px;
  background: linear-gradient(90deg, var(--pink-500), var(--pink-700));
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-icon span:nth-child(1) { width: 20px; }
.hamburger-icon span:nth-child(2) { width: 14px; margin-left: auto; }
.hamburger-icon span:nth-child(3) { width: 18px; }

.navbar-menu-btn:hover .hamburger-icon span:nth-child(2) {
  width: 20px;
}
.navbar-menu-btn:hover .hamburger-icon span:nth-child(3) {
  width: 20px;
}

/* Backdrop escuro */
.side-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

.side-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Menu lateral principal � desliza da direita */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: white;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.side-menu.open {
  transform: translateX(0);
}

/* Header com avatar e info */
.side-menu-header {
  position: relative;
  padding: 28px 24px 24px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #f5d0fe 100%);
  border-bottom: 1px solid var(--pink-100);
}

.side-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--pink-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.side-menu-close:hover {
  color: var(--pink-600);
  border-color: var(--pink-300, var(--pink-200));
  transform: rotate(90deg);
}

.side-menu-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 36px;
}

.side-menu-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
  border: 3px solid white;
  flex-shrink: 0;
}

.side-menu-user-info {
  flex: 1;
  min-width: 0;
}

.side-menu-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-menu-email {
  font-size: 12.5px;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-menu-balance-card {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
  color: white;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
  position: relative;
  overflow: hidden;
}

.side-menu-balance-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.side-menu-balance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.45);
}

.side-menu-balance-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 2px;
  position: relative;
}

.side-menu-balance-value {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  position: relative;
}

.side-menu-balance-cta {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.9;
  position: relative;
}

/* Navega��o */
.side-menu-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
}

.side-menu-item:hover {
  background: var(--pink-50);
  color: var(--pink-700);
  transform: translateX(3px);
}

.side-menu-item.active {
  background: linear-gradient(90deg, var(--pink-50), transparent);
  color: var(--pink-700);
}

.side-menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, var(--pink-500), var(--pink-700));
  border-radius: 3px;
}

.side-menu-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.side-menu-item:hover .side-menu-item-icon,
.side-menu-item.active .side-menu-item-icon {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  transform: scale(1.05);
}

.side-menu-item-label {
  flex: 1;
}

.side-menu-item-arrow {
  color: var(--gray-400);
  font-size: 20px;
  font-weight: 300;
  transition: all 0.2s;
}

.side-menu-item:hover .side-menu-item-arrow {
  color: var(--pink-600);
  transform: translateX(3px);
}

/* Footer */
.side-menu-footer {
  padding: 12px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.side-menu-item.danger {
  color: #ef4444;
}

.side-menu-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.side-menu-item.danger .side-menu-item-icon {
  background: #fef2f2;
}

.side-menu-item.danger:hover .side-menu-item-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.side-menu-brand {
  text-align: center;
  padding: 14px 12px 8px;
  font-size: 12.5px;
  color: var(--gray-500);
  font-weight: 500;
}

.side-menu-brand strong {
  color: var(--gray-700);
}

.side-menu-version {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--pink-100);
  color: var(--pink-700);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

/* Esconder o menu-horizontal antigo e o navbar-user */
.navbar-menu, .navbar-user { display: none !important; }

/* Sempre mostrar o bot�o hamburger */
@media (min-width: 721px) {
  .navbar-menu-btn { display: flex; }
}

/* Em telas maiores, o menu abre com largura fixa */
@media (min-width: 480px) {
  .side-menu {
    width: 380px;
  }
}


/* ============================================================
   MODAL DO PIX
   ============================================================ */
.pix-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pixFadeIn 0.25s ease;
}

@keyframes pixFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pixSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pix-modal {
  background: white;
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px 24px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: pixSlideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92vh;
  overflow-y: auto;
}

.pix-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pix-modal-close:hover {
  background: var(--pink-100);
  color: var(--pink-700);
  transform: rotate(90deg);
}

.pix-modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.pix-modal-icon {
  font-size: 44px;
  margin-bottom: 8px;
}

.pix-modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.pix-modal-header p {
  font-size: 13px;
  color: var(--gray-600);
}

.pix-modal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.pix-modal-status.approved {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.pix-modal-status.failed {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.pix-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  animation: pixPulse 1.5s ease-in-out infinite;
}

.pix-modal-status.approved .pix-status-dot,
.pix-modal-status.failed .pix-status-dot {
  animation: none;
}

@keyframes pixPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.pix-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 16px;
  margin-bottom: 20px;
}

.pix-qr {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  background: white;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pix-qr-placeholder {
  padding: 60px 20px;
  color: var(--gray-500);
  text-align: center;
  font-size: 13px;
}

.pix-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--pink-50);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--gray-700);
}

.pix-amount strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--pink-700);
}

.pix-credit-info {
  text-align: center;
  font-size: 12.5px;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.pix-credit-info strong {
  color: var(--pink-700);
}

.pix-copy-wrap label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pink-600);
  margin-bottom: 8px;
}

.pix-copy-box {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.pix-copy-box input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 12px;
  font-family: monospace;
  background: var(--gray-50);
  color: var(--gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
}

.pix-copy-btn {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.pix-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.pix-modal-footer {
  text-align: center;
  padding-top: 14px;
  border-top: 1px dashed var(--gray-200);
}

.pix-modal-footer p {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.pix-invoice {
  font-family: monospace;
  font-size: 10.5px !important;
  color: var(--gray-400) !important;
}

@media (max-width: 480px) {
  .pix-modal { padding: 24px 20px 20px; }
  .pix-qr { width: 200px; height: 200px; }
}


/* Resumo do pedido no dashboard */
.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border: 1px solid var(--pink-200);
  border-radius: 12px;
  margin-top: 8px;
}
.order-summary-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pink-600);
}
.order-summary-hint {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}
.order-summary strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--pink-700);
}


/* ============================================================
   PAINEL ADMIN
   ============================================================ */

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.admin-header {
  margin-bottom: 20px;
}

.admin-header h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.admin-header p {
  font-size: 14px;
  color: var(--gray-600);
}

/* Divisor no menu lateral */
.side-menu-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 12px 4px;
}

.side-menu-item.admin-item .side-menu-item-icon {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
}

.side-menu-item.admin-item .side-menu-item-label {
  color: var(--pink-700);
  font-weight: 700;
}

/* Tabs do admin */
.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.admin-tab:hover {
  border-color: var(--pink-200);
  color: var(--pink-700);
}

.admin-tab.active {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}

.admin-tab-icon {
  font-size: 16px;
}

.admin-content {
  min-height: 400px;
}

.admin-loading,
.admin-empty,
.admin-error {
  padding: 60px 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}

.admin-error {
  color: #b91c1c;
}

/* Cards de stats */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: white;
  border: 1.5px solid var(--pink-100);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow:
    0 1px 2px rgba(236, 72, 153, 0.04),
    0 4px 12px rgba(236, 72, 153, 0.06),
    0 12px 32px rgba(15, 15, 25, 0.05);
  transition: transform 0.2s;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
}

.admin-stat-card.gradient-pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
  border: none;
}
.admin-stat-card.gradient-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
}
.admin-stat-card.gradient-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
}
.admin-stat-card.gradient-purple {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
  border: none;
}
.admin-stat-card.gradient-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border: none;
}

.admin-stat-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.admin-stat-value {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1;
}

.admin-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* Se��es */
.admin-section-card {
  background: white;
  border: 1.5px solid var(--pink-100);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow:
    0 1px 2px rgba(236, 72, 153, 0.04),
    0 4px 12px rgba(236, 72, 153, 0.06),
    0 12px 32px rgba(15, 15, 25, 0.05);
}

.admin-section-card > h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.admin-section-card > p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-section-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.admin-section-header p {
  font-size: 12.5px;
  color: var(--gray-500);
}

.admin-search {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13px;
  min-width: 240px;
  background: var(--gray-50);
}

.admin-search:focus {
  outline: none;
  border-color: var(--pink-500);
  background: white;
}

.admin-filter-tabs {
  display: flex;
  gap: 6px;
}

.admin-filter-tab {
  padding: 8px 14px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}

.admin-filter-tab:hover {
  border-color: var(--pink-200);
  color: var(--pink-700);
}

.admin-filter-tab.active {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  border-color: transparent;
}

/* Tabelas */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  background: var(--gray-50);
}

.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gray-500);
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: top;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: var(--pink-50);
}

.admin-table small {
  font-size: 11px;
  color: var(--gray-500);
  display: block;
}

.admin-link {
  color: var(--pink-600);
  text-decoration: underline;
  font-size: 12px;
}

.text-green { color: #16a34a !important; }
.text-orange { color: #ea580c !important; }

.admin-role-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-700);
}

.admin-role-pill.admin {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
}

.mode-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.mode-pill.free {
  background: #dbeafe;
  color: #1e40af;
}

.mode-pill.predefined {
  background: #fce7f3;
  color: #be185d;
}

.admin-btn-edit {
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-btn-edit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

/* Finance grid */
.admin-finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.admin-finance-item {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-finance-item span {
  font-size: 12.5px;
  color: var(--gray-600);
}

.admin-finance-item strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
}

/* Settings � calculadora de pre�o */
.admin-hint {
  font-size: 12.5px !important;
  color: var(--gray-500) !important;
  margin-bottom: 14px !important;
}

.admin-form-group {
  margin-bottom: 14px;
}

.admin-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.admin-form-group .admin-hint {
  margin-top: 4px !important;
}

.admin-price-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border-radius: 14px;
}

.admin-price-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-700);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-price-row {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-price-row > div {
  flex: 1;
}

.admin-price-hint {
  display: block;
  font-size: 10.5px;
  color: var(--gray-500);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.admin-price-equals {
  font-size: 20px;
  font-weight: 800;
  color: var(--pink-600);
  padding-bottom: 8px;
  flex: 0 !important;
}

.admin-price-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--pink-200);
}

.admin-price-result span {
  font-size: 12.5px;
  color: var(--gray-600);
}

.admin-price-result strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--pink-700);
}

.admin-price-preview h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.admin-preview-table {
  width: 100%;
  font-size: 12.5px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

.admin-preview-table th {
  padding: 8px 12px;
  text-align: left;
  background: var(--gray-50);
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-preview-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--gray-100);
}

.admin-preview-table td:last-child {
  text-align: right;
  color: var(--pink-700);
}

/* Configura��es avan�adas */
.admin-table-settings code {
  font-size: 11.5px;
  color: var(--pink-700);
}

.admin-inline-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 12.5px;
  background: white;
}

.admin-inline-input:focus {
  outline: none;
  border-color: var(--pink-500);
}

/* Responsivo */
@media (max-width: 720px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-price-calculator {
    grid-template-columns: 1fr;
  }
  .admin-section-header {
    flex-direction: column;
  }
  .admin-search {
    width: 100%;
    min-width: 0;
  }
  .admin-table {
    font-size: 12px;
  }
  .admin-header h1 {
    font-size: 22px;
  }
}


/* ============================================================
   LINKS FIXOS NO TOPO (desktop)
   ============================================================ */
.navbar-top-links {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.navbar-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  white-space: nowrap;
}

.navbar-top-link:hover {
  background: var(--pink-50);
  color: var(--pink-700);
}

.navbar-top-link.active {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: white;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.30);
}

.navbar-top-link .navbar-top-icon {
  font-size: 15px;
  line-height: 1;
}

.navbar-top-link.admin-link {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
  margin-left: 8px;
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.28);
}

.navbar-top-link.admin-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.navbar-top-link.admin-link.active {
  background: linear-gradient(135deg, #7c3aed, #6b21a8);
}

/* Desktop: mostra links no topo, esconde hamburger */
@media (min-width: 900px) {
  .navbar-top-links { display: flex; }
  .navbar-menu-btn { display: none; }
}

/* Mobile: esconde links do topo, mant�m hamburger + tabs inferiores */
@media (max-width: 899px) {
  .navbar-top-links { display: none; }
}


/* API Keys � coluna compacta */
.api-key-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.api-key-cell code {
  background: var(--gray-50);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--pink-700);
  border: 1px solid var(--pink-100);
}
.admin-section-card code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--pink-700);
}


/* Card da API na p�gina Meu Perfil */
.api-key-card {
  position: relative;
}

.api-key-display {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.api-key-full {
  color: #10b981;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.api-key-empty,
.api-key-loading {
  color: #94a3b8;
  font-size: 13px;
  font-style: italic;
}

.api-key-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.api-key-actions .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
}

.api-docs-mini {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
  border: 1px solid var(--gray-100);
}

.api-docs-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 6px 0;
  align-items: center;
}

.api-docs-item + .api-docs-item {
  border-top: 1px solid var(--gray-100);
}

.api-docs-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pink-600);
}

.api-docs-code {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  color: var(--gray-700);
  word-break: break-all;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

@media (max-width: 520px) {
  .api-docs-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .api-key-actions {
    flex-direction: column;
  }
}


/* ============================================================
   POPUP MODERNO DE CONFIRMAÇÃO
   ============================================================ */
.modern-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: mcFadeIn 0.22s ease-out;
}

@keyframes mcFadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes mcSlideUp {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0)     scale(1);    opacity: 1; }
}

.modern-confirm-backdrop.closing {
  animation: mcFadeOut 0.18s ease-in forwards;
}
@keyframes mcFadeOut { to { opacity: 0; } }

.modern-confirm-box {
  background: white;
  border-radius: 24px;
  max-width: 400px;
  width: 100%;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.12);
  animation: mcSlideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.modern-confirm-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mcIconPop 0.5s cubic-bezier(0.32, 1.5, 0.44, 1) 0.1s both;
}

@keyframes mcIconPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.modern-confirm-icon {
  font-size: 36px;
  line-height: 1;
}

.modern-confirm-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.modern-confirm-message {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 22px;
}

.modern-confirm-actions {
  display: flex;
  gap: 10px;
}

.modern-confirm-cancel,
.modern-confirm-ok {
  flex: 1;
  padding: 13px 16px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font);
  letter-spacing: 0.2px;
}

.modern-confirm-cancel {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modern-confirm-cancel:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.modern-confirm-ok {
  color: white;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
}

.modern-confirm-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.35);
  filter: brightness(1.05);
}

.modern-confirm-ok:focus {
  outline: 3px solid rgba(236, 72, 153, 0.35);
  outline-offset: 2px;
}

/* Se só tem 1 botão (alerta), esconde o cancel */
.modern-confirm-actions:has(.modern-confirm-ok:only-child) .modern-confirm-cancel,
.modern-confirm-cancel:empty {
  display: none;
}

@media (max-width: 480px) {
  .modern-confirm-box { padding: 26px 22px 20px; border-radius: 20px; }
  .modern-confirm-icon-wrap { width: 62px; height: 62px; }
  .modern-confirm-icon { font-size: 30px; }
  .modern-confirm-title { font-size: 17px; }
  .modern-confirm-actions { flex-direction: column-reverse; gap: 8px; }
}
