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

:root {
  --primary:     #2563eb;
  --secondary:   #1d4ed8;
  --accent:      #f59e0b;
  --background:  #f1f5f9;
  --surface:     #ffffff;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --header-bg:   #0f172a;
  --header-text: #f8fafc;
  --footer-bg:   #0f172a;
  --footer-text: #94a3b8;
  --hero-bg:     #1e293b;
  --hero-text:   #f8fafc;
  --btn-text:    #ffffff;
  --radius:      0.5rem;
  --radius-lg:   1rem;
  --shadow:      0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --transition:  150ms ease;
  --max-w:       1140px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: .75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 3rem; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ============================================================
   CARDS & BUTTONS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--primary);   color: var(--btn-text); }
.btn-primary:hover { background: var(--secondary); }
.btn-accent   { background: var(--accent);    color: #1e293b; }
.btn-accent:hover { filter: brightness(1.05); }
.btn-outline  { background: transparent; color: var(--hero-text); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-secondary{ background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #cbd5e1; }
.btn-danger   { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success  { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-warning  { background: #f59e0b; color: #1e293b; }
.btn-warning:hover { background: #d97706; }
.btn-sm       { padding: .35rem .75rem; font-size: .8rem; }
.btn-block    { width: 100%; justify-content: center; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: .875rem 1.125rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: .9rem;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: #fef9c3; color: #a16207; border: 1px solid #fde68a; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none;
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.header-nav a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}
.header-nav a:hover { color: #fff; }
.admin-link {
  font-size: 1.1rem !important;
  opacity: .5;
}
.admin-link:hover { opacity: 1 !important; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--header-bg);
  padding: .5rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-nav a {
  color: rgba(255,255,255,.8);
  padding: .75rem 1.25rem;
  font-size: .95rem;
  text-decoration: none;
  transition: background var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); }
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,.04), transparent 60%);
  pointer-events: none;
}

/* Single person */
.hero-single {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .5rem;
}
.hero-title {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-desc { opacity: .85; max-width: 540px; margin-bottom: 1.5rem; }
.hero-cta  { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Couple */
.hero-couple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.hero-person h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 1rem;
}
.hero-tagline {
  text-align: center;
  opacity: .8;
  max-width: 600px;
  margin: 2.5rem auto 0;
  font-size: 1.05rem;
}

/* Photos */
.hero-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-lg  { width: 260px; height: 260px; }
.hero-photo-placeholder {
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
}
.hero-photo-placeholder svg { width: 45%; height: 45%; }

/* ============================================================
   BIO SECTION
   ============================================================ */
.bio-section { background: var(--surface); }
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.bio-card { text-align: center; }
.bio-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
}
.bio-card h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.bio-role { color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.bio-text { color: var(--text-muted); text-align: left; }
.bio-single .bio-text {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 780px;
  line-height: 1.8;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-section { background: var(--background); }
.exp-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.exp-person-name {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: .45rem; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1.7rem;
  top: 1.25rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-content { padding: 1.25rem; }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}
.timeline-header strong { font-size: 1rem; }
.timeline-dates { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.timeline-company { color: var(--primary); font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
.timeline-desc { font-size: .9rem; color: var(--text-muted); }

/* ============================================================
   RESUMES
   ============================================================ */
.resumes-section { background: var(--surface); }
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.resume-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.resume-icon svg {
  width: 2.5rem; height: 2.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.resume-info { flex: 1; }
.resume-label { font-weight: 600; display: block; }
.resume-person { font-size: .85rem; color: var(--text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--background); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.contact-item .icon {
  width: 1.25rem; height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--primary); }

.contact-form-wrap h3 { margin-bottom: 1.25rem; font-size: 1.2rem; }
.contact-form { }
.hp-field { display: none !important; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="color"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .6rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================================
   COMMENTS (PUBLIC)
   ============================================================ */
.comments-section { background: var(--surface); }
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.comment-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.comment-avatar {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.comment-body { flex: 1; }
.comment-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .4rem;
}
.comment-header strong { font-size: .95rem; }
.comment-date { font-size: .8rem; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 0;
}
.footer-inner { text-align: center; }
.footer-name { font-weight: 700; font-size: 1.1rem; margin-bottom: .35rem; color: #fff; }
.footer-copy { font-size: .85rem; opacity: .6; }

/* ============================================================
   AUTH PAGES (login / setup)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  padding: 1.5rem;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 1.5rem;
}
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: .5rem; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 1.75rem; }
.auth-note { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 1.25rem; }
.auth-note a { color: var(--primary); }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-body {
  background: #f8fafc;
  color: var(--text);
}
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--header-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-header {
  padding: 1.25rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-logo { color: #fff; }
.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.sidebar-nav { flex: 1; padding: .75rem 0; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.sidebar-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-left-color: var(--accent);
}
.sidebar-icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.badge-pending {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: .72rem;
  padding: .1rem .4rem;
  border-radius: 999px;
  font-weight: 700;
}
.sidebar-footer {
  padding: .75rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-logout { color: rgba(255,100,100,.75); }
.sidebar-logout:hover { color: #f87171; background: rgba(239,68,68,.1); }

/* Admin main */
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: .2rem;
}
.sidebar-toggle svg { width: 1.5rem; height: 1.5rem; }
.admin-page-title { font-size: 1.15rem; font-weight: 700; }
.topbar-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: .8rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.admin-content { padding: 1.75rem 1.5rem; max-width: 900px; }

/* Admin form cards */
.admin-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-card { display: flex; flex-direction: column; gap: 1rem; }
.form-card h2 { font-size: 1.05rem; font-weight: 700; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.form-card h3 { font-size: .95rem; font-weight: 700; }
.form-card.bg-tint { background: #f8fafc; }
.form-note { font-size: .82rem; color: var(--text-muted); display: inline; }
.mt-1 { margin-top: 1rem; }

/* Experience entries in admin */
.exp-entry { margin-bottom: 1rem; }
.exp-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.exp-entry-header strong { font-size: .9rem; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; font-size: .85rem; cursor: pointer; }
.checkbox-label.danger { color: #ef4444; }

/* Toggle switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
}
.toggle-label input[type="checkbox"] { display: none; }
.toggle-track {
  width: 2.75rem; height: 1.5rem;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-track::after {
  content: '';
  position: absolute;
  left: .2rem; top: .2rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  transition: left var(--transition);
}
.toggle-label input:checked + .toggle-track { background: var(--primary); }
.toggle-label input:checked + .toggle-track::after { left: calc(100% - 1.3rem); }

/* Upload preview */
.upload-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}
.upload-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.preview-photo { width: 80px; height: 80px; }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.admin-table th {
  text-align: left;
  padding: .6rem .75rem;
  background: var(--background);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table td input[type="text"] { padding: .35rem .6rem; }

/* Comment moderation */
.comment-mod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: .75rem;
}
.comment-mod-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.comment-mod-meta strong { color: var(--text); font-size: .95rem; }
.comment-mod-body { margin-bottom: .75rem; font-size: .9rem; }
.comment-mod-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.empty-state { color: var(--text-muted); font-style: italic; }

/* Badges */
.badge { padding: .15rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-num { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color:#fff; border-radius:999px; font-size:.72rem; font-weight:700; min-width:1.25rem; height:1.25rem; padding: 0 .3rem; margin-left:.35rem; }

/* Tabs (comment moderation) */
.tabs {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: .6rem 1.1rem;
  background: none;
  border: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Color palette grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.color-preview-wrap { position: relative; }
.color-preview-wrap input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
}
.color-swatch {
  display: block;
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.color-swatch:hover { transform: scale(1.06); }
.color-label { font-size: .78rem; font-weight: 600; color: var(--text); }
.color-hex { font-size: .72rem; color: var(--text-muted); font-family: monospace; }

/* ============================================================
   LINKS SECTION (public)
   ============================================================ */
.links-section { background: var(--background); }

.links-group { margin-bottom: 2.5rem; }
.links-group:last-child { margin-bottom: 0; }

.links-group-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.links-group-title svg {
  width: 1rem; height: 1rem;
  color: var(--primary);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.125rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.link-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.link-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.link-label {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-desc {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-url {
  font-size: .75rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-external {
  flex-shrink: 0;
  width: 1rem; height: 1rem;
  color: var(--text-muted);
  opacity: .5;
  transition: opacity var(--transition);
}
.link-card:hover .link-external { opacity: 1; color: var(--primary); }

/* Admin links list */
.links-admin-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.link-admin-row {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.link-admin-footer { display: flex; justify-content: flex-end; margin-top: .5rem; }

/* ============================================================
   BACKUP SECTION (admin)
   ============================================================ */
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }

.backup-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}
.backup-info-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  background: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.backup-icon {
  width: 1.5rem; height: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .1rem;
}
.backup-info-item div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.backup-info-item strong { font-size: .9rem; }
.backup-info-item span { font-size: .8rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.6rem; }

  /* Header */
  .header-nav { display: none; }
  .menu-toggle { display: block; }

  /* Hero */
  .hero-single { flex-direction: column; text-align: center; }
  .hero-photo, .hero-photo-lg { width: 180px; height: 180px; }
  .hero-cta { justify-content: center; }
  .hero-desc { max-width: 100%; }
  .hero-couple { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Bio */
  .bio-single .bio-text { font-size: 1rem; }

  /* Experience */
  .exp-columns { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Admin sidebar — off-canvas */
  .admin-sidebar {
    position: fixed;
    left: -280px;
    top: 0; bottom: 0;
    z-index: 1000;
    transition: left .25s ease;
  }
  .admin-sidebar.open { left: 0; }
  .sidebar-toggle { display: block; }
  .sidebar-close { display: block; }

  /* Admin content */
  .admin-content { padding: 1.25rem 1rem; }
  .admin-topbar { padding: .875rem 1rem; }
  .admin-table { font-size: .8rem; }
  .admin-table th, .admin-table td { padding: .5rem; }

  /* Comments grid */
  .comments-grid { grid-template-columns: 1fr; }

  /* Resume grid */
  .resume-grid { grid-template-columns: 1fr; }

  /* Links grid */
  .links-grid { grid-template-columns: 1fr; }
  .backup-info-grid { grid-template-columns: 1fr 1fr; }

  /* Color grid */
  .color-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 480px) {
  .hero-couple { grid-template-columns: 1fr; }
  .hero-photo { width: 140px; height: 140px; margin: 0 auto; }
  .auth-card { padding: 2rem 1.25rem; }
  .bio-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .admin-sidebar { left: 0 !important; }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.sidebar-overlay.open { display: block; }
