/* ==========================================================================
   Saloni Yadav - 3D Health Assistant Portfolio
   Design System: Neo-Clinical 3D & Glassmorphic Medical Aesthetic
   ========================================================================== */

:root {
  /* Color Palette - Dark Medical Theme (Default) */
  --bg-primary: #070d14;
  --bg-secondary: #0c1622;
  --bg-surface: rgba(16, 27, 41, 0.72);
  --bg-surface-elevated: rgba(22, 38, 58, 0.85);
  --border-color: rgba(56, 189, 248, 0.18);
  --border-highlight: rgba(56, 189, 248, 0.45);
  
  /* Primary Glow & Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-emerald: #10b981;
  --accent-sky: #38bdf8;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #38bdf8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --gradient-card: linear-gradient(145deg, rgba(17, 34, 53, 0.8), rgba(9, 18, 30, 0.85));
  --gradient-glow: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(16, 185, 129, 0.05) 70%, transparent 100%);
  --gold-sheen: linear-gradient(135deg, #d97706 0%, #fef08a 50%, #b45309 100%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'Space Grotesk', monospace;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(6, 182, 212, 0.3);
  --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.3);
  --glass-blur: blur(16px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f0f7fa;
  --bg-secondary: #e2eff5;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --border-color: rgba(14, 165, 233, 0.2);
  --border-highlight: rgba(14, 165, 233, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-highlight: #0284c7;

  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.85));
  --gradient-glow: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(16, 185, 129, 0.04) 70%, transparent 100%);

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 35px rgba(14, 165, 233, 0.25);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background 3D Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-top-left {
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.glow-bottom-right {
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, var(--accent-emerald), transparent 70%);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-emerald {
  color: var(--accent-emerald) !important;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
  border: 1px solid var(--border-highlight);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: var(--border-highlight);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: var(--glass-blur);
}

.icon-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.06);
}

.mobile-only {
  display: none;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition-normal);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(7, 13, 20, 0.65);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .site-header {
  background: rgba(240, 247, 250, 0.78);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(7, 13, 20, 0.92);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(240, 247, 250, 0.94);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
  animation: heartPulse 2.4s infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.1); }
  30% { transform: scale(1); }
  45% { transform: scale(1.06); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-name .alias-tag {
  font-weight: 400;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.brand-badge {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding-top: 150px;
  padding-bottom: 70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.status-pill strong {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.pulsing-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}

.highlight-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-fast);
}

.highlight-chip:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.highlight-chip i {
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.highlight-chip strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.highlight-chip span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
}

/* ECG Monitor Bar */
.ecg-monitor-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
}

.ecg-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.heart-beat-anim {
  color: var(--accent-red);
  animation: heartPulse 1.2s infinite;
}

.bpm-counter {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.ecg-waveform-wrap {
  flex: 1;
  height: 36px;
  overflow: hidden;
  position: relative;
}

.ecg-svg {
  width: 100%;
  height: 100%;
}

.ecg-path {
  fill: none;
  stroke: var(--accent-emerald);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: ecgDash 2.5s linear infinite;
  filter: drop-shadow(0 0 4px var(--accent-emerald));
}

@keyframes ecgDash {
  0% { stroke-dashoffset: 600; }
  100% { stroke-dashoffset: 0; }
}

/* Hero Portrait 3D Card */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.portrait-card-3d {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 18px;
  transform-style: preserve-3d;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-glass-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: visible;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Floating Badges on Portrait */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--glass-blur);
  z-index: 5;
  animation: floatAnim 4s ease-in-out infinite;
  pointer-events: none;
}

.badge-top-right {
  top: 16px;
  right: -24px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 50px;
  left: -24px;
  animation-delay: 1.5s;
}

.badge-bottom-right {
  bottom: 12px;
  right: -14px;
  animation-delay: 2.5s;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge .badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
}

.floating-badge .badge-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.floating-badge .badge-sub {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.portrait-card-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.footer-profile-info h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.footer-profile-info p {
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.btn-flip-prompt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-flip-prompt:hover {
  background: var(--accent-emerald);
  color: #ffffff;
}

/* ==========================================================================
   3D HOLOGRAPHIC LICENSE CARD SECTION
   ========================================================================== */

.license-section {
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
}

.license-showcase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.card-stage {
  perspective: 1600px;
  -webkit-perspective: 1600px;
  width: 100%;
  max-width: 640px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  outline: none;
}

.card-3d-wrapper:active {
  cursor: grabbing;
}

.card-3d-wrapper.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid rgba(254, 240, 138, 0.35); /* Subtle gold rim */
  box-shadow: var(--shadow-lg), 0 0 40px rgba(6, 182, 212, 0.25);
  background: linear-gradient(135deg, #0e2030 0%, #08131d 50%, #050c13 100%);
}

.card-front {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  z-index: 2;
}

.card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background: linear-gradient(135deg, #091724 0%, #050d15 100%);
  z-index: 1;
}

.card-3d-wrapper.flipped .card-front {
  pointer-events: none;
  z-index: 1;
}

.card-3d-wrapper.flipped .card-back {
  pointer-events: auto;
  z-index: 2;
}

/* Holographic dynamic sheen */
.holographic-glare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(6, 182, 212, 0.15) 40%,
    rgba(254, 240, 138, 0.25) 50%,
    rgba(16, 185, 129, 0.15) 60%,
    transparent 80%
  );
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0.6;
  transition: transform 0.1s ease;
}

