/*
 * Theme: Classic
 *
 * style-theme1.css
 * Version: 1.7.0
 *
 * Theme 1: the portal's look up to Theme 2 (style.css 1.5.0, unchanged), the
 * whole theme in this one file. The last section hides the parts of the
 * pages that only other themes show.
 *
 * Changelog: OmakThriftBridge → Changelog → omakthrift.com (changelog-data.php)
 */

/* -------------------------------------------------------
   Variables
------------------------------------------------------- */
:root {
    --primary:      #111111;
    --primary-soft: #333333;
    --bg:           #f5f5f3;
    --white:        #ffffff;
    --border:       #e5e5e5;
    --border-soft:  #eeeeee;
    --text:         #111111;
    --text-muted:   #888888;
    --text-hint:    #bbbbbb;
    --success-bg:   #eaf3de;
    --success-text: #3b6d11;
    --info-bg:      #e6f1fb;
    --info-text:    #185fa5;
    --warning-bg:   #faeeda;
    --warning-text: #854f0b;
    --danger-bg:    #fcebeb;
    --danger-text:  #a32d2d;
    --radius:       10px;
    --radius-lg:    14px;
    --radius-full:  99px;
    --max-width:    440px;
    --topbar-h:     54px;
    --nav-h:        62px;
    --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'SF Mono', 'Fira Code', monospace;
}

/* -------------------------------------------------------
   Reset
------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* -------------------------------------------------------
   Layout
------------------------------------------------------- */
.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.page-content {
    padding-top: calc(var(--topbar-h) + 24px);
    padding-bottom: calc(var(--nav-h) + 24px);
}

/* -------------------------------------------------------
   Topbar
------------------------------------------------------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 0.5px solid var(--border-soft);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.topbar-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-logo img {
    height: 25px;
    width: auto;
}

/* -------------------------------------------------------
   Bottom Nav
------------------------------------------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: var(--white);
    border-top: 0.5px solid var(--border-soft);
    display: flex;
    align-items: center;
    z-index: 100;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 6px 0;
    text-decoration: none;
    cursor: pointer;
}

.nav-item svg {
    color: var(--text-hint);
}

.nav-item.active svg {
    color: var(--primary);
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-hint);
}

.nav-item.active .nav-label {
    color: var(--primary);
}

/* -------------------------------------------------------
   Auth pages (login, verify) — no topbar, centered
------------------------------------------------------- */
.page-auth {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.auth-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-head {
    text-align: center;
    margin-bottom: 28px;
    width: 100%;
}

.auth-head h1 {
    font-size: 21px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-head p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Verify icon */
.verify-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 22px;
}

.verify-icon-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: transparent;
}

.verify-email-highlight {
    font-weight: 500;
    color: var(--text);
}

/* -------------------------------------------------------
   Typography
------------------------------------------------------- */
.h1 { font-size: 22px; font-weight: 500; line-height: 1.3; margin-bottom: 6px; }
.h2 { font-size: 18px; font-weight: 500; line-height: 1.3; margin-bottom: 6px; }
.h3 { font-size: 16px; font-weight: 500; line-height: 1.3; margin-bottom: 6px; }
.text-muted  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.text-hint   { font-size: 12px; color: var(--text-hint);  line-height: 1.5; }
.text-small  { font-size: 13px; color: var(--text-muted); }
.text-mono   { font-family: var(--font-mono); }

/* -------------------------------------------------------
   Form
------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.field-hint {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 5px;
    line-height: 1.5;
}

.field-error {
    font-size: 12px;
    color: var(--danger-text);
    margin-top: 5px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    background: var(--white);
}

input[readonly],
input[disabled] {
    color: var(--text-muted);
    background: #fafafa;
    cursor: default;
}

input::placeholder { color: var(--text-hint); }
input.is-error,
select.is-error { border-color: var(--danger-text); }

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    border: none;
    transition: opacity 0.15s;
    cursor: pointer;
}

.btn:active { opacity: 0.8; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-sending {
    background: var(--primary) !important;
    color: var(--white) !important;
    cursor: not-allowed;
    flex-direction: row;
    gap: 8px;
}

.btn-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 1px;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 0.5px solid var(--border);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 0.5px solid var(--border);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

/* -------------------------------------------------------
   Cards
------------------------------------------------------- */
.card {
    background: var(--white);
    border: 0.5px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 0.5px solid var(--border-soft);
}

