:root {
    --ivory: #fff8ef;
    --champagne: #f4ead8;
    --champagne-strong: #e6d5b8;
    --gold: #d4af37;
    --soft-gold: #f1d592;
    --navy: #18233a;
    --charcoal: #211f1a;
    --muted: #6f6757;
    --white: #ffffff;
    --danger: #b42318;
    --success: #28715b;
    --shadow: 0 24px 70px rgba(24, 35, 58, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--charcoal);
    background: var(--ivory);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.brand {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    font-style: italic;
    color: #735c00;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(20px, 5vw, 72px);
    background: rgba(255, 248, 239, .78);
    border-bottom: 1px solid rgba(115, 92, 0, .16);
    backdrop-filter: blur(22px);
}
.site-nav { display: flex; align-items: center; gap: 26px; color: #3f465f; font-weight: 600; font-size: 14px; }
.site-nav a:hover { color: #735c00; }

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 22px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
    color: #241a00;
    background: linear-gradient(135deg, var(--gold), var(--soft-gold) 52%, var(--gold));
    box-shadow: 0 14px 34px rgba(115, 92, 0, .18);
}
.btn-outline { color: #735c00; border-color: rgba(115, 92, 0, .32); background: rgba(255,255,255,.35); }
.btn-ghost { color: var(--navy); border-color: rgba(24,35,58,.16); background: rgba(255,255,255,.5); }

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 92px 20px 72px;
}
.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,248,239,.92), rgba(255,248,239,.55) 42%, var(--ivory)),
        url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-content {
    position: relative;
    width: min(920px, 100%);
    text-align: center;
}
.eyebrow {
    display: inline-flex;
    color: #735c00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1, h2, h3 {
    margin: 0;
    color: var(--charcoal);
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.1;
}
.hero h1 { margin-top: 16px; font-size: clamp(42px, 7vw, 82px); }
.hero p, .page-hero p, .split-section p, .panel-head p {
    color: var(--muted);
    font-size: 18px;
}
.hero p { max-width: 720px; margin: 24px auto 34px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.section, .page-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0;
}
.section-head { display: grid; gap: 8px; margin-bottom: 28px; }
.section-head h2, .page-hero h1, .split-section h2, .panel-head h1 { font-size: clamp(32px, 4vw, 52px); }

.steps-grid, .pricing-grid, .stats-grid, .event-grid {
    display: grid;
    gap: 22px;
}
.steps-grid { grid-template-columns: repeat(4, 1fr); }
.step-card, .price-card, .form-card, .faq-item, .stats-grid article, .event-card {
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}
.step-card { padding: 26px; }
.step-card strong { color: var(--gold); font-size: 28px; }
.step-card h3 { margin-top: 18px; font-size: 24px; }
.step-card p, .price-card p, .faq-item p { color: var(--muted); }

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    background: var(--champagne);
    border-radius: 22px;
    padding: 48px;
}
.feature-list { display: grid; gap: 14px; }
.feature-list div {
    padding: 18px 20px;
    border-radius: 12px;
    color: var(--navy);
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(24,35,58,.12);
    font-weight: 700;
}

