/* ============================================================
   Zorda — Functional, Fast, Friendly
   Green from the logo. Clean surfaces. Clear hierarchy.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
    --bg:           #f4f5f7;
    --surface:      #ffffff;
    --ink:          #111827;
    --ink-muted:    #6b7280;
    --ink-faint:    #9ca3af;
    --border:       #e5e7eb;
    --border-strong:#d1d5db;
    --hover-bg:     #f3f4f6;

    --green:        #22863a;
    --green-dark:   #1a6b2d;
    --green-vivid:  #2da44e;
    --green-light:  #c6efce;
    --green-bg:     #effaf1;

    --red:          #cf222e;
    --red-bg:       #ffeef0;
    --amber:        #bf8700;
    --amber-bg:     #fff8c5;
    --blue:         #0969da;
    --blue-bg:      #ddf4ff;

    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body:    'Figtree', system-ui, -apple-system, sans-serif;
    --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

    --radius:       6px;
    --radius-lg:    10px;
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
    --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg:    0 4px 16px rgba(0,0,0,0.08);
    --ease:         180ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* --- Base --- */
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--green-vivid); }
strong, b { font-weight: 600; }
small { font-size: 0.85rem; color: var(--ink-muted); }
code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--hover-bg);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}
pre { font-family: var(--font-mono); font-size: 0.82rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
img { max-width: 100%; height: auto; }


/* --- Fade-in --- */
@keyframes enter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================
   APP HEADER (authenticated)
   ============================ */
.app-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, var(--green-vivid) 100%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 10px rgba(26,107,45,0.18);
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 1.5rem;
}
.app-logo { display: flex; align-items: center; flex-shrink: 0; }
.app-logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.app-nav { display: flex; gap: 0.15rem; flex: 1; }
.app-nav a {
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius);
    font-size: 0.87rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    transition: all var(--ease);
}
.app-nav a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.app-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.18);
    font-weight: 600;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    font-size: 0.82rem;
}
.app-user-email { color: rgba(255,255,255,0.78); }
.app-user-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); }
.app-user a.logout-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    transition: all var(--ease);
}
.app-user a.logout-link:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.14); }


/* ============================
   PUBLIC HEADER (visitor)
   ============================ */
.public-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.public-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.public-header-inner img { height: 26px; width: auto; }
.public-nav { display: flex; gap: 1.25rem; font-size: 0.87rem; }
.public-nav a { color: var(--ink-muted); font-weight: 500; }
.public-nav a:hover { color: var(--green); }


/* ============================
   MAIN CONTENT
   ============================ */
.app-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    animation: enter 0.3s ease-out;
}
.public-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    animation: enter 0.3s ease-out;
}


/* ============================
   PAGE TITLE
   ============================ */
.page-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.page-title::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--green);
    border-radius: 2px;
    flex-shrink: 0;
}


/* ============================
   CARDS
   ============================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.25rem; }
.card-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--hover-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header h3 { font-size: 0.95rem; }


/* ============================
   ALERTS
   ============================ */
.alert {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.87rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: enter 0.25s ease-out;
}
.alert::before { font-size: 1rem; flex-shrink: 0; }
.alert-info {
    background: var(--green-bg);
    color: var(--green-dark);
    border: 1px solid var(--green-light);
}
.alert-info::before { content: '\2713'; color: var(--green); font-weight: 700; }
.alert-success {
    background: var(--green-bg);
    border: 1px solid var(--green-light);
    color: var(--green-dark);
}
.alert-success::before { content: '\2713'; color: var(--green); font-weight: 700; }
.alert-error {
    background: var(--red-bg);
    border: 1px solid #ffc1c5;
    color: var(--red);
}
.alert-error::before { content: '\2717'; font-weight: 700; }


/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    font-family: var(--font-body);
    font-size: 0.87rem;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green-dark);
}
.btn-primary:hover {
    background: var(--green-vivid);
    border-color: var(--green);
    color: #fff;
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--hover-bg); border-color: var(--ink-faint); }

