/* ============================================================
   Wings Up New – Premium Luxury Dark Theme
   Aesthetic: Refined Indian consultancy – warm gold on deep navy,
   geometric accents, editorial typography
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink:        #09111f;
  --ink2:       #0d1a2e;
  --ink3:       #112240;
  --surface:    #0a192f;
  --surface2:   #112240;
  --line:       #1d3557;
  --line2:      #274472;
  --gold:       #e6a817;
  --gold2:      #f5c842;
  --gold-dim:   rgba(230,168,23,.12);
  --teal:       #0abfbc;
  --teal-dim:   rgba(10,191,188,.1);
  --rose:       #e63946;
  --rose-dim:   rgba(230,57,70,.12);
  --sage:       #2ec4b6;
  --sage-dim:   rgba(46,196,182,.1);
  --txt:        #ccd6f6;
  --txt2:       #8892b0;
  --txt3:       #4a5568;
  --r:          8px;
  --r2:         14px;
  --shadow:     0 8px 32px rgba(0,0,0,.5);
  --shadow2:    0 2px 12px rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--txt);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  background-image: radial-gradient(circle, rgba(230,168,23,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold2); }
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.25; letter-spacing: -.01em; }

.wrapper { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* NAVBAR */
.navbar {
  background: rgba(9,17,31,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200; height: 62px;
}
.navbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .35;
}
.navbar .brand {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: #fff; letter-spacing: .02em; display: flex; align-items: center; gap: 2px;
}
.navbar .brand span { color: var(--gold); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--txt2); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--r); transition: all .2s; letter-spacing: .01em;
}
.nav-links a:hover { background: var(--gold-dim); color: var(--gold); }
.nav-links a.active { background: var(--gold-dim); color: var(--gold); }
.nav-links .btn-logout { background: var(--rose-dim); color: var(--rose); border: 1px solid rgba(230,57,70,.2); }
.nav-links .btn-logout:hover { background: rgba(230,57,70,.25); }

/* CARDS */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r2); padding: 28px; box-shadow: var(--shadow2);
  position: relative; overflow: hidden;
  animation: fadeUp .35s ease both;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,168,23,.25), transparent);
}
.card h2 { font-size: 18px; margin-bottom: 20px; color: #e8eaf0; }
.card-sm { padding: 18px; }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11px; color: var(--txt2); margin-bottom: 6px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.form-control {
  width: 100%; background: var(--ink2); border: 1px solid var(--line);
  color: var(--txt); padding: 11px 14px; border-radius: var(--r);
  font-size: 14px; font-family: 'DM Sans', sans-serif; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,168,23,.1); }