/* License Card Header */
.license-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(254, 240, 138, 0.25);
  padding-bottom: 12px;
}

.council-emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-sheen);
  color: #0b1520;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.council-titles {
  flex: 1;
}

.council-titles h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fef08a;
  line-height: 1.2;
}

.council-titles p {
  font-size: 0.72rem;
  color: #94a3b8;
}

.chip-graphic {
  color: #fef08a;
  font-size: 1.8rem;
  opacity: 0.85;
}

.license-banner {
  text-align: center;
  background: rgba(245, 158, 11, 0.14);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.license-banner span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fef08a;
  font-family: var(--font-mono);
}

/* License Body Layout */
.license-body {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 20px;
  align-items: center;
  margin: 6px 0;
}

.license-photo-frame {
  position: relative;
  width: 105px;
  height: 125px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(254, 240, 138, 0.5);
  background: #04090e;
  box-shadow: var(--shadow-sm);
}

.license-id-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.license-photo-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 185, 129, 0.85);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.05em;
}

.license-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.data-group {
  display: flex;
  flex-direction: column;
}

.data-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.data-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.data-value.highlight {
  font-size: 1.05rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

.data-value.badge-reg {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
  width: fit-content;
}

/* License Card Footer */
.license-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.security-barcode {
  display: flex;
  flex-direction: column;
}

.barcode-lines {
  font-family: var(--font-mono);
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.barcode-num {
  font-size: 0.6rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.security-stamp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--accent-emerald);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flip-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Card Back Styles */
.legal-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-cyan);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
}

.legal-notice-box i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-top: 2px;
}

.legal-notice-box p {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.card-back-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.back-stat {
  background: rgba(14, 30, 48, 0.6);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.stat-title {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.stat-desc {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.card-back-doc-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  border: 1px dashed var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-back-doc-preview:hover {
  background: rgba(6, 182, 212, 0.22);
}

.secure-token {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}

.profile-frame-glow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-highlight);
  margin-bottom: 24px;
}

.about-main-img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.profile-frame-glow:hover .about-main-img {
  transform: scale(1.03);
}

.experience-badge-float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--bg-surface-elevated);
  backdrop-filter: var(--glass-blur);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.exp-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-emerald);
  line-height: 1;
}

.exp-text {
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 600;
}

.quick-facts-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  backdrop-filter: var(--glass-blur);
}

.quick-facts-box h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facts-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.facts-list li strong {
  color: var(--text-primary);
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.about-content p {
  margin-bottom: 16px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}

.pillar-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.14);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.pillar-card h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Clinical Experience & Rotations
   ========================================================================== */

.hospital-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--glass-blur);
}

.hospital-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hospital-logo-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #ffffff;
  flex-shrink: 0;
}

.gov-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hospital-info h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.hospital-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rotations-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--glass-blur);
}

.rotation-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #ffffff;
  background: var(--gradient-primary);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.rotation-panels {
  min-height: 260px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: center;
}

.panel-text h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

.panel-text p {
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.task-list li i {
  color: var(--accent-emerald);
  margin-top: 4px;
}

.panel-card-highlight {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-circle {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.stat-circle .number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-circle .label {
  font-size: 0.65rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.highlight-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* ==========================================================================
   Skills Matrix Section
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: var(--glass-blur);
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md), 0 0 25px rgba(6, 182, 212, 0.15);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.category-header h3 {
  font-size: 1.15rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.skill-pct {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.progress-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Verified Documents Section
   ========================================================================== */

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.document-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.document-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(6, 182, 212, 0.25);
}

.doc-badge-verified {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.doc-thumbnail-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #04090e;
}

.doc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.document-card:hover .doc-thumb-img {
  transform: scale(1.06);
}

.doc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 13, 20, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.doc-overlay i {
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

.doc-overlay span {
  font-size: 0.8rem;
  font-weight: 600;
}

.document-card:hover .doc-overlay {
  opacity: 1;
}

.academic-icon-display {
  height: 220px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent-cyan);
}

.doc-details {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doc-type-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.doc-details h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.doc-summary {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.doc-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.doc-meta-pills span {
  font-size: 0.72rem;
  background: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-card-glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 45px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: var(--glass-blur);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.channel-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.channel-item strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.direct-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Contact Form */
.form-container {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form-container h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(7, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.form-success-banner {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-copy p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Document Modal / Lightbox
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

#doc-modal {
  z-index: 9999 !important;
}

.modal-container {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.modal-header h3 {
  font-size: 1.15rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--accent-red);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #02060a;
}

.modal-img-wrapper {
  max-height: 65vh;
  overflow: auto;
  border-radius: var(--radius-sm);
}

.modal-img-wrapper img {
  max-height: 65vh;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.modal-seal {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .portrait-card-3d {
    max-width: 360px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .documents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .panel-content {
    grid-template-columns: 1fr;
  }

  .hospital-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-stage {
    height: 480px;
  }

  .license-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .license-photo-frame {
    margin: 0 auto;
  }

  .license-data-grid {
    grid-template-columns: 1fr;
  }

  .license-footer {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   CLINICIAN DOCUMENT VAULT & LOGIN PORTAL STYLES
   ========================================================================== */

/* Navbar Portal Button */
.btn-portal {
  background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
  color: #060d15 !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  border: 1px solid rgba(254, 240, 138, 0.5);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.6);
  color: #000000 !important;
}

.btn-portal-hero {
  background: rgba(245, 158, 11, 0.14);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.2);
}

.btn-portal-hero:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fef08a;
  transform: translateY(-2px);
  color: #ffffff;
}

.nav-vault-link {
  color: #f59e0b !important;
  font-weight: 700 !important;
}

/* Vault Modal Overrides */
.vault-overlay {
  z-index: 2500;
}

.vault-modal-container {
  max-width: 1080px;
  width: 95%;
  height: 92vh;
  max-height: 880px;
  background: var(--bg-primary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(6, 182, 212, 0.2);
  overflow: hidden;
}

.vault-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Vault Login Screen */
#vault-login-view {
  max-width: 520px;
  margin: auto;
  padding: 40px 30px;
  text-align: center;
}

.vault-lock-orb {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  border: 2px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #f59e0b;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.35);
  animation: pulseOrb 2.5s infinite;
}

@keyframes pulseOrb {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(245, 158, 11, 0.25); }
  50% { transform: scale(1.08); box-shadow: 0 0 35px rgba(245, 158, 11, 0.55); }
}

.vault-close-top {
  position: absolute;
  top: 18px;
  right: 22px;
}

.vault-login-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.vault-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.vault-login-form {
  text-align: left;
}

.pass-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pass-input-wrap input {
  padding-right: 44px;
}

.btn-toggle-pass {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.05rem;
}

.btn-toggle-pass:hover {
  color: var(--accent-cyan);
}

.vault-hint {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.vault-hint strong {
  color: var(--accent-emerald);
}

.vault-error-msg {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  margin-bottom: 16px;
}

.vault-login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.vault-login-footer {
  margin-top: 28px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Vault Dashboard Screen */
.vault-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
}

.vault-user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vault-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
}

.vault-user-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-user-title h3 {
  font-size: 1.2rem;
  margin: 0;
}

.badge-vault-auth {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.vault-user-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.vault-user-meta strong {
  color: var(--text-secondary);
}

.vault-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

/* Dashboard Filter Bar */
.vault-filter-bar {
  display: flex;
  gap: 10px;
  padding: 12px 26px;
  background: rgba(7, 13, 20, 0.4);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.vault-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.vault-filter-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.vault-filter-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

/* Dashboard Documents Grid */
.vault-docs-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px 26px;
}

.vault-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.vault-item-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  backdrop-filter: var(--glass-blur);
}

.vault-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md), 0 0 20px rgba(6, 182, 212, 0.15);
}

.vault-item-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 13, 20, 0.85);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 5;
}

.vault-thumb-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #02060a;
  overflow: hidden;
  cursor: pointer;
}

.vault-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.vault-thumb-wrap:hover .vault-thumb-img {
  transform: scale(1.08);
}

.vault-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 13, 20, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.vault-thumb-wrap:hover .vault-thumb-overlay {
  opacity: 1;
}

.vault-item-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vault-item-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.vault-item-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex: 1;
}

.vault-item-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.vault-item-meta span strong {
  color: var(--text-secondary);
}

.vault-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vault-item-actions .btn {
  flex: 1;
  text-align: center;
}

/* Vault Upload Area */
.vault-upload-zone {
  background: rgba(6, 182, 212, 0.04);
  border: 2px dashed rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-fast);
}

.vault-upload-zone:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.upload-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.vault-upload-zone h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.vault-upload-zone p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.upload-inputs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.upload-title-input {
  flex: 1;
  min-width: 180px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(7, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  color: #ffffff;
  font-size: 0.84rem;
  outline: none;
}

.upload-cat-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(7, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  color: #ffffff;
  font-size: 0.84rem;
  outline: none;
}

.upload-file-btn {
  cursor: pointer;
}

/* Quick Copy Summary Bar */
.vault-quick-copy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 26px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.copy-label {
  color: var(--text-muted);
}

.copy-field code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

.btn-copy-mini {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  transition: color var(--transition-fast);
}

.btn-copy-mini:hover {
  color: var(--accent-emerald);
}

@media (max-width: 768px) {
  .vault-dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .vault-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .upload-inputs-row {
    flex-direction: column;
  }
}

