/* ============================================================
   KOTA System – Global Stylesheet
   Colors: Red #C41E1E | Green #1A6B28 | White #FFFFFF
   ============================================================ */

:root {
  --red:        #C41E1E;
  --red-dark:   #9B1515;
  --red-light:  #F7E8E8;
  --green:      #1A6B28;
  --green-dark: #104A1B;
  --green-light:#E8F3EA;
  --black:      #111111;
  --white:      #FFFFFF;
  --gray-50:    #FAFAF8;
  --gray-100:   #F5F5F3;
  --gray-200:   #E8E8E4;
  --gray-300:   #D0D0CA;
  --gray-400:   #9E9E98;
  --gray-600:   #5A5A55;
  --gray-700:   #3D3D38;
  --sidebar-w:  260px;
  --nav-h:      72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--black); background: var(--gray-100); line-height: 1.7; }
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; line-height: 1.25; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ─── NAVBAR ──────────────────────────────────────────────── */
.main-nav {
  position: sticky; top: 0; z-index: 999;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 3px solid var(--red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.nav-brand-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--green-dark); }
.nav-brand-text span { font-size: 11px; color: var(--gray-400); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray-700); padding-bottom: 2px; border-bottom: 2px solid transparent; transition: all .2s; }
.nav-links a:hover { color: var(--green); border-bottom-color: var(--green); text-decoration: none; }
.nav-ctas { display: flex; align-items: center; gap: 10px; }
.nav-user-menu { position: relative; }
.nav-user-btn { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1.5px solid var(--gray-200); border-radius: 100px; cursor: pointer; font-size: 14px; text-decoration: none; color: var(--black); transition: border-color .2s; }
.nav-user-btn:hover { border-color: var(--green); text-decoration: none; }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.notif-badge { background: var(--red); color: var(--white); border-radius: 100px; font-size: 10px; font-weight: 700; padding: 1px 6px; min-width: 18px; text-align: center; }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); min-width: 180px; overflow: hidden; }
.nav-user-menu:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 10px 18px; font-size: 14px; color: var(--gray-700); transition: background .15s; text-decoration: none; }
.nav-dropdown a:hover { background: var(--gray-100); }
.nav-dropdown .logout-link { border-top: 1px solid var(--gray-200); color: var(--red); }
.nav-hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-solid, .btn-outline, .btn-red, .btn-gray, .btn-green {
  display: inline-block; padding: 10px 22px; border-radius: 5px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s; text-decoration: none; border: none; text-align: center;
}
.btn-solid, .btn-green { background: var(--green); color: var(--white); }
.btn-solid:hover, .btn-green:hover { background: var(--green-dark); text-decoration: none; color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); text-decoration: none; }
.btn-gray { background: var(--gray-200); color: var(--gray-700); }
.btn-gray:hover { background: var(--gray-300); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ─── ALERTS ──────────────────────────────────────────────── */
.alert { padding: 12px 18px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; font-weight: 500; border-left: 4px solid; }
.alert-success { background: var(--green-light); color: var(--green-dark); border-color: var(--green); }
.alert-danger  { background: var(--red-light);   color: var(--red-dark);   border-color: var(--red);   }
.alert-warning { background: #FFF8E1;             color: #7B5800;           border-color: #F5A623;      }
.alert-info    { background: #E8F4FD;             color: #1A5276;           border-color: #3498DB;      }

/* ─── BADGES ──────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-success   { background: var(--green-light); color: var(--green-dark); }
.badge-danger    { background: var(--red-light);   color: var(--red-dark);   }
.badge-warning   { background: #FFF8E1;            color: #7B5800;           }
.badge-info      { background: #E8F4FD;            color: #1A5276;           }
.badge-secondary { background: var(--gray-200);    color: var(--gray-600);   }

/* ─── DASHBOARD LAYOUT ────────────────────────────────────── */
.dash-wrap { display: flex; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--green-dark); color: var(--white);
  display: flex; flex-direction: column;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-user { padding: 24px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.sidebar-name { font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.3; }
.sidebar-role { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: capitalize; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: all .15s; border-left: 3px solid transparent;
}
.sidebar-link:hover { color: var(--white); background: rgba(255,255,255,0.07); text-decoration: none; }
.sidebar-link.active { color: var(--white); background: rgba(255,255,255,0.12); border-left-color: var(--red); font-weight: 600; }
.sidebar-icon { font-size: 16px; width: 22px; text-align: center; }
.sidebar-badge { margin-left: auto; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; border-radius: 100px; padding: 1px 7px; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-logout { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; }
.sidebar-logout:hover { color: var(--white); }
.dash-main { flex: 1; min-width: 0; padding: 32px; }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: 1.8rem; color: var(--green-dark); margin-bottom: 4px; }
.dash-header p { color: var(--gray-400); font-size: 14px; }
.dash-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ─── STAT CARDS ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: 10px; padding: 22px 24px; border-left: 4px solid var(--green); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.stat-card.red { border-left-color: var(--red); }
.stat-card.orange { border-left-color: #F5A623; }
.stat-card.blue { border-left-color: #3498DB; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 8px; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--green-dark); line-height: 1; margin-bottom: 4px; }
.stat-card.red .stat-value { color: var(--red-dark); }
.stat-sub { font-size: 12px; color: var(--gray-400); }

/* ─── CARDS ───────────────────────────────────────────────── */
.card { background: var(--white); border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); overflow: hidden; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16px; font-weight: 600; color: var(--green-dark); }
.card-body { padding: 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--gray-200); background: var(--gray-50); }

/* ─── TABLES ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.kota-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kota-table thead th { background: var(--gray-100); color: var(--gray-600); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 11px 16px; text-align: left; white-space: nowrap; border-bottom: 2px solid var(--gray-200); }
.kota-table tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .15s; }
.kota-table tbody tr:hover { background: var(--gray-50); }
.kota-table tbody td { padding: 12px 16px; color: var(--gray-700); vertical-align: middle; }
.kota-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── FORMS ───────────────────────────────────────────────── */
.form-section { margin-bottom: 32px; }
.form-section-title { font-size: 15px; font-weight: 600; color: var(--green-dark); padding-bottom: 10px; border-bottom: 2px solid var(--green-light); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--gray-700); }
.form-group .required { color: var(--red); }
.form-control {
  padding: 10px 14px; border: 1.5px solid var(--gray-300); border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--black);
  background: var(--white); outline: none; transition: border-color .2s; width: 100%;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,107,40,0.08); }
.form-control.error { border-color: var(--red); }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 110px; }
.upload-box {
  border: 2px dashed var(--gray-300); border-radius: 8px; padding: 24px; text-align: center;
  cursor: pointer; transition: all .2s; background: var(--gray-50);
}
.upload-box:hover { border-color: var(--green); background: var(--green-light); }
.upload-box input[type=file] { display: none; }
.upload-box p { font-size: 13px; color: var(--gray-400); margin-top: 8px; }
.upload-box .upload-icon { font-size: 32px; }

