/* ============================================================
   DESIGN TOKENS & PALETTE
   ============================================================ */
:root {
  /* Public Decoy Theme (Modern Slate Obsidian) */
  --bg-primary: #0b0f17;
  --bg-surface: #121824;
  --bg-surface-elevated: #1a2233;
  --bg-glass: rgba(18, 24, 36, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.35);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;

  --shadow-card: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  --shadow-hover: 0 25px 50px -12px rgba(56, 189, 248, 0.15);

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --speed-fast: 0.18s;
  --speed-normal: 0.28s;

  /* Classified Terminal Theme */
  --term-bg: #050807;
  --term-surface: #0a110c;
  --term-panel: #0e1711;
  --term-green: #39ff14;
  --term-green-dim: #1e820c;
  --term-cyan: #00f2fe;
  --term-amber: #f59e0b;
  --term-red: #ef4444;
  --term-border: rgba(57, 255, 20, 0.22);
}

/* ============================================================
   RESET & FOUNDATION
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.25rem;
  position: relative;
  overflow-x: hidden;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.08) 0%, rgba(16, 185, 129, 0.03) 45%, transparent 70%);
  filter: blur(40px);
}

.ambient-glow::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, transparent 65%);
  filter: blur(50px);
}

/* Subtle Grid Matrix Background */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 20%, transparent 80%);
}

/* Accessible focus outlines */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* ============================================================
   PUBLIC DECOY: MAIN CARD
   ============================================================ */
.portfolio-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  animation: cardEntrance 0.5s var(--ease-smooth) both;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top Status Badge */
.header-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.76rem;
  font-weight: 500;
  color: #34d399;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseLight 2s infinite ease-in-out;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.site-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Profile Identity */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.avatar-wrapper {
  position: relative;
  width: 116px;
  height: 116px;
  cursor: pointer;
  user-select: none;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg-surface-elevated);
  position: relative;
  z-index: 2;
  transition: transform var(--speed-normal) var(--ease-smooth), border-color var(--speed-normal);
}

.avatar-wrapper:hover .avatar-image {
  transform: scale(1.03);
  border-color: var(--accent-cyan);
}

.avatar-halo {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(16, 185, 129, 0.3), transparent);
  z-index: 1;
  transition: opacity var(--speed-normal);
}

.avatar-wrapper:hover .avatar-halo {
  opacity: 0.9;
  filter: blur(4px);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
}

.profile-role {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Card Separator */
.card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
}

/* Bio Description */
.bio-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bio-paragraph {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Competency & Focus Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--speed-fast) ease;
}

.tech-tag:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Quick Details Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.info-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-box-label {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-box-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Contact List */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.action-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.contact-card-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--speed-fast) var(--ease-smooth);
}

.contact-card-link:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--border-accent);
  transform: translateX(2px);
}

.icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.icon-wrapper svg {
  width: 17px;
  height: 17px;
}

.contact-detail-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-mini {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  min-height: 48px;
  min-width: 48px;
  padding: 0 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--speed-fast) ease;
}

.btn-copy-mini:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--border-accent);
  color: var(--text-main);
}

.btn-copy-mini.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* Public Footer & Covert Trigger */
.public-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding-top: 0.25rem;
}

.footer-copy {
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all var(--speed-fast) ease;
}

.system-status-indicator:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.covert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

/* ============================================================
   DECOY BYPASS TERMINAL OVERLAY
   ============================================================ */
.hacker-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 7, 5, 0.94);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.hacker-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal-box {
  width: 100%;
  max-width: 640px;
  background: #060b08;
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(57, 255, 20, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: terminalScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes terminalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.terminal-topbar {
  background: #0a140d;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #86efac;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-console {
  padding: 1.5rem;
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  color: #39ff14;
  background: #040805;
  position: relative;
}

.terminal-console::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%);
  background-size: 100% 4px;
}

.line-entry {
  margin-bottom: 0.45rem;
  word-break: break-word;
}

