@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #E0F2FE;
  --primary-xlight: #F0F9FF;
  --green: #00C48C;
  --green-dark: #00A375;
  --green-light: #ECFDF5;
  --coral: #FF6B6B;
  --coral-light: #FFF1F1;
  --amber: #F59E0B;
  --amber-light: #FFFBEB;
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-primary: 0 4px 16px rgba(14,165,233,0.2);
  --shadow-hover: 0 8px 32px rgba(14,165,233,0.15);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ========== CONTAINER ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 500px; margin: 0 auto; padding: 0 24px; }

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; }
.navbar-logo { height: 32px; width: auto; }
.navbar-nav { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar-nav a { color: var(--text-secondary); font-weight: 500; font-size: 15px; }
.navbar-nav a:hover { color: var(--primary); }
.navbar-nav a.active { color: var(--primary); }
.navbar-actions { display: flex; gap: 12px; align-items: center; }
.navbar-mobile { display: none; cursor: pointer; background: none; border: none; padding: 4px; }

/* Notification bell */
.navbar-notification { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-secondary); transition: var(--transition); }
.navbar-notification:hover { background: var(--border-light); color: var(--primary); }
.notification-badge { position: absolute; top: 2px; right: 2px; background: var(--coral); color: white; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid white; }

/* User dropdown */
.navbar-user { position: relative; cursor: pointer; }
.navbar-avatar { width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: var(--font-heading); transition: var(--transition); }
.navbar-user:hover .navbar-avatar { box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
.navbar-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 220px; z-index: 200; overflow: hidden; animation: dropdownFadeIn 0.15s ease; }
.navbar-dropdown.show { display: block; }
.navbar-dropdown-user { padding: 12px 16px; }
.navbar-dropdown-user strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.navbar-dropdown-user span { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.navbar-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; color: var(--text); font-weight: 500; }
.navbar-dropdown a:hover { background: var(--border-light); color: var(--primary); }
.navbar-dropdown-logout { color: var(--coral) !important; }
.navbar-dropdown-logout:hover { background: var(--coral-light) !important; color: var(--coral) !important; }
.navbar-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
@keyframes dropdownFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Notification items */
.notifications-list { display: flex; flex-direction: column; gap: 2px; }
.notification-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-md); transition: var(--transition); color: var(--text); }
.notification-item:hover { background: var(--border-light); color: var(--text); }
.notification-item.unread { background: var(--primary-xlight); }
.notification-icon { width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notification-content { flex: 1; min-width: 0; }
.notification-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.notification-message { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notification-time { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.notification-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }

/* Dashboard notification mini items */
.notification-item-sm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); transition: var(--transition); color: var(--text); }
.notification-item-sm:hover { background: var(--border-light); color: var(--text); }
.notification-item-sm.unread { background: var(--primary-xlight); }
.notification-dot-sm { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }

/* Dashboard grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Quick actions */
.quick-action { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; font-size: 14px; transition: var(--transition); }
.quick-action:hover { background: var(--primary-xlight); color: var(--primary); }
.quick-action i { color: var(--primary); }

/* Mobile nav */
.navbar-nav.show-mobile { display: flex; }
.nav-mobile-only { display: none; }
.nav-divider { height: 1px; background: var(--border); margin: 4px 0; list-style: none; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600;
  font-size: 15px; border: none; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body); text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-dark); color: white; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-danger { background: var(--coral); color: white; }
.btn-danger:hover { background: #E55B5B; color: white; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gradient { background: linear-gradient(135deg, var(--primary) 0%, #06B6D4 50%, var(--green) 100%); color: white; }
.btn-gradient:hover { box-shadow: var(--shadow-primary); transform: translateY(-1px); color: white; }

/* ========== HERO ========== */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--primary-xlight) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-left { max-width: 540px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--green-light); color: var(--green-dark); font-size: 14px; font-weight: 600; padding: 6px 16px; border-radius: 50px; margin-bottom: 24px; }
.hero h1 { font-size: 50px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.03em; line-height: 1.1; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 13px; color: var(--text-secondary); }
.hero-trust-icons { display: flex; gap: 6px; }
.hero-trust-icon { width: 32px; height: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); }

