/* ================================================================
   AfghanJobs Hub — Production Stylesheet v2.0
   Design System: Modern, Professional, International Standard
   Superior to: jobs.af, acbar.org, unjobs.org, wazifaha.org
   ================================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --blue:      #0052CC;
  --blue-dk:   #003D99;
  --blue-md:   #0065FF;
  --blue-lt:   #E6F0FF;
  --blue-pale: #F0F7FF;
  --green:     #006644;
  --green-lt:  #E3FCEF;
  --red:       #CF2A2A;
  --red-lt:    #FFEEF0;
  --orange:    #CC3700;
  --orange-lt: #FFF3E0;
  --yellow:    #FF991F;
  --teal:      #00897B;
  --teal-lt:   #E0F5F2;
  --purple:    #5243AA;
  --gray-50:   #F7F8FC;
  --gray-100:  #EBECF0;
  --gray-200:  #DFE1E6;
  --gray-300:  #C1C7D0;
  --gray-500:  #7A869A;
  --gray-700:  #42526E;
  --gray-900:  #172B4D;
  --dark:      #0A1628;
  --body-bg:   #F4F5F7;
  --white:     #FFFFFF;
  --card-bg:   #FFFFFF;
  --border:    #DFE1E6;
  --shadow-xs: 0 1px 2px rgba(9,30,66,.08);
  --shadow-sm: 0 2px 8px rgba(9,30,66,.10);
  --shadow-md: 0 4px 20px rgba(9,30,66,.13);
  --shadow-lg: 0 8px 40px rgba(9,30,66,.18);
  --shadow-xl: 0 20px 60px rgba(9,30,66,.22);
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl:20px;
  --trans:     all .18s ease;
  --trans-med: all .28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', sans-serif;
  font-size: 15px; line-height: 1.65; color: var(--gray-900);
  background: var(--body-bg); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block }
a  { color: var(--blue); text-decoration: none; transition: var(--trans) }
a:hover { color: var(--blue-dk) }
p  { margin-bottom: .75rem }
p:last-child { margin-bottom: 0 }
ul, ol { padding-left: 1.4rem }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--dark) }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-xs);
}
.navbar .container { display:flex; align-items:center; min-height:64px; gap:8px }
.brand {
  font-size: 1.4rem; font-weight: 800; color: var(--blue)!important;
  display: flex; align-items:center; gap:8px; text-decoration:none; white-space:nowrap;
  letter-spacing: -.5px;
}
.brand .flag { font-size: 1.5rem }
.brand .accent { color: var(--orange) }

.nav-links { display:flex; align-items:center; list-style:none; margin:0; padding:0; gap:2px }
.nav-links a {
  font-size: .875rem; font-weight: 600; color: var(--gray-700);
  padding: 1.2rem 1rem; display:block;
  border-bottom: 3px solid transparent;
  white-space: nowrap; transition: var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-bottom-color: var(--blue) }
.nav-right { display:flex; align-items:center; gap:10px; margin-left:auto }
.btn-nav {
  background: var(--blue); color: var(--white)!important;
  border-radius: var(--radius); padding: .45rem 1.2rem!important;
  font-weight: 700; font-size: .85rem; border-bottom: 3px solid transparent!important;
  white-space: nowrap; transition: var(--trans);
}
.btn-nav:hover { background: var(--blue-dk); transform: translateY(-1px) }
.btn-nav-outline {
  color: var(--blue)!important; border: 2px solid var(--blue)!important;
  border-radius: var(--radius); padding: .42rem 1.1rem!important;
  font-weight: 700; font-size: .85rem; border-bottom: none!important;
}
.btn-nav-outline:hover { background: var(--blue); color: var(--white)!important }

.notif-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff; font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
  border: 2px solid #fff;
}
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue-lt);
  display:flex; align-items:center; justify-content:center;
  font-weight: 800; color: var(--blue); font-size: .9rem;
  border: 2px solid var(--blue); flex-shrink: 0; cursor: pointer;
  transition: var(--trans);
}
.nav-avatar:hover { border-color: var(--blue-dk); background: var(--blue); color: #fff }
.dropdown-menu { border:none; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); min-width:220px; animation: dropIn .15s ease }
.dropdown-item { font-size: .88rem; padding: .6rem 1rem; display:flex; align-items:center; gap:8px }
.dropdown-item:hover { background: var(--blue-lt); color: var(--blue) }
.dropdown-item i { width: 16px; text-align:center }
@keyframes dropIn { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:translateY(0) } }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0A2463 0%, #0052CC 50%, #1E88E5 100%);
  padding: 72px 0 86px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -120px;
  width: 500px; height: 500px; background: rgba(255,255,255,.05);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px; background: rgba(255,255,255,.03);
  border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1 }
.hero-label {
  display: inline-flex; align-items:center; gap:6px;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.2); border-radius: 20px;
  padding: 5px 14px; font-size: .82rem; font-weight: 600; margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  color: var(--white); font-size: 2.8rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 1rem; letter-spacing: -.5px;
}
.hero h1 .highlight { color: #FFD700 }
.hero p {
  color: rgba(255,255,255,.85); font-size: 1.08rem; margin-bottom: 2rem;
  max-width: 580px; line-height: 1.7;
}
.search-box {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 8px; box-shadow: var(--shadow-xl);
  display: flex; flex-wrap: wrap; gap: 4px; align-items:center;
}
.search-box input, .search-box select {
  border: none; outline: none; padding: 12px 16px; font-size: .92rem;
  background: transparent; flex: 1; min-width: 130px; color: var(--dark);
  font-family: inherit;
}
.search-box input::placeholder { color: var(--gray-300) }
.search-sep { width: 1px; height: 32px; background: var(--border); flex-shrink:0 }
.btn-search {
  background: var(--blue); color: var(--white); border: none;
  border-radius: var(--radius-lg); padding: 12px 28px; font-weight: 700;
  font-size: .95rem; cursor: pointer; white-space: nowrap; transition: var(--trans);
  display: flex; align-items:center; gap:8px;
}
.btn-search:hover { background: var(--blue-dk); transform: scale(1.02) }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 2.2rem;
}
.hstat { color: rgba(255,255,255,.9) }
.hstat-num { font-size: 1.75rem; font-weight: 800; color: var(--white); display:block; line-height:1 }
.hstat-lbl { font-size: .8rem; opacity: .8; margin-top:2px }

/* ══════════════════════════════════════════════════════════════
   SECTION
══════════════════════════════════════════════════════════════ */
.section { padding: 60px 0 }
.section-alt { background: var(--white) }
.section-dark { background: var(--dark); color: var(--white) }
.sec-head { margin-bottom: 2.5rem }
.sec-eyebrow {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--blue); margin-bottom: 8px;
  display: flex; align-items:center; gap:6px;
}
.sec-eyebrow::before { content:''; width:24px; height:2px; background: var(--blue); display:inline-block }
.sec-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); letter-spacing:-.3px }
.sec-sub { color: var(--gray-500); margin-top: .4rem; font-size: .95rem }

