/* =============================================================
   VISASLIP · MASTER STYLESHEET (MASKDM OBSIDIAN DESIGN SYSTEM)
   ============================================================= */

:root {
  /* Typography Tokens */
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* MaskDM Obsidian Surface Architecture */
  --bg-deep: #080911;
  --bg-card: #0d101a;
  --bg-card-hover: #121624;
  --bg-elevated: #151a28;
  --bg-elevated-hover: #1b2132;

  /* Micro-Borders & Highline Insets */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 255, 255, 0.26);
  --border-emerald-glow: rgba(0, 230, 118, 0.32);

  /* Color Intent Tokens */
  --emerald: #00e676;
  --slip-green: #10b981;
  --slip-pink: #f43f5e;
  --slip-white: #f8fafc;
  --amber-warn: #f59e0b;

  /* Text Contrast Hierarchy */
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-subtle: #475569;

  /* Physics-based Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.16s var(--ease-out);
  --transition-smooth: 0.26s var(--ease-out);
}

/* BASE RESETS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 90% 20%, rgba(0, 230, 118, 0.02) 0%, transparent 40%),
              var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.font-mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on, 'zero' on;
}

/* NAVBAR */
.navbar {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 9, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0.85rem 1.75rem;
}

.nav-container {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND IDENTITY */
.brand-group {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  height: 38px;
  width: auto;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0, 230, 118, 0.2));
  transition: transform 0.15s ease, filter 0.2s ease;
  user-select: none;
}

.brand-logo:hover {
  filter: drop-shadow(0 4px 14px rgba(0, 230, 118, 0.35));
}

.brand-logo:active {
  transform: scale(0.92);
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-location {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: block;
}

/* RIGHT TELEMETRY: DUAL CLOCKS */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.telemetry-clocks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clock-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.03);
}

.flag-icon { font-size: 0.85rem; }
.clock-label { color: var(--text-muted); font-size: 0.68rem; font-weight: 700; }

/* MASKDM ADMIN AVATAR PILL (NAVBAR TOP-RIGHT) */
.admin-profile-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid var(--border-emerald-glow);
  padding: 4px 12px 4px 5px;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.12);
}

.admin-profile-pill:hover {
  background: rgba(0, 230, 118, 0.12);
  border-color: var(--emerald);
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.28);
  transform: translateY(-1px);
}

.admin-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--emerald);
}

.admin-profile-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-username {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #031409;
  background: var(--emerald);
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-online-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* MAIN WRAPPER */
.main-wrapper {
  max-width: 1260px;
  margin: 2.25rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.card-spotlight {
  background: linear-gradient(180deg, #111524 0%, #0d101a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.metric-large-wrap {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin: 1rem 0;
}

.big-metric {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.metric-sub {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.text-dim { font-size: 0.74rem; color: var(--text-dim); }
.text-subtle { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--emerald);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.metric-value {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.75rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.card-green .metric-value { color: var(--slip-green); }
.card-pink .metric-value { color: var(--slip-pink); }
.card-white .metric-value { color: var(--slip-white); }
.metric-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }

/* CONTENT PANELS (MASKDM STYLE) */
.content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.form-title-block {
  margin-bottom: 1.5rem;
}

.terminal-heading {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.terminal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ACTIVE APPOINTMENT DASHBOARD */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.badge-lock {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--emerald);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--border-emerald-glow);
  padding: 4px 10px;
  border-radius: 6px;
}

.active-case-num {
  font-size: 2.1rem;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.case-univ-info {
  text-align: right;
}

.univ-line {
  font-size: 1.15rem;
  font-weight: 700;
}

.type-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* COUNTDOWN TICKER */
.countdown-deck {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  padding: 2.75rem 0;
}

.ticker-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticker-num {
  font-size: 4.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.ticker-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 8px;
}

.ticker-divider {
  font-size: 3.25rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: -1.5rem;
}

/* ACTION & PREPARATION BAR */
.case-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.03);
}

.timeline-intelligence {
  border-left: 3px solid var(--emerald);
  padding-left: 1.1rem;
}

.intel-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--emerald);
  display: block;
}

.intel-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-top: 4px;
}

.btn-reschedule {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: 9px;
  padding: 0.8rem 1.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-reschedule:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-primary);
}