/* Hero illustration */
.hero-right { position: relative; display: flex; justify-content: center; }
.hero-illustration { position: relative; width: 100%; max-width: 420px; height: 400px; }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 20px; box-shadow: var(--shadow-md); width: 300px;
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-card-1 { top: 0; left: 0; animation-delay: 0s; }
.hero-card-2 { top: 100px; right: 0; animation-delay: -2s; }
.hero-card-3 { top: 200px; left: 20px; animation-delay: -4s; }
.hero-card-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-card-name { font-size: 14px; font-weight: 600; color: var(--text); }
.hero-card-price { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--text); }
.hero-card-price span { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.hero-card-save { margin-left: auto; background: var(--green-light); color: var(--green-dark); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.hero-savings-badge {
  position: absolute; bottom: -20px; right: 30px; display: flex; align-items: center; gap: 10px;
  background: var(--green); color: white; padding: 12px 18px; border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,196,140,0.3); animation: heroFloat 6s ease-in-out infinite; animation-delay: -3s;
  z-index: 2;
}
.hero-savings-label { font-size: 12px; opacity: 0.85; }
.hero-savings-value { font-family: var(--font-heading); font-size: 20px; font-weight: 800; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Split sections */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.section-badge { display: inline-flex; background: var(--primary-light); color: var(--primary-dark); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 50px; margin-bottom: 16px; }
.split-content h2 { font-size: 32px; margin-bottom: 16px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-secondary); }
.mock-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-lg); }
.mock-card-header { display: flex; align-items: center; gap: 12px; }
.mock-avatar { width: 40px; height: 40px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }

/* Security grid */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.security-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: var(--transition); }
.security-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.security-icon { width: 56px; height: 56px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.security-card h3 { font-size: 17px; margin-bottom: 8px; }
.security-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* CTA section */
.section-cta { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #06B6D4 50%, var(--green) 100%);
  border-radius: var(--radius-xl); padding: 64px 48px; text-align: center; color: white;
}
.cta-box h2 { font-size: 36px; color: white; margin-bottom: 16px; }
.cta-box p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-box .hero-actions { justify-content: center; }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-title { font-size: 36px; text-align: center; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-secondary); text-align: center; margin-bottom: 48px; }

/* ========== CATEGORIES ========== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: var(--transition); text-align: center;
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.category-card.active { border-color: var(--primary); background: var(--primary-light); }
.category-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: var(--radius-md); color: var(--primary); }
.category-name { font-weight: 600; font-size: 14px; color: var(--text); }

/* ========== GROUP CARDS ========== */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.group-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: var(--transition); position: relative;
}
.group-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.group-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.group-card-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.group-card-info { flex: 1; }
.group-card-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.group-card-category { font-size: 13px; color: var(--text-secondary); }
.group-card-pricing { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.group-card-price { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--text); }
.group-card-original { font-size: 14px; color: var(--text-tertiary); text-decoration: line-through; }
.group-card-discount { font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-light); padding: 2px 8px; border-radius: 20px; }
.group-card-slots { margin-bottom: 16px; }
.group-card-slots-bar { width: 100%; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.group-card-slots-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s ease; }
.group-card-slots-text { font-size: 13px; color: var(--text-secondary); margin-top: 6px; display: flex; justify-content: space-between; }
.group-card-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-amber { background: var(--amber-light); color: #B45309; }
.badge-coral { background: var(--coral-light); color: var(--coral); }
.group-card-footer { display: flex; justify-content: space-between; align-items: center; }
.group-card-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-secondary); }
.group-card-rating i { color: var(--amber); }

