/* ============================================================
   Ordinate — Global Design System
   Colors derived from the Ordinate logo:
     Primary  #2B6CB0 (blue gear)
     Accent   #E67E22 (orange bars)
     Green    #7CB518 (green wrench)
     Dark     #2D3748 (wordmark)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --primary:        #2B6CB0;
  --primary-dark:   #1A4A80;
  --primary-light:  #4299E1;
  --accent:         #E67E22;
  --accent-dark:    #C56A10;
  --green:          #7CB518;
  --dark:           #2D3748;
  --dark-80:        #4A5568;
  --dark-60:        #718096;
  --surface:        #F7FAFC;
  --surface-2:      #EDF2F7;
  --card:           #FFFFFF;
  --border:         #E2E8F0;
  --border-focus:   #4299E1;
  --error:          #E53E3E;
  --success:        #38A169;
  --warning:        #D69E2E;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.18);

  --transition: .2s ease;
  --transition-slow: .4s ease;

  --nav-h: 68px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-60); }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--dark-80); }
.text-muted { color: var(--dark-60); font-size: .9rem; }
.text-center { text-align: center; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow);
}
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff;
}
.btn-ghost {
  background: transparent; color: var(--dark-80);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-pad { padding: 28px; }
.card-pad-sm { padding: 20px; }

/* ── Badge / Status ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 99px; font-size: .78rem; font-weight: 600; text-transform: capitalize;
}
.badge-blue    { background: #EBF8FF; color: var(--primary); }
.badge-orange  { background: #FFF5E6; color: var(--accent); }
.badge-green   { background: #F0FFF4; color: var(--success); }
.badge-red     { background: #FFF5F5; color: var(--error); }
.badge-gray    { background: var(--surface-2); color: var(--dark-60); }
.badge-purple  { background: #FAF5FF; color: #553C9A; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .88rem; font-weight: 600; color: var(--dark);
  margin-bottom: 6px;
}
.form-group .required { color: var(--error); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .95rem; color: var(--dark);
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(66,153,225,.15);
}
.form-control::placeholder { color: var(--dark-60); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .8rem; color: var(--dark-60); margin-top: 4px; }
.form-error { font-size: .82rem; color: var(--error); margin-top: 4px; display: none; }

/* ── Custom Dropdown ────────────────────────────────────────── */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}
.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
}
.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--dark);
  height: 46px;
  line-height: normal;
  background: #ffffff;
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.custom-select-trigger:hover {
  border-color: var(--dark-60);
}
.custom-select.open .custom-select-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66,153,225,.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.custom-select-trigger::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--dark-60);
  border-right: 2px solid var(--dark-60);
  transform: rotate(45deg);
  transition: all var(--transition);
  margin-top: -4px;
}
.custom-select.open .custom-select-trigger::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.custom-options {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  right: 0;
  border: 1.5px solid var(--border);
  border-top: 0;
  background: #fff;
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  max-height: 250px;
  overflow-y: auto;
}
.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}
.custom-option {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--dark-80);
  line-height: normal;
  cursor: pointer;
  transition: all var(--transition);
}
.custom-option:hover {
  background-color: var(--surface-2);
  color: var(--primary);
}
.custom-option.selected {
  color: #fff;
  background-color: var(--primary);
}

/* File upload */
.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 32px;
  text-align: center; cursor: pointer; transition: all var(--transition); background: var(--surface);
}
.file-drop:hover, .file-drop.drag-over {
  border-color: var(--primary); background: #EBF8FF;
}
.file-drop .file-icon { font-size: 2rem; margin-bottom: 8px; }
.file-drop p { color: var(--dark-60); font-size: .9rem; }
.file-drop .file-cta { color: var(--primary); font-weight: 600; }
.file-drop input[type="file"] { display: none; }