/* POST-INTERVIEW BANNER */
.interview-passed-banner {
  margin-top: 1.75rem;
  background: linear-gradient(180deg, #10241b 0%, #0a1711 100%);
  border: 1px solid var(--emerald);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.15);
}

.banner-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.banner-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-primary-emerald {
  background: var(--emerald);
  color: #031409;
  border: none;
  border-radius: 9px;
  padding: 0.9rem 1.5rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-primary-emerald:hover {
  opacity: 0.92;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.35);
  transform: translateY(-1px);
}

/* RESCHEDULE NOTIFICATION BANNERS */
.banner-reschedule {
  border-color: rgba(245, 158, 11, 0.35);
  background: #110f08;
}

.reschedule-status-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.reschedule-icon-spin {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: var(--amber-warn);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reschedule-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber-warn);
}

.reschedule-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.banner-rejected {
  border-color: rgba(244, 63, 94, 0.4);
  background: #17090e;
}

.reject-title {
  color: var(--slip-pink);
  font-size: 1.15rem;
  font-weight: 700;
}

.reject-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* FORMS (MASKDM STYLING) */
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.input-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-block label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--border-focus);
  background: var(--bg-elevated-hover);
}

.btn-primary-action {
  background: var(--text-primary);
  color: var(--bg-deep);
  border: none;
  border-radius: 9px;
  padding: 1.05rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-primary-action:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.8rem 1.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-medium);
}

/* AUTOCOMPLETE DROPDOWN */
.relative { position: relative; }

.autocomplete-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 9px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  margin-top: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.autocomplete-row {
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.autocomplete-row:hover {
  background: var(--bg-card-hover);
  color: var(--emerald);
}

/* COMMUNITY FEED */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feed-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.4rem;
  transition: border-color var(--transition-fast);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.03);
}

.feed-card:hover {
  border-color: var(--border-medium);
}

.feed-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.feed-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 5px;
  letter-spacing: 0.08em;
}

.badge-green { background: rgba(0, 230, 118, 0.1); color: var(--slip-green); border: 1px solid rgba(0, 230, 118, 0.25); }
.badge-pink { background: rgba(244, 63, 94, 0.1); color: var(--slip-pink); border: 1px solid rgba(244, 63, 94, 0.25); }
.badge-white { background: rgba(248, 250, 252, 0.1); color: var(--slip-white); border: 1px solid rgba(248, 250, 252, 0.25); }

.feed-univ {
  font-weight: 700;
  font-size: 1rem;
  margin-left: 10px;
}