.card-row:last-child { border-bottom: none; }
.card-label { font-size: 13px; color: var(--text-muted); }
.card-value { font-size: 13px; font-weight: 500; color: var(--text); }
.card-value-right { text-align: right; max-width: 65%; }
.card-value-bold { font-weight: 500; }

/* -------------------------------------------------------
   Active Order Card (home page)
------------------------------------------------------- */
.active-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.active-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.active-card-lbl {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

.active-card-num {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.active-card-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.active-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.active-card-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.active-card-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
}

/* No active order */
.no-order-card {
    background: var(--white);
    border: 0.5px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.no-order-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    border: 0.5px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-hint);
}

.no-order-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* -------------------------------------------------------
   Quick Grid (home page)
------------------------------------------------------- */
.quick-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-card {
    background: var(--white);
    border: 0.5px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.quick-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.quick-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.quick-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* -------------------------------------------------------
   Status Badges — CSS classes, no inline colors
------------------------------------------------------- */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.badge-on-hold      { background: #f8dda7; color: #7a5800; }
.badge-in-queue     { background: #00a1f2; color: #ffffff; }
.badge-pending      { background: #f8dda7; color: #7a5800; }
.badge-unpaid       { background: #ffd700; color: #5a4200; }
.badge-processing   { background: #c6e1c6; color: #2c4700; }
.badge-pending-pickup { background: #81d742; color: #2d5a00; }
.badge-shipped      { background: #ffb6c1; color: #8b1a2a; }
.badge-completed    { background: #c8d7e1; color: #2c4a5a; }
.badge-cancelled    { background: #f0f0f0; color: #555555; }
.badge-refunded     { background: #f0f0f0; color: #555555; }

.badge-green   { background: var(--success-bg); color: var(--success-text); }
.badge-blue    { background: var(--info-bg);    color: var(--info-text);    }
.badge-amber   { background: var(--warning-bg); color: var(--warning-text); }
.badge-red     { background: var(--danger-bg);  color: var(--danger-text);  }

/* -------------------------------------------------------
   Alerts
------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-info    { background: var(--info-bg);    color: var(--info-text);    }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-text);  }
.alert-link    { color: inherit; font-weight: 600; text-decoration: none; }

.active-order-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 0.5px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.active-order-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.active-order-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 0.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.active-order-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.active-order-num {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.active-order-msg {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-top: 4px;
    border-top: 0.5px solid var(--border-soft);
}

/* -------------------------------------------------------
   Divider
------------------------------------------------------- */
.divider {
    border: none;
    border-top: 0.5px solid var(--border-soft);
    margin: 20px 0;
}

/* -------------------------------------------------------
   Order List (orders.php)
------------------------------------------------------- */
.order-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: 0.5px solid var(--border-soft);
    color: inherit;
}

.order-list-row:last-child { border-bottom: none; }

.order-list-num {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.order-list-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.order-list-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-list-chevron {
    color: var(--text-hint);
}

/* -------------------------------------------------------
   Order Detail (order.php)
------------------------------------------------------- */
.order-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.order-item-name {
    font-size: 13px;
    color: var(--text);
}

.order-item-qty {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-tracking-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 6px;
    border: 0.5px solid var(--border-soft);
    color: var(--text);
    text-decoration: none;
    background: var(--bg);
}

.ty-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--info-text);
    text-decoration: none;
    padding: 5px 12px;
    border: 0.5px solid #b5d4f4;
    border-radius: 8px;
    background: var(--info-bg);
    margin-bottom: 20px;
}

/* -------------------------------------------------------
   Back link
------------------------------------------------------- */
.back-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* -------------------------------------------------------
   Section label (unified)
------------------------------------------------------- */
.section-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 16px 5px;
    background: var(--bg);
    border-bottom: 0.5px solid var(--border-soft);
}

/* -------------------------------------------------------
   Thank You page
------------------------------------------------------- */
.ty-page {
    min-height: 100vh;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.ty-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.ty-logo img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.ty-card-header {
    padding: 20px 16px 16px;
    border-bottom: 0.5px solid var(--border-soft);
}

.ty-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.ty-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.ty-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.ty-pickup-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.ty-pickup-box strong { color: var(--text); }

.section-label-sep {
    border-top: 0.5px solid var(--border-soft);
}

.ty-tracking-hint,
.tracking-hint {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.ty-tracking-hint strong,
.tracking-hint strong { color: var(--text); }

.ty-page .card { padding: 0; }
.ty-page .card-row { padding: 11px 16px; border-bottom: 0.5px solid var(--border-soft); }
.ty-page .card-row:last-child { border-bottom: none; }

.card-flush { padding: 0; }
.card-flush .card-row { padding: 11px 16px; border-bottom: 0.5px solid var(--border-soft); }
.card-flush .card-row:last-child { border-bottom: none; }
.card-flush .tracking-hint { padding: 14px 16px; }

/* -------------------------------------------------------
   Checkout
------------------------------------------------------- */
.page-content-standalone {
    padding-top: 28px;
    padding-bottom: 48px;
}

.checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkout-head img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-section-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.field-label-optional {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-hint);
}

.shipping-detected { margin-bottom: 10px; }

/* -------------------------------------------------------
   Utility
------------------------------------------------------- */
.mt-4  { margin-top: 4px;  }
.mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px;  }
.mb-8  { margin-bottom: 8px;  }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* -------------------------------------------------------
   Loading spinner
------------------------------------------------------- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------
   Changelog page
------------------------------------------------------- */
.changelog-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.changelog-file {
    margin-bottom: 32px;
}

.changelog-file-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--border-soft);
}

.changelog-entry {
    padding: 12px 0;
    border-bottom: 0.5px solid var(--border-soft);
}

.changelog-entry:last-child { border-bottom: none; }

.changelog-version {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.changelog-ver-num {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    font-family: var(--font-mono);
}

.changelog-ver-date {
    font-size: 12px;
    color: var(--text-hint);
}

.changelog-latest {
    font-size: 10px;
    font-weight: 500;
    background: var(--success-bg);
    color: var(--success-text);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.changelog-changes {
    list-style: none;
    padding: 0;
}

.changelog-changes li {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
}

.changelog-changes li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-hint);
}

/* -------------------------------------------------------
   Profile page
------------------------------------------------------- */
.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
}

.profile-name {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 13px;
    color: var(--text-muted);
}

.section-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px 5px;
    background: var(--bg);
    border-bottom: 0.5px solid var(--border-soft);
}

.edit-btn {
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.edit-save-btn {
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.profile-field {
    padding: 11px 16px;
    border-bottom: 0.5px solid var(--border-soft);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field input,
.profile-field select {
    width: 100%;
    margin-top: 6px;
}

.profile-field-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 0.5px solid var(--border-soft);
}

.profile-field-row2 .profile-field {
    border-bottom: none;
}

.profile-field-row2 .profile-field:first-child {
    border-right: 0.5px solid var(--border-soft);
}

.profile-field-locked {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-locked-row {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-hint);
    font-size: 13px;
}

.profile-locked-row svg {
    opacity: 0.4;
    flex-shrink: 0;
}

.profile-locked {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-hint);
}

.profile-locked svg {
    opacity: 0.4;
    flex-shrink: 0;
}

.card-value-muted {
    font-size: 13px;
    color: var(--text-hint);
    font-weight: 400;
}

.profile-cancel-btn {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 0;
    margin-bottom: 12px;
}

.profile-logout-link {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #a32d2d;
    text-decoration: none;
    padding: 12px 0;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 13px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 13px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

.page-auth-404 {
    justify-content: center;
    gap: 0;
}

.err-404-logo {
    margin-bottom: 32px;
}

.err-404-num {
    font-size: 80px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.err-404-head {
    margin-bottom: 32px;
}

/* -------------------------------------------------------
   Address confirm modal (checkout.php)
------------------------------------------------------- */
.omk-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}

.omk-overlay.show {
    display: flex;
}

.omk-sheet {
    background: var(--white);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: var(--max-width);
    padding: 20px 20px 40px;
    animation: omkSlideUp .25s cubic-bezier(.32,.72,0,1);
}

@keyframes omkSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.omk-drag-handle {
    width: 36px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.omk-sheet-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.omk-sheet-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.omk-addr-card {
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px 16px;
    margin-bottom: 16px;
}

.omk-addr-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.omk-addr-row:last-child {
    border-bottom: none;
}

.omk-addr-label {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 64px;
    padding-top: 1px;
    flex-shrink: 0;
}

.omk-addr-val {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.omk-btn-row {
    display: flex;
    gap: 8px;
}

.omk-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: omkSpin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes omkSpin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------------
   Checkout: birthday dropdowns and shipping options
------------------------------------------------------- */
.bday-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.2fr;
    gap: 8px;
}

.ship-zone {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    color: var(--success-text);
}

.ship-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-top: 10px;
    background: var(--white);
    cursor: pointer;
    position: relative;
}

.ship-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ship-opt.on { border-color: var(--primary); background: #fafaf8; }

.ship-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cccccc;
    flex-shrink: 0;
    position: relative;
}

.ship-opt.on .ship-dot { border-color: var(--primary); }
.ship-opt.on .ship-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--primary);
}

.ship-txt { display: flex; flex-direction: column; min-width: 0; }
.ship-nm  { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ship-sub { font-size: 13px; color: var(--text-muted); line-height: 1.35; margin-top: 2px; }
.ship-pr  { margin-left: auto; font-weight: 700; font-size: 15px; white-space: nowrap; }
#shipping-error { margin-top: 10px; }

/* -------------------------------------------------------
   Thank-you: "Tap here to pay postage" and its sheet
------------------------------------------------------- */
.ty-page .card-row.ship-row { flex-wrap: wrap; }
.pay-link-row { width: 100%; text-align: right; }

.pay-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--info-text);
    background: var(--info-bg);
    padding: 5px 11px;
    border-radius: var(--radius-full);
    margin-top: 6px;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.pay-sheet { text-align: center; }
.pay-sheet .omk-sheet-title { font-size: 18px; font-weight: 600; }

.pay-amt {
    display: inline-block;
    margin: 6px 0 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--warning-bg);
    color: var(--warning-text);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.pay-qr {
    width: 210px;
    height: 210px;
    margin: 0 auto 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.pay-name { font-weight: 600; font-size: 14px; }

.pay-steps {
    list-style: none;
    counter-reset: paystep;
    text-align: left;
    margin: 12px 0 16px;
    padding: 0;
}

.pay-steps li {
    counter-increment: paystep;
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    margin: 7px 0;
}

.pay-steps li::before {
    content: counter(paystep);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* -------------------------------------------------------
   Checkout: the (i) next to J&T Express DFOD
------------------------------------------------------- */
.dfod-info {
    display: inline-flex;
    vertical-align: -3px;
    margin-left: 6px;
    color: var(--info-text);
    cursor: pointer;
    border-radius: 50%;
}
.dfod-info:focus-visible { outline: 2px solid var(--info-text); outline-offset: 2px; }

/* -------------------------------------------------------
   Parts of the pages this theme does not show
------------------------------------------------------- */
.topbar-word,
.nav-ico-bag,
.order-steps,
.active-card-when,
.active-card-btn-more,
.home-track,
.copy-btn,
.order-progress,
.sec-ico,
.track-btn-more,
.row-ico,
.addr-block,
.auth-word,
.auth-note,
.step-num,
.checkout-bar-ship { display: none !important; }

/* Login: the head and form sit in .auth-sheet; laid out as before */
.auth-sheet {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