/* ========== STEPS ========== */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
.step { text-align: center; padding: 32px 24px; flex: 1; max-width: 300px; }
.step-icon { width: 56px; height: 56px; background: var(--primary); color: white; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step-number { width: 56px; height: 56px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 24px; font-weight: 800; margin: 0 auto 20px; }
.step h3 { font-size: 20px; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.step-arrow { display: flex; align-items: center; color: var(--border); margin-top: 48px; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-hint { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font-body); transition: var(--transition); background: var(--surface);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ========== CARDS GENERIC ========== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-title { font-size: 18px; font-weight: 700; }

/* ========== STATS ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-value { font-family: var(--font-heading); font-size: 28px; font-weight: 800; }
.stat-value.green { color: var(--green); }
.stat-value.primary { color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* ========== CHAT ========== */
.chat-container { display: flex; flex-direction: column; height: calc(100vh - 200px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.chat-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-banner { background: var(--primary-light); color: var(--primary-dark); padding: 10px 24px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chat-message { display: flex; gap: 12px; max-width: 80%; }
.chat-message.own { align-self: flex-end; flex-direction: row-reverse; }
.chat-message-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.chat-message-bubble { background: var(--border-light); padding: 12px 16px; border-radius: 16px 16px 16px 4px; }
.chat-message.own .chat-message-bubble { background: var(--primary); color: white; border-radius: 16px 16px 4px 16px; }
.chat-message-name { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.chat-message-time { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }
.chat-message.system { align-self: center; max-width: 100%; }
.chat-message.system .chat-message-bubble { background: var(--amber-light); color: #92400E; font-size: 13px; border-radius: var(--radius-sm); }
.chat-typing { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); padding: 4px 0; }
.chat-typing-dots { display: flex; gap: 3px; }
.chat-typing-dots span { width: 5px; height: 5px; background: var(--text-tertiary); border-radius: 50%; animation: typingDot 1.4s infinite; }
.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.chat-input { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; }
.chat-input input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 15px; }
.chat-input input:focus { outline: none; border-color: var(--primary); }
.chat-input button { padding: 12px 24px; }

/* ========== PAYMENT ========== */
.payment-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.payment-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.payment-line:last-child { border-bottom: none; }
.payment-total { font-family: var(--font-heading); font-weight: 800; font-size: 20px; border-top: 2px solid var(--border); padding-top: 16px; margin-top: 8px; }
.pix-box { text-align: center; padding: 32px; background: var(--primary-xlight); border-radius: var(--radius-lg); margin: 24px 0; }
.pix-box img { max-width: 200px; margin: 16px auto; }

/* ========== FLASH MESSAGES ========== */
.flash { padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.flash-success { background: var(--green-light); color: var(--green-dark); border: 1px solid #A7F3D0; }
.flash-error { background: var(--coral-light); color: #DC2626; border: 1px solid #FECACA; }
.flash-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #BAE6FD; }

/* ========== TABLE ========== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text-secondary); background: var(--border-light); border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light); }
tr:hover td { background: var(--primary-xlight); }

/* ========== AUTH PAGES ========== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-xlight), var(--bg)); padding: 24px; }
.auth-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 48px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-img { height: 40px; width: auto; margin-bottom: 8px; }
.auth-logo p { color: var(--text-secondary); margin-top: 8px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-tertiary); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }

/* ========== FOOTER ========== */
.footer { background: var(--text); color: #94A3B8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { margin-bottom: 16px; }
.footer-logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer h4 { color: white; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #94A3B8; font-size: 14px; }
.footer ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 24px; text-align: center; font-size: 13px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-left { max-width: 100%; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-illustration { max-width: 360px; height: 380px; margin: 0 auto; }
  .hero-card { width: 260px; }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .split-section.reverse { direction: ltr; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .hero-illustration { max-width: 300px; height: 340px; }
  .hero-card { width: 240px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .groups-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* Navbar mobile layout: hamburger left, brand center-left, actions right */
  .navbar .container { flex-wrap: nowrap; }
  .navbar-mobile { display: flex; align-items: center; justify-content: center; order: -1; margin-right: 12px; }
  .navbar-brand { order: 0; flex: 1; }
  .navbar-actions { order: 1; }
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 8px; z-index: 150; box-shadow: var(--shadow-md); }
  .navbar-nav.show-mobile { display: flex; }
  .nav-mobile-only { display: list-item; }
  .btn-create-group { display: none; }
  .navbar-user .navbar-dropdown { display: none !important; }
  .navbar-user { cursor: default; pointer-events: none; }
  .navbar-user .navbar-avatar { box-shadow: none !important; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-info { text-align: center; }
  .profile-info > div { justify-content: center; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .auth-card { padding: 32px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 16px; margin-bottom: 32px; }
  .cta-box { padding: 40px 24px; }
  .cta-box h2 { font-size: 28px; }
  .payment-summary { padding: 20px; }
  .chat-input { padding: 12px 16px; }
  .chat-messages { padding: 16px; }
  .chat-header { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-illustration { height: 280px; max-width: 260px; }
  .hero-card { width: 220px; padding: 10px 14px; font-size: 13px; }
  .hero-card-price { font-size: 16px; }
  .hero-card-icon { width: 32px; height: 32px; }
  .hero-savings-badge { padding: 10px 14px; }
  .hero-savings-value { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .split-content h2 { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 24px; }
  .card { padding: 16px; }
  .navbar-logo { height: 26px; }
  .navbar-actions { gap: 8px; }
  .navbar-avatar { width: 32px; height: 32px; font-size: 13px; }
  .btn-sm { padding: 6px 12px; font-size: 12px; }
  .step { padding: 20px 16px; }
  .step-number { width: 44px; height: 44px; font-size: 20px; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 14px; }
  .chat-message { max-width: 90%; }
}

/* ========== ONBOARDING ========== */
.onboarding-steps { display: flex; flex-direction: column; gap: 4px; }
.onboarding-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); transition: var(--transition); }
.onboarding-step:hover { background: var(--border-light); }
.onboarding-step strong { display: block; font-size: 14px; }
.onboarding-step span { display: block; font-size: 12px; color: var(--text-secondary); }
.onboarding-check { width: 32px; height: 32px; border-radius: 50%; background: var(--border-light); color: var(--text-tertiary); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.onboarding-step.done .onboarding-check { background: var(--green); color: white; }
.onboarding-step.done strong { color: var(--text-secondary); }

/* ========== SAVINGS BANNER ========== */
.savings-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #ECFDF5, #E0F2FE); border: 1px solid #A7F3D0; border-radius: var(--radius-lg); padding: 20px 24px; }
.savings-banner-left { display: flex; align-items: center; gap: 14px; }
.savings-banner-icon { width: 48px; height: 48px; background: var(--green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.savings-banner-label { font-size: 13px; color: var(--text-secondary); }
.savings-banner-value { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--green-dark); }

/* ========== GUARANTEE ========== */
.guarantee-banner { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--green) 0%, #00A375 100%); border-radius: var(--radius-xl); padding: 32px 40px; }
.guarantee-icon { width: 64px; height: 64px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.guarantee-inline { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--green-light); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--green-dark); margin-bottom: 24px; }

/* ========== RATING ========== */
.rating-input { display: flex; gap: 4px; }
.rating-star { font-size: 28px; color: var(--border); cursor: pointer; transition: var(--transition); }
.rating-star:hover, .rating-star.active { color: var(--amber); }

/* ========== CALCULATOR ========== */
.calc-container { max-width: 700px; margin: 0 auto; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.calc-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); }
.calc-item:hover { border-color: var(--primary); }
.calc-item input { display: none; }
.calc-item input:checked ~ .calc-check { background: var(--primary); border-color: var(--primary); }
.calc-item input:checked ~ .calc-check::after { content: ''; display: block; width: 6px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 1px 0 0 3px; }
.calc-item input:checked ~ .calc-item-info strong { color: var(--primary); }
.calc-check { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px; flex-shrink: 0; transition: var(--transition); }
.calc-item-info { display: flex; flex-direction: column; }
.calc-item-info strong { font-size: 14px; transition: var(--transition); }
.calc-item-info span { font-size: 12px; color: var(--text-secondary); }
.calc-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.calc-result-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; }
.calc-result-total { display: flex; justify-content: space-between; padding: 14px 0 8px; border-top: 2px solid var(--border); margin-top: 8px; font-size: 18px; }
.calc-result-total strong { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--green); }

/* ========== MODAL ========== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-box { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); animation: dropdownFadeIn 0.2s ease; }

/* ========== HOW IT WORKS ========== */
.hiw-steps { display: flex; flex-direction: column; gap: 20px; }
.hiw-step { display: flex; gap: 16px; align-items: flex-start; }
.hiw-step-num { width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.hiw-step h4 { font-size: 16px; margin-bottom: 4px; }
.hiw-step p { font-size: 14px; line-height: 1.6; }

/* ========== FAQ ========== */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--text-secondary); transition: var(--transition); }
.faq-item[open] summary::after { content: '-'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border-light); }
.faq-item p { padding: 16px 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ========== PROFILE PAGE ========== */
.profile-header { display: flex; align-items: center; gap: 20px; }
.profile-avatar { width: 64px; height: 64px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; font-family: var(--font-heading); flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-info h3 { font-size: 20px; margin-bottom: 2px; }
.profile-verify-list { display: flex; flex-direction: column; gap: 12px; }
.profile-verify-item { display: flex; align-items: center; gap: 12px; }
.profile-verify-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--border-light); color: var(--text-tertiary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-verify-icon.done { background: var(--green-light); color: var(--green-dark); }

/* ========== VERIFY PAGE ========== */
.verify-progress { display: flex; align-items: center; justify-content: center; gap: 0; }
.verify-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.verify-step span { font-size: 13px; font-weight: 600; color: var(--text-tertiary); }
.verify-step.active span { color: var(--primary); }
.verify-step.done span { color: var(--green); }
.verify-step-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--border-light); color: var(--text-tertiary); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.verify-step.active .verify-step-icon { background: var(--primary); color: white; }
.verify-step.done .verify-step-icon { background: var(--green); color: white; }
.verify-step-line { width: 60px; height: 2px; background: var(--border-light); margin-bottom: 28px; }
.verify-step-line.done { background: var(--green); }
.verify-card-icon { width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.verify-done-badge { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--green-light); color: var(--green-dark); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }

/* ========== UTILS ========== */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-coral { color: var(--coral); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