.btn-ghost {
    background: transparent;
    color: var(--ink-muted);
}
.btn-ghost:hover { background: var(--hover-bg); color: var(--ink); }

.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: #a41e28;
}
.btn-danger:hover { background: #b91c26; color: #fff; }

.btn-sm { padding: 0.25rem 0.55rem; font-size: 0.78rem; }
.btn-lg { padding: 0.6rem 1.5rem; font-size: 0.95rem; }
.btn-block { width: 100%; }


/* ============================
   FORMS
   ============================ */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--ink-muted);
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.7rem;
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34,134,58,0.12);
}
.form-input::placeholder { color: var(--ink-faint); }


/* ============================
   TABS / FILTERS
   ============================ */
.tab-bar {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
}
.tab-bar a, .tab-bar button {
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--ease);
    text-decoration: none;
    border-radius: 6px 6px 0 0;
}
.tab-bar a:hover, .tab-bar button:hover {
    color: var(--ink);
    background: var(--hover-bg);
}
.tab-bar a.active, .tab-bar button.active {
    color: var(--green-dark);
    background: none;
    border-bottom-color: var(--green);
    font-weight: 700;
}


/* ============================
   TABLES
   ============================ */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
table.data-table thead th {
    padding: 0.7rem 0.8rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    background: var(--hover-bg);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
table.data-table tbody td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    line-height: 1.5;
}
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr { transition: background 100ms; }
table.data-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }
table.data-table tbody tr:hover { background: var(--green-bg); }
table.data-table a { font-weight: 500; }
table.data-table img { vertical-align: middle; }

/* Style the [action] links from server HTML */
table.data-table td a[href*="/print"],
table.data-table td a[href*="/edit"] {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    margin: 0.1rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-dark);
    background: var(--green-bg);
    border: 1px solid var(--green-light);
    border-radius: 4px;
    transition: all var(--ease);
}
table.data-table td a[href*="/print"]:hover,
table.data-table td a[href*="/edit"]:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}


/* ============================
   DATATABLES OVERRIDES
   ============================ */
.dataTables_wrapper { font-family: var(--font-body); font-size: 0.88rem; }
.dataTables_wrapper .dataTables_filter { margin-bottom: 1rem; }
.dataTables_wrapper .dataTables_filter label { font-weight: 500; color: var(--ink-muted); }
.dataTables_wrapper .dataTables_filter input {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-left: 0.5rem;
    min-width: 250px;
    transition: all var(--ease);
}
.dataTables_wrapper .dataTables_filter input:hover {
    border-color: var(--ink-faint);
}
.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3.5px rgba(34,134,58,0.12);
    transform: scale(1.01);
}
.dataTables_wrapper .dataTables_info {
    padding: 0.6rem 0.7rem;
    color: var(--ink-faint);
    font-size: 0.78rem;
}
.dataTables_wrapper .dataTables_paginate { padding: 0.5rem 0.7rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.2rem 0.55rem;
    margin: 0 0.1rem;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    background: var(--surface) !important;
    color: var(--ink-muted) !important;
    cursor: pointer;
    transition: all var(--ease);
    font-size: 0.78rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--hover-bg) !important;
    color: var(--ink) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--green) !important;
    color: #fff !important;
    border-color: var(--green-dark) !important;
    font-weight: 600;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.35;
    cursor: default;
}
.dataTables_wrapper .dataTables_processing {
    background: rgba(244,245,247,0.9);
    color: var(--ink-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
}
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after { opacity: 0.25; }


/* ============================
   BADGES
   ============================ */
.badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
}
.badge-amber  { background: var(--amber-bg); color: var(--amber); }
.badge-green  { background: var(--green-bg); color: var(--green-dark); }
.badge-red    { background: var(--red-bg); color: var(--red); }
.badge-gray   { background: var(--hover-bg); color: var(--ink-muted); }
.badge-blue   { background: var(--blue-bg); color: var(--blue); }


