/* ═══════════════════════════════════════════════════════════
   DASHBOARD.CSS — Khoirul Anam Portfolio Admin
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink:   #161a25;
  --muted: #727685;
  --paper: #f4f3ef;
  --line:  rgba(22,26,37,.10);
  --orange:#fd7758;
  --blue:  #4a90e2;
  --danger:#e24a4a;
  --glass: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.85);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(22,26,37,.08);
}

/* ── Login Page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f9ede9 0%, #edf3e2 50%, #e8f0f9 100%);
  font-family: Manrope, sans-serif;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  padding: 44px;
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(22,26,37,.10);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 14px 'DM Mono', monospace;
  color: var(--ink);
  margin-bottom: 6px;
}
.brand-dot {
  display: none !important;
}
.login-sub {
  font: 10px 'DM Mono', monospace;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 20px;
}
.login-card h1 {
  font-size: 38px;
  letter-spacing: -.06em;
  margin: 0 0 28px;
  line-height: 1.08;
}
.login-error {
  background: #fde8e8;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.login-form { display: grid; gap: 14px; }
.login-form label {
  display: grid;
  gap: 6px;
  font: 800 11px Manrope;
  color: var(--ink);
}
.login-form input[type=password] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.8);
  font: 14px Manrope;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-form input[type=password]:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(253,119,88,.12);
}
.login-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.login-hint code {
  background: #eee;
  border-radius: 4px;
  padding: 2px 5px;
  font-family: 'DM Mono', monospace;
}

/* ── Dashboard Layout ───────────────────────────────────── */
.dash-page {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
  background: var(--paper);
  font-family: Manrope, sans-serif;
  color: var(--ink);
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 230px;
  height: 100vh;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.50);
  backdrop-filter: blur(20px);
  z-index: 20;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 13px 'DM Mono', monospace;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sidebar-label {
  font: 10px 'DM Mono', monospace;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 12px 0 6px 2px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: rgba(22,26,37,.05); color: var(--ink); }
.sidebar-nav a.active {
  background: var(--ink);
  color: #fff;
}
.sidebar-nav a.active svg { stroke: #fff; }
.sidebar-sep { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.sidebar-ext { color: var(--muted) !important; font-size: 12px !important; }
.sidebar-danger { color: var(--danger) !important; margin-top: auto; }

/* ── Main Content ───────────────────────────────────────── */
.dash-main {
  grid-column: 2;
  max-width: 1300px;
  width: 100%;
  padding: 44px 56px 80px;
}
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
.dash-kicker {
  font: 10px 'DM Mono', monospace;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 6px;
}
.dash-header h1 {
  font-size: 34px;
  letter-spacing: -.06em;
  margin: 0;
}
.dash-notice {
  background: #e8f8e0;
  border: 1px solid #c3e8ae;
  color: #3a7d1e;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.dash-error {
  background: #fde8e8;
  border: 1px solid #f5c0c0;
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 20px;
}

/* ── Cards ──────────────────────────────────────────────── */
.dash-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-head { margin-bottom: 24px; }
.card-head h2 { font-size: 20px; letter-spacing: -.04em; margin: 0 0 6px; }
.card-head p  { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── Fields ─────────────────────────────────────────────── */
.field-group { display: grid; gap: 6px; margin-bottom: 16px; }
.field-group.full { grid-column: 1 / -1; }
.field-group label {
  font: 800 11px Manrope;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
.field-hint.optional {
  background: #f0f0ec;
  padding: 2px 7px;
  border-radius: 20px;
}
input[type=text], input[type=number], input[type=url], textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.80);
  font: 13px Manrope;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(253,119,88,.10);
}
input[type=file] {
  padding: 8px;
  font-size: 12px;
  background: rgba(255,255,255,.5);
}
textarea { resize: vertical; min-height: 80px; }

/* ── Photo Preview ──────────────────────────────────────── */
.photo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.photo-preview img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
}
.photo-preview span { font-size: 12px; color: var(--muted); }
.img-thumb img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--line);
}

