/* ===== VARIABLES — palette CRCA Bank (vert + orange) ===== */
:root {
  --green:        #00843D;   /* vert principal — hero, bannière, accents */
  --green-dark:   #005C2A;   /* vert foncé — navbar, footer, textes */
  --green-dark2:  #00381a;   /* vert très foncé — overlay loading */
  --green2:       #00a651;   /* vert moyen */
  --green-light:  #E8F5EC;
  --orange:       #F57C00;   /* orange accent — boutons CTA */
  --orange-dark:  #d96c00;   /* orange foncé hover */
  --orange-light: #ffa94d;
  --white:        #ffffff;
  --bg:           #f7faf8;   /* fond clair */
  --bg2:          #eef5f0;
  --border:       #d7e8dd;
  --text-muted:   #56675c;
  --text-light:   #94a89c;
  --red:          #C8102E;
  --shadow:    0 4px 24px rgba(0,92,42,0.14);
  --shadow-lg: 0 8px 40px rgba(0,92,42,0.24);
  --radius:    12px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--green-dark);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,92,42,0.35);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }

.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  font-size: 18px;
}

.brand-name { display: block; color: var(--white); font-weight: 800; font-size: 16px; line-height: 1; }
.brand-sub  { display: block; color: var(--orange); font-size: 11px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }

.btn-nav {
  background: var(--orange);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 5px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--green); color: var(--white) !important; }

.btn-nav-outline {
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 18px;
  border-radius: 5px;
  transition: all 0.2s !important;
}
.btn-nav-outline:hover { border-color: var(--orange); color: var(--orange) !important; }

.nav-toggle { display: none; background: none; border: none; color: white; font-size: 20px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, rgba(0,92,42,0.94), rgba(0,132,61,0.90)), url('../img/hero.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,124,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,92,42,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,124,0,0.18);
  border: 1px solid rgba(245,124,0,0.5);
  color: var(--orange-light);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px; line-height: 1.15; margin-bottom: 20px; font-weight: 800;
}

.hero h1 span { color: var(--orange); }

.hero p {
  font-size: 17px; color: rgba(255,255,255,0.85);
  margin-bottom: 36px; line-height: 1.7;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px; border-radius: 5px;
  font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); color: var(--white); }

.btn-secondary {
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  padding: 14px 32px; border-radius: 5px;
  font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

.hero-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.hero-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.card-bank-name { font-size: 13px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.card-type { color: var(--orange); font-weight: 600; font-size: 14px; }
.card-compte { font-size: 20px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.card-institution { font-size: 13px; color: rgba(255,255,255,0.5); }
.card-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 20px 0; }
.card-balance-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.card-balance { font-size: 36px; font-weight: 700; color: var(--orange-light); margin-top: 4px; }
.card-holder { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 16px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== FEATURES ===== */
.features { padding: 80px 24px; background: white; }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }

.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,132,61,0.08);
  color: var(--green);
  padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
}

.section-header h2 {
  font-size: 34px; color: var(--green-dark); margin-bottom: 14px; font-weight: 800;
}
.section-header p { color: var(--text-muted); font-size: 16px; }

.features-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

.feature-card {
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: all 0.3s;
}
.feature-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-4px); }

.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-size: 22px; margin-bottom: 20px;
}

.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== STATS ===== */
.stats {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 64px 24px;
}
.stats-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat-item h3 { font-size: 40px; font-weight: 800; color: var(--orange-light); }
.stat-item p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 4px; }

/* ===== TRUST (photos) ===== */
.trust { padding: 90px 24px; background: white; }
.trust-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.trust-images { position: relative; }
.trust-img-main {
  width: 100%; display: block; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover;
}
.trust-img-float {
  position: absolute; width: 52%; bottom: -32px; right: -28px;
  border-radius: var(--radius); border: 6px solid white;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover;
}
.trust-content h2 { font-size: 32px; color: var(--green-dark); margin-bottom: 16px; font-weight: 800; }
.trust-content > p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; line-height: 1.7; }
.trust-points { display: flex; flex-direction: column; gap: 16px; }
.trust-points li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--green-dark); font-weight: 600;
}
.trust-points li i {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.trust-points li span { font-weight: 400; color: var(--text-muted); display: block; margin-top: 2px; font-size: 13px; }

/* ===== STEPS ===== */
.steps { padding: 80px 24px; background: var(--bg); }

.steps-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 28px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.step-card { text-align: center; padding: 24px 20px; position: relative; }
.step-num {
  width: 56px; height: 56px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700; font-size: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }

/* ===== PAGES SIMPLES (profil / admin login) ===== */
.page-wrapper {
  min-height: calc(100vh - 70px);
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

.auth-card {
  max-width: 480px; margin: 0 auto;
  background: white; border-radius: var(--radius-lg);
  padding: 48px 40px; box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 26px; color: var(--green-dark); margin-bottom: 6px; font-weight: 800;
}
.auth-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--green-dark); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--green-dark); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,132,61,0.12);
  background: white;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }

.btn-full {
  width: 100%; padding: 14px;
  background: var(--green-dark);
  color: white; border: none; border-radius: 5px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif;
}
.btn-full:hover { background: var(--green); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-gold {
  background: var(--orange);
  color: var(--white);
}
.btn-gold:hover { background: var(--orange-dark); }

.auth-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-link a { color: var(--green); font-weight: 600; }

.alert {
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-info    { background: #eefaf1; color: var(--green-dark); border: 1px solid rgba(0,132,61,0.25); }
.alert-warning { background: #fff8e5; color: var(--orange-dark); border: 1px solid rgba(245,124,0,0.4); }

/* ===== LOGIN / REGISTER — split panel (style credit-rapide.ca) ===== */
.login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card-split {
  width: 100%;
  max-width: 920px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}
.auth-left {
  background: linear-gradient(160deg, rgba(0,92,42,0.93), rgba(0,132,61,0.88)), url('../img/conseiller.jpg') center/cover no-repeat;
  padding: 52px 44px;
  color: white;
}
.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
}
.auth-left-logo .logo-icon {
  width: 40px; height: 40px;
  background: white;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1rem;
}
.auth-left-logo span { font-size: 1.15rem; font-weight: 800; }
.auth-left h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 14px; line-height: 1.25; }
.auth-left p { color: rgba(255,255,255,0.65); font-size: 0.92rem; line-height: 1.7; margin-bottom: 36px; }
.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  margin-bottom: 14px;
  list-style: none;
}
.auth-features li i { color: var(--orange-light); width: 18px; }
.auth-right { padding: 52px 44px; }
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}
.auth-tab {
  padding: 10px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; color: var(--green-dark); }

/* ===== DASHBOARD ===== */
.dashboard-layout { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }

.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-size: 26px; color: var(--green-dark); font-weight: 800; }
.dashboard-header p { color: var(--text-muted); font-size: 15px; }

.balance-card {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-radius: var(--radius-lg); padding: 36px;
  color: white; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(245,124,0,0.2), transparent 70%);
  border-radius: 50%;
}

.balance-card-inner { display: flex; justify-content: space-between; align-items: flex-start; }
.balance-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.balance-amount { font-size: 44px; font-weight: 800; color: var(--orange-light); }

.compte-block { text-align: right; }
.compte-block-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.compte-val { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.institution-val { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }

.copy-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; cursor: pointer; margin-top: 8px;
  transition: background 0.2s; font-family: 'Inter', sans-serif;
}
.copy-btn:hover { background: rgba(255,255,255,0.22); }

.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }

.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: var(--green-dark);
}
.action-btn:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--green-dark); }
.action-btn i { font-size: 24px; color: var(--green); }
.action-btn span { font-size: 13px; font-weight: 600; }

.card-box {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.card-box-header {
  padding: 20px 24px; border-bottom: 1px solid var(--bg2);
  display: flex; align-items: center; justify-content: space-between;
}
.card-box-header h3 { font-size: 16px; font-weight: 700; color: var(--green-dark); }
.card-box-header a { font-size: 13px; color: var(--green); font-weight: 600; }

.tx-list { padding: 0; }
.tx-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px; border-bottom: 1px solid var(--bg2);
  transition: background 0.15s;
}
.tx-item:last-child { border-bottom: none; }
.tx-item:hover { background: var(--bg); }