/* ─── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; margin-top: 20px; justify-content: center; }
.page-btn { padding: 8px 14px; border: 1.5px solid var(--gray-300); border-radius: 5px; font-size: 14px; color: var(--gray-700); text-decoration: none; transition: all .2s; }
.page-btn:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.page-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ─── SEARCH / FILTER BAR ─────────────────────────────────── */
.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar .form-control { max-width: 220px; }
.search-box { display: flex; align-items: center; border: 1.5px solid var(--gray-300); border-radius: 6px; overflow: hidden; }
.search-box input { border: none; padding: 9px 14px; font-size: 14px; font-family: 'DM Sans'; outline: none; min-width: 220px; }
.search-box button { background: var(--green); border: none; padding: 9px 16px; cursor: pointer; color: var(--white); font-size: 16px; }

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 12px; width: 90%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 18px; color: var(--green-dark); }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray-400); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── LANDING PAGE – HERO ─────────────────────────────────── */
.hero-section {
  min-height: calc(100vh - var(--nav-h));
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.hero-left { padding: 80px 6% 80px 8%; display: flex; flex-direction: column; justify-content: center; }
.hero-tag { display: inline-block; background: var(--red-light); color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 6px 16px; border-radius: 2px; margin-bottom: 22px; }
.hero-left h1 { font-size: clamp(2.2rem, 3.5vw, 3.4rem); font-weight: 900; margin-bottom: 20px; line-height: 1.1; }
.hero-left h1 span { color: var(--green); }
.hero-left p { font-size: 17px; color: var(--gray-700); max-width: 480px; margin-bottom: 32px; font-weight: 300; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.hero-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--green-dark); }
.hero-stat span { font-size: 12px; color: var(--gray-400); }
.hero-right {
  background: var(--green); position: relative; overflow: hidden;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0% 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-right::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px); }