/* ── Skill Rows ─────────────────────────────────────────── */
.skill-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.skill-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,.60);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.skill-row-num { font: 700 11px 'DM Mono'; color: var(--muted); text-align: center; }
.skill-row-fields {
  display: grid;
  grid-template-columns: 1fr 1.2fr 80px;
  gap: 8px;
}
.sk-pct-wrap { display: flex; align-items: center; gap: 4px; }
.sk-pct      { width: 56px !important; text-align: center; }
.sk-pct-label { font-size: 12px; color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  padding: 13px 22px;
  font: 700 13px Manrope;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,26,37,.18); background: #2a2f3d; }
.btn-primary span  { font-size: 16px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font: 700 12px Manrope;
  text-decoration: none;
  transition: background .15s;
}
.btn-outline:hover { background: rgba(22,26,37,.05); }
.btn-add-row {
  background: none;
  border: 1.5px dashed var(--orange);
  color: var(--orange);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font: 700 12px Manrope;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}
.btn-add-row:hover { background: rgba(253,119,88,.07); }
.btn-add-project {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 2px dashed rgba(22,26,37,.15);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font: 700 13px Manrope;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  margin-bottom: 20px;
}
.btn-add-project:hover { border-color: var(--orange); color: var(--orange); background: rgba(253,119,88,.04); }
.btn-icon-del {
  background: rgba(226,74,74,.1);
  border: 0;
  color: var(--danger);
  border-radius: 6px;
  width: 28px; height: 28px;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
  flex-shrink: 0;
}
.btn-icon-del:hover { background: rgba(226,74,74,.2); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.sticky-actions {
  position: sticky;
  bottom: 24px;
  background: var(--paper);
  padding: 12px 0;
  z-index: 5;
}

/* ── Project Card Editor ─────────────────────────────────── */
.project-card-edit {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.project-card-edit summary { list-style: none; }
.project-card-edit summary::-webkit-details-marker { display: none; }
.pce-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.pce-summary:hover { background: rgba(255,255,255,.9); }
.pce-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font: 700 16px 'DM Mono';
  color: rgba(22,26,37,.4);
}
.pce-thumb.coral { background: #f5ad99; }
.pce-thumb.blue  { background: #a5d5ec; }
.pce-thumb.lime  { background: #d6e69d; }
.pce-thumb img   { width: 100%; height: 100%; object-fit: cover; }
.pce-meta        { flex: 1; min-width: 0; }
.pce-meta strong { display: block; font-size: 14px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.pce-badges      { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pce-badge       { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pce-badge-dev   { background: rgba(22, 26, 37, 0.08); color: var(--ink); }
.pce-badge-paper { background: rgba(22, 26, 37, 0.08); color: var(--ink); }
.pce-badge-other { background: rgba(22, 26, 37, 0.05); color: var(--muted); }
.pce-tag         { font-size: 11px; color: var(--muted); }
.pce-chevron     { flex-shrink: 0; transition: transform .25s; }
details[open] .pce-chevron { transform: rotate(180deg); }
.pce-del { margin-left: 4px; }
.pce-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}
.pce-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.pce-fields .full { grid-column: 1 / -1; }

/* Type Tabs */
.pce-type-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
}
.type-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.type-tab input[type=radio] { display: none; }
.type-tab:has(input:checked) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Color Picker */
.color-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  transition: border-color .15s;
}
.color-opt input[type=radio] { display: none; }
.color-opt span {
  width: 14px; height: 14px;
  border-radius: 50%;
}
.color-opt.coral span { background: #f5ad99; }
.color-opt.blue  span { background: #a5d5ec; }
.color-opt.lime  span { background: #d6e69d; }
.color-opt:has(input:checked) { border-color: var(--ink); background: rgba(22,26,37,.05); }

/* Link section */
.link-section .field-hint { margin-top: 4px; display: block; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; }
.link-row input[style] { flex: 0 0 auto; }

/* ═══════════════════════════════════════════════════════════
   MODAL STYLES (for public index.php)
   ═══════════════════════════════════════════════════════════ */

/* Project cards: clickable */
.project[data-id] { cursor: pointer; }
.project[data-id] .project-info {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project[data-id] .project-info > div { flex: 1; }
.project[data-id] .project-info h3   { margin: 0 0 4px; font-size: 17px; letter-spacing: -.04em; }
.project-tagline { font-size: 10px; color: var(--muted, #727685); font-family: 'DM Mono', monospace; margin: 0; }
.open-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(22,26,37,.06);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink, #161a25);
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.project[data-id]:hover .open-icon { background: var(--orange, #fd7758); color: #fff; transform: rotate(45deg); }

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 19, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
body.modal-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   MODAL STYLES (for public index.php) — Widescreen Studio View
   ═══════════════════════════════════════════════════════════ */

/* Box: Widescreen, Grand & Legible on Desktop */
.modal-box {
  width: min(1360px, 94vw);
  max-height: 90vh;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  background: var(--paper, #fbfafd);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0,0,0,0.08);
  transform: translateY(24px) scale(.98);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modal-overlay.is-open .modal-box { transform: none; }

/* Close button */
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(22, 26, 37, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(22, 26, 37, 0.12);
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink, #161a25);
  transition: background .2s, transform .2s, color .2s;
}
.modal-close:hover {
  background: var(--ink, #161a25);
  color: #fff;
  transform: rotate(90deg) scale(1.06);
}

/* Text side */
.modal-body {
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  overflow-y: auto;
  max-height: 90vh;
}
.modal-type {
  font: 11px 'DM Mono', monospace;
  letter-spacing: .15em;
  color: var(--orange, #fd7758);
  text-transform: uppercase;
  margin: 0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.modal-type::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange, #fd7758);
}
.modal-title {
  font-size: 32px;
  letter-spacing: -.04em;
  line-height: 1.18;
  font-weight: 800;
  margin: 0;
  color: var(--ink, #161a25);
}
.modal-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5262;
  margin: 0;
  white-space: pre-line;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Modal action buttons */
.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 20px;
  font: 700 13px Manrope, sans-serif;
  transition: transform .2s, box-shadow .2s;
  gap: 12px;
}
.modal-btn:hover { transform: translateY(-2px); }
.modal-btn.primary {
  background: var(--ink, #161a25);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22,26,37,.18);
}
.modal-btn.primary:hover { box-shadow: 0 10px 26px rgba(22,26,37,.28); background: #000; }
.modal-btn.secondary {
  background: rgba(22,26,37,.05);
  color: var(--ink, #161a25);
  border: 1px solid rgba(22,26,37,.12);
}
.modal-btn.secondary:hover { background: rgba(22,26,37,.10); }
.modal-btn span { font-size: 18px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .dash-page { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 8px;
  }
  .sidebar-brand { margin-bottom: 0; padding-bottom: 0; border: 0; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar-label, .sidebar-sep { display: none; }
  .sidebar-nav a { padding: 6px 10px; font-size: 12px; }
  .dash-main { padding: 24px 16px 60px; }
  .pce-fields { grid-template-columns: 1fr; }
}
/* ── Gallery in Modal (Public Widescreen Showcase) ───────── */
.modal-visual-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #090c12;
  border-right: 1px solid rgba(22, 26, 37, 0.08);
  height: 100%;
  min-height: 540px;
  position: relative;
}
.modal-visual-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #161b26 0%, #080a10 100%);
  padding: 22px;
  overflow: hidden;
}
.modal-visual {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.modal-visual.coral { background: radial-gradient(circle at center, rgba(245, 173, 153, 0.16) 0%, #080a10 85%); }
.modal-visual.blue  { background: radial-gradient(circle at center, rgba(165, 213, 236, 0.16) 0%, #080a10 85%); }
.modal-visual.lime  { background: radial-gradient(circle at center, rgba(214, 230, 157, 0.16) 0%, #080a10 85%); }
.modal-visual img {
  max-width: 100%;
  max-height: 580px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: opacity .18s ease, transform .2s ease;
}

/* Nav arrows on modal */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 15, 22, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: none;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  transition: background .15s, transform .15s, border-color .15s;
  z-index: 6;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.modal-nav-btn:hover {
  background: var(--orange, #fd7758);
  border-color: var(--orange, #fd7758);
  transform: translateY(-50%) scale(1.1);
}
.modal-nav-btn.prev { left: 16px; }
.modal-nav-btn.next { right: 16px; }

/* Photo counter badge on modal */
.modal-photo-counter {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(12, 15, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 6;
  letter-spacing: .08em;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Zoom / Fullscreen Button */
.modal-zoom-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(12, 15, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, transform .15s, border-color .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.modal-zoom-btn:hover {
  background: var(--orange, #fd7758);
  border-color: var(--orange, #fd7758);
  transform: scale(1.05);
}

.modal-gallery {
  display: none;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(6, 8, 12, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
  flex-shrink: 0;
}
.gal-thumb {
  flex-shrink: 0;
  width: 82px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s, transform .15s, opacity .15s, box-shadow .15s;
  background: #191d28;
  opacity: 0.55;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb:hover { opacity: 0.95; transform: translateY(-2px); }
.gal-thumb.active {
  border-color: var(--orange, #fd7758);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(253,119,88,0.35);
}

/* ── Categorized Work Styles (Develop vs Ilmiah) ────────── */
.projects-container {
  width: 100%;
}
.projects-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.projects-header-bar h2 {
  margin: 0 0 10px;
}
.projects-sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

/* Category Filter Tabs */
.work-filter-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(22, 26, 37, 0.05);
  padding: 5px;
  border-radius: 16px;
  border: 1px solid rgba(22, 26, 37, 0.08);
}
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.filter-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(22, 26, 37, 0.1);
}
.filter-count {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(22, 26, 37, 0.06);
  color: var(--ink);
}
.filter-tab.active .filter-count {
  background: var(--ink);
  color: #ffffff;
}

/* Work Groups & Headers */
.work-groups {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.work-group {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.work-group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.wgh-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.work-group-header h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  color: var(--ink);
}
.work-group-header p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 580px;
  line-height: 1.5;
}
.wgh-pill {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Card Category Badges (Clean, Frosted Glass, No Blue) */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}
.badge-cat {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(22, 26, 37, 0.08);
}
.badge-doc {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 26, 37, 0.15);
}

/* Modal Badges */
.badge-modal {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(22, 26, 37, 0.06);
  color: var(--ink);
}
.modal-tag-sep {
  margin: 0 6px;
  color: var(--muted);
}

/* ── Interactive Gallery Manager in Admin ────────────────── */
.gallery-manager {
  background: rgba(22,26,37,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 6px;
}
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.gallery-header label {
  margin-bottom: 0 !important;
}
.gallery-count-badge {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  background: rgba(22,26,37,.06);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #eaecef;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(22,26,37,.06);
  transition: transform .15s, box-shadow .15s;
}
.gallery-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22,26,37,.12);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-tile .tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16,19,28,0.45);
  opacity: 0;
  transition: opacity .15s;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px;
}
.gallery-tile:hover .tile-overlay {
  opacity: 1;
}

.tile-del-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(226,74,74,.92);
  color: #fff;
  border: 0;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background .15s, transform .15s;
}
.tile-del-btn:hover {
  background: #c92a2a;
  transform: scale(1.15);
}

.tile-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-size: 9px;
  font-family: 'DM Mono', monospace;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16,19,28,0.72);
  color: #fff;
  pointer-events: none;
}
.tile-badge.new {
  background: #2b8a3e;
  color: #fff;
}

/* Add photo tile button */
.gallery-add-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 2px dashed rgba(253,119,88,.45);
  background: rgba(253,119,88,.03);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s, background .15s, transform .15s;
  text-align: center;
  padding: 8px;
}
.gallery-add-tile:hover {
  border-color: var(--orange);
  background: rgba(253,119,88,.09);
  transform: translateY(-2px);
}
.gallery-add-tile input[type=file] {
  display: none;
}
.add-tile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  user-select: none;
}
.add-tile-icon {
  font-size: 26px;
  line-height: 1;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 2px;
}
.add-tile-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.add-tile-sub {
  font-size: 9px;
  color: var(--muted);
}

.gallery-tips {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.pce-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.btn-delete-project {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226,74,74,0.08);
  color: var(--danger, #e24a4a);
  border: 1px solid rgba(226,74,74,0.22);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font: 700 12px Manrope, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-delete-project:hover {
  background: #e24a4a;
  color: #fff;
  border-color: #e24a4a;
  transform: translateY(-1px);
}

/* ── Document Upload Sections in Admin ───────────────────── */
.doc-section {
  margin-top: 4px;
}
.doc-box {
  background: rgba(22, 26, 37, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  max-width: 100%;
  box-shadow: 0 1px 4px rgba(22,26,37,.04);
}
.doc-icon { font-size: 14px; flex-shrink: 0; }
.doc-filename {
  font-family: 'DM Mono', monospace;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.doc-view-link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(253,119,88,.08);
  border-radius: 4px;
  transition: background .15s;
  white-space: nowrap;
}
.doc-view-link:hover { background: rgba(253,119,88,.16); }
.doc-clear-btn {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.doc-clear-btn:hover { color: var(--danger); background: rgba(226,74,74,.1); }

.doc-inputs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.doc-upload-col {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-doc-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--orange, #fd7758) !important;
  border: 1.5px solid var(--orange, #fd7758);
  border-radius: 8px;
  padding: 9px 16px;
  font: 700 12px Manrope, sans-serif;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(253, 119, 88, 0.12);
}
.btn-doc-upload:hover {
  background: var(--orange, #fd7758);
  border-color: var(--orange, #fd7758);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 119, 88, 0.28);
}
.btn-doc-upload span {
  color: inherit !important;
  font-weight: 700;
}
.btn-doc-upload svg {
  stroke: currentColor !important;
  flex-shrink: 0;
}
.btn-doc-upload input[type=file],
.doc-file-input {
  display: none !important;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}
.doc-picked-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #2b8a3e;
  background: rgba(43,138,62,.08);
  padding: 4px 8px;
  border-radius: 4px;
  display: none;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-url-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}
.doc-or-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.doc-url-col input {
  flex: 1;
}
.doc-label-col {
  flex-shrink: 0;
}

/* ── Ultra-Premium Mobile & Responsive Styles ─────────────────────────── */

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 960px) {
  .modal-box {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }
  .modal-visual-wrap {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(22, 26, 37, 0.08);
  }
  .modal-visual-stage { min-height: 280px; padding: 14px; }
  .modal-visual img { max-height: 320px; }
  .modal-body { padding: 26px 22px; max-height: none; }
  .modal-title { font-size: 24px; }
}

@media (max-width: 768px) {
  /* Prevent any horizontal page overflow */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Decorative canvas / orbs scaled to fit mobile */
  .canvas-grid { background-size: 36px 36px; }
  .orb-one { width: 65vw; height: 65vw; top: -20vw; right: -20vw; }
  .orb-two { width: 60vw; height: 60vw; bottom: -20vw; left: -20vw; }

  /* ── Mobile Header & Topbar ── */
  .topbar {
    position: sticky !important;
    top: 10px !important;
    margin: 10px 14px 0 !important;
    padding: 10px 16px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 30px rgba(22, 26, 37, 0.08) !important;
    z-index: 100 !important;
  }
  .brand {
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
  }

  /* Modern Glassmorphism Hamburger Button */
  .nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4.5px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: rgba(22, 26, 37, 0.04) !important;
    border: 1px solid rgba(22, 26, 37, 0.08) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    transition: background 0.2s, transform 0.15s !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .nav-toggle:active {
    transform: scale(0.92) !important;
    background: rgba(22, 26, 37, 0.08) !important;
  }
  .nav-toggle i {
    display: block !important;
    width: 17px !important;
    height: 2px !important;
    background: var(--ink) !important;
    border-radius: 2px !important;
    transition: transform 0.25s ease, opacity 0.2s, width 0.2s !important;
    transform-origin: center !important;
  }
  .nav-toggle.is-open i:first-child {
    transform: translateY(3.25px) rotate(45deg) !important;
  }
  .nav-toggle.is-open i:last-child {
    transform: translateY(-3.25px) rotate(-45deg) !important;
  }

  /* Floating Dropdown Card with Solid Opaque Background */
  .topbar nav {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 8px !important;
    box-shadow: 0 25px 60px rgba(22, 26, 37, 0.22), 0 0 0 1px rgba(22, 26, 37, 0.08) !important;
    display: none !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    z-index: 110 !important;
  }
  .topbar nav.is-open {
    display: flex !important;
    animation: navDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .topbar nav a {
    padding: 13px 18px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    border-radius: 13px !important;
    color: var(--ink) !important;
    background: #f9f9f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: background 0.15s, color 0.15s, transform 0.1s !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .topbar nav a:active,
  .topbar nav a.active {
    background: #161a25 !important;
    color: #ffffff !important;
  }

  /* ── Hero Section on Mobile ── */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 18px 32px !important;
    gap: 30px !important;
    min-height: auto !important;
  }
  .hero-copy {
    width: 100% !important;
  }
  .eyebrow {
    font-size: 9.5px !important;
    gap: 7px !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.08em !important;
  }
  .hero h1 {
    font-size: clamp(34px, 8.8vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.055em !important;
    margin: 10px 0 16px !important;
  }
  .intro {
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: var(--muted) !important;
    margin-bottom: 22px !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 18px !important;
  }
  .hero-action-col {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .button {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .button:active {
    transform: scale(0.98) !important;
  }

  .hero-proof {
    display: none !important;
  }

  /* Centered Portrait Card */
  .portrait-wrap {
    width: 100% !important;
    max-width: 320px !important;
    margin: 8px auto 0 !important;
    padding: 0 0 10px 0 !important;
  }
  .portrait-card {
    height: 380px !important;
    border-radius: 26px !important;
    transform: rotate(1deg) !important;
  }
  .portrait-label {
    padding: 9px 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    font-size: 9.5px !important;
  }
  .floating-note {
    right: 4px !important;
    bottom: 4px !important;
    transform: rotate(-2deg) !important;
    padding: 10px 14px !important;
    font-size: 8.5px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 22px rgba(22, 26, 37, 0.18) !important;
  }

  /* ── Content Sections ── */
  .section {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 56px 18px !important;
    border-top: 1px solid var(--line) !important;
  }
  .section-kicker {
    font-size: 10px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.12em !important;
  }
  .section h2, .contact h2 {
    font-size: clamp(28px, 7.5vw, 38px) !important;
    letter-spacing: -0.05em !important;
    line-height: 1.1 !important;
    margin: 0 0 16px !important;
  }
  .about > div > p {
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    color: var(--muted) !important;
  }

  /* Skill Cards */
  .skill-list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 24px !important;
  }
  .skill {
    min-height: auto !important;
    padding: 22px 20px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 24px rgba(22, 26, 37, 0.04) !important;
  }
  .skill h3 {
    margin: 18px 0 6px !important;
    font-size: 16px !important;
  }
  .skill p {
    font-size: 11px !important;
  }
  .skill i {
    position: relative !important;
    left: 0 !important;
    bottom: 0 !important;
    margin-top: 16px !important;
    display: block !important;
    width: 100% !important;
  }

  /* Categorized Work Mobile Layout */
  .projects-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }
  .projects-header-bar h2 {
    font-size: clamp(28px, 7.5vw, 38px) !important;
    margin-bottom: 8px !important;
  }
  .projects-sub {
    font-size: 13.5px !important;
  }
  .work-filter-tabs {
    display: flex !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 4px !important;
    border-radius: 14px !important;
  }
  .filter-tab {
    flex: 1 !important;
    justify-content: center !important;
    padding: 9px 8px !important;
    font-size: 11px !important;
    gap: 5px !important;
  }
  .filter-count {
    font-size: 9px !important;
    padding: 1px 5px !important;
  }
  .work-groups {
    gap: 40px !important;
  }
  .work-group-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
  }
  .work-group-header h3 {
    font-size: 18px !important;
  }
  .work-group-header p {
    font-size: 12px !important;
  }
  .wgh-pill {
    align-self: flex-start !important;
    font-size: 10px !important;
    padding: 4px 10px !important;
  }

  /* Project Cards */
  .projects {
    padding-bottom: 70px !important;
  }
  .project-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 24px !important;
  }
  .project {
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 26px rgba(22, 26, 37, 0.06) !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .project:active {
    transform: scale(0.985) !important;
  }
  .project-visual {
    height: 220px !important;
  }
  .project-info {
    padding: 16px 18px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .project-info h3 {
    font-size: 17px !important;
    margin: 0 0 4px !important;
  }
  .project-info p {
    font-size: 11.5px !important;
  }
  .project-info b {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
  }

  /* Contact & Footer */
  .contact {
    margin: 0 14px 28px !important;
    padding: 44px 20px !important;
    border-radius: 24px !important;
    text-align: center !important;
  }
  .contact:after {
    display: none !important;
  }
  .contact .button {
    width: 100% !important;
    max-width: 280px !important;
    margin: 18px auto 0 !important;
  }
  footer {
    padding: 22px 18px 36px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    font-size: 11px !important;
  }

  /* ── Widescreen Studio Modal on Mobile (Clean, No-Overlap Layout) ── */
  .modal-overlay {
    padding: 12px !important;
    align-items: center !important;
  }
  .modal-box {
    width: 100% !important;
    max-width: 440px !important;
    max-height: 88vh !important;
    border-radius: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    grid-template-columns: 1fr !important;
  }

  /* Close button: top-right, clean high contrast frosted glass */
  .modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(12, 15, 22, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .modal-close:active {
    transform: scale(0.9) !important;
  }

  /* Zoom button: top-LEFT, completely separated from close button */
  .modal-zoom-btn {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    background: rgba(12, 15, 22, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    z-index: 25 !important;
  }

  .modal-visual-wrap {
    min-height: auto !important;
    max-height: 280px !important;
    flex-shrink: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(22, 26, 37, 0.08) !important;
  }
  .modal-visual-stage {
    min-height: 190px !important;
    height: 215px !important;
    padding: 8px !important;
  }
  .modal-visual img {
    max-height: 200px !important;
    max-width: 92% !important;
    object-fit: contain !important;
  }
  .modal-nav-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }
  .modal-nav-btn.prev { left: 8px !important; }
  .modal-nav-btn.next { right: 8px !important; }
  .modal-photo-counter {
    bottom: 8px !important;
    font-size: 10.5px !important;
    padding: 3px 10px !important;
  }

  /* Thumbnail gallery scrollbar */
  .modal-gallery {
    padding: 8px 12px !important;
    gap: 8px !important;
    min-height: 56px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .gal-thumb {
    width: 56px !important;
    height: 40px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Modal body content */
  .modal-body {
    padding: 18px 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 !important;
  }
  .modal-type {
    font-size: 9.5px !important;
    margin-bottom: 6px !important;
  }
  .modal-title {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .modal-desc {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    margin-bottom: 18px !important;
  }
  .modal-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: 100% !important;
  }
  .modal-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 16px !important;
    font-size: 13px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
  }
  .modal-btn:active {
    transform: scale(0.98) !important;
  }

  /* ── Dashboard Admin Mobile View ── */
  .dash-page {
    overflow-x: hidden !important;
  }
  .sidebar {
    width: 100% !important;
    height: auto !important;
    position: static !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 14px 16px !important;
    border-radius: 0 0 20px 20px !important;
  }
  .sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 2px !important;
  }
  .sidebar-label {
    display: none !important;
  }
  .sidebar-nav a {
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  .sidebar-bottom {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
    padding: 18px 14px 40px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .top-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  .top-bar h1 {
    font-size: 26px !important;
  }
  .panel {
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }
  .stat-grid {
    grid-template-columns: 1fr !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .project-fields {
    grid-template-columns: 1fr !important;
  }
  .doc-inputs-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .doc-upload-col, .doc-url-col, .doc-label-col {
    width: 100% !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)) !important;
  }
}

/* Hero action button column & Zero to Hero subtext */
.hero-actions {
  align-items: flex-start;
}
.hero-action-col {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-subtext {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  text-transform: uppercase;
}
.hero-subtext i {
  font-style: normal;
  color: var(--orange);
  font-size: 10px;
}

/* ── Topbar Language Switcher ────────────────────────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 26, 37, 0.05);
  border: 1px solid rgba(22, 26, 37, 0.09);
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
.lang-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}
.lang-btn:hover {
  color: var(--ink);
}
.lang-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(22, 26, 37, 0.1);
}

@media (max-width: 720px) {
  .topbar {
    justify-content: flex-start !important;
  }
  .lang-switch {
    margin-left: auto !important;
    margin-right: 8px !important;
    padding: 2.5px !important;
  }
  .lang-btn {
    font-size: 10.5px !important;
    padding: 4px 7px !important;
  }
  .nav-toggle {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ── Eyebrow Status Dot & Text Isolation ────────────────────────────── */
.eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin-bottom: 14px !important;
}
.eyebrow .status-dot, .eyebrow i {
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #9bcb53 !important;
  box-shadow: 0 0 0 5px rgba(155, 203, 83, 0.18) !important;
  flex-shrink: 0 !important;
}
.eyebrow-text {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  color: var(--muted) !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

/* ── Admin Social Links Rows ────────────────────────────────────────── */
.social-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.social-row {
  display: grid;
  grid-template-columns: 170px 1fr 38px;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 26, 37, 0.08);
  padding: 12px 14px;
  border-radius: 14px;
}
.social-platform-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: 600 13px Manrope, sans-serif;
  color: var(--ink);
  cursor: pointer;
}
.social-fields {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}
.social-fields input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: 13px Manrope, sans-serif;
  color: var(--ink);
}

@media (max-width: 768px) {
  .social-row {
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
    padding-top: 38px;
  }
  .social-row .btn-icon-del {
    position: absolute;
    top: 8px;
    right: 8px;
  }
  .social-fields {
    grid-template-columns: 1fr;
  }
}

/* ── Frontend Contact CTA & Social Pills ────────────────────────────── */
.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.contact-socials {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 26, 37, 0.1);
  position: relative;
  z-index: 2;
}
.socials-label {
  font: 700 10.5px 'DM Mono', monospace !important;
  letter-spacing: 0.12em !important;
  color: var(--muted) !important;
  text-transform: uppercase !important;
  margin: 0 0 14px 0 !important;
  display: block !important;
}
.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(22, 26, 37, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.social-pill:hover {
  transform: translateY(-3px);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(22, 26, 37, 0.12);
  border-color: #ffffff;
}
.social-pill .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.2s ease, color 0.2s ease;
}
.social-pill:hover .social-icon {
  transform: scale(1.1);
  color: var(--orange);
}
.social-pill .social-name {
  line-height: 1;
}
.social-pill .social-arrow {
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.social-pill:hover .social-arrow {
  color: var(--orange);
  transform: translate(2px, -2px);
}

/* ── Frontend Footer with Social Icons ──────────────────────────────── */
footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 18px !important;
}
.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 11px 'DM Mono', monospace;
  color: var(--muted);
}
.footer-sep {
  opacity: 0.5;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(22, 26, 37, 0.04);
  border: 1px solid rgba(22, 26, 37, 0.06);
  transition: all 0.2s ease;
}
.footer-socials a:hover {
  color: var(--ink);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 26, 37, 0.08);
  border-color: transparent;
}

@media (max-width: 1024px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    padding: 50px 20px !important;
    gap: 30px !important;
    min-height: auto !important;
  }
  .hero-copy {
    width: 100% !important;
  }
  .portrait-wrap {
    max-width: 380px !important;
    width: 100% !important;
    margin: 20px auto 0 !important;
    align-self: center !important;
  }
}