/* ══════════════════════════════════════════════════════════════
   CATEGORY CARDS
══════════════════════════════════════════════════════════════ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px }
.cat-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 16px; text-align: center;
  transition: var(--trans-med); cursor: pointer; display:block; text-decoration:none!important;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, var(--blue), var(--blue-md));
  opacity:0; transition: opacity .2s ease;
}
.cat-card:hover::before { opacity: 1 }
.cat-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--white) }
.cat-card:hover .cat-icon, .cat-card:hover .cat-name, .cat-card:hover .cat-count { position:relative; color: var(--white) }
.cat-card:hover .cat-count { background: rgba(255,255,255,.2); color: var(--white) }
.cat-icon { font-size: 2.1rem; display:block; margin-bottom:10px; position:relative; transition: var(--trans) }
.cat-name { font-weight: 700; font-size: .9rem; position:relative; color: var(--dark); transition: var(--trans) }
.cat-count {
  display: inline-block; margin-top:8px; background: var(--blue-lt);
  color: var(--blue); border-radius: 20px; padding: 3px 12px;
  font-size: .75rem; font-weight: 700; position:relative; transition: var(--trans);
}

/* ══════════════════════════════════════════════════════════════
   JOB CARDS
══════════════════════════════════════════════════════════════ */
.job-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; transition: var(--trans-med);
  height: 100%; position: relative; overflow: hidden;
}
.job-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px) }
.featured-ribbon {
  position: absolute; top: 0; right: 0; background: var(--yellow);
  color: #000; font-size: .68rem; font-weight: 800;
  padding: 4px 14px; border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
  letter-spacing: .5px; text-transform: uppercase;
}
.org-logo {
  width: 50px; height: 50px; border-radius: var(--radius-lg);
  background: var(--blue-lt); display:flex; align-items:center; justify-content:center;
  font-size: 1.35rem; font-weight: 800; color: var(--blue); flex-shrink: 0;
  border: 1px solid rgba(0,82,204,.1);
}
.job-title { font-size: .97rem; font-weight: 700; color: var(--dark); margin:0; line-height:1.3 }
.job-title a { color: inherit }
.job-title a:hover { color: var(--blue) }
.job-org { color: var(--gray-500); font-size: .84rem; margin:3px 0 0 }
.tag-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px }
.tag {
  display: inline-flex; align-items:center; gap:4px;
  padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600;
  white-space: nowrap;
}
.tag-blue   { background: var(--blue-lt);   color: var(--blue)   }
.tag-gray   { background: var(--gray-100);  color: var(--gray-700) }
.tag-green  { background: var(--green-lt);  color: var(--green)  }
.tag-orange { background: var(--orange-lt); color: var(--orange) }
.tag-red    { background: var(--red-lt);    color: var(--red)    }
.tag-teal   { background: var(--teal-lt);   color: var(--teal)   }
.tag-yellow { background: #FFF8E1; color: #E65100 }
.tag-source { background: #EDE7F6; color: var(--purple) }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn { border-radius: var(--radius); font-weight: 700; transition: var(--trans); font-size: .875rem; display:inline-flex; align-items:center; gap:6px }
.btn:active { transform: scale(.98) }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff }
.btn-primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); color: #fff; transform: translateY(-1px) }
.btn-success { background: var(--green); border-color: var(--green); color: #fff }
.btn-danger  { background: var(--red);   border-color: var(--red) }
.btn-outline-primary { color: var(--blue); border: 2px solid var(--blue) }
.btn-outline-primary:hover { background: var(--blue); color: #fff; transform: translateY(-1px) }
.btn-lg { padding: .75rem 1.8rem; font-size: 1rem; border-radius: var(--radius-lg) }
.btn-icon { width: 36px; height: 36px; padding:0; border-radius: var(--radius); display:inline-flex; align-items:center; justify-content:center }

/* ══════════════════════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════════════════════ */
.stat-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 24px; border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-xs); transition: var(--trans-med); text-align:center;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px) }
.stat-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -.5px; line-height:1 }
.stat-lbl { color: var(--gray-500); font-size: .82rem; margin-top: 6px; font-weight: 600 }
.sc-blue   { border-color: var(--blue);   .stat-num { color: var(--blue) } }
.sc-green  { border-color: var(--green);  .stat-num { color: var(--green) } }
.sc-orange { border-color: var(--orange); .stat-num { color: var(--orange) } }
.sc-yellow { border-color: var(--yellow); .stat-num { color: #E65100 } }
.sc-teal   { border-color: var(--teal);   .stat-num { color: var(--teal) } }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */
.sidebar-box {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px;
}
.sidebar-box h6 {
  font-weight: 800; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-lt); color: var(--dark); font-size: .9rem;
  display: flex; align-items:center; gap:8px;
}

/* ══════════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════════ */
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .55rem .9rem; font-size: .9rem; transition: var(--trans);
  background: var(--white); color: var(--dark); font-family: inherit;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,82,204,.15);
  outline: none;
}
.form-label { font-weight: 700; font-size: .83rem; color: var(--gray-700); margin-bottom: 5px; display:block }
.form-text  { font-size: .78rem; color: var(--gray-500); margin-top: 4px }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue) }
.input-icon-wrap { position: relative }
.input-icon-wrap .form-control { padding-left: 2.8rem }
.input-icon { position:absolute; left:.9rem; top:50%; transform:translateY(-50%); color: var(--gray-300); font-size: 1rem }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════════════════════ */
.auth-bg {
  min-height: calc(100vh - 130px); display:flex; align-items:center;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--white) 60%);
  padding: 40px 0;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl); padding: 44px; max-width: 490px; width: 100%; margin: 0 auto;
  border: 1px solid var(--border);
}
.auth-logo { text-align:center; margin-bottom:28px }
.auth-logo .logo-flag { font-size: 2.5rem; display:block; margin-bottom:6px }
.auth-card h2 { font-size: 1.65rem; font-weight: 800; margin-bottom:4px }
.auth-card p.sub { color: var(--gray-500); font-size: .9rem; margin-bottom: 24px }

