/* ============================================================
   POTOINPAN GRADUATION PHOTO PORTAL — DESIGN SYSTEM
   Token: warm off-white, charcoal ink, champagne gold accent
   Signature: filmstrip / photobooth frame motif + registration marks
   ============================================================ */

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

:root {
    --bg: #FAF8F4;
    --bg-alt: #F1EEE6;
    --ink: #1B1A17;
    --muted: #6B675F;
    --line: #E4DFD3;
    --accent: #C7A15A;
    --accent-ink: #57431C;
    --success: #5B8C6E;
    --success-bg: #E9F1EB;
    --error: #C1584B;
    --error-bg: #FBEAE7;
    --warning: #D9A441;
    --warning-bg: #FBF1DF;
    --info: #5B7C99;
    --info-bg: #E9F0F6;
    --white: #FFFFFF;

    --font-display: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 1px 2px rgba(27,26,23,0.04), 0 8px 24px -12px rgba(27,26,23,0.10);
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-ink); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before {
    content: ''; width: 18px; height: 1px; background: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent-ink);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,248,244,0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
    .nav-links { position: fixed; inset: 62px 0 0 0; background: var(--bg); flex-direction: column;
        padding: 30px 24px; gap: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: transform .2s ease, opacity .2s ease; border-top: 1px solid var(--line); }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-toggle { display: block; }
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: .92rem;
    padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, opacity .15s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #34322C; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 6px 18px -6px rgba(199,161,90,.55); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading { position: relative; }
.btn.is-loading::after {
    content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== HERO — photobooth strip ===================== */
.hero {
    padding: 64px 0 40px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-copy .btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-strip {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-soft);
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.hero-strip::before, .hero-strip::after {
    content: ''; position: absolute; left: 50%; top: -8px; width: 1px; height: 16px;
    background: var(--line); transform: translateX(-50%);
}
.hero-strip::after { top: auto; bottom: -8px; }
.hero-strip .frame {
    aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; position: relative;
    background: var(--bg-alt);
}
.hero-strip .frame img { width: 100%; height: 100%; object-fit: cover; }
.reg-mark { position: absolute; width: 10px; height: 10px; opacity: .55; }
.reg-mark.tl { top: 8px; left: 8px; } .reg-mark.tr { top: 8px; right: 8px; }
.reg-mark.bl { bottom: 8px; left: 8px; } .reg-mark.br { bottom: 8px; right: 8px; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding-top: 32px; }
}

/* ===================== SECTIONS ===================== */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===================== CARDS ===================== */
.card {
    background: var(--white); border-radius: var(--radius-md);
    padding: 24px; border: 1px solid var(--line);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ===================== PACKAGE CARDS ===================== */
.package-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative;
    transition: box-shadow .2s ease, transform .2s ease;
}
.package-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.package-card.featured { border-color: var(--accent); }
.package-card .tag {
    position: absolute; top: -12px; right: 24px; background: var(--accent); color: var(--accent-ink);
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px;
}
.package-price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.package-price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 500; }
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink); }
.feature-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--success); margin-top: 2px; }

/* ===================== STEPPER ===================== */
.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 40px; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.stepper .step .dot {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; font-size: .78rem; background: var(--white);
}
.stepper .step.active .dot { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stepper .step.done .dot { background: var(--success); color: var(--white); border-color: var(--success); }
.stepper .step.active { color: var(--ink); }
.stepper .connector { width: 24px; height: 1px; background: var(--line); }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    font-family: var(--font-body); font-size: 16px; background: var(--white); color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(199,161,90,.18); outline: none;
}
input.is-error, select.is-error, textarea.is-error { border-color: var(--error); }
.field-error { color: var(--error); font-size: .8rem; margin-top: 6px; }
.field-hint { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.auth-card { max-width: 420px; margin: 60px auto; }

/* ===================== BADGE / STATUS ===================== */
.badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600;
    padding: 5px 12px; border-radius: 999px;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-warning { background: var(--warning-bg); color: #8A6512; }
.badge-info { background: var(--info-bg); color: var(--info); }

/* ===================== TOAST ===================== */
#toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 200;
    display: flex; flex-direction: column; gap: 10px; max-width: 340px;
}
@media (max-width: 600px) { #toast-container { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
.toast {
    background: var(--ink); color: var(--white); padding: 14px 18px; border-radius: var(--radius-sm);
    font-size: .88rem; box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 10px;
    animation: toast-in .22s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== EMPTY STATE ===================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--line); }

/* ===================== SKELETON ===================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-alt) 25%, #E9E5D9 37%, var(--bg-alt) 63%);
    background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ===================== DASHBOARD LAYOUT ===================== */
.dash-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-sidebar {
    background: var(--white); border-right: 1px solid var(--line); padding: 24px 16px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-sidebar .brand { padding: 0 8px 24px; }
.dash-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 500; color: var(--muted);
}
.dash-nav a svg { width: 18px; height: 18px; }
.dash-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.dash-nav a.active { background: var(--ink); color: var(--white); }
.dash-main { padding: 28px 32px; max-width: 1100px; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .dash-shell { grid-template-columns: 1fr; }
    #mobileSidebarBtn { display: inline-flex !important; }
    .dash-sidebar {
        position: fixed; z-index: 100; left: 0; top: 0; width: 260px;
        transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-soft);
    }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-main { padding: 20px 16px 90px; }
}

/* ===================== MOBILE STICKY ACTION ===================== */
.sticky-action {
    position: fixed; left: 0; right: 0; bottom: 0; background: var(--white);
    border-top: 1px solid var(--line); padding: 12px 16px; z-index: 60;
    display: none; box-shadow: 0 -6px 20px rgba(27,26,23,.06);
}
@media (max-width: 720px) { .sticky-action.show-mobile { display: block; } }

/* ===================== COUNTDOWN ===================== */
.countdown { display: flex; gap: 12px; }
.countdown .unit { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; text-align: center; min-width: 64px; }
.countdown .unit strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.countdown .unit span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ===================== FOOTER ===================== */
footer { border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-body); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a { color: var(--muted); font-size: .9rem; }
.footer-grid ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line);
    font-size: .82rem; color: var(--muted); flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===================== TABLE ===================== */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--line); }

/* ===================== MODAL ===================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(27,26,23,.45); display: none;
    align-items: center; justify-content: center; z-index: 150; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius-md); padding: 26px; max-width: 420px; width: 100%; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ===================== FAQ ===================== */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 12px; }

/* ===================== UTIL ===================== */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