.hero-cards { display: flex; flex-direction: column; gap: 16px; padding: 60px 50px 60px 80px; position: relative; z-index: 2; }
.hero-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.hero-card-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hero-card h4 { font-family: 'DM Sans'; font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.hero-card p { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 300; }
.ticker-bar { background: var(--green-dark); padding: 10px 0; overflow: hidden; display: flex; align-items: center; }
.ticker-label { background: var(--red); padding: 0 20px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); white-space: nowrap; height: 36px; display: flex; align-items: center; margin-right: 20px; flex-shrink: 0; }
.ticker-track { display: flex; gap: 60px; animation: ticker 35s linear infinite; white-space: nowrap; }
.ticker-track span { font-size: 13px; color: rgba(255,255,255,0.8); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── LANDING SECTIONS ────────────────────────────────────── */
.section { padding: 90px 8%; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--green-dark); }
.section-red { background: var(--red); }
.section-tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section-dark .section-tag { color: #7DD996; }
.section-red .section-tag { color: rgba(255,255,255,0.7); }
.section-title { font-size: clamp(1.7rem,3vw,2.5rem); font-weight: 700; margin-bottom: 14px; }
.section-dark .section-title, .section-red .section-title { color: var(--white); }
.section-sub { font-size: 16px; color: var(--gray-400); max-width: 560px; font-weight: 300; }
.section-dark .section-sub { color: rgba(255,255,255,0.6); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Benefit cards */
.benefit-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 28px; transition: all .25s; position: relative; overflow: hidden; }
.benefit-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--green); }
.benefit-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,107,40,0.1); }
.benefit-icon { width: 50px; height: 50px; border-radius: 8px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.benefit-card h3 { font-family: 'DM Sans'; font-size: 16px; font-weight: 600; color: var(--green-dark); margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--gray-400); line-height: 1.7; }

/* Event cards */
.event-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; overflow: hidden; transition: background .2s; }
.event-card:hover { background: rgba(255,255,255,0.12); }
.event-date { background: var(--red); padding: 10px 18px; display: flex; align-items: center; gap: 10px; }
.event-date strong { font-size: 22px; font-family: 'Playfair Display'; color: var(--white); }
.event-date-info div:first-child { font-size: 13px; color: var(--white); font-weight: 600; }
.event-date-info div:last-child { font-size: 11px; color: rgba(255,255,255,0.7); }
.event-body { padding: 18px 20px; }
.event-body h3 { font-family: 'DM Sans'; font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.event-body p { font-size: 13px; color: rgba(255,255,255,0.6); }
.event-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.15); }
.members-lock { font-size: 12px; color: #7DD996; margin-top: 8px; }

/* License preview */
.license-preview { background: var(--white); border: 2px solid var(--gray-200); border-radius: 12px; padding: 28px; box-shadow: 0 16px 60px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.license-preview::before { content: 'SAMPLE'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-30deg); font-size: 48px; font-weight: 900; color: rgba(196,30,30,0.06); letter-spacing: 6px; pointer-events: none; }
.lic-header { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--red); padding-bottom: 14px; margin-bottom: 18px; }
.lic-logo-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.lic-header-text strong { display: block; font-size: 13px; color: var(--green-dark); font-weight: 700; }
.lic-header-text span { font-size: 11px; color: var(--gray-400); }
.lic-cert-title { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.lic-name { text-align: center; font-family: 'Playfair Display'; font-size: 1.5rem; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.lic-sub { text-align: center; font-size: 12px; color: var(--gray-400); margin-bottom: 18px; }
.lic-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lic-field { background: var(--gray-100); border-radius: 5px; padding: 10px 12px; }
.lic-field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 3px; }
.lic-field span { font-size: 13px; font-weight: 600; color: var(--green-dark); }
.lic-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gray-200); }
.sig-name { font-family: 'Playfair Display'; font-size: 18px; font-style: italic; color: var(--green-dark); border-bottom: 1.5px solid var(--black); padding-bottom: 4px; }
.sig-label { font-size: 10px; color: var(--gray-400); margin-top: 4px; }

/* License steps */
.lic-steps { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.lic-step { display: flex; gap: 14px; align-items: flex-start; }
.lic-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.lic-step h4 { font-family: 'DM Sans'; font-size: 14px; font-weight: 600; color: var(--green-dark); margin-bottom: 2px; }
.lic-step p { font-size: 13px; color: var(--gray-400); }

/* CTA Section */
.cta-section { text-align: center; padding: 80px 8%; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 30px); }
.cta-section h2 { font-size: clamp(1.8rem,3vw,2.7rem); color: var(--white); margin-bottom: 12px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 520px; margin: 0 auto 32px; font-weight: 300; position: relative; }
.btn-white { background: var(--white); color: var(--red); padding: 14px 36px; border-radius: 5px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; transition: all .2s; position: relative; }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); text-decoration: none; }