/* Alert messages */
.alert {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
  border-radius: var(--radius); font-size: .9rem; margin-bottom: 20px;
}
.alert-success { background: #F0FFF4; color: #276749; border: 1px solid #C6F6D5; }
.alert-error   { background: #FFF5F5; color: #9B2C2C; border: 1px solid #FED7D7; }
.alert-info    { background: #EBF8FF; color: #2B6CB0; border: 1px solid #BEE3F8; }
.alert-hidden  { display: none; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.6);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: background var(--transition);
}
.navbar .container { display: flex; align-items: center; height: 100%; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500;
  color: var(--dark-80); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: #EBF8FF; }
.nav-cta { margin-left: 8px; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 24px; box-shadow: var(--shadow);
  flex-direction: column; gap: 4px; z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500;
  color: var(--dark-80); transition: all var(--transition);
}
.nav-mobile a:hover { background: var(--surface-2); color: var(--primary); }
.page-pad { padding-top: var(--nav-h); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0F2742 0%, var(--primary) 50%, #1A4A80 100%);
  color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px; font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 20px; max-width: 680px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn-primary { background: var(--accent); border-color: var(--accent); }
.hero-ctas .btn-primary:hover { background: var(--accent-dark); }
.hero-ctas .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero-ctas .btn-outline:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); }

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stats-bar .container { display: flex; justify-content: space-around; padding: 24px; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; }
.stat-item .stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-item .stat-label  { font-size: .82rem; color: var(--dark-60); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* ── Section Headers ─────────────────────────────────────────── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-header .eyebrow {
  display: inline-block; padding: 4px 14px; background: #EBF8FF; color: var(--primary);
  border-radius: 99px; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--dark-60); }

/* ── Job Cards ───────────────────────────────────────────────── */
.job-card {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 24px; transition: all var(--transition); cursor: pointer; display: flex; flex-direction: column; gap: 12px;
}
.job-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); transform: translateY(-2px); }
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-card-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.job-card-dept  { font-size: .82rem; color: var(--dark-60); margin-top: 3px; }
.job-card-meta  { display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta-item  { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--dark-60); }
.job-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.job-card-salary { font-size: .88rem; font-weight: 600; color: var(--green); }
.job-card-date   { font-size: .8rem; color: var(--dark-60); }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0F2742 0%, var(--primary) 100%);
  color: #fff; padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: #fff; margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; }

/* ── Features Grid ───────────────────────────────────────────── */
.feature-card {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  transition: all var(--transition); text-align: center;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.feature-icon-blue   { background: #EBF8FF; }
.feature-icon-orange { background: #FFF5E6; }
.feature-icon-green  { background: #F0FFF4; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { font-size: .92rem; }

/* ── Steps ───────────────────────────────────────────────────── */
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  flex-shrink: 0; font-size: 1rem;
}
.step-content h3 { margin-bottom: 6px; }
/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 64px 0; text-align: center; border-radius: var(--radius-xl);
  margin: 0 24px;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--dark); color: rgba(255,255,255,.7); padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img   { height: 36px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .85; }
.footer-brand p     { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.5); }
.footer-col h4      { color: #fff; font-size: .88rem; margin-bottom: 14px; letter-spacing: .05em; text-transform: uppercase; }
.footer-col ul li   { margin-bottom: 8px; }
.footer-col ul li a { font-size: .9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: .85rem;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ── Team Cards (About) ──────────────────────────────────────── */
.team-card { text-align: center; padding: 28px 20px; }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; color: #fff;
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card .role { font-size: .85rem; color: var(--primary); font-weight: 500; }

/* ── Contact Page ────────────────────────────────────────────── */
.contact-info-card { padding: 28px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px; border-radius: var(--radius); background: #EBF8FF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary);
}
.contact-info-item h4 { margin-bottom: 2px; }
.contact-info-item p  { font-size: .9rem; }

/* ── Job Detail Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--card); border-radius: var(--radius-xl); max-width: 720px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(.97); transition: all var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 28px 32px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.modal-body    { padding: 28px 32px; }
.modal-close   {
  width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface-2);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--dark-60); font-size: 1.2rem; flex-shrink: 0; transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--dark); }
.modal-section { margin-bottom: 24px; }
.modal-section h4 { margin-bottom: 10px; color: var(--dark); }
.modal-section p  { white-space: pre-wrap; }

/* ── Apply Page ──────────────────────────────────────────────── */
.apply-wrapper { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.apply-job-banner {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px; margin-bottom: 32px; display: flex; align-items: center; gap: 16px;
}
.apply-job-banner .job-icon {
  width: 48px; height: 48px; border-radius: var(--radius); background: #EBF8FF;
  display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0;
}
.apply-job-banner h3 { font-size: 1rem; margin-bottom: 2px; }
.apply-success {
  text-align: center; padding: 48px 24px; display: none;
}
.apply-success .success-icon { font-size: 4rem; margin-bottom: 16px; }
.apply-success h2 { margin-bottom: 10px; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 32px 0; }
.pagination button {
  width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--card); color: var(--dark-80); font-size: .9rem; font-weight: 500;
  transition: all var(--transition); cursor: pointer;
}
.pagination button:hover  { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ── Search / Filter Bar ─────────────────────────────────────── */
.search-bar {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 20px; margin-bottom: 24px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.search-bar .search-input-wrap { flex: 1; min-width: 200px; position: relative; }
.search-bar .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dark-60); }
.search-bar input { padding-left: 36px; }
.search-bar select, 
.search-bar .custom-select-wrapper { 
  max-width: 200px; 
  width: 100%; 
  flex: 1; 
}

@media (max-width: 768px) {
  .search-bar .custom-select-wrapper { max-width: none; }
}

/* ── Admin: Login ─────────────────────────────────────────────── */
.admin-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0F2742 0%, var(--primary) 100%);
  padding: 24px;
}
.login-card {
  background: var(--card); border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-xl);
}
.login-card .login-logo { text-align: center; margin-bottom: 28px; }
.login-card .login-logo img { height: 44px; margin: 0 auto; }
.login-card h2 { text-align: center; margin-bottom: 6px; }
.login-card .login-subtitle { text-align: center; color: var(--dark-60); font-size: .9rem; margin-bottom: 28px; }
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all var(--transition); }
.step-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.step-dot.done   { background: var(--success); }
.totp-input-group { display: flex; gap: 8px; justify-content: center; }
.totp-digit {
  width: 48px; height: 56px; border: 1.5px solid var(--border); border-radius: var(--radius);
  text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--dark);
  outline: none; transition: all var(--transition);
}
.totp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(66,153,225,.15); }