.tx-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.tx-icon.out { background: #fef2f2; color: var(--red); }
.tx-icon.in  { background: #f0fdf4; color: var(--green); }

.tx-info { flex: 1; }
.tx-name { font-size: 14px; font-weight: 600; color: var(--green-dark); }
.tx-date { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.tx-amount { font-size: 15px; font-weight: 700; }
.tx-amount.out { color: var(--red); }
.tx-amount.in  { color: var(--green); }

.tx-badge { font-size: 11px; padding: 3px 10px; border-radius: 100px; font-weight: 600; }
.badge-valide    { background: #f0fdf4; color: var(--green); }
.badge-en_attente { background: #fff8e5; color: var(--orange-dark); }
.badge-refuse    { background: #fef2f2; color: var(--red); }
.badge-expire    { background: var(--bg2); color: var(--text-light); }

/* ===== VIREMENT ===== */
.virement-wrapper { max-width: 640px; margin: 0 auto; padding: 40px 24px; }

.virement-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }

.virement-card-header {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white; padding: 28px 32px;
}
.virement-card-header h2 { font-size: 22px; margin-bottom: 4px; font-weight: 800; }
.virement-card-header p { color: rgba(255,255,255,0.65); font-size: 13px; }

.virement-body { padding: 32px; }

.balance-info {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px;
}
.balance-info-label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.balance-info-val { font-size: 22px; font-weight: 700; color: var(--green-dark); }

/* ===== LOADING OVERLAY ===== */
#loading-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,56,26,0.94);
  z-index: 1000; flex-direction: column;
  align-items: center; justify-content: center; color: white;
}
#loading-overlay.active { display: flex; }

.loading-box {
  background: var(--green-dark2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 48px 56px; text-align: center;
  max-width: 420px; width: 90%;
}

.loading-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--green-dark);
  margin: 0 auto 24px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.loading-title { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.loading-subtitle { color: rgba(255,255,255,0.55); font-size: 13px; margin-bottom: 32px; }

.progress-bar-track {
  background: rgba(255,255,255,0.1); border-radius: 100px; height: 8px;
  margin-bottom: 12px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 100px; width: 0%; transition: width 0.1s linear;
}
.progress-pct { font-size: 28px; font-weight: 700; color: var(--orange-light); margin-bottom: 6px; }
.progress-label { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ===== CODE VALIDATION ===== */
#code-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,132,61,0.93);
  z-index: 1001; align-items: center; justify-content: center;
}
#code-overlay.active { display: flex; }

.code-box {
  background: white; border-radius: var(--radius-lg);
  padding: 48px 40px; text-align: center;
  max-width: 420px; width: 90%; box-shadow: var(--shadow-lg);
}
.code-box h3 { font-size: 24px; color: var(--green-dark); margin-bottom: 8px; font-weight: 800; }
.code-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; line-height: 1.6; }

.code-warning {
  background: #fff8e5;
  border: 1px solid rgba(245,124,0,0.4);
  border-radius: 8px; padding: 12px 16px; font-size: 13px;
  color: var(--orange-dark); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

.code-input {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: 10px;
  font-size: 22px; text-align: center;
  letter-spacing: 4px; font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--green-dark); text-transform: uppercase;
  margin-bottom: 16px; transition: border-color 0.2s;
}
.code-input:focus { outline: none; border-color: var(--orange); }
.code-input.error { border-color: var(--red); }

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 24px 0;
}
.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: white; font-size: 17px; font-weight: 700; }
.footer-brand i { color: var(--orange); font-size: 22px; }
.footer p { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-badges span { background: rgba(255,255,255,0.07); padding: 4px 12px; border-radius: 20px; font-size: 12px; display: flex; align-items: center; gap: 6px; }

.footer h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
.footer ul li a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px; background: var(--green-dark);
  color: white; flex-shrink: 0; display: flex; flex-direction: column;
}
.sidebar-brand {
  padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 16px; font-weight: 700; color: var(--orange);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.07); color: white;
  border-right: 3px solid var(--orange);
}
.sidebar-nav a i { width: 20px; color: var(--orange); }

.admin-main { flex: 1; background: var(--bg); overflow-y: auto; }
.admin-topbar {
  background: white; padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.admin-topbar h1 { font-size: 20px; font-weight: 700; color: var(--green-dark); }
.admin-topbar .logout { font-size: 13px; color: var(--red); font-weight: 600; }

.admin-content { padding: 32px; }

.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.admin-card {
  background: white; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); display: flex; align-items: center; gap: 16px;
}
.admin-card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.icon-navy  { background: rgba(0,92,42,0.10); color: var(--green-dark); }
.icon-gold  { background: rgba(245,124,0,0.12); color: var(--orange); }
.icon-teal  { background: rgba(0,132,61,0.10); color: var(--green); }
.icon-green { background: rgba(16,185,129,0.10); color: #10b981; }

.admin-card h4 { font-size: 26px; font-weight: 700; color: var(--green-dark); }
.admin-card p { font-size: 12px; color: var(--text-light); margin-top: 2px; }

table { width: 100%; border-collapse: collapse; }
th { background: var(--bg); padding: 12px 16px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); font-weight: 600; }
td { padding: 14px 16px; border-bottom: 1px solid var(--bg2); font-size: 14px; }
tr:hover td { background: var(--bg); }

.btn-sm {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; font-family: 'Inter', sans-serif;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.btn-sm-green { background: #f0fdf4; color: var(--green); }
.btn-sm-red   { background: #fef2f2; color: var(--red); }
.btn-sm-blue  { background: #eefaf1; color: var(--green-dark); }
.btn-sm-gold  { background: rgba(245,124,0,0.12); color: var(--orange-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .auth-card-split { max-width: 560px; grid-template-columns: 1fr; }
  .auth-left { display: none; }
}
@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-card { display: none; }
  .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .trust-container { grid-template-columns: 1fr; gap: 40px; }
  .trust-img-float { width: 50%; bottom: -20px; right: -16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .actions-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--green-dark); padding: 20px; flex-direction: column; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .steps-grid::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .auth-right { padding: 36px 24px; }
}

.empty-state { text-align: center; padding: 48px 24px; color: var(--text-light); }
.empty-state i { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }
