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

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

:root {
  --blue:        #c9a96e;
  --blue-dim:    rgba(201,169,110,0.1);
  --blue-glow:   rgba(201,169,110,0.32);
  --orange:      #9aabb8;
  --orange-dim:  rgba(154,171,184,0.1);
  --orange-glow: rgba(154,171,184,0.22);
  --purple:      #6b5040;
  --red:         #c0392b;
  --green:       #7fad8e;
  --dark:        #08080b;
  --dark-2:      #0d0d11;
  --dark-3:      #121217;
  --dark-4:      #17171c;
  --text:        #ede9e2;
  --text-muted:  #525260;
  --border-b:    rgba(201,169,110,0.18);
  --border-o:    rgba(154,171,184,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
}

/* ── NAV ───────────────────────────────────── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 60px;
  background: rgba(8,8,11,0.97);
  border-bottom: 1px solid rgba(201,169,110,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.app-nav::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blue), transparent);
}
.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-username {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, background 0.2s;
  line-height: 1;
}
.btn-lg  { font-size: 12px; padding: 14px 36px; }
.btn-md  { font-size: 11px; padding: 10px 24px; }
.btn-sm  { font-size: 10px; padding: 7px  16px; }

.btn-primary {
  background: var(--blue);
  color: #08080b;
  box-shadow: 0 0 18px var(--blue-glow);
}
.btn-primary:hover { opacity: 0.85; box-shadow: 0 0 28px var(--blue-glow); }

.btn-blue {
  background: var(--blue);
  color: #08080b;
  box-shadow: 0 0 18px var(--blue-glow);
}
.btn-blue:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(201,169,110,0.35);
}
.btn-outline:hover { background: var(--blue-dim); border-color: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }

.btn-danger {
  background: transparent;
  color: #c0392b;
  border: 1px solid rgba(192,57,43,0.35);
}
.btn-danger:hover { background: rgba(192,57,43,0.08); border-color: #c0392b; }

/* ── FORMS ─────────────────────────────────── */
.form-field { margin-bottom: 22px; }
.form-label {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border-b);
  color: var(--text);
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select { cursor: pointer; }
.form-select option { background: var(--dark-3); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── ALERTS ────────────────────────────────── */
.alert {
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-left: 3px solid;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error   { background: rgba(192,57,43,0.08);  border-color: #c0392b; color: #e87060; }
.alert-success { background: rgba(201,169,110,0.08); border-color: var(--blue); color: var(--blue); }
.alert::before { font-family: 'Orbitron', monospace; font-size: 10px; letter-spacing: 0.2em; flex-shrink: 0; }
.alert-error::before   { content: '// ERR'; color: #c0392b; }
.alert-success::before { content: '// OK';  color: var(--blue); }

/* ── PAGE SHELL ────────────────────────────── */
.page-content { flex: 1; }
.page-hero {
  padding: 28px 60px 24px;
  border-bottom: 1px solid var(--border-b);
  position: relative;
  background-color: var(--dark);
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 7px);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--blue), transparent);
}
.page-hero-inner { position: relative; max-width: 1400px; margin: 0 auto; text-align: center; }
.page-hero .page-eyebrow { justify-content: center; }
.page-eyebrow {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--blue);
  text-shadow: 0 0 10px var(--blue-glow);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
  flex-shrink: 0;
}
.page-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.page-title em { font-style: normal; color: var(--orange); text-shadow: 0 0 24px var(--orange-glow); }
.page-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* ── SECTION TEXT HELPERS ───────────────────── */
.section-label {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--blue);
  text-shadow: 0 0 10px var(--blue-glow);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
  flex-shrink: 0;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.section-title em { font-style: normal; color: var(--orange); text-shadow: 0 0 24px var(--orange-glow); }
.section-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
  letter-spacing: 0.02em;
}

/* ── CARD ──────────────────────────────────── */
.card {
  background: var(--dark-2);
  border: 1px solid var(--border-b);
  padding: 32px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--blue), transparent);
}

/* ── BADGE ──────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 3px 10px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid var(--border-b); }
.badge-orange { background: var(--orange-dim); color: var(--orange); border: 1px solid var(--border-o); }
.badge-purple { background: rgba(107,80,64,0.15); color: #b8896a; border: 1px solid rgba(107,80,64,0.35); }
.badge-grey   { background: rgba(82,82,96,0.12); color: var(--text-muted); border: 1px solid rgba(82,82,96,0.3); }

/* ── DIVIDER ────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-b);
  margin: 24px 0;
}

/* ── FOOTER ────────────────────────────────── */
body { padding-bottom: 72px; } /* room for fixed footer */
.app-footer {
  background: var(--dark);
  border-top: 1px solid var(--border-b);
  padding: 18px 60px;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
}
.app-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blue), transparent);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
}
.footer-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; }
.footer-contact-link {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--blue);
  padding: 8px 20px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.footer-contact-link:hover { opacity: 0.82; }

/* ── HAMBURGER ──────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  transition: transform 0.25s, opacity 0.25s;
}
.app-nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.app-nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
.app-nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .app-nav {
    padding: 14px 24px;
    flex-wrap: wrap;
    position: relative;
  }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    order: 3;
    border-top: 1px solid var(--border-b);
    margin-top: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 11px 0; display: block; font-size: 14px; border-bottom: none; }
  .nav-right {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 12px;
    order: 4;
  }
  .nav-right.open { display: flex; }
  .nav-username { padding: 6px 0 2px; font-size: 13px; }
  .btn-sm { font-size: 11px; padding: 10px 16px; text-align: center; }

  .page-hero { padding: 36px 20px 30px; }
  .app-footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
