/* =========================================================
   Connor Bonegio — Portfolio
   Tabbed single-page design. Bold, rounded, friendly.
   ========================================================= */

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

:root {
  --ink: #0b0e14;
  --body: #4b5563;
  --muted: #9099a6;
  --accent: #2f56f5;
  --accent-deep: #1e3fd0;
  --line: #e8eaef;
  --bg: #ffffff;
  --pill: #eef0f3;
  --soft: #f3f4f6;
  --shadow-pill: 0 1px 3px rgba(15,23,42,.10);
  --shadow-card: 0 10px 40px rgba(15,23,42,.10);
  --radius: 18px;
  --maxw: 1180px;
  --nav-h: 84px;
  --foot-h: 58px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Poppins', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; width: 100%; }
.accent { color: var(--accent); }

/* ---------------- Nav ---------------- */
.nav { height: var(--nav-h); display: flex; align-items: center; position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; cursor: pointer; }

.pill { display: flex; align-items: center; gap: 4px; background: var(--pill); border-radius: 999px; padding: 5px; }
.pill button {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 14.5px; font-weight: 600; color: #5b6470; padding: 9px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; transition: all .18s ease; white-space: nowrap;
}
.pill button svg { width: 16px; height: 16px; }
.pill button:hover { color: var(--ink); }
.pill button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-pill); }

.socials { display: flex; align-items: center; gap: 14px; }
.socials a { color: var(--ink); display: inline-flex; transition: transform .15s, opacity .15s; }
.socials a:hover { transform: translateY(-2px); opacity: .8; }
.socials svg { width: 25px; height: 25px; }

/* ---------------- Views ---------------- */
main { flex: 1; display: flex; flex-direction: column; }
.view { display: block; scroll-margin-top: var(--nav-h); }