.pricing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; }
.price-card {
    position: relative;
    min-width: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.price-card.featured { background: rgba(244,234,216,.88); border-color: rgba(212,175,55,.6); transform: translateY(-10px); }
.badge {
    display: inline-flex;
    width: max-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(212,175,55,.2);
    color: #735c00;
    font-size: 12px;
    font-weight: 800;
}
.price-card h3 { font-size: 28px; }
.price { color: #735c00; font-size: 34px; font-weight: 800; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--muted); flex: 1; }
.price-card li { margin: 8px 0; }
.price-card .btn { margin-top: auto; }

.page-hero { max-width: 760px; margin-bottom: 34px; }
.page-hero.compact { margin: 0; }
.timeline { display: grid; gap: 16px; }
.timeline article {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(212,175,55,.22);
    border-radius: 14px;
}
.timeline strong { color: #735c00; font-size: 26px; }
.faq-list { display: grid; gap: 16px; }
.faq-item { padding: 26px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }

.flash {
    width: min(980px, calc(100% - 40px));
    margin: 18px auto;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
}
.flash-success { background: rgba(40,113,91,.12); color: var(--success); }
.flash-error { background: rgba(180,35,24,.12); color: var(--danger); }

input, textarea, select {
    width: 100%;
    margin-top: 6px;
    padding: 13px 14px;
    border: 1px solid rgba(24,35,58,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.75);
    color: var(--charcoal);
    font: inherit;
}
label { display: grid; gap: 4px; color: var(--navy); font-weight: 700; }
.form-card, .auth-card { padding: 30px; }
.stack-form { display: grid; gap: 16px; margin-top: 22px; }
.muted, .form-link { color: var(--muted); }
.form-link a { color: #735c00; font-weight: 800; }
.local-code {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(212,175,55,.18);
    color: #735c00;
    font-weight: 700;
}
.inline-form { margin-top: 14px; }
.link-button {
    border: 0;
    background: transparent;
    color: #735c00;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}
.check-row {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
}
.check-row input { width: auto; margin-top: 5px; }

.auth-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255,248,239,.95), rgba(244,234,216,.86)),
        url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=1600&q=80") center/cover;
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: center;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0;
}
.auth-intro h1 { margin-top: 40px; font-size: clamp(38px, 5vw, 68px); }
.auth-intro p { max-width: 540px; color: var(--muted); font-size: 19px; }
.auth-card {
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(212,175,55,.3);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 38px; }

.panel-body { min-height: 100vh; background: var(--ivory); }
.panel-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    padding: 28px;
    background: var(--navy);
    color: var(--white);
}
.panel-sidebar .brand { color: var(--soft-gold); display: block; margin-bottom: 38px; }
.panel-sidebar nav { display: grid; gap: 10px; }
.panel-sidebar a:not(.brand) { padding: 12px 14px; border-radius: 10px; color: rgba(255,255,255,.76); font-weight: 700; }
.panel-sidebar a.active, .panel-sidebar a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.panel-main { margin-left: 260px; padding: 42px; }
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 26px;
}
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel-actions form { margin: 0; }
.form-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.soft-panel {
    border: 1px solid rgba(185,154,85,.22);
    background: rgba(255,250,240,.72);
    border-radius: 8px;
    padding: 16px;
    display: grid;
    gap: 12px;
}
.hidden { display: none !important; }
.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: end;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}
.filter-row input, .filter-row select {
    min-width: 180px;
    flex: 1 1 180px;
}
.filter-row .btn { flex: 0 0 auto; }
.filter-bar input, .filter-bar select {
    width: 100%;
    border: 1px solid rgba(22,31,45,.16);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
}
.mini-json {
    max-width: 360px;
    max-height: 180px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 12px;
    background: rgba(22,31,45,.05);
    border-radius: 8px;
    padding: 10px;
}
.code-block {
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 12px;
    background: rgba(22,31,45,.05);
    border-radius: 8px;
    padding: 12px;
}
.field-help {
    display: block;
    margin-top: 6px;
    color: rgba(45,49,58,.62);
    font-size: 13px;
}
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 26px; }
.stats-grid article { padding: 24px; }
.stats-grid strong { display: block; font-size: 34px; color: #735c00; }
.stats-grid span { color: var(--muted); font-weight: 700; }
.event-grid { grid-template-columns: repeat(3, 1fr); }
.event-card { overflow: hidden; }
.event-card > div:not(.event-cover) { padding: 22px; }
.event-cover {
    height: 180px;
    background: linear-gradient(rgba(24,35,58,.08), rgba(24,35,58,.2)), url("https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?auto=format&fit=crop&w=1000&q=80") center/cover;
}
.event-card h2 { font-size: 28px; margin: 10px 0 4px; }
.event-card p { color: var(--muted); }
.event-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.event-actions button, .event-actions a {
    border: 1px solid rgba(115,92,0,.22);
    background: rgba(255,255,255,.65);
    border-radius: 9px;
    padding: 10px 8px;
    font-weight: 700;
    color: #735c00;
    text-align: center;
}
.event-card.empty { display: grid; place-content: center; padding: 28px; border-style: dashed; }

.admin-shell-body {
    min-height: 100vh;
    color: #181c32;
    background: #f5f8fa;
}
.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}
.admin-aside {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    background: #1e1e2d;
    color: #fff;
    box-shadow: 10px 0 30px rgba(15, 23, 42, .18);
}
.admin-aside-brand {
    display: grid;
    gap: 2px;
    padding: 4px 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-aside-brand .brand {
    color: #f1d592;
    font-size: 28px;
    line-height: 1;
}
.admin-aside-brand span {
    color: #7e8299;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.admin-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
}
.admin-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #3f4254;
    background: linear-gradient(135deg, #f1d592, #fff1b8);
    font-weight: 900;
}
.admin-user-card strong {
    display: block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
}
.admin-user-card span {
    display: block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7e8299;
    font-size: 12px;
    font-weight: 700;
}
.admin-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 4px 12px;
}
.admin-menu-section {
    margin: 20px 10px 8px;
    color: #646477;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 3px 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: #a1a5b7;
    font-size: 14px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.admin-menu-link:hover,
.admin-menu-link.active {
    color: #fff;
    background: #2a2a3c;
    transform: translateX(2px);
}
.admin-menu-link.active .admin-menu-icon {
    color: #1e1e2d;
    background: #f1d592;
}
.admin-menu-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #d4af37;
    background: rgba(255,255,255,.06);
    font-size: 11px;
    font-weight: 900;
}
.admin-workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 22;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px clamp(22px, 3vw, 42px);
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid #eff2f5;
    backdrop-filter: blur(18px);
}
.admin-kicker {
    display: inline-flex;
    margin-bottom: 3px;
    color: #a1a5b7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.admin-topbar h1 {
    color: #181c32;
    font-family: Inter, system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
}
.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}
.admin-quick-link,
.admin-logout {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}
.admin-quick-link {
    color: #3f4254;
    background: #f5f8fa;
}
.admin-logout {
    color: #f1416c;
    background: #fff5f8;
}
.admin-content {
    width: min(100%, 1540px);
    margin: 0 auto;
    padding: clamp(22px, 3vw, 42px);
}
.admin-shell-body .panel-head {
    padding: 0 0 6px;
    border-bottom: 0;
}
.admin-shell-body .panel-head.inline {
    padding: 0;
    margin-bottom: 18px;
}
.admin-shell-body .panel-head h1 {
    color: #181c32;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
}
.admin-shell-body .panel-head p {
    max-width: 760px;
    color: #7e8299;
    font-size: 15px;
}
.admin-shell-body .eyebrow {
    color: #b58d16;
    letter-spacing: .09em;
}
.admin-shell-body .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}
.admin-shell-body .stats-grid article,
.admin-shell-body .notice-card,
.admin-shell-body .summary-card {
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(76, 87, 125, .08);
}
.admin-shell-body .stats-grid article {
    position: relative;
    min-height: 128px;
    padding: 24px;
    overflow: hidden;
}
.admin-shell-body .stats-grid article::after {
    content: "";
    position: absolute;
    right: -26px;
    top: -26px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(212,175,55,.14);
}
.admin-shell-body .stats-grid strong {
    color: #181c32;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
}
.admin-shell-body .stats-grid span {
    color: #7e8299;
    font-size: 13px;
    font-weight: 800;
}
.admin-shell-body .detail-grid {
    gap: 18px;
}
.admin-shell-body .notice-card {
    padding: 24px;
}
.admin-shell-body .notice-card h2,
.admin-shell-body .summary-card h2 {
    color: #181c32;
    font-family: Inter, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
}
.admin-shell-body .notice-card p {
    color: #5e6278;
}
.admin-shell-body .table-wrap {
    border: 1px solid #eff2f5;
    border-radius: 8px;
    background: #fff;
}
.admin-shell-body .admin-table {
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-shell-body .admin-table th {
    color: #a1a5b7;
    background: #fff;
    border-bottom: 1px solid #eff2f5;
    font-size: 11px;
    letter-spacing: .08em;
}
.admin-shell-body .admin-table td {
    color: #3f4254;
    border-bottom: 1px solid #f1f1f4;
}
.admin-shell-body .status-pill {
    border-radius: 6px;
    color: #3f4254;
    background: #f5f8fa;
}
.admin-shell-body .status-pill.approved,
.admin-shell-body .status-pill.success {
    color: #0f5132;
    background: #e8fff3;
}
.admin-shell-body .status-pill.rejected,
.admin-shell-body .status-pill.failed {
    color: #842029;
    background: #fff5f8;
}
.admin-shell-body .filter-bar {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto;
    align-items: end;
}
.admin-shell-body input,
.admin-shell-body textarea,
.admin-shell-body select {
    border-color: #e4e6ef;
    border-radius: 8px;
    background: #fff;
}
.admin-shell-body .btn {
    min-height: 40px;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: none;
}
.admin-shell-body .btn-gold {
    color: #1e1e2d;
    background: #f1d592;
}
.admin-shell-body .btn-outline,
.admin-shell-body .btn-ghost {
    color: #3f4254;
    border-color: #e4e6ef;
    background: #fff;
}
.admin-mobile-bar {
    display: none;
}

.notice-card, .summary-card {
    padding: 28px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(212,175,55,.24);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}
.notice-card { margin-bottom: 24px; }
.notice-card h2, .summary-card h2 { font-size: 28px; margin-bottom: 8px; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
.checkout-layout .page-hero { grid-column: 1 / -1; }
.summary-card ul { padding-left: 18px; color: var(--muted); }
.checkout-form { align-self: start; }
.payment-page {
    min-height: calc(100vh - 210px);
    display: grid;
    place-items: center;
}
.payment-page .summary-card {
    width: min(620px, 100%);
    text-align: center;
}
.payment-actions, .detail-grid {
    display: grid;
    gap: 14px;
}
.payment-actions { grid-template-columns: 1fr 1fr; margin-top: 22px; }
.payment-actions form, .payment-actions .btn { width: 100%; }
.event-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.event-form label:last-of-type, .event-form button { grid-column: 1 / -1; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guest-page {
    min-height: calc(100vh - 210px);
    display: grid;
    place-items: center;
    padding: 48px 20px;
    background:
        linear-gradient(180deg, rgba(255,248,239,.86), rgba(255,248,239,.96)),
        url("https://images.unsplash.com/photo-1465495976277-4387d4b0e4a6?auto=format&fit=crop&w=1600&q=80") center/cover;
}
.guest-card {
    width: min(720px, 100%);
    padding: clamp(30px, 6vw, 64px);
    text-align: center;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.guest-card h1 { font-size: clamp(38px, 7vw, 72px); margin: 12px 0; }
.guest-names { color: #735c00; font-weight: 800; font-size: 20px; }
.status-pill {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(24,35,58,.08);
    color: var(--navy);
    font-weight: 800;
}
.admin-table .status-pill {
    margin-top: 0;
    padding: 7px 10px;
    white-space: nowrap;
}
.guest-upload-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    text-align: left;
}
.upload-card { text-align: center; }
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.upload-submit { width: 100%; }
.qr-preview {
    width: 180px;
    height: 180px;
    image-rendering: pixelated;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid rgba(24,35,58,.12);
}
.usage-bar {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(24,35,58,.12);
}
.progress-line {
    width: min(180px, 100%);
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(24,35,58,.12);
}
.progress-line span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--soft-gold));
}
.usage-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--soft-gold));
}
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.filter-tabs a {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(115,92,0,.22);
    color: #735c00;
    font-weight: 800;
}
.filter-tabs a.active { background: rgba(212,175,55,.18); }
.bulk-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}
.bulk-bar select { max-width: 260px; }
.media-grid, .album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.media-card, .album-item {
    overflow: hidden;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(212,175,55,.24);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.media-card img, .media-card video, .album-item img, .album-item video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--champagne);
}
.media-check { padding: 12px 14px; display: flex; align-items: center; gap: 8px; }
.media-check input { width: auto; margin: 0; }
.media-meta, .album-caption { padding: 14px; }
.media-meta p, .album-caption p { color: var(--muted); margin: 6px 0 0; }
.media-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 14px 14px;
}
.media-actions button {
    border: 1px solid rgba(115,92,0,.22);
    background: rgba(255,255,255,.7);
    border-radius: 9px;
    padding: 10px 8px;
    font-weight: 800;
    color: #735c00;
}
.album-grid { align-items: start; }

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.center-cta { text-align: center; }
.lead-form { margin-top: 0; }
.clean-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    gap: 8px;
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.table-actions form { margin: 0; }
.table-actions .btn { min-height: 38px; padding: 8px 14px; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}
.admin-table th, .admin-table td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(39, 38, 34, .1);
    vertical-align: top;
}
.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}
.iyzico-checkout-form {
    margin-top: 22px;
}
.qr-card-feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,250,240,.95), rgba(247,237,214,.86));
    border-top: 1px solid rgba(212,175,55,.22);
    border-bottom: 1px solid rgba(212,175,55,.22);
}
.card-designer {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.designer-panel, .designer-preview {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(212,175,55,.22);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.designer-panel h2 { margin-top: 0; }
.designer-panel select, .designer-panel input, .designer-panel textarea {
    width: 100%;
    margin-top: 8px;
}
.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}
.theme-choice {
    border: 1px solid rgba(32,32,32,.12);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--paper);
    font-weight: 800;
    color: var(--charcoal);
}
.theme-choice input { width: auto; margin: 0; }
.theme-choice span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--swatch);
}
.card-preview-frame, .preview-stage {
    display: grid;
    place-items: center;
    min-height: 620px;
}
.designer-actions { margin-top: 18px; justify-content: center; }
.printable-card {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 90 / 130;
    background: var(--card-bg);
    color: var(--card-ink);
    border: 1px solid color-mix(in srgb, var(--card-accent) 55%, transparent);
    box-shadow: 0 18px 45px rgba(22, 18, 14, .16);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    overflow: hidden;
    font-family: var(--card-font);
}
.printable-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid color-mix(in srgb, var(--card-soft) 70%, transparent);
    pointer-events: none;
}
.printable-card h2 {
    font-size: 34px;
    line-height: 1.05;
    margin: 10px 0 0;
    max-width: 100%;
}
.printable-card p { margin: 0; }
.printable-card .card-brand {
    color: var(--card-accent);
    font-weight: 900;
    letter-spacing: 0;
}
.card-date, .card-subtitle, .card-instruction, .printable-card footer { color: var(--card-muted); }
.card-subtitle {
    font-size: 18px;
    font-weight: 800;
    color: var(--card-ink);
}
.card-instruction {
    font-size: 15px;
    line-height: 1.45;
    max-width: 300px;
}
.printable-card strong { color: var(--card-accent); }
.card-qr-box {
    width: 190px;
    height: 190px;
    padding: 12px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--card-soft) 70%, transparent);
    display: grid;
    place-items: center;
    z-index: 1;
}
.card-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: crisp-edges;
}
.card-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid var(--card-soft);
    border-radius: 50%;
    opacity: .75;
}
.card-corner-a { left: -42px; top: -42px; }
.card-corner-b { right: -42px; bottom: -42px; }
.theme-modern_black_tie {
    background: linear-gradient(180deg, #fff 0 8%, var(--card-bg) 8% 92%, #111 92% 100%);
}
.theme-floral_soft .card-corner {
    border-radius: 65% 35% 55% 45%;
    background: color-mix(in srgb, var(--card-soft) 40%, transparent);
}
.theme-champagne_gold {
    background: linear-gradient(145deg, var(--card-bg), #fff8e8 48%, #ead2a1);
}
.theme-rustic_cream {
    background: radial-gradient(circle at 15% 15%, #fff8ec, var(--card-bg) 42%, #eadcc9);
}
.size-mini_card { aspect-ratio: 74 / 105; }
.size-welcome_board { aspect-ratio: 210 / 297; width: min(100%, 520px); }
.print-body {
    margin: 0;
    background: #e9e9e9;
}
.print-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}
.print-toolbar button, .print-toolbar a {
    border: 1px solid #b99a55;
    color: #2b241a;
    background: #fffaf0;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}
.print-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 16px auto;
    background: #fff;
    padding: 12mm;
    display: grid;
    grid-template-columns: repeat(2, 90mm);
    grid-auto-rows: 130mm;
    gap: 10mm;
}
.print-sheet.single_card, .print-sheet.social_square, .print-sheet.welcome_board {
    grid-template-columns: 1fr;
    place-items: center;
}
.print-card-cut {
    position: relative;
    display: grid;
    place-items: center;
}
.print-card-cut::before, .print-card-cut::after {
    content: "";
    position: absolute;
    inset: -3mm;
    border: .2mm dashed rgba(0,0,0,.22);
    pointer-events: none;
}
.print-card-cut::after {
    inset: -1.5mm;
    border-style: solid;
    border-color: rgba(185,154,85,.18);
}
.print-sheet .printable-card {
    width: 90mm;
    height: 130mm;
    box-shadow: none;
    padding: 8mm 7mm;
}
.print-sheet .size-mini_card { width: 74mm; height: 105mm; }
.print-sheet .size-welcome_board { width: 180mm; height: 254mm; }
.print-sheet .printable-card h2 { font-size: 24pt; }
.print-sheet .card-qr-box { width: 42mm; height: 42mm; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 5vw, 72px);
    background: var(--navy);
    color: rgba(255,255,255,.8);
}
.site-footer strong { color: var(--soft-gold); font-family: "Playfair Display", Georgia, serif; font-size: 26px; }
.site-footer nav { display: flex; gap: 18px; font-weight: 700; }

@media (max-width: 1180px) {
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price-card.featured { transform: none; }
    .event-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    .site-header { height: auto; min-height: 74px; flex-wrap: wrap; padding-block: 14px; }
    .site-nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 2px; }
    .hero { min-height: auto; padding-top: 70px; }
    .hero h1 { font-size: 42px; }
    .steps-grid, .pricing-grid, .split-section, .contact-grid, .auth-shell, .stats-grid, .event-grid, .checkout-layout, .event-form, .detail-grid, .payment-actions, .card-designer, .qr-card-feature, .form-grid, .form-grid.two, .filter-bar { grid-template-columns: 1fr; }
    .split-section { padding: 28px; }
    .auth-shell { padding: 28px 0; }
    .panel-sidebar { position: static; width: auto; }
    .panel-main { margin-left: 0; padding: 24px 20px; }
    .panel-head, .bulk-bar { flex-direction: column; align-items: stretch; }
    .event-actions { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; }
    .media-grid, .album-grid { grid-template-columns: 1fr; }
    .theme-choice-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; white-space: normal; }
    .panel-actions .btn, .panel-actions form, .quick-actions .btn { width: 100%; }
    .site-footer nav { flex-wrap: wrap; }
    .printable-card { padding: 28px 22px; }
    .printable-card h2 { font-size: 28px; }
    .card-qr-box { width: 160px; height: 160px; }
}

