/* ============================================================
   Vidas++ — Cartão de Benefícios | Velocard + Hospital Vita
   Color palette:
     Primary Blue  : #1B4F8C
     Vita Green    : #00873E
     Accent Gold   : #F7C948
     Light BG      : #F0F4F8
     Dark Text     : #1a202c
   ============================================================ */

:root {
  --primary: #1B4F8C;
  --primary-dark: #133a6a;
  --primary-light: #2563c0;
  --green: #00873E;
  --green-dark: #005f2b;
  --green-light: #00a84e;
  --gold: #F7C948;
  --gold-dark: #d4a816;
  --white: #ffffff;
  --light-bg: #F0F4F8;
  --light-card: #f8fafc;
  --border: #d1dbe8;
  --text: #1a202c;
  --text-muted: #64748b;
  --danger: #dc2626;
  --warning: #f59e0b;
  --success: #059669;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(27, 79, 140, 0.12);
  --shadow-md: 0 8px 40px rgba(27, 79, 140, 0.18);
  --shadow-card: 0 6px 32px rgba(27, 79, 140, 0.22);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(27,79,140,0.3);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.navbar-logo {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: var(--primary);
}
.navbar-logo-img { height: 36px; width: auto; }
.card-logo-img { height: 28px; width: auto; vertical-align: middle; }
.navbar-title { color: var(--white); font-weight: 700; font-size: 1.3rem; }
.navbar-title span { color: var(--gold); }
.navbar-links { display: flex; gap: 1.5rem; align-items: center; }
.navbar-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--gold); }
.btn-nav {
  background: var(--gold);
  color: var(--primary-dark) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }

/* ── HERO SECTION ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--green-dark) 100%);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 0.35rem 1.25rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BENEFIT CARD VISUAL ────────────────────────────────── */
/* container centralizado */
.card-wrapper{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  margin-top:3rem;
}


/* cartão */
.card-visual{
  width:420px;
  height:265px;

  border-radius:20px;
  overflow:hidden;

  box-shadow:
    0 18px 45px rgba(0,60,180,.35),
    0 6px 20px rgba(0,0,0,.25);
}


/* imagem */
.card-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* LINHAS TECNOLÓGICAS DO CARTÃO */

.card-visual::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;

  background:
    radial-gradient(circle, rgba(0,180,255,0.35) 0%, transparent 70%);

  filter: blur(30px);
}

.card-visual::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 220px;
  height: 220px;

  background:
    radial-gradient(circle, rgba(0,140,255,0.35) 0%, transparent 70%);

  filter: blur(30px);
}


/* LOGO */

.card-logo {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;

  text-shadow:
    0 0 6px rgba(0,180,255,0.8),
    0 0 12px rgba(0,180,255,0.5);
}

.card-logo span {
  color: #33c8ff;
}


/* CHIP */

.card-chip {
  width: 46px;
  height: 34px;
  margin: .75rem 0;
  border-radius: 6px;

  background:
    linear-gradient(145deg,#d8d8d8,#a7a7a7);

  box-shadow:
    inset 0 0 8px rgba(255,255,255,.5),
    0 0 8px rgba(0,200,255,.25);

  position: relative;
  z-index: 2;
}


/* NÚMERO DO CARTÃO */

.card-number {
  font-size: 1.05rem;
  letter-spacing: 3px;
  margin: .5rem 0;
  position: relative;
  z-index: 2;

  text-shadow:
    0 0 6px rgba(0,190,255,.6);
}


/* TITULAR */

.card-holder {
  font-size: .78rem;
  opacity: .9;
  letter-spacing: .5px;
  position: relative;
  z-index: 2;
}


/* VALIDADE */

.card-expiry {
  font-size: .78rem;
  opacity: .9;
  position: relative;
  z-index: 2;
}


/* BANDEIRA */

.card-brand {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;

  font-weight: 900;
  font-size: 1.25rem;

  color: #00bfff;

  text-shadow:
    0 0 8px rgba(0,180,255,.8),
    0 0 15px rgba(0,180,255,.5);
}

.user-card-container{
  width:340px;
  height:215px;
  margin:0 auto;
}

.user-card-display{
  width:340px;
  height:215px;
  display:block;
  border-radius:18px;
  overflow:hidden;

  /* SOMBRA */
  box-shadow:
    0 10px 35px rgba(0,60,180,.35),
    inset 0 0 25px rgba(0,140,255,.15);

  /* BACKGROUND DO CARTÃO (por tipo) */
  background-size:cover;
  background-position:center;
}

/* Tipos */
.user-card-container[data-card-type="cliente"] .user-card-display{
  background-image:url("../img/vidas-card-bg.svg");
}

.user-card-container[data-card-type="funcionario"] .user-card-display{
  background-image:url("../img/vidas-card-bg.svg");
}

.user-card-container[data-card-type="dependente"] .user-card-display{
  background-image:url("../img/vidas-card-dependente.svg");
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: all 0.22s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(247,201,72,0.4); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn-green {
  background: var(--green);
  color: white;
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,135,62,0.4); }
.btn-blue {
  background: var(--primary);
  color: white;
}
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: var(--warning); color: white; }
.btn-success { background: var(--success); color: white; }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--white); }
.section-dark { background: var(--primary); color: white; }
.section-green { background: var(--green); color: white; }
.container { max-width: 1180px; margin: 0 auto; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.75); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card-icon-blue { background: rgba(27,79,140,0.12); }
.card-icon-green { background: rgba(0,135,62,0.12); }
.card-icon-gold { background: rgba(247,201,72,0.2); }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; }