.line-normal { color: #86efac; }
.line-warning { color: #facc15; }
.line-success { color: #38bdf8; font-weight: 600; }
.line-danger { color: #f87171; }

.term-blinking-cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: #39ff14;
  vertical-align: middle;
  margin-left: 4px;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Screen shake effect */
.shake-effect {
  animation: shakeAnimation 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shakeAnimation {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* ============================================================
   CLASSIFIED SECRET TERMINAL (secret.html)
   ============================================================ */
body.classified-body {
  background-color: var(--term-bg);
  font-family: var(--font-sans);
  color: #d1fae5;
  padding: 1.75rem 1.25rem;
  justify-content: flex-start;
}

#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

.classified-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: cardEntrance 0.4s var(--ease-smooth) both;
}

/* Classified Header & Command Bar */
.classified-header {
  background: var(--term-surface);
  border: 1px solid var(--term-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(57, 255, 20, 0.06);
}

.classified-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.classified-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.security-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-title-block h1 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #39ff14;
  letter-spacing: 0.02em;
}

.header-subtitle-block {
  font-size: 0.78rem;
  color: #6ee7b7;
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Tactical Action Buttons */
.btn-tactical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  min-height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(57, 255, 20, 0.25);
  color: #a7f3d0;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--speed-fast) ease;
}

.btn-tactical:hover {
  background: rgba(57, 255, 20, 0.12);
  border-color: #39ff14;
  color: #fff;
  transform: translateY(-1px);
}

.btn-panic {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.btn-panic:hover {
  background: #dc2626;
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Tabs Navigation */
.tabs-navigation {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--term-border);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--speed-fast) ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #a7f3d0;
  background: rgba(57, 255, 20, 0.05);
}

.tab-btn.active {
  background: rgba(57, 255, 20, 0.14);
  border-color: rgba(57, 255, 20, 0.35);
  color: #39ff14;
  font-weight: 600;
}

/* Tab Panels Container */
.tab-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: panelFade 0.25s ease both;
}

.tab-panel.active {
  display: flex;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Box Styling */
.classified-card {
  background: var(--term-surface);
  border: 1px solid var(--term-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.classified-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.15);
  padding-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #39ff14;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Codes & Keys Grid */
.keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.vault-item {
  background: var(--term-panel);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: border-color var(--speed-fast) ease;
}

.vault-item:hover {
  border-color: rgba(57, 255, 20, 0.45);
}

.vault-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vault-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #6ee7b7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vault-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050806;
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #00f2fe;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.vault-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-icon-tactical {
  background: transparent;
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  min-height: 34px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--speed-fast) ease;
}

.btn-icon-tactical:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: #39ff14;
  color: #fff;
}

/* Birthday Intelligence Table */
.birthday-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-radius: var(--radius-md);
  background: var(--term-panel);
}

.birthday-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.birthday-table th {
  background: rgba(57, 255, 20, 0.08);
  color: #86efac;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

.birthday-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.1);
  color: #e2e8f0;
}

.birthday-table tr:last-child td {
  border-bottom: none;
}

.birthday-table tr:hover td {
  background: rgba(57, 255, 20, 0.04);
}

.badge-tag-intel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
}

/* Interactive Notepad */
.notes-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.notes-editor {
  width: 100%;
  min-height: 220px;
  background: #050806;
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #39ff14;
  outline: none;
  resize: vertical;
  transition: border-color var(--speed-fast) ease, box-shadow var(--speed-fast) ease;
}

.notes-editor:focus {
  border-color: #39ff14;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
}

.notes-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notes-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6ee7b7;
}

/* Footer Notice */
.classified-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #6ee7b7;
  padding: 0.5rem 0 1.5rem 0;
}

/* ============================================================
   RESPONSIVENESS (Mobile-first check)
   ============================================================ */
@media (max-width: 640px) {
  body {
    padding: 1.25rem 0.85rem;
  }

  .portfolio-card {
    padding: 1.75rem 1.25rem;
    gap: 1.35rem;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .classified-header {
    padding: 1.15rem 1rem;
  }

  .classified-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions-group {
    width: 100%;
    justify-content: flex-start;
  }

  .tabs-navigation {
    padding-bottom: 0.75rem;
  }
}

/* ============================================================
   CLASSIFIED MODALS (Data editing without deploy)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 7, 5, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #080f0b;
  border: 1px solid rgba(57, 255, 20, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(57, 255, 20, 0.1);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-box.modal-box-lg {
  max-width: 600px;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #39ff14;
  letter-spacing: 0.04em;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.modal-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(57, 255, 20, 0.15);
  background: #050a07;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-modal-save {
  background: rgba(57, 255, 20, 0.18);
  border-color: #39ff14;
  color: #39ff14;
}

.btn-modal-save:hover {
  background: #39ff14;
  color: #040805;
}

/* Forms in Modal */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  background: #050806;
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #39ff14;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #f87171;
  min-height: 1.1rem;
}

/* ============================================================
   NOTES PIN SCREEN
   ============================================================ */
.notes-pin-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #050806;
  border: 1px dashed rgba(57, 255, 20, 0.25);
  border-radius: var(--radius-md);
  gap: 0.75rem;
}

.notes-pin-icon {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.notes-pin-heading {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #39ff14;
  letter-spacing: 0.05em;
  margin: 0;
}

.notes-pin-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  max-width: 360px;
  margin: 0;
}

.notes-pin-input {
  width: 220px;
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 1.25rem;
  padding: 0.65rem 1rem;
  background: #09130c;
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: var(--radius-sm);
  color: #39ff14;
  outline: none;
  margin-top: 0.5rem;
}

.notes-pin-input:focus {
  border-color: #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.notes-pin-error {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 1.2rem;
}

/* ============================================================
   JADWAL (SCHEDULE) SECTION
   ============================================================ */
.jadwal-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.jadwal-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--speed-fast) ease;
}

.jadwal-filter-btn:hover {
  background: rgba(57, 255, 20, 0.08);
  color: #a7f3d0;
}

.jadwal-filter-btn.active {
  background: rgba(57, 255, 20, 0.16);
  border-color: #39ff14;
  color: #39ff14;
  font-weight: 600;
}

#jadwal-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.jadwal-card {
  background: var(--term-panel);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s ease;
}

.jadwal-card:hover {
  border-color: rgba(57, 255, 20, 0.4);
}

.jadwal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.jadwal-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.jadwal-meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #86efac;
  flex-wrap: wrap;
}

.jadwal-category-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: var(--font-mono);
}

.jadwal-category-tag.cat-tugas {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.jadwal-category-tag.cat-ujian,
.jadwal-category-tag.cat-penting {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.jadwal-notes-preview {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.jadwal-actions {
  display: flex;
  gap: 0.45rem;
  align-self: flex-start;
}

.jadwal-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px dashed rgba(57, 255, 20, 0.15);
  border-radius: var(--radius-md);
}