/* ── Admin: Dashboard ────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; background: var(--surface); }
.admin-sidebar {
  width: 260px; flex-shrink: 0; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; transition: transform var(--transition);
}
.sidebar-header {
  padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-header img { height: 32px; filter: brightness(0) invert(1); opacity: .9; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar-section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.35); padding: 16px 20px 6px;
}
.sidebar-nav a, .sidebar-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 20px; color: rgba(255,255,255,.6); background: none; border: none;
  font-size: .92rem; font-weight: 500; cursor: pointer; text-align: left;
  transition: all var(--transition); border-radius: 0; text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active, .sidebar-nav button.active {
  background: var(--primary); color: #fff;
}
.sidebar-nav a svg, .sidebar-nav button svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }

.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
  height: 60px; background: var(--card); border-bottom: 1px solid var(--border);
  padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 90;
}
.admin-topbar h1 { font-size: 1.1rem; }
.admin-content { padding: 28px; flex: 1; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 8px;
}
.stat-card .sc-label { font-size: .82rem; color: var(--dark-60); font-weight: 500; }
.stat-card .sc-value { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-card .sc-icon { font-size: 1.4rem; }

/* Data table */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--dark-60); padding: 10px 14px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td {
  padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: .9rem;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }
.data-table .actions { display: flex; gap: 6px; align-items: center; }
.data-table .actions button {
  padding: 5px 10px; font-size: .8rem; border-radius: var(--radius-sm);
  font-weight: 500; background: var(--surface-2); color: var(--dark-80); border: none;
  cursor: pointer; transition: all var(--transition);
}
.data-table .actions button:hover { background: var(--border); }
.data-table .actions button.btn-danger { background: #FFF5F5; color: var(--error); }
.data-table .actions button.btn-danger:hover { background: #FED7D7; }

/* Admin panel tabs */
.admin-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--radius); margin-bottom: 24px; }
.admin-tab {
  flex: 1; padding: 9px 16px; border-radius: calc(var(--radius) - 2px); font-size: .9rem;
  font-weight: 600; color: var(--dark-60); background: none; border: none; cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.admin-tab.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }

/* Admin slide panel */
.slide-panel {
  position: fixed; top: 0; right: -540px; width: 540px; height: 100vh;
  background: var(--card); box-shadow: var(--shadow-xl); z-index: 200;
  transition: right var(--transition-slow); overflow-y: auto; display: flex; flex-direction: column;
}
.slide-panel.open { right: 0; }
.slide-panel-header {
  padding: 22px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.slide-panel-body { padding: 24px; flex: 1; }
.detail-field { margin-bottom: 18px; }
.detail-field label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--dark-60); display: block; margin-bottom: 4px; }
.detail-field p, .detail-field span { font-size: .95rem; color: var(--dark); }

/* Admin Modal */
.admin-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.admin-modal-overlay.open { opacity: 1; visibility: visible; }
.admin-modal {
  background: var(--card); border-radius: var(--radius-xl); width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl);
  transform: scale(.95); transition: all var(--transition);
}
.admin-modal-overlay.open .admin-modal { transform: scale(1); }
.admin-modal-header { padding: 24px 28px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-modal-body   { padding: 24px 28px; }
.admin-modal-footer { padding: 16px 28px 24px; display: flex; justify-content: flex-end; gap: 10px; }

/* ── Empty state ──────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.empty-state h3 { color: var(--dark-60); font-weight: 500; }

/* ── Loading spinner ──────────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast notification ───────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--dark); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); max-width: 320px;
  display: flex; align-items: center; gap: 10px;
  animation: slideUp .3s ease forwards;
}
.toast.toast-success { background: var(--success); }
.toast.toast-error   { background: var(--error); }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(16px); opacity: 0; } }
.toast.removing { animation: slideDown .3s ease forwards; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .slide-panel { width: 100%; right: -100%; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 56px 0; }
  .cta-banner { border-radius: 0; margin: 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
}