.form-control::placeholder { color: var(--txt3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 95px; }
.form-control:disabled { opacity: .5; cursor: not-allowed; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r); font-size: 13.5px;
  font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer;
  border: none; transition: all .2s; text-decoration: none;
  letter-spacing: .01em; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #d4960f);
  color: #0d1a2e; box-shadow: 0 4px 14px rgba(230,168,23,.28);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(230,168,23,.42); color: #0d1a2e; }
.btn-success { background: linear-gradient(135deg, var(--sage), #1fa89e); color: #fff; box-shadow: 0 4px 14px rgba(46,196,182,.2); }
.btn-danger  { background: linear-gradient(135deg, var(--rose), #c1121f); color: #fff; box-shadow: 0 4px 14px rgba(230,57,70,.2); }
.btn-gold    { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(230,168,23,.3); }
.btn-gold:hover { background: rgba(230,168,23,.2); color: var(--gold2); }
.btn-outline { background: transparent; border: 1px solid var(--line2); color: var(--txt2); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-teal { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(10,191,188,.25); }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* TABLES */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: var(--ink2); color: var(--txt2); padding: 11px 16px; text-align: left;
  font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: .07em; border-bottom: 1px solid var(--line);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(29,53,87,.4); vertical-align: middle; }
tbody tr:hover { background: rgba(230,168,23,.03); }
tbody tr:last-child td { border-bottom: none; }

/* BADGES */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge-pending  { background: rgba(230,168,23,.15); color: var(--gold);  border: 1px solid rgba(230,168,23,.2); }
.badge-approved { background: rgba(46,196,182,.12); color: var(--sage);  border: 1px solid rgba(46,196,182,.2); }
.badge-rejected { background: var(--rose-dim);      color: var(--rose);  border: 1px solid rgba(230,57,70,.2); }
.badge-active   { background: var(--teal-dim);      color: var(--teal);  border: 1px solid rgba(10,191,188,.2); }
.badge-free     { background: rgba(74,85,104,.2);   color: var(--txt2);  border: 1px solid rgba(74,85,104,.3); }
.badge-premium  { background: rgba(230,168,23,.15); color: var(--gold);  border: 1px solid rgba(230,168,23,.3); }
.badge-closed   { background: rgba(74,85,104,.2);   color: var(--txt3);  border: 1px solid rgba(74,85,104,.3); }
.badge-applied  { background: var(--teal-dim);      color: var(--teal);  border: 1px solid rgba(10,191,188,.2); }
.badge-selected { background: rgba(46,196,182,.12); color: var(--sage);  border: 1px solid rgba(46,196,182,.2); }

/* FLASH */
.flash {
  padding: 13px 18px; border-radius: var(--r); margin-bottom: 20px;
  font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.flash-success { background: rgba(46,196,182,.1); border: 1px solid rgba(46,196,182,.25); color: var(--sage); }
.flash-error   { background: var(--rose-dim); border: 1px solid rgba(230,57,70,.25); color: var(--rose); }
.flash-info    { background: var(--gold-dim); border: 1px solid rgba(230,168,23,.2); color: var(--gold); }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 22px 20px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
  animation: fadeUp .35s ease both;
}
.stat-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.stat-card::after {
  content: ''; position: absolute; top: 0; right: 0; width: 50px; height: 50px;
  background: linear-gradient(225deg, rgba(230,168,23,.07), transparent);
  border-bottom-left-radius: 100%;
}
.stat-card .stat-label { font-size: 11px; color: var(--txt3); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-bottom: 6px; }
.stat-card .stat-value { font-size: 30px; font-weight: 700; font-family: 'Playfair Display', serif; line-height: 1; }
.stat-card .stat-icon  { font-size: 20px; margin-bottom: 8px; }

/* PAGE HEADER */
.page-header {
  margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: 24px; color: #fff; }

.section { padding: 30px 0; }

/* PAGINATION */
.pagination { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 13px; border-radius: var(--r); font-size: 13px;
  border: 1px solid var(--line); color: var(--txt2); transition: all .2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); text-decoration: none; }
.pagination .active { background: var(--gold); border-color: var(--gold); color: #0d1a2e; font-weight: 700; }

/* JOB CARDS */
.job-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 22px 24px; margin-bottom: 12px; transition: all .2s;
  position: relative; overflow: hidden; animation: fadeUp .3s ease both;
}
.job-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent); opacity: 0; transition: opacity .2s;
}
.job-card:hover { border-color: rgba(230,168,23,.3); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.job-card:hover::before { opacity: 1; }
.job-card h3 { font-size: 16px; color: #e8eaf0; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.job-card .meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--txt2); font-size: 12.5px; margin-bottom: 10px; }
.job-card .meta span { display: flex; align-items: center; gap: 4px; }

/* AUTH */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--ink);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(230,168,23,.05) 0%, transparent 60%),
    radial-gradient(circle, rgba(230,168,23,.04) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}
.auth-box { width: 100%; max-width: 460px; }
.auth-box .brand-block { text-align: center; margin-bottom: 32px; }
.auth-box .brand-block h1 { font-size: 30px; color: #fff; font-family: 'Playfair Display', serif; letter-spacing: .02em; }
.auth-box .brand-block p { color: var(--txt2); font-size: 13px; margin-top: 6px; }
.auth-box .brand-block::after {
  content: ''; display: block; width: 50px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto 0;
}

/* PLAN CARDS */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.plan-card {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r2);
  padding: 26px 22px; text-align: center; transition: all .25s; cursor: pointer; position: relative; overflow: hidden;
}
.plan-card:hover, .plan-card.selected { border-color: var(--gold); background: var(--surface2); box-shadow: 0 0 0 1px rgba(230,168,23,.1), var(--shadow); }
.plan-card.premium { border-color: rgba(230,168,23,.3); }
.plan-card.premium::before {
  content: '★ BEST VALUE'; position: absolute; top: 12px; right: 0;
  background: var(--gold); color: #0d1a2e; font-size: 9px; font-weight: 800;
  padding: 3px 10px; letter-spacing: .08em; border-radius: 4px 0 0 4px;
}
.plan-card .plan-name  { font-size: 12px; font-weight: 700; color: var(--txt2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.plan-card .plan-price { font-size: 32px; font-weight: 700; font-family: 'Playfair Display', serif; color: #fff; margin: 8px 0 14px; }
.plan-card ul { list-style: none; text-align: left; font-size: 13px; color: var(--txt2); }
.plan-card ul li { padding: 5px 0; border-bottom: 1px solid rgba(29,53,87,.5); }
.plan-card ul li:last-child { border-bottom: none; }
.plan-card ul li::before { content: "→ "; color: var(--gold); font-weight: 700; }

/* SUPPORT BAR */
.support-bar {
  background: linear-gradient(135deg, rgba(230,168,23,.07), rgba(230,168,23,.03));
  border: 1px solid rgba(230,168,23,.15); border-radius: var(--r);
  padding: 12px 18px; font-size: 13px; color: var(--txt2); margin-bottom: 22px;
  display: flex; align-items: center; gap: 8px;
}
.support-bar a { color: var(--gold); font-weight: 500; }

/* EMPTY */
.empty { text-align: center; padding: 55px 20px; color: var(--txt3); }
.empty span { font-size: 38px; display: block; margin-bottom: 14px; opacity: .6; }
.empty a { color: var(--gold); }

hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stats-grid .stat-card:nth-child(1) { animation-delay: .05s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: .10s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: .15s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: .20s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: .25s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: .30s; }

@media (max-width: 640px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .navbar { flex-wrap: wrap; gap: 10px; height: auto; padding: 12px 16px; }
  .card { padding: 18px; }
  .stat-card .stat-value { font-size: 24px; }
}