/* ============================
   DETAILS / ACCORDION
   ============================ */
details.stage {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.35rem;
    background: var(--surface);
    overflow: hidden;
}
details.stage summary {
    padding: 0.65rem 0.85rem;
    font-weight: 600;
    font-size: 0.87rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 100ms;
}
details.stage summary::-webkit-details-marker { display: none; }
details.stage summary::before {
    content: '';
    width: 0; height: 0;
    border-left: 5px solid var(--ink-faint);
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
    transition: transform var(--ease);
    flex-shrink: 0;
}
details.stage[open] summary::before { transform: rotate(90deg); }
details.stage summary:hover { background: var(--hover-bg); }
details.stage .stage-body {
    padding: 0.85rem;
    border-top: 1px solid var(--border);
    background: var(--hover-bg);
}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}
.team-grid a {
    padding: 0.35rem 0.7rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
    transition: all var(--ease);
    text-decoration: none;
}
.team-grid a:hover {
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--green-bg);
}


/* ============================
   ORDER HEADER
   ============================ */
.order-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.order-header .shop-icon { width: 32px; height: 32px; flex-shrink: 0; margin-top: 0.15rem; }
.order-header h1 { font-size: 1.35rem; margin-bottom: 0.1rem; }
.order-header .order-meta {
    font-size: 0.82rem;
    color: var(--ink-muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.order-info-item {
    background: var(--hover-bg);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
}
.order-info-item dt {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 0.1rem;
}
.order-info-item dd { font-weight: 600; }


/* ============================
   ITEM CARDS
   ============================ */
.item-card {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.item-card:last-child { border-bottom: none; }
.item-card-img {
    width: 160px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.item-card-img img { width: 100%; display: block; }
.item-card-body { flex: 1; min-width: 0; }
.item-card-body h4 { margin-bottom: 0.25rem; }
.item-card-body .item-meta { font-size: 0.82rem; color: var(--ink-muted); }


/* ============================
   GIFTNOTE EDITOR
   ============================ */
.giftnote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.giftnote-card-header {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    background: var(--hover-bg);
}
.giftnote-card-header img.item-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.giftnote-card-body { padding: 0.85rem; }
.giftnote-editor-wrap {
    border: 1px solid var(--green-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.65rem;
}
.giftnote-editor-wrap .ql-toolbar {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    background: var(--hover-bg);
}
.giftnote-editor-wrap .ql-container { border: none !important; }
.giftnote-editor-wrap .ql-editor {
    min-height: 140px;
    font-size: 15px;
    font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
    text-align: center;
    background-image: url('https://cdn.shopify.com/s/files/1/1888/4475/files/hw-back_480x480.png?v=1611738880');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.giftnote-actions { display: flex; gap: 0.4rem; margin-top: 0.4rem; }


/* ============================
   SIGN-IN
   ============================ */
.signin-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2rem;
}
.signin-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem 2rem;
    animation: enter 0.35s ease-out;
    position: relative;
    overflow: hidden;
}
.signin-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--green);
}
.signin-logo { text-align: center; margin-bottom: 1.75rem; }
.signin-logo img { height: 36px; }
.signin-card h2 {
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}
.signin-footer {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-faint);
}
.signin-footer a { color: var(--ink-muted); }


/* ============================
   HERO / LANDING
   ============================ */
.hero {
    text-align: center;
    padding: 4.5rem 1.5rem 4rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.hero-logo { margin-bottom: 2rem; }
.hero-logo img { max-height: 72px; }
.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.15;
    animation: enter 0.4s ease-out 0.1s both;
}
.hero h1 span { display: block; }
.hero h1 .hero-sub {
    font-size: 1.2rem;
    color: var(--green);
    font-weight: 400;
    font-style: italic;
    font-family: var(--font-display);
    margin-top: 0.3rem;
}
.hero p { color: var(--ink-muted); font-size: 1rem; max-width: 480px; margin: 0.75rem auto 0; }

.landing-section {
    max-width: 660px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}
.landing-section h2 { margin-bottom: 0.5rem; }
.landing-section p { color: var(--ink-muted); }
.price-tag {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--green);
    font-weight: 600;
    margin: 0.35rem 0;
}
.price-sub { font-size: 1rem; color: var(--ink-muted); }