/* ── GRID ────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
}

/* ── PRICE CARD ──────────────────────────────────────────── */
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}
.price-card.featured {
  border-color: var(--green);
  background: linear-gradient(180deg, #f0faf5 0%, white 100%);
}
.price-card.featured:hover { transform: scale(1.03); }
.price { font-size: 3rem; font-weight: 900; color: var(--primary); }
.price sup { font-size: 1.25rem; vertical-align: top; margin-top: 0.75rem; }
.price sub { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-features { list-style: none; text-align: left; margin: 1.5rem 0; }
.price-features li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 900; }

/* ── SIMULATOR ───────────────────────────────────────────── */
.simulator {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}
.simulator h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--primary); text-align: center; }
.sim-result {
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
}
.sim-result.show { display: block; animation: fadeIn 0.4s; }
.sim-result h4 { font-size: 1.05rem; opacity: 0.85; margin-bottom: 0.5rem; }
.sim-result .sim-value { font-size: 2rem; font-weight: 900; }
.sim-row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem; }
.sim-row:last-child { border-bottom: none; font-weight: 700; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,140,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
.form-section-title {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}

/* ── DASHBOARD LAYOUT ────────────────────────────────────── */
.dashboard {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}
.sidebar-brand .logo { font-weight: 900; font-size: 1.2rem; color: var(--white); }
.sidebar-brand .logo span { color: var(--gold); }
.sidebar-brand .user-info { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 0.25rem; }
.sidebar-menu { list-style: none; padding: 0 0.75rem; }
.sidebar-menu li { margin-bottom: 0.25rem; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.sidebar-menu a.active { background: rgba(247,201,72,0.22); color: var(--gold); }
.sidebar-menu .menu-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-section-label {
  padding: 1rem 1.5rem 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
}
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  max-width: calc(100% - 260px);
}
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap; gap: 1rem;
}
.page-title { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; }