/* Contact */
.contact-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--white); flex-shrink: 0; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item h4 { font-family: 'DM Sans'; font-size: 14px; font-weight: 600; color: var(--green-dark); margin-bottom: 2px; }
.contact-item p { font-size: 13px; color: var(--gray-400); }

/* Footer */
footer { background: var(--black); color: rgba(255,255,255,0.7); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 52px 8% 32px; }
.footer-logo-img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand-name strong { display: block; font-size: 13px; color: var(--white); }
.footer-brand-name span { font-size: 11px; color: rgba(255,255,255,0.35); }
.footer-brand > p { font-size: 13px; color: rgba(255,255,255,0.45); max-width: 240px; line-height: 1.7; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 8%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-links-row { display: flex; gap: 18px; }
.footer-links-row a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-links-row a:hover { color: rgba(255,255,255,0.7); }

/* ─── AUTH PAGES ──────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; background: var(--gray-100); }
.auth-left { flex: 1; background: var(--green-dark); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.auth-left::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 36px); }
.auth-left img { height: 100px; width: 100px; border-radius: 50%; object-fit: cover; border: 4px solid var(--red); margin-bottom: 20px; position: relative; }
.auth-left h2 { color: var(--white); font-size: 1.8rem; position: relative; margin-bottom: 10px; }
.auth-left p { color: rgba(255,255,255,0.65); font-size: 14px; position: relative; max-width: 280px; }
.auth-right { width: 460px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-box { background: var(--white); border-radius: 14px; padding: 40px; width: 100%; box-shadow: 0 12px 48px rgba(0,0,0,0.1); }
.auth-box h2 { font-size: 1.6rem; color: var(--green-dark); margin-bottom: 6px; }
.auth-box .auth-sub { font-size: 14px; color: var(--gray-400); margin-bottom: 28px; font-weight: 300; }
.auth-red-bar { height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 28px; }
.auth-links { font-size: 13px; margin-top: 16px; color: var(--gray-600); text-align: center; }
.auth-links a { color: var(--green); font-weight: 500; }

/* ─── STEP INDICATOR ──────────────────────────────────────── */
.steps-bar { display: flex; align-items: center; margin-bottom: 36px; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-item:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: 50%; width: 100%; height: 2px; background: var(--gray-200); z-index: 0; }
.step-item.done::after, .step-item.active::after { background: var(--green); }
.step-num { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gray-300); background: var(--white); color: var(--gray-400); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; z-index: 1; }
.step-item.done .step-num { background: var(--green); border-color: var(--green); color: var(--white); }
.step-item.active .step-num { background: var(--red); border-color: var(--red); color: var(--white); }
.step-label { font-size: 12px; margin-top: 6px; color: var(--gray-400); font-weight: 500; }
.step-item.active .step-label { color: var(--red); font-weight: 600; }
.step-item.done .step-label { color: var(--green); }

/* ─── PAYMENT ─────────────────────────────────────────────── */
.payment-box { background: var(--white); border-radius: 12px; padding: 32px; max-width: 520px; margin: 0 auto; box-shadow: 0 8px 40px rgba(0,0,0,0.1); }
.mpesa-logo { background: #00BF63; border-radius: 8px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.mpesa-logo span { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: -0.5px; }
.invoice-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.invoice-total { display: flex; justify-content: space-between; padding: 14px 0; font-size: 16px; font-weight: 700; color: var(--green-dark); }
.spinner { width: 40px; height: 40px; border: 4px solid var(--gray-200); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

/* ─── DOCUMENT VIEWER ─────────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1.5px solid var(--gray-200); border-radius: 8px; background: var(--gray-50); }
.doc-item-left { display: flex; align-items: center; gap: 10px; }
.doc-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.doc-name { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.doc-type { font-size: 12px; color: var(--gray-400); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .four-col { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); padding: 16px 5%; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 998; }
  .auth-left { display: none; }
  .auth-right { width: 100%; }
}
@media (max-width: 680px) {
  .section { padding: 60px 5%; }
  .three-col { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dash-main { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ─── UTILITY ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-green  { color: var(--green) !important; }
.text-red    { color: var(--red) !important; }
.text-gray   { color: var(--gray-400) !important; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.p-0 { padding: 0; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none; }