.center {
  min-height: calc(100vh - var(--nav-h) - var(--foot-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 0;
}

/* ---------------- Hero (Home) ---------------- */
.hero h1 { font-size: clamp(42px, 8vw, 86px); font-weight: 800; color: var(--ink); line-height: 1.02; letter-spacing: -1.5px; }
.hero .sub { font-size: clamp(19px, 3vw, 30px); font-weight: 600; color: #1f2733; margin-top: 14px; letter-spacing: -.3px; }
.hero .lead { font-size: 18px; color: #6b7280; margin-top: 22px; max-width: 600px; }
.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero-photo { width: 134px; height: 134px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 26px; border: 4px solid #fff; box-shadow: 0 14px 40px rgba(15,23,42,.18); }
@media (max-width: 560px) { .hero-photo { width: 106px; height: 106px; margin-bottom: 20px; } }

/* ---------------- Buttons ---------------- */
.btn {
  border: 1.6px solid transparent; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center;
  gap: 10px; transition: all .18s ease; white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,86,245,.32); }
.btn-outline { background: #fff; color: var(--ink); border-color: #e2e5ea; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-link { background: transparent; color: var(--ink); padding: 14px 8px; font-weight: 700; }
.btn-link:hover { color: var(--accent); }

/* ---------------- About ---------------- */
.section-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--ink); letter-spacing: -.6px; }
.about-inner { width: 100%; max-width: 860px; }
.about-inner .lead { font-size: 17.5px; color: #5b6470; margin: 22px auto 0; max-width: 760px; }
.about-wrap { display: flex; flex-direction: column; justify-content: center; padding: 110px 0; overflow-x: clip; }
.about-lead { text-align: center; max-width: 760px; margin: 22px auto 0; font-size: 17.5px; color: #5b6470; }
.tech-title { text-align: center; margin-top: 60px; margin-bottom: 30px; }
.tech-marquee {
  position: relative; width: 100vw; left: 50%; transform: translateX(-50%); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tech-track { display: flex; gap: 18px; width: max-content; padding: 8px 0; animation: scroll-x 38s linear infinite; }
.tech-track:hover { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-card {
  flex: 0 0 auto; width: 150px;
  background: var(--soft); border-radius: 20px; padding: 24px 14px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; transition: transform .2s ease, box-shadow .2s ease;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tech-card img { height: 42px; width: auto; max-width: 112px; object-fit: contain; }
.tech-mono { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .3px; }
.tech-card .ph { width: 42px; height: 42px; border-radius: 10px; background: #e2e6ec; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #94a0b0; }
.tech-card span { font-size: 14px; font-weight: 600; color: var(--ink); }

/* About — extra detail (skills, education, activities) */
.about-approach { margin-top: 16px; }
.about-sub { text-align: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--accent); margin: 48px 0 16px; }
.about-sub.left { text-align: left; margin: 0 0 14px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 820px; margin: 0 auto; }
.tag { font-size: 13px; font-weight: 600; color: var(--accent); background: #eef3ff; border-radius: 999px; padding: 7px 14px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 40px auto 0; }
.info-panel { background: var(--soft); border-radius: 18px; padding: 22px 26px; }
.info-item { padding: 12px 0; border-bottom: 1px solid #e4e7ec; }
.info-item:first-child { padding-top: 0; }
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-item .t { font-size: 15px; font-weight: 700; color: var(--ink); }
.info-item .s { font-size: 13.5px; font-weight: 600; color: var(--accent-deep); margin-top: 1px; }
.info-item .m { font-size: 12.5px; color: #6b7280; margin-top: 4px; line-height: 1.5; }
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------------- Projects ---------------- */
.projects-inner { padding: 100px 0 110px; }
.featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 44px;
}
.featured .media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); box-shadow: var(--shadow-card); aspect-ratio: 16/11; }
.featured .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured .media .media-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 26px; font-weight: 800; color: #b6c0d4; letter-spacing: -.4px; }
.m-img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #0b0e14; border-radius: 12px; margin: 4px 0 18px; border: 1px solid var(--line); }
.featured h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.featured p { font-size: 15.5px; color: #5b6470; margin-top: 16px; }
.featured .f-cta { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; min-height: 200px;
}
.pcard-img { height: 160px; background: rgba(15,23,42,.05); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-body { padding: 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.pcard h3 { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; line-height: 1.25; }
.pcard p { font-size: 14.5px; color: #56606e; margin-top: 12px; flex: 1; }
.pcard .plink { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 18px; }
.pcard .plink svg { width: 15px; height: 15px; }
.pcard.soon .plink { color: #aeb4bd; }

/* ---------------- Contact ---------------- */
.contact h1 { font-size: clamp(44px, 8vw, 84px); font-weight: 800; color: var(--ink); letter-spacing: -1.6px; line-height: 1.02; }
.contact .lead { font-size: 18px; color: #6b7280; margin: 24px auto 0; max-width: 600px; }
.contact .cta-row { margin-top: 36px; }
.contact-details { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; align-items: center; font-size: 15.5px; color: #6b7280; }
.contact-details a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.contact-details a:hover { color: var(--accent); }
.contact-details svg { width: 18px; height: 18px; flex: 0 0 auto; }
.contact-details .sep { color: #cbd2dc; }

/* ---------------- Footer ---------------- */
.footer { height: var(--foot-h); display: flex; align-items: center; justify-content: center; }
.footer p { font-size: 13.5px; color: var(--muted); }

/* ---------------- Modal ---------------- */
.modal-back { position: fixed; inset: 0; background: rgba(11,14,20,.5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: 22px; max-width: 600px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-card); padding: 36px; position: relative; animation: pop .22s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .close { position: absolute; top: 18px; right: 18px; background: var(--soft); border: 0; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; color: #6b7280; cursor: pointer; line-height: 1; }
.modal .close:hover { color: var(--ink); }
.modal .m-cat { font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.modal h3 { font-size: 25px; font-weight: 800; color: var(--ink); margin: 8px 0 16px; letter-spacing: -.5px; }
.modal p { font-size: 15.5px; color: #5b6470; }
.modal .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.modal .chip { font-size: 12px; font-weight: 600; color: #5b6470; background: var(--soft); border-radius: 999px; padding: 5px 12px; }
.modal .m-link { margin-top: 24px; }

/* =========================================================
   Admin styles (admin.html) — retained
   ========================================================= */
.btn-ghost { background: #fff; color: var(--ink); border: 1.6px solid #e2e5ea; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 12.5px; padding: 8px 14px; border-radius: 10px; }
.btn-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.admin-shell { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; width: 100%; }
.login-card { max-width: 410px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-card); }
.login-card h1 { font-size: 23px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.login-card p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,86,245,.12); }
.field textarea { resize: vertical; min-height: 84px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-size: 25px; font-weight: 800; color: var(--ink); }
.admin-head .who { font-size: 13px; color: var(--muted); }
.admin-section { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 1px 3px rgba(15,23,42,.05); margin-bottom: 24px; }
.admin-section h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.admin-section .desc { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.proj-admin { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.proj-admin:last-child { border-bottom: 0; }
.proj-admin .pa-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.proj-admin .pa-meta { font-size: 12.5px; color: var(--muted); }
.proj-admin .pa-actions { display: flex; gap: 8px; }
.alert { padding: 13px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.banner { background: rgba(47,86,245,.08); border-bottom: 1px solid #c7d2fe; color: var(--accent-deep); text-align: center; font-size: 13.5px; padding: 10px; }
.banner a { font-weight: 700; text-decoration: underline; }

/* ---------------- Print / PDF export ---------------- */
#print-doc { display: none; }
@media print {
  .nav, main, .footer, .modal-back, #loader { display: none !important; }
  #print-doc { display: block !important; }
  @page { size: Letter; margin: 0; }
  html, body { background: #fff; }
}
#print-doc, #print-doc * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
.pd-page { position: relative; width: 8.5in; height: 11in; padding: 0.6in 0.66in 0.5in; overflow: hidden; background: #fff; color: #334155; }
.pd-mast-row { display: flex; align-items: center; gap: 15px; }
.pd-mast-text { flex: 1; min-width: 0; }
.pd-photo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #e2e8f0; }
.pd-url { font-size: 9.6px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.pd-url a { color: inherit; text-decoration: none; }
.pd-page.pd-first { page-break-after: always; }
.pd-mast { border-bottom: 2px solid #0b0e14; padding-bottom: 13px; margin-bottom: 15px; }
.pd-name { font-size: 31px; font-weight: 800; letter-spacing: -.5px; color: #0b0e14; line-height: 1; }
.pd-name span { color: var(--accent); }
.pd-tag { font-size: 11.5px; font-weight: 600; color: var(--accent-deep); margin-top: 6px; }
.pd-contact { font-size: 9.3px; color: #64748b; margin-top: 7px; }
.pd-summary { font-size: 10.4px; line-height: 1.55; color: #334155; margin-bottom: 15px; }
.pd-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #0b0e14; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.pd-label::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.pd-card { border: 1px solid #e2e8f0; border-radius: 9px; padding: 12px 13px; background: #f8fafc; }
.pd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pd-h { font-size: 11.8px; font-weight: 700; color: #0b0e14; line-height: 1.2; }
.pd-y { font-size: 8.4px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.pd-d { font-size: 9.2px; line-height: 1.48; color: #334155; margin-top: 5px; }
.pd-chips { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.pd-chip { font-size: 7.4px; font-weight: 600; color: var(--accent); background: #eff6ff; border-radius: 20px; padding: 2px 7px; }
.pd-chip.alt { background: #fff; border: 1px solid #e2e8f0; color: #334155; font-size: 8px; }
.pd-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.pd-row { padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.pd-row:first-child { padding-top: 0; }
.pd-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.pd-edu { margin-bottom: 10px; }
.pd-edu .pd-s { font-size: 10.2px; font-weight: 700; color: #0b0e14; }
.pd-edu .pd-g { font-size: 9px; font-weight: 600; color: var(--accent-deep); margin-top: 1px; }
.pd-edu .pd-m { font-size: 8.3px; color: #64748b; margin-top: 3px; line-height: 1.45; }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: 1fr; gap: 24px; }
  .featured .media { aspect-ratio: 16/10; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .pill button { padding: 8px 14px; font-size: 13.5px; }
  .socials { order: 3; }
}
@media (max-width: 560px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: 1fr; }
  .pill button span { display: none; }
  .pill button { padding: 9px 13px; }
  .row-2 { grid-template-columns: 1fr; }
}

/* ===== Live edit affordances (inside preview iframe, body.pf-edit) ===== */
body.pf-edit .pf-ed { position: relative; cursor: pointer; outline: 2px dashed transparent; outline-offset: 3px; border-radius: 6px; transition: outline-color .12s, background-color .12s; }
body.pf-edit .pf-ed:hover { outline-color: var(--accent); background: rgba(47,86,245,.06); }
body.pf-edit .pf-ed.pf-active { outline: 2px solid var(--accent); outline-offset: 3px; background: rgba(47,86,245,.05); }
body.pf-edit .pf-ed:hover::after { content: "✎ edit"; position: absolute; top: -11px; left: -2px; background: var(--accent); color: #fff; font: 700 10px/1 'Poppins', sans-serif; padding: 3px 6px; border-radius: 5px; z-index: 6; pointer-events: none; white-space: nowrap; }

/* ===== Admin: visual editor ===== */
.ve { position: fixed; inset: 0; display: flex; flex-direction: column; background: #eceef2; z-index: 100; }
.ve-bar { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px rgba(15,23,42,.06); flex-wrap: wrap; }
.ve-brand { font-weight: 800; color: var(--ink); }
.ve-hint { font-size: 12.5px; color: var(--muted); }
.ve-spacer { flex: 1; }
.ve-dirty { font-size: 12px; font-weight: 700; color: #d97706; }
.ve-stage { position: relative; flex: 1; overflow: hidden; }
.ve-frame { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.ve-pop { position: fixed; width: 330px; max-width: 92vw; max-height: 82vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 60px rgba(15,23,42,.28); z-index: 10; padding: 14px 15px 16px; }
.ve-pop h3 { margin: 0 0 8px; font-size: 14px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.ve-pop .vp-close { border: 0; background: transparent; font-size: 19px; cursor: pointer; color: var(--muted); line-height: 1; padding: 0 2px; }
.ve-pop label { display: block; font-size: 11.5px; font-weight: 600; color: #475569; margin: 10px 0 4px; }
.ve-pop input, .ve-pop textarea { width: 100%; font: inherit; font-size: 13px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.ve-pop input:focus, .ve-pop textarea:focus { outline: none; border-color: var(--accent); }
.ve-pop textarea { min-height: 64px; resize: vertical; line-height: 1.4; }
.ve-pop .vp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ve-pop .vp-check { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13px; color: var(--ink); font-weight: 600; }
.ve-pop .vp-check input { width: auto; }
.ve-pop .vp-sub { border: 1px solid var(--line); border-radius: 9px; padding: 9px 9px 10px; margin-bottom: 8px; position: relative; }
.ve-pop .vp-rm { position: absolute; top: 6px; right: 6px; border: 0; background: #fee2e2; color: #b91c1c; border-radius: 6px; font-size: 10px; font-weight: 700; padding: 3px 7px; cursor: pointer; }
.ve-pop .vp-add { margin-top: 2px; }
.ve-pop .vp-actions { display: flex; gap: 8px; margin-top: 14px; }
.ve-pop img.vp-photo { width: 100%; height: 116px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px; background: #f1f5f9; }
.ve-pop .vp-note { font-size: 11px; color: var(--muted); margin-top: 7px; }
.btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.ve-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.ve-toast.err { background: #dc2626; }
@media (max-width: 560px) { .ve-pop { width: 92vw; } .ve-hint { display: none; } }

/* ===== Loading overlay ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity .45s ease, visibility .45s ease;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: loader-spin .8s linear infinite;
}
.loader-name {
  font-family: inherit;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .2px;
  color: var(--ink);
}
.loader-sub { font-size: 14px; color: var(--muted); }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .loader-spinner { animation-duration: 2s; }
}