/* ============================
   LEGAL PAGES
   ============================ */
.legal-content { line-height: 1.75; }
.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content h3 { font-size: 1rem; color: var(--ink-muted); font-weight: 400; margin-bottom: 1.5rem; }
.legal-content ol { padding-left: 1.5rem; }
.legal-content ol > li { margin-top: 1.25rem; }
.legal-content ol > li > b { font-size: 1rem; }
.legal-content ol ol > li { margin-top: 0.5rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content ul > li { margin-top: 0.75rem; }
.legal-content ul > li > b { display: block; margin-bottom: 0.25rem; }


/* ============================
   FOOTER
   ============================ */
.app-footer {
    margin-top: 3rem;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-faint);
    border-top: 1px solid var(--border);
}
.app-footer a { color: var(--ink-muted); }

.public-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    background: var(--surface);
}
.public-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    font-size: 0.85rem;
}
.public-footer h4 {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 0.65rem;
}
.public-footer ul { list-style: none; }
.public-footer ul li { margin-bottom: 0.3rem; }
.public-footer ul a { color: var(--ink-muted); }
.public-footer ul a:hover { color: var(--green); }
.public-footer p { color: var(--ink-muted); margin-bottom: 0.4rem; line-height: 1.6; }
.public-footer-bottom {
    max-width: 960px;
    margin: 1.25rem auto 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-faint);
}


/* ============================
   DEPLOY ADMIN
   ============================ */
.deploy-card {
    max-width: 560px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: enter 0.3s ease-out;
}
.deploy-card h2 {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    background: var(--hover-bg);
}
.deploy-card .deploy-body { padding: 1.25rem; }
.deploy-info { width: 100%; font-size: 0.87rem; margin-bottom: 1rem; }
.deploy-info td { padding: 0.3rem 0; }
.deploy-info td:first-child {
    font-weight: 600;
    color: var(--ink-muted);
    padding-right: 1rem;
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.deploy-step {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.4rem;
    overflow: hidden;
}
.deploy-step summary {
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.87rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.deploy-step pre {
    background: #161b22;
    color: #c9d1d9;
    padding: 0.85rem;
    overflow-x: auto;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
}


/* ============================
   UTILITIES
   ============================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }


/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .app-header-inner { padding: 0 1rem; gap: 0.75rem; }
    .app-user-email { display: none; }
    .app-main { padding: 1rem; }
    .public-main { padding: 1.25rem 1rem; }

    .hero { padding: 3rem 1rem; }
    .hero h1 { font-size: 1.55rem; }
    .hero h1 .hero-sub { font-size: 1rem; }
    .price-tag { font-size: 1.55rem; }

    .public-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

    .order-header { flex-direction: column; }
    .order-info-grid { grid-template-columns: 1fr; }
    .item-card { flex-direction: column; }
    .item-card-img { width: 100%; }

    table.data-table { font-size: 0.78rem; }
    table.data-table thead th { padding: 0.4rem 0.5rem; font-size: 0.68rem; }
    table.data-table tbody td { padding: 0.4rem 0.5rem; }
}

@media (max-width: 480px) {
    .app-nav a { padding: 0.3rem 0.45rem; font-size: 0.8rem; }
    .signin-card { padding: 2rem 1.5rem 1.75rem; }
    .giftnote-card-header { flex-direction: column; }
}
