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

/* ============================================================
   CSS Custom Properties — Light / Dark Themes
   ============================================================ */
:root, [data-theme="light"] {
  --bg:          #f8f9fa;
  --bg-card:     #ffffff;
  --bg-input:    #ffffff;
  --bg-sidebar:  #1e293b;
  --text:        #0f172a;
  --text-inv:    #f8f9fa;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --primary:     #2563eb;
  --primary-hover: #1d4ed8;
  --primary-text: #ffffff;
  --accent:      #0ea5e9;
  --success:     #22c55e;
  --danger:      #ef4444;
  --warning:     #f59e0b;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --radius:      .75rem;
  --radius-sm:   .375rem;
  --transition:  150ms ease;
}

[data-theme="dark"] {
  --bg:          #0f172a;
  --bg-card:     #1e293b;
  --bg-input:    #1e293b;
  --bg-sidebar:  #0f172a;
  --text:        #f1f5f9;
  --text-inv:    #0f172a;
  --muted:       #94a3b8;
  --border:      #334155;
  --primary:     #3b82f6;
  --primary-hover: #2563eb;
  --primary-text: #ffffff;
  --accent:      #38bdf8;
  --success:     #4ade80;
  --danger:      #f87171;
  --warning:     #fbbf24;
  --shadow:      0 1px 3px rgba(0,0,0,.3);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.4);
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   Utility Cards
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ============================================================
   Forms
   ============================================================ */
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .375rem;
  color: var(--text);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: .625rem .875rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9375rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform 80ms;
  font-family: inherit;
}
.btn-primary:active, .btn-secondary:active { transform: scale(.98); }

.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }

.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); text-decoration: none; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; text-decoration: none; }

.btn-ghost { background: transparent; color: var(--muted); padding: .375rem .75rem; }
.btn-ghost:hover { color: var(--text); background: var(--bg); }

.btn-sm { padding: .375rem .75rem; font-size: .8125rem; }

button:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   Install Wizard
   ============================================================ */
.step-dot {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 600;
  background: var(--border);
  color: var(--muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.step-dot.active { background: var(--primary); color: #fff; }
.step-dot.done { background: var(--success); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); transition: background var(--transition); }
.step-line.done { background: var(--success); }

.theme-option {
  flex: 1;
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
}
.theme-option.active { border-color: var(--primary); background: rgba(59,130,246,.07); }
.theme-option:hover { border-color: var(--primary); }

/* ============================================================
   Toast Notifications
   ============================================================ */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none;
}
.toast {
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toast-in .2s ease;
  pointer-events: auto;
  max-width: 22rem;
}
.toast.success { background: var(--success); color: #fff; }
.toast.error   { background: var(--danger);  color: #fff; }
.toast.info    { background: var(--primary); color: #fff; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Admin Layout
   ============================================================ */
.admin-shell {
  display: flex; min-height: 100vh;
}

.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--bg-sidebar);
  color: var(--text-inv);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  transition: transform var(--transition);
  z-index: 100;
}

.admin-sidebar .sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.025em;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-nav { padding: .75rem 0; flex: 1; }

.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: .9375rem;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.sidebar-link.active { color: #fff; background: rgba(255,255,255,.1); border-left-color: var(--primary); }
.sidebar-link .icon { font-size: 1.1rem; width: 1.4rem; text-align: center; }

.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  min-width: 0;
}

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed; top: 1rem; left: 1rem;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed; left: 0; top: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-md);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .admin-main { padding: 1rem; padding-top: 4rem; }
}

/* ============================================================
   Admin Table
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-size: .8125rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  padding: .625rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }

/* ============================================================
   Skill Rating (1–5 dots)
   ============================================================ */
.rating-input { display: flex; gap: .375rem; }
.rating-dot {
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), transform 80ms;
}
.rating-dot:hover, .rating-dot.filled { background: var(--primary); }
.rating-dot:hover { transform: scale(1.15); }

/* ============================================================
   Public CV — General
   ============================================================ */
.cv-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.cv-section:last-child { border-bottom: none; }
.section-title {
  font-size: 1.75rem; font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 2rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block; width: 3rem; height: 3px;
  background: var(--primary);
  margin-top: .5rem;
  border-radius: 2px;
}

/* ============================================================
   Hero Section
   ============================================================ */
#section-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-card) 100%);
}
.hero-inner {
  display: flex; align-items: center; gap: 3rem;
}
.hero-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.hero-photo-placeholder {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.hero-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.hero-title {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: .375rem;
}
.hero-taglines { margin-top: 1rem; color: var(--muted); line-height: 1.8; }
.hero-cta { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero-inner { flex-direction: column; text-align: center; align-items: center; }
  .hero-cta { justify-content: center; }
}

/* ============================================================
   Quick Facts
   ============================================================ */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }

.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}
.fact-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.fact-label { font-size: .8125rem; color: var(--muted); margin-top: .25rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

.facts-top-skills {
  grid-column: 1 / -1;
  margin-top: .25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.facts-top-skills-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}
.facts-top-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* ============================================================
   Competencies
   ============================================================ */
.competencies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .competencies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .competencies-grid { grid-template-columns: repeat(3, 1fr); } }

.comp-group-card { padding: 1.5rem; }
.comp-group-name { font-weight: 700; font-size: 1.0625rem; margin-bottom: 1rem; color: var(--text); }

.comp-item-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .375rem 0;
  border-bottom: 1px solid var(--border);
}
.comp-item-row:last-child { border-bottom: none; }
.comp-item-name { font-size: .9375rem; }
.comp-dots { display: flex; gap: .25rem; }
.comp-dot {
  width: .75rem; height: .75rem;
  border-radius: 50%;
  background: var(--border);
}
.comp-dot.filled { background: var(--primary); }