.feed-program {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.feed-q {
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 0.6rem;
}

.feed-a {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.feed-foot {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  gap: 1.25rem;
}

/* INLINE ADMIN DELETE BUTTON ON FEED */
.btn-feed-delete {
  background: transparent;
  color: var(--slip-pink);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
  transition: all var(--transition-fast);
}

.btn-feed-delete:hover {
  background: var(--slip-pink);
  color: white;
}

.empty-feed {
  padding: 2.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* 3 EMBASSY SLIPS REFERENCE SECTION */
.slips-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.slip-reference-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.slip-reference-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slip-img-wrap {
  position: relative;
  height: 200px;
  background: #040508;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slip-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.slip-reference-card:hover .slip-thumbnail {
  transform: scale(1.05);
}

.slip-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slip-ref-details {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ref-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.slip-ref-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.slip-ref-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ ACCORDION (MASKDM STYLE) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--bg-elevated);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 1.4rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease-out);
}

.faq-body {
  padding: 0 1.4rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-body {
  display: block;
  animation: fadeIn 0.2s var(--ease-out);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--emerald);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* INSTITUTIONAL FOOTER */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  background: #040508;
  margin-top: 3.5rem;
}

.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.85rem;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-name {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 820px;
  line-height: 1.65;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-col-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.link-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.link-col a:hover {
  color: var(--emerald);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* MODAL SYSTEM (MASKDM BLUR) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s var(--ease-out);
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  max-width: 620px;
  width: 100%;
  padding: 2.25rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-head { margin-bottom: 1.5rem; }
.modal-title { font-size: 1.3rem; font-weight: 800; }
.modal-sub { font-size: 0.84rem; color: var(--text-muted); margin-top: 4px; }
.modal-foot { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* SLIP PICKER */
.slip-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.slip-chip {
  background: var(--bg-elevated);
  border: 2px solid transparent;
  border-radius: 11px;
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.dot-green { background: var(--slip-green); box-shadow: 0 0 8px var(--slip-green); }
.dot-pink { background: var(--slip-pink); box-shadow: 0 0 8px var(--slip-pink); }
.dot-white { background: var(--slip-white); box-shadow: 0 0 8px var(--slip-white); }

.slip-chip.active.chip-green { border-color: var(--slip-green); background: rgba(0, 230, 118, 0.08); }
.slip-chip.active.chip-pink { border-color: var(--slip-pink); background: rgba(244, 63, 94, 0.08); }
.slip-chip.active.chip-white { border-color: var(--slip-white); background: rgba(248, 250, 252, 0.08); }

.outcome-toast {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 9px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.toast-green { background: rgba(16, 185, 129, 0.12); border: 1px solid var(--slip-green); color: var(--slip-green); }
.toast-pink { background: rgba(244, 63, 94, 0.12); border: 1px solid var(--slip-pink); color: var(--slip-pink); }
.toast-white { background: rgba(248, 250, 252, 0.12); border: 1px solid var(--slip-white); color: var(--slip-white); }

/* SLIP VIEWER LIGHTBOX */
.slip-viewer-window {
  max-width: 780px;
}

.slip-viewer-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slip-full-view {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
  background: #030406;
  border: 1px solid var(--border-subtle);
}

.slip-viewer-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* MASTER CONTROL AUTH MODAL (MASKDM STYLE) */
.auth-window {
  max-width: 440px;
  text-align: center;
}

.auth-header {
  margin-bottom: 1.5rem;
}

.auth-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--border-emerald-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--emerald);
}

.auth-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.auth-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* EXECUTIVE COMMAND MODAL / DRAWER */
.admin-window {
  max-width: 860px;
  border-color: rgba(0, 230, 118, 0.35);
}

.admin-icon { height: 26px; width: auto; }
.admin-pill-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald);
  display: block;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.adm-tab {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 15px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.adm-tab.active {
  background: var(--emerald);
  color: #031409;
  font-weight: 800;
  border-color: var(--emerald);
}

.adm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.adm-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adm-btn-group { display: flex; gap: 8px; }
.adm-btn-approve {
  background: var(--emerald);
  color: #031409;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}
.adm-btn-reject {
  background: var(--slip-pink);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}

.admin-settings-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.btn-logout {
  background: rgba(244, 63, 94, 0.1);
  color: var(--slip-pink);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 10px;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: var(--slip-pink);
  color: white;
}

/* UTILITY HELPERS */
.hidden { display: none !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; }
.gap-10 { gap: 10px; }
.flex-1 { flex: 1; }
.req-star { color: var(--slip-pink); font-size: 0.78rem; }

/* =============================================================
   RESPONSIVE DESIGN (TABLET, LAPTOP, PHONES)
   ============================================================= */

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-spotlight {
    grid-column: span 2;
  }
  .slips-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-ref-white {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .navbar { padding: 0.8rem 1rem; }
  .brand-location { display: none; }
  .main-wrapper { padding: 0 1rem; margin: 1.5rem auto; gap: 1.5rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .card-spotlight { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .case-action-bar { flex-direction: column; align-items: stretch; }
  .interview-passed-banner { flex-direction: column; align-items: stretch; }
  .slips-preview-grid { grid-template-columns: 1fr; }
  .card-ref-white { grid-column: span 1; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  
  /* Mobile Ticker Scaling */
  .ticker-num { font-size: 3rem; }
  .ticker-divider { font-size: 2rem; margin-top: -1rem; }
  .countdown-deck { gap: 0.85rem; padding: 1.75rem 0; }
  .active-case-num { font-size: 1.6rem; }
  .panel-header { flex-direction: column; gap: 10px; }
  .case-univ-info { text-align: left; }
}

@media (max-width: 480px) {
  .telemetry-clocks { display: none; } /* Focus on admin avatar or simple view on narrow phones */
  .ticker-num { font-size: 2.2rem; }
  .ticker-divider { font-size: 1.5rem; }
  .countdown-deck { gap: 0.5rem; }
  .big-metric { font-size: 3.2rem; }
  .slip-selector { grid-template-columns: 1fr; }
}