/* ══════════════════════════════════════════════════════════════
   PROFILE
══════════════════════════════════════════════════════════════ */
.profile-hero {
  background: linear-gradient(135deg, #0A2463 0%, #0052CC 100%);
  padding: 36px 0; color: #fff;
}
.p-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4); overflow: hidden;
  background: var(--blue-lt); display:flex; align-items:center; justify-content:center;
  font-size: 2rem; font-weight: 800; color: var(--blue); flex-shrink: 0;
}
.p-avatar img { width: 100%; height: 100%; object-fit: cover }
.p-badge { display:inline-flex; align-items:center; gap:4px; padding: 3px 10px; border-radius:20px; font-size:.75rem; font-weight:700 }
.p-badge-verified { background:rgba(0,102,68,.25); color:#6EE7B7 }
.p-badge-pending  { background:rgba(255,153,31,.2); color:#FCD34D }
.progress-rail { height:8px; background:rgba(255,255,255,.15); border-radius:8px; overflow:hidden }
.progress-fill { height:100%; background:linear-gradient(90deg,#34D399,#06B6D4); border-radius:8px; transition:width .6s ease }

.profile-nav { background: var(--white); border-bottom: 1px solid var(--border) }
.profile-nav a {
  color: var(--gray-700); font-weight: 600; padding: 14px 20px;
  display: inline-block; border-bottom: 3px solid transparent; font-size: .88rem; transition: var(--trans);
}
.profile-nav a.active, .profile-nav a:hover { color: var(--blue); border-bottom-color: var(--blue) }

.timeline { position:relative; padding-left:32px }
.timeline::before { content:''; position:absolute; left:10px; top:6px; bottom:6px; width:2px; background:var(--border) }
.tl-item { position:relative; margin-bottom:24px }
.tl-dot { position:absolute; left:-26px; top:5px; width:16px; height:16px; border-radius:50%; background:var(--blue); border:3px solid #fff; box-shadow:0 0 0 2px var(--blue) }
.tl-card { background:var(--white); border:1.5px solid var(--border); border-radius:var(--radius-lg); padding:16px }

/* ══════════════════════════════════════════════════════════════
   ADMIN LAYOUT
══════════════════════════════════════════════════════════════ */
.admin-wrap { display:flex; min-height:100vh }
.admin-sidebar {
  width: 248px; background: #0F0E2A; flex-shrink:0;
  position: fixed; top:0; left:0; height:100vh; overflow-y:auto; z-index:200;
}
.sb-brand {
  padding: 20px; background: var(--blue); display:flex; align-items:center; gap:10px;
  font-size: 1.1rem; font-weight: 800; color: #fff;
}
.sb-brand .flag { font-size: 1.4rem }
.admin-sidebar nav { padding: 12px 0 }
.sb-section { padding: 12px 16px 4px; font-size: .68rem; text-transform:uppercase; letter-spacing:1.5px; color: rgba(255,255,255,.3); font-weight:700 }
.admin-sidebar nav a {
  display:flex; align-items:center; gap:10px; color: rgba(255,255,255,.62);
  padding: 11px 20px; font-size: .875rem; font-weight:600;
  border-left: 3px solid transparent; transition: var(--trans);
}
.admin-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.07); border-left-color: var(--blue-md) }
.admin-sidebar nav a.active { color: #fff; background: rgba(0,82,204,.25); border-left-color: var(--blue-md) }
.admin-sidebar nav a i { width: 18px; text-align:center; font-size: 1rem }
.admin-main { margin-left:248px; flex:1; min-width:0 }
.admin-topbar {
  background: var(--white); padding: 14px 28px; border-bottom: 1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  position: sticky; top:0; z-index:100; box-shadow: var(--shadow-xs);
}
.admin-content { padding: 28px }
.admin-page-title { font-size:1.4rem; font-weight:800; color:var(--dark) }
.admin-stat-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 22px; box-shadow: var(--shadow-xs); display:flex; align-items:center; gap:16px;
  border: 1px solid var(--border); transition: var(--trans-med);
}
.admin-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px) }
.admin-stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0;
}
.asi-blue   { background: var(--blue-lt);   color: var(--blue) }
.asi-green  { background: var(--green-lt);  color: var(--green) }
.asi-orange { background: var(--orange-lt); color: var(--orange) }
.asi-yellow { background: #FFF8E1; color: #E65100 }
.asi-teal   { background: var(--teal-lt);   color: var(--teal) }
.asi-red    { background: var(--red-lt);    color: var(--red) }
.admin-stat-num { font-size:1.8rem; font-weight:800; color:var(--dark); line-height:1 }
.admin-stat-lbl { color:var(--gray-500); font-size:.8rem; font-weight:600; margin-top:3px }

/* ══════════════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════════════ */
.table { font-size: .85rem }
.table thead th {
  background: var(--gray-50); font-weight: 700; color: var(--gray-700);
  border-bottom: 2px solid var(--border); white-space:nowrap; padding:.9rem 1rem;
}
.table-hover tbody tr:hover { background: var(--blue-pale) }
.table td { padding: .8rem 1rem; vertical-align: middle }

/* ══════════════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════════════ */
.badge-status { display:inline-flex; align-items:center; gap:5px; padding:4px 12px; border-radius:20px; font-size:.75rem; font-weight:700 }
.bs-approved,.bs-open    { background:var(--green-lt);  color:var(--green)  }
.bs-pending              { background:var(--orange-lt); color:var(--orange) }
.bs-rejected,.bs-closed  { background:var(--red-lt);    color:var(--red)    }
.bs-expired              { background:var(--gray-100);  color:var(--gray-500) }
.bs-shortlisted          { background:var(--blue-lt);   color:var(--blue)   }
.bs-interview            { background:var(--teal-lt);   color:var(--teal)   }
.bs-accepted             { background:var(--green-lt);  color:var(--green)  }
.bs-dot { width:7px; height:7px; border-radius:50%; display:inline-block }
.bd-green  { background: var(--green) }
.bd-orange { background: var(--orange) }
.bd-red    { background: var(--red) }
.bd-gray   { background: var(--gray-300) }

/* ══════════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════════ */
.alert { border:none; border-radius:var(--radius-lg); font-size:.9rem; display:flex; align-items:flex-start; gap:10px }
.alert i { flex-shrink:0; margin-top:1px }
.alert-success { background:#E3FCEF; color:#006644; border-left:4px solid var(--green) }
.alert-danger  { background:var(--red-lt);    color:#8B1A1A; border-left:4px solid var(--red)   }
.alert-info    { background:var(--blue-lt);   color:var(--blue-dk); border-left:4px solid var(--blue) }
.alert-warning { background:var(--orange-lt); color:#7C2D12; border-left:4px solid var(--orange) }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════ */
.page-link { color:var(--blue); border-color:var(--border); border-radius:var(--radius)!important; margin:0 2px; font-weight:600 }
.page-item.active .page-link { background:var(--blue); border-color:var(--blue) }
.page-link:hover { background:var(--blue-lt); color:var(--blue); border-color:var(--blue) }

/* ══════════════════════════════════════════════════════════════
   CURRENCY
══════════════════════════════════════════════════════════════ */
.cur-hero { background:linear-gradient(135deg,#006644 0%,#00897B 100%); padding:44px 0; color:#fff }
.cur-card { background:var(--white); border-radius:var(--radius-xl); padding:28px; box-shadow:var(--shadow-md); text-align:center }
.cur-flag { font-size:2.5rem; margin-bottom:8px; display:block }
.cur-code { font-size:1.1rem; font-weight:800; color:var(--dark) }
.cur-name { font-size:.8rem; color:var(--gray-500); margin:2px 0 12px }
.cur-rate { font-size:1.4rem; font-weight:800; color:var(--blue) }
.cur-rate span { font-size:.8rem; color:var(--gray-500); font-weight:400 }
.cur-table thead th { background:var(--blue); color:#fff; border-color:var(--blue-dk) }
.cur-table tr:hover { background:var(--blue-pale) }

/* ══════════════════════════════════════════════════════════════
   TENDERS
══════════════════════════════════════════════════════════════ */
.tender-card {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--radius-lg); padding:22px; height:100%; transition:var(--trans-med);
}
.tender-card:hover { border-color:var(--teal); box-shadow:var(--shadow-md); transform:translateY(-2px) }
.tender-org-logo { width:44px; height:44px; border-radius:var(--radius); background:var(--teal-lt); display:flex; align-items:center; justify-content:center; font-size:1.2rem; font-weight:800; color:var(--teal); flex-shrink:0 }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer { background:#0A1628; color:rgba(255,255,255,.62); padding:52px 0 24px; margin-top:auto }
.footer h5 { color:#fff; font-size:.95rem; font-weight:700; margin-bottom:16px }
.footer a  { color:rgba(255,255,255,.55); font-size:.88rem; line-height:1.8 }
.footer a:hover { color:#fff }
.footer-list { list-style:none; padding:0 }
.footer-list li { margin-bottom:6px }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.08); padding-top:20px; margin-top:32px;
  font-size:.82rem; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px;
}
.footer-contact li { display:flex; align-items:flex-start; gap:8px; margin-bottom:10px; font-size:.86rem }
.footer-contact i  { color:var(--blue); flex-shrink:0; margin-top:2px }
.social-bar { display:flex; gap:8px; margin-top:16px }
.social-bar a {
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.6); display:flex; align-items:center; justify-content:center;
  font-size:.95rem; transition:var(--trans);
}
.social-bar a:hover { background:var(--blue); color:#fff; transform:translateY(-2px) }
.footer-badge {
  display:inline-flex; align-items:center; gap:6px; padding:6px 14px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1);
  border-radius:20px; font-size:.78rem; color:rgba(255,255,255,.7);
}

/* ══════════════════════════════════════════════════════════════
   MISC UTILITIES
══════════════════════════════════════════════════════════════ */
.fw-700 { font-weight: 700!important }
.fw-800 { font-weight: 800!important }
.text-blue { color: var(--blue)!important }
.text-muted-sm { color: var(--gray-500); font-size: .85rem }
.bg-blue-lt  { background: var(--blue-lt)!important }
.border-blue { border-color: var(--blue)!important }
.rounded-xl  { border-radius: var(--radius-xl)!important }
.rounded-2xl { border-radius: var(--radius-2xl)!important }
.shadow-md   { box-shadow: var(--shadow-md)!important }
.gap-6  { gap: 6px }
.gap-8  { gap: 8px }
.gap-12 { gap: 12px }
.divider { border:none; border-top:1px solid var(--border); margin:18px 0 }
.toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:8px }
.toast-msg {
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  padding:14px 18px; display:flex; align-items:center; gap:12px;
  min-width:280px; font-size:.88rem; font-weight:500; animation:slideIn .25s ease;
  border-left:4px solid var(--green);
}
.toast-msg.error { border-left-color:var(--red) }
@keyframes slideIn { from{transform:translateX(80px);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes fadeOut { from{opacity:1} to{opacity:0;transform:translateX(80px)} }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width:991px) {
  .admin-sidebar { display:none }
  .admin-main { margin-left:0 }
}
@media (max-width:768px) {
  .hero h1 { font-size:1.9rem }
  .hero   { padding:44px 0 54px }
  .search-box { padding:6px }
  .search-box input,.search-box select { min-width:100% }
  .search-sep { display:none }
  .hero-stats { gap:18px }
  .hstat-num  { font-size:1.45rem }
  .auth-card  { padding:26px }
  .section    { padding:40px 0 }
  .sec-title  { font-size:1.5rem }
  .cat-grid   { grid-template-columns:repeat(2,1fr) }
  #mainNav    { padding:12px 0 }
  .nav-links  { flex-direction:column }
  .nav-links a { padding:.65rem 0; border-bottom:1px solid var(--border)!important }
  .nav-right  { flex-wrap:wrap }
  .footer { padding:36px 0 18px }
}
@media (max-width:576px) {
  .hero h1  { font-size:1.55rem }
  .stat-num { font-size:1.7rem }
  .stat-card { padding:18px }
  .auth-card { padding:20px }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px }
::-webkit-scrollbar-track { background:var(--gray-100) }
::-webkit-scrollbar-thumb { background:var(--gray-200); border-radius:4px }
::-webkit-scrollbar-thumb:hover { background:var(--blue) }

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .navbar,.footer,.btn,.sidebar-box { display:none!important }
  body { background:#fff }
}