/* ============================================================
   Experience Timeline
   ============================================================ */
.experience-list { position: relative; padding-left: 1.5rem; }
.experience-list::before {
  content: '';
  position: absolute; left: 0; top: .5rem; bottom: .5rem;
  width: 2px;
  background: var(--border);
}

.exp-card {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}
.exp-card::before {
  content: '';
  position: absolute; left: -1.5rem; top: .4rem;
  width: .75rem; height: .75rem;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
}

.exp-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.exp-logo {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
  border: 1px solid var(--border);
  padding: .25rem;
  background: var(--bg-card);
  flex-shrink: 0;
}
.exp-logo-placeholder {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--border);
  flex-shrink: 0;
}
.exp-title { font-weight: 700; font-size: 1.0625rem; }
.exp-company { color: var(--primary); font-weight: 500; }
.exp-dates { font-size: .875rem; color: var(--muted); margin-top: .125rem; }
.exp-desc { color: var(--muted); font-size: .9375rem; margin-top: .5rem; line-height: 1.7; }
.exp-skills { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }
.skill-tag {
  font-size: .75rem; font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 9999px;
  background: rgba(37,99,235,.1);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,.2);
}

/* ============================================================
   Projects Grid
   ============================================================ */
.projects-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card { padding: 1.5rem; }
.project-name { font-weight: 700; font-size: 1.0625rem; }
.project-client { font-size: .875rem; color: var(--primary); font-weight: 500; }
.project-dates { font-size: .8125rem; color: var(--muted); margin-top: .25rem; }
.project-desc { font-size: .9375rem; color: var(--muted); margin-top: .625rem; line-height: 1.6; }

/* ============================================================
   Certifications
   ============================================================ */
.cert-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }

.cert-card { padding: 1.5rem; display: flex; flex-direction: column; }
.cert-top { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.cert-badge { width: 3.5rem; height: 3.5rem; object-fit: contain; border-radius: var(--radius-sm); flex-shrink: 0; }
.cert-name { font-weight: 700; font-size: 1rem; }
.cert-date { font-size: .8125rem; color: var(--muted); }
.cert-desc { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.cert-image { margin-top: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; cursor: pointer; }
.cert-image img { width: 100%; object-fit: cover; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card { padding: 1.75rem; }
.testimonial-quote { font-size: 1rem; line-height: 1.75; color: var(--text); position: relative; padding-left: 1.25rem; }
.testimonial-quote::before { content: '"'; position: absolute; left: 0; top: -.25rem; font-size: 2rem; color: var(--primary); line-height: 1; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.testimonial-photo { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-photo-placeholder { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; }
.testimonial-name { font-weight: 600; font-size: .9375rem; }
.testimonial-role { font-size: .8125rem; color: var(--muted); }

/* ============================================================
   Languages
   ============================================================ */
.languages-list {
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.lang-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
}
.lang-flag { font-size: 1.75rem; }
.lang-name { font-weight: 600; font-size: .9375rem; }
.lang-level { font-size: .8125rem; color: var(--muted); margin-top: .1rem; }

/* ============================================================
   Contact Section
   ============================================================ */
.contact-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-links { display: flex; flex-direction: column; gap: .75rem; }
.contact-link {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1.125rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.contact-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.contact-link .icon { font-size: 1.25rem; }

/* ============================================================
   Public Header / Nav
   ============================================================ */
.cv-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg-card-rgb, 255,255,255), .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
[data-theme="dark"] .cv-header { background: rgba(30,41,59,.92); }

.cv-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.header-name { font-weight: 700; font-size: 1.0625rem; }
.header-title { font-size: .8125rem; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .375rem .5rem;
  cursor: pointer; color: var(--text);
  font-size: 1rem;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg); }

.lang-switcher select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .375rem .5rem;
  color: var(--text);
  font-size: .875rem;
  cursor: pointer;
}

/* ============================================================
   PDF Download Button
   ============================================================ */
.pdf-download-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  background: var(--primary); color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.pdf-download-btn:hover { background: var(--primary-hover); text-decoration: none; color: #fff; }

.pdf-fab {
  display: none;
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.375rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 40;
  align-items: center; justify-content: center;
  transition: background var(--transition), transform 80ms;
}
.pdf-fab:hover { background: var(--primary-hover); }
.pdf-fab:active { transform: scale(.95); }

@media (max-width: 640px) {
  .pdf-download-btn { display: none; }
  .pdf-fab { display: flex; }
}

/* ============================================================
   Container
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ============================================================
   Print / PDF styles
   ============================================================ */
@media print {
  .cv-header, .pdf-download-btn, .pdf-fab, .theme-toggle, .lang-switcher { display: none !important; }
  .cv-section { padding: 2rem 0; break-inside: avoid; }
  body { background: white; color: black; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================
   Scrollbar (webkit)
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .4s ease both; }

/* Admin message badge */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.25rem; height: 1.25rem;
  padding: 0 .35rem;
  background: var(--danger); color: #fff;
  font-size: .6875rem; font-weight: 700;
  border-radius: 9999px;
}

/* Image preview in admin */
.img-preview {
  width: 6rem; height: 6rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: .5rem;
}
.img-preview-wide {
  width: 100%; max-height: 12rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: .5rem;
  background: var(--bg);
}

/* Tabs */
.tab-nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: .625rem 1rem;
  font-size: .9375rem; font-weight: 500;
  border: none; background: none; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Hidden utility */
.hidden { display: none !important; }