/* ── STAT CARDS ──────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-blue { background: rgba(27,79,140,0.12); }
.stat-green { background: rgba(0,135,62,0.12); }
.stat-gold { background: rgba(247,201,72,0.2); }
.stat-red { background: rgba(220,38,38,0.1); }
.stat-info h4 { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.stat-info .stat-value { font-size: 1.5rem; font-weight: 900; color: var(--text); }
.stat-info .stat-change { font-size: 0.78rem; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--danger); }

/* ── TABLES ──────────────────────────────────────────────── */
.table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.table-header h3 { font-size: 1rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.85rem 1.25rem; text-align: left; font-size: 0.88rem; }
th { background: var(--light-bg); font-weight: 700; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
td { border-top: 1px solid var(--border); }
tr:hover td { background: #f8fafc; }
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
}
.badge-green { background: rgba(0,135,62,0.12); color: var(--green-dark); }
.badge-blue { background: rgba(27,79,140,0.12); color: var(--primary); }
.badge-gold { background: rgba(247,201,72,0.25); color: #8a6800; }
.badge-red { background: rgba(220,38,38,0.1); color: var(--danger); }
.badge-gray { background: #e2e8f0; color: #64748b; }

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--green-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-badge {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 0.75rem;
  box-shadow: 0 6px 20px rgba(27,79,140,0.3);
}
.auth-logo h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.auth-logo h2 span { color: var(--green); }
.auth-logo p { font-size: 0.88rem; color: var(--text-muted); }
.role-tabs {
  display: flex; gap: 0.5rem;
  background: var(--light-bg);
  padding: 0.35rem;
  border-radius: 12px;
  margin-bottom: 1.75rem;
}
.role-tab {
  flex: 1; text-align: center;
  padding: 0.55rem 0.5rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  border: none; background: transparent;
}
.role-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(27,79,140,0.12);
}
.forgot-link { text-align: right; margin-bottom: 1.5rem; }
.forgot-link a { font-size: 0.83rem; color: var(--primary); text-decoration: none; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin: 1.25rem 0; position: relative; }
.auth-divider::before {
  content: ''; position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.auth-divider span { background: white; padding: 0 0.75rem; position: relative; }

/* ── TABS ────────────────────────────────────────────────── */
.tab-nav {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none; background: transparent;
  cursor: pointer;
  font-weight: 600; font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover { color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s; }

/* ── BENEFIT CARD DISPLAY (SVG) ──────────────────────────── */
.user-card-display {
  width: 340px; height: 215px;
  border-radius: 18px;
  display: block;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.user-card-display:hover { transform: perspective(800px) rotateY(-5deg); box-shadow: 0 14px 50px rgba(27,79,140,0.4); }

/* ── CONSIGNED SIMULATOR ─────────────────────────────────── */
.slider-group { margin-bottom: 1.5rem; }
.slider-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.slider-label span { font-weight: 700; color: var(--primary); }
input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--val, 50%), var(--border) var(--val, 50%));
  border-radius: 10px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(27,79,140,0.4);
  border: 3px solid white;
}
.limit-bar {
  background: var(--light-bg);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.limit-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.4s;
}
.limit-fill.safe { background: var(--green); }
.limit-fill.warning { background: var(--warning); }
.limit-fill.danger { background: var(--danger); }

/* ── RECEIVABLES ─────────────────────────────────────────── */
.receivable-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}
.receivable-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.receivable-card.selected { border-color: var(--green); background: rgba(0,135,62,0.05); }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-sidebar {
  background: var(--primary-dark);
}

/* ── UTILITY ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold-dark); }
.text-muted { color: var(--text-muted); }
.text-white { color: white; }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.fw-900 { font-weight: 900; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hidden { display: none !important; }
.rounded { border-radius: var(--radius); }
.border-top { border-top: 1px solid var(--border); padding-top: 1rem; }
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.alert-info { background: rgba(27,79,140,0.08); border-left: 4px solid var(--primary); color: var(--primary); }
.alert-success { background: rgba(0,135,62,0.08); border-left: 4px solid var(--green); color: var(--green-dark); }
.alert-warning { background: rgba(245,158,11,0.1); border-left: 4px solid var(--warning); color: #92400e; }
.progress-bar-wrap { background: var(--border); border-radius: 10px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 10px; transition: width 0.6s; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--light-bg); border-radius: 25px;
  padding: 0.3rem 0.85rem; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { color: white; font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
footer h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; }
footer ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8rem;
}
.footer-logos { display: flex; gap: 1rem; align-items: center; }
.footer-logo-badge {
  background: rgba(255,255,255,0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}
a.footer-logo-badge:hover { background: rgba(255,255,255,0.18); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade { animation: fadeIn 0.5s ease both; }
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 1rem;
  display: none;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s; }
.modal {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem; max-width: 520px; width: 100%;
  box-shadow: var(--shadow-md); max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.modal-close {
  background: var(--light-bg); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--border); }

/* ── MOBILE SIDEBAR TOGGLE ───────────────────────────────── */
.sidebar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--primary);
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -260px; top: 0; height: 100vh; z-index: 100; transition: left 0.3s; }
  .sidebar.open { left: 0; }
  .main-content { max-width: 100%; }
  .sidebar-toggle { display: block; }
  .dashboard { display: block; }
}
