/* ================================================================
   Pro Next Crest Ltd — Master Stylesheet
   Brand: Blue (#1a3a6b) | Gold (#e8a020) | White (#fff)
   ================================================================ */

:root {
  --primary:       #1a3a6b;
  --primary-light: #2555a3;
  --primary-dark:  #0f2444;
  --gold:          #e8a020;
  --gold-light:    #f5c04a;
  --gold-dark:     #c07a10;
  --white:         #ffffff;
  --light:         #f4f7fc;
  --border:        #e2e8f0;
  --text:          #2d3748;
  --muted:         #6c757d;
  --sidebar-w:     260px;
  --success:       #198754;
  --danger:        #dc3545;
  --warning:       #ffc107;
  --info:          #0dcaf0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--primary); }
a { text-decoration: none; transition: all .2s; }

/* ── TOP BAR ────────────────────────────────────────────────── */
.topbar {
  background: var(--primary-dark);
  color: #c9d8f0;
  font-size: .82rem;
  padding: .4rem 0;
}
.topbar a { color: #c9d8f0; }
.topbar a:hover { color: var(--gold-light); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.main-nav {
  background: #fff !important;
  border-bottom: 3px solid var(--gold);
  padding: .75rem 0;
  box-shadow: 0 1px 10px rgba(0,0,0,.06);
}
.brand-logo { display:flex; align-items:center; gap:.65rem; }
.brand-icon {
  width:42px; height:42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  color: var(--gold); font-size:1.2rem;
}
.brand-name { font-weight:800; color:var(--primary); font-size:1.1rem; line-height:1.1; display:block; }
.brand-sub  { font-size:.68rem; color:var(--gold); font-weight:700; letter-spacing:.06em; display:block; }

.nav-link { font-weight:500; color:var(--text) !important; padding:.45rem .9rem !important; border-radius:6px; }
.nav-link:hover { color:var(--primary) !important; background:var(--light); }
.dropdown-menu { border:none; box-shadow:0 8px 32px rgba(0,0,0,.12); border-top:3px solid var(--gold); border-radius:0 0 10px 10px; }
.dropdown-item:hover { background:var(--light); color:var(--primary); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  border: none !important; font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; color: #fff !important; font-weight: 600;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color:#fff !important; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,160,32,.08) 0%, transparent 60%);
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem; font-weight:700; color:#fff; line-height:1.2;
}
.hero-title .accent { color: var(--gold); }
.hero-subtitle { font-size:1.1rem; color:rgba(255,255,255,.82); line-height:1.75; }
.hero-badge {
  display:inline-block;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  color:var(--gold-light); padding:.35rem 1rem; border-radius:50px;
  font-size:.82rem; font-weight:600;
}
.hero-glass {
  background:rgba(255,255,255,.07); backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.15); border-radius:20px; padding:1.75rem;
}

/* ── SECTION ────────────────────────────────────────────────── */
.section-badge {
  display:inline-block;
  background:rgba(26,58,107,.08); color:var(--primary);
  border:1px solid rgba(26,58,107,.15);
  padding:.35rem 1.1rem; border-radius:50px; font-size:.8rem; font-weight:600;
}
.section-title { font-family:'Playfair Display',Georgia,serif; font-size:2.3rem; }
.section-divider { width:56px; height:4px; background:var(--gold); border-radius:2px; margin:1rem auto; }

/* ── SERVICE CARDS ──────────────────────────────────────────── */
.service-card {
  background:#fff; border-radius:18px; padding:1.75rem;
  box-shadow:0 2px 16px rgba(0,0,0,.06); border:2px solid transparent;
  transition:all .3s; height:100%;
}
.service-card:hover { transform:translateY(-6px); border-color:var(--gold); box-shadow:0 12px 40px rgba(26,58,107,.12); }
.service-icon {
  width:64px; height:64px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; font-size:1.7rem; margin-bottom:1rem;
}
.service-icon.blue { background:rgba(26,58,107,.08); color:var(--primary); }
.service-icon.gold { background:rgba(232,160,32,.1); color:var(--gold-dark); }

/* ── STAT CARD ──────────────────────────────────────────────── */
.stat-card {
  background:#fff; border-radius:16px; padding:2rem; text-align:center;
  box-shadow:0 2px 16px rgba(0,0,0,.06); transition:transform .3s;
}
.stat-card:hover { transform:translateY(-4px); }

/* ── PROCESS STEP ───────────────────────────────────────────── */
.step-num {
  width:46px; height:46px; background:var(--gold); color:#fff;
  border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1rem; flex-shrink:0;
}

/* ── TESTIMONIAL ────────────────────────────────────────────── */
.testimonial-card {
  background:#fff; border-radius:16px; padding:1.75rem;
  box-shadow:0 2px 16px rgba(0,0,0,.06);
  border-left:4px solid var(--gold);
}
.star-rating { color:var(--gold); }

/* ── AUTH ───────────────────────────────────────────────────── */
.auth-bg {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding:1rem;
}
.auth-card {
  background:#fff; border-radius:20px; padding:2.25rem;
  width:100%; max-width:420px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.auth-panel {
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.15);
  border-radius:20px; padding:2.25rem;
  max-width:360px; width:100%;
}

/* ── PORTAL LAYOUT ──────────────────────────────────────────── */
.portal-wrapper { display:flex; min-height:100vh; }

/* SIDEBAR */
.sidebar {
  width:var(--sidebar-w); min-height:100vh;
  background:var(--primary-dark);
  position:fixed; left:0; top:0; z-index:1040;
  display:flex; flex-direction:column;
  transition:transform .3s ease;
  overflow-y:auto;
}
.sidebar-brand {
  padding:1.25rem 1rem; border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; gap:.6rem; flex-shrink:0;
}
.sidebar-brand .brand-icon { width:36px; height:36px; font-size:1rem; }
.sidebar-brand .brand-name { font-size:1rem; }
.sidebar-user {
  padding:1rem; border-bottom:1px solid rgba(255,255,255,.08); flex-shrink:0;
}
.s-avatar {
  width:44px; height:44px; border-radius:50%;
  background:var(--primary-light);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:1rem; flex-shrink:0;
}
.s-name { color:#fff; font-weight:600; font-size:.88rem; }
.s-role { color:var(--gold-light); font-size:.72rem; }

.sidebar-nav { padding:.5rem 0; flex:1; }
.nav-sec {
  padding:.4rem 1rem .25rem;
  font-size:.68rem; font-weight:700;
  color:rgba(255,255,255,.35); letter-spacing:.1em; text-transform:uppercase;
}
.s-link {
  display:flex; align-items:center; gap:.7rem;
  padding:.6rem 1rem; color:rgba(255,255,255,.68);
  font-size:.86rem; font-weight:500;
  border-left:3px solid transparent;
  transition:all .18s;
}
.s-link:hover, .s-link.active {
  color:#fff; background:rgba(255,255,255,.08);
  border-left-color:var(--gold);
}
.s-link i { font-size:1rem; width:20px; text-align:center; flex-shrink:0; }
.s-badge { margin-left:auto; background:var(--gold); color:#fff; font-size:.64rem; padding:.15rem .45rem; border-radius:8px; font-weight:700; }

/* MAIN CONTENT */
.main-content { margin-left:var(--sidebar-w); flex:1; display:flex; flex-direction:column; min-width:0; }

/* PORTAL TOP BAR */
.portal-top {
  background:#fff; padding:.75rem 1.5rem;
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; z-index:100;
  box-shadow:0 1px 4px rgba(0,0,0,.05);
}
.portal-body { padding:1.5rem; flex:1; }

/* ── DASHBOARD CARDS ────────────────────────────────────────── */
.dash-card {
  background:#fff; border-radius:14px; padding:1.25rem;
  box-shadow:0 1px 10px rgba(0,0,0,.06); border:1px solid var(--border);
  transition:transform .2s, box-shadow .2s;
}
.dash-card:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,.1); }
.d-icon {
  width:50px; height:50px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; font-size:1.25rem;
}
.d-blue   .d-icon { background:rgba(26,58,107,.1);   color:var(--primary); }
.d-gold   .d-icon { background:rgba(232,160,32,.12);  color:var(--gold-dark); }
.d-green  .d-icon { background:rgba(25,135,84,.1);    color:var(--success); }
.d-red    .d-icon { background:rgba(220,53,69,.1);    color:var(--danger); }
.d-val   { font-size:1.9rem; font-weight:800; color:var(--primary); line-height:1.1; }
.d-label { color:var(--muted); font-size:.8rem; font-weight:500; margin-top:.2rem; }

/* ── DATA TABLE ─────────────────────────────────────────────── */
.data-table { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 1px 10px rgba(0,0,0,.06); border:1px solid var(--border); }
.data-table .table { margin:0; }
.data-table thead th { background:#f8fafc; font-size:.75rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; border-bottom:2px solid var(--border); }
.data-table tbody td { vertical-align:middle; font-size:.87rem; }
.data-table tbody tr:hover { background:#fafbff; }

/* ── FORM CARD ──────────────────────────────────────────────── */
.form-card { background:#fff; border-radius:14px; padding:1.5rem; box-shadow:0 1px 10px rgba(0,0,0,.06); border:1px solid var(--border); }
.form-label { font-weight:600; font-size:.83rem; color:#374151; margin-bottom:.35rem; }
.form-control, .form-select {
  border:1.5px solid var(--border); border-radius:9px; padding:.6rem .9rem; font-size:.9rem;
  transition:border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color:var(--primary-light);
  box-shadow:0 0 0 3px rgba(26,58,107,.09);
  outline:none;
}

/* ── QUICK ACTION ───────────────────────────────────────────── */
.qa-btn {
  background:#fff; border:2px solid var(--border); border-radius:14px;
  padding:1.2rem .75rem; text-align:center; display:block;
  color:var(--text); transition:all .2s;
}
.qa-btn:hover { border-color:var(--gold); transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,.1); color:var(--text); }
.qa-icon { width:52px; height:52px; border-radius:13px; margin:0 auto .65rem; display:flex; align-items:center; justify-content:center; font-size:1.3rem; }

/* ── NOTIFICATION ITEM ──────────────────────────────────────── */
.notif-item { display:flex; gap:.85rem; padding:.7rem 1rem; border-bottom:1px solid #f1f5f9; transition:background .15s; }
.notif-item:hover { background:#f8fafc; }
.notif-item.unread { background:#eff6ff; }
.n-icon { width:34px; height:34px; border-radius:9px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:.85rem; }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge { font-size:.71rem; padding:.32em .6em; border-radius:6px; font-weight:600; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { background:var(--primary-dark); }
.footer-top  { padding:3.5rem 0 2rem; }
.footer-bot  { border-top:1px solid rgba(255,255,255,.08); padding:1.1rem 0; }
.footer-links { list-style:none; padding:0; }
.footer-links li { margin-bottom:.45rem; }
.footer-links a { color:rgba(255,255,255,.55); font-size:.87rem; }
.footer-links a:hover { color:var(--gold-light); }
.footer-contact { list-style:none; padding:0; }
.footer-contact li { color:rgba(255,255,255,.65); font-size:.87rem; margin-bottom:.55rem; display:flex; align-items:flex-start; gap:.5rem; }
.social-btn { width:36px; height:36px; border-radius:8px; background:rgba(255,255,255,.08); display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:.9rem; transition:all .2s; }
.social-btn:hover { background:var(--gold); color:#fff; }
.text-gold { color:var(--gold) !important; }

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert { border-radius:10px; border:none; font-size:.9rem; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:#f1f5f9; }
::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--primary-light); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .main-content { margin-left:0; }
  .hero-title { font-size:2rem; }
  .portal-body { padding:1rem; }
}
@media (max-width: 575.98px) {
  .hero-title { font-size:1.7rem; }
  .auth-card { padding:1.5rem; }
  .section-title { font-size:1.8rem; }
}
.overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.5); z-index:1039;
}
.overlay.show { display:block; }