@media (max-width: 980px) {
    .admin-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 60;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 18px;
        background: #1e1e2d;
        color: #fff;
        box-shadow: 0 12px 30px rgba(15,23,42,.16);
    }
    .admin-menu-toggle {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 8px;
        color: #1e1e2d;
        background: #f1d592;
        font-size: 22px;
        font-weight: 900;
    }
    .admin-mobile-brand {
        color: #f1d592;
        font-family: "Playfair Display", Georgia, serif;
        font-size: 24px;
        font-weight: 700;
        font-style: italic;
    }
    .admin-shell {
        display: block;
    }
    .admin-aside {
        position: fixed;
        left: 0;
        top: 64px;
        bottom: 0;
        width: min(312px, 88vw);
        height: auto;
        transform: translateX(-105%);
        transition: transform .22s ease;
    }
    body.admin-menu-open .admin-aside {
        transform: translateX(0);
    }
    body.admin-menu-open::after {
        content: "";
        position: fixed;
        inset: 64px 0 0;
        z-index: 20;
        background: rgba(15,23,42,.42);
    }
    .admin-workspace {
        min-height: calc(100vh - 64px);
    }
    .admin-topbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
        padding: 22px 20px;
    }
    .admin-topbar-actions {
        justify-content: flex-start;
    }
    .admin-content {
        padding: 22px 20px 34px;
    }
    .admin-shell-body .filter-bar {
        grid-template-columns: 1fr;
    }
    .admin-shell-body .detail-grid,
    .admin-shell-body .stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-shell-body .admin-table {
        min-width: 760px;
    }
}

@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    body.print-body { background: #fff; }
    .print-toolbar { display: none; }
    .print-sheet {
        margin: 0;
        box-shadow: none;
        page-break-after: always;
    }
}
