/* ==================================================================
   Plipp — Global stylesheet
   Design tokens, base styles, components, page styles.
   No shadows anywhere. Buttons: fully rounded. Containers: 6px.
   ================================================================== */

/* ------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------ */
:root {
    /* Brand */
    --brand: #165d92;
    --brand-hover: #134e7a;
    --brand-tint: #eff6fc;
    --brand-tint-strong: #d6e6f3;

    /* Ink & surface */
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #556074;
    --muted-soft: #94a3b8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;

    /* Feedback */
    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #b45309;
    --warning-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;

    /* Creator accent — overridden per creator page via JS */
    --accent: #165d92;

    /* Radii */
    --radius-button: 9999px;
    --radius-card: 6px;
    --radius-input: 6px;

    /* Spacing rhythm */
    --gap-xs: 6px;
    --gap-sm: 10px;
    --gap: 16px;
    --gap-lg: 24px;
    --gap-xl: 40px;

    /* Type */
    --font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    --font-display: "Caacupe One", var(--font-ui);

    /* Container */
    --wrap: 1120px;
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--ink);
}

h1 {
    font-size: 30px;
    font-weight: 700;
}

h2 {
    font-size: 22px;
    font-weight: 700;
}

h3 {
    font-size: 17px;
    font-weight: 600;
}

p {
    margin: 0;
}

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

.wrap-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.stack>*+* {
    margin-top: var(--gap);
}

.stack-lg>*+* {
    margin-top: var(--gap-lg);
}

.row {
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.grid {
    display: grid;
    gap: var(--gap);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ------------------------------------------------------------------
   Header (public site)
   ------------------------------------------------------------------ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--gap);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
    font-size: 17px;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-hover);
}

.btn-outline {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--surface-alt);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
}

.btn-ghost:hover {
    background: var(--surface-alt);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Icon-only */
.icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-button);
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--surface-alt);
}

/* ------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 20px;
}

.card-flat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.card-tight {
    padding: 16px;
}

/* ------------------------------------------------------------------
   Inputs
   ------------------------------------------------------------------ */
.field {
    display: block;
    margin-bottom: 14px;
}

.field>label,
.label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.input,
.select,
.textarea {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-input);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
    height: auto;
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(22, 93, 146, 0.15);
}

.input.error {
    border-color: var(--danger);
}

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

.hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.input-wrap {
    position: relative;
}

.input-wrap .input {
    padding-left: 38px;
}

.input-wrap .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-soft);
    font-size: 18px;
    pointer-events: none;
}

/* ------------------------------------------------------------------
   Badges & pills
   ------------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    background: var(--surface-alt);
    color: var(--ink-soft);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

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

.badge-brand {
    background: var(--brand-tint);
    color: var(--brand);
}

/* ------------------------------------------------------------------
   Tab bar (pill switcher)
   ------------------------------------------------------------------ */
.tabbar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
}

.tabbar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tabbar button[aria-selected="true"] {
    background: var(--brand);
    color: #fff;
}

/* ------------------------------------------------------------------
   Notifications (top center)
   ------------------------------------------------------------------ */
.notify-layer {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    padding: 0 16px;
}

.notify {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    pointer-events: auto;
    animation: notify-in 0.25s ease;
}

.notify-icon {
    font-size: 20px;
    margin-top: 1px;
}

.notify-title {
    font-size: 13px;
    font-weight: 700;
}

.notify-msg {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 2px;
}

.notify-close {
    background: none;
    border: none;
    color: var(--muted-soft);
    font-size: 18px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 9999px;
}

.notify-close:hover {
    background: var(--surface-alt);
    color: var(--ink);
}

.notify-success .notify-icon {
    color: var(--success);
}

.notify-error .notify-icon {
    color: var(--danger);
}

.notify-warning .notify-icon {
    color: var(--warning);
}

.notify-info .notify-icon {
    color: var(--brand);
}

@keyframes notify-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------------------
   Splash / modal overlay
   ------------------------------------------------------------------ */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    border: none;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    animation: modal-in 0.22s ease;
}

.modal-wide {
    max-width: 720px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--surface-alt);
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Contact message modal — white, red message, X top-right */
.contact-modal {
    max-width: 420px;
    text-align: center;
}

.contact-modal .modal-title {
    color: var(--danger);
    font-size: 16px;
}

/* ------------------------------------------------------------------
   Loading & empty states
   ------------------------------------------------------------------ */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--muted);
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--line-strong);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}

/* ------------------------------------------------------------------
   Footer (public site)
   ------------------------------------------------------------------ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin-top: 64px;
    padding: 32px 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-cta {
    font-weight: 600;
    color: var(--brand);
}

/* ------------------------------------------------------------------
   Index — storefront grid
   ------------------------------------------------------------------ */
.page-head {
    padding: 40px 0 12px;
}

.page-head h1 {
    font-size: 26px;
}

.page-head p {
    color: var(--muted);
    margin-top: 6px;
}

.index-hero {
    background-color: var(--brand);
    color: #ffffff;
    padding: 56px 0;
    text-align: left;
}

.index-hero h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    max-width: 680px;
    line-height: 1.25;
}

.index-hero p {
    font-size: 16px;
    opacity: 0.92;
    margin-top: 12px;
    max-width: 580px;
    color: #ffffff;
}

.index-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (max-width: 699px) {
    .index-hero {
        padding: 36px 0;
    }
    .index-hero h1 {
        font-size: 26px;
    }
    .index-hero p {
        font-size: 14px;
    }
    .index-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .index-hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.index-hero-actions .btn-white {
    background: #ffffff;
    color: var(--brand);
    border-color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
}

.index-hero-actions .btn-white:hover {
    background: rgba(255, 255, 255, 0.92);
}

.index-hero-actions .btn-ghost-white {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-weight: 600;
    border-radius: 9999px;
}

.index-hero-actions .btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.category-strip {
    display: flex;
    gap: 10px;
    padding: 24px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    text-decoration: none;
}

.category-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.category-pill.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.category-pill.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--surface-alt);
    border-color: var(--line);
    color: var(--muted);
}

.grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.grid-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.grid-sort-select {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    outline: none;
    cursor: pointer;
}

.grid-sort-select:focus {
    border-color: var(--brand);
}

.store-hero-band {
    background-color: var(--accent);
    color: #ffffff;
    padding: 48px 0;
    width: 100%;
}

[data-page="store"] .product-card:hover {
    border-color: var(--accent);
}

[data-page="store"] .category-pill.active {
    background: var(--accent);
    border-color: var(--accent);
}

[data-page="store"] .category-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.store-hero-band .store-name {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

.store-hero-band .store-sub {
    font-size: 15px;
    opacity: 0.92;
    margin-top: 8px;
    color: #ffffff;
}

.product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, 1fr);
    padding: 20px 0 40px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 699px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    transition: border-color 0.15s ease;
}

.product-card:hover {
    border-color: var(--brand);
    text-decoration: none;
}

.product-cover {
    aspect-ratio: 4 / 5;
    width: 100%;
    background: var(--surface-alt);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-cover img,
.product-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    color: var(--muted-soft);
}

.product-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
}

.product-store {
    font-size: 12px;
    color: var(--muted);
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

/* ------------------------------------------------------------------
   Landing page
   ------------------------------------------------------------------ */
.land-hero {
    padding: 72px 0 48px;
    text-align: center;
}

.land-hero h1 {
    font-size: 40px;
    letter-spacing: -0.03em;
}

.land-hero p {
    color: var(--muted);
    font-size: 16px;
    margin-top: 12px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.land-section {
    padding: 56px 0;
    border-top: 1px solid var(--line);
}

.land-section h2 {
    font-size: 26px;
}

.land-section p {
    color: var(--ink-soft);
    margin-top: 12px;
}

.land-cta {
    background: var(--brand-tint);
    border-top: 1px solid var(--brand-tint-strong);
    border-bottom: 1px solid var(--brand-tint-strong);
    padding: 56px 0;
}

.land-cta h2 {
    text-align: center;
}

.land-cta p {
    text-align: center;
    color: var(--ink-soft);
    margin-top: 8px;
}

.land-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .land-hero h1 {
        font-size: 30px;
    }

    .land-cta-actions {
        flex-direction: column;
    }
}

body[data-page="account"] {
    background: #000000 !important;
    color: #ffffff;
}

.bio-page {
    max-width: 560px;
    margin: 0 auto;
    background: #000000;
    border: none;
    min-height: 100vh;
}

.bio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    position: relative;
    z-index: 2;
}

.bio-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--font-display);
}

.bio-logo img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.bio-logo span {
    font-size: 15px;
}

.bio-join {
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
}

.bio-join:hover {
    text-decoration: underline;
}

.bio-hero {
    margin-top: -48px;
    padding: 68px 24px 40px;
    text-align: center;
    position: relative;
    color: #fff;
    background-color: var(--accent);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.bio-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

.bio-hero-shadow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
}

.bio-hero-inner {
    position: relative;
    z-index: 2;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.bio-avatar,
.bio-avatar-fallback {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.bio-handle {
    font-size: 16px;
    font-weight: 700;
    margin-top: 12px;
}

.bio-text {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Continuous Black Body */
.bio-body-black {
    background: #000000;
    color: #ffffff;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.bio-links {
    padding: 20px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #000000;
}

.bio-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-radius: 9999px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease;
    box-shadow: none;
}

.bio-link:hover {
    transform: scale(1.01);
    border-color: #ffffff;
    text-decoration: none;
    color: #ffffff;
}

.bio-link .bio-link-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.bio-link-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.bio-link-icon-wrap iconify-icon {
    font-size: 18px;
    color: #ffffff;
}

.bio-link .bio-link-arrow {
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.bio-store {
    padding: 16px 20px 24px;
    background: #000000;
}

.bio-store-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bio-store-list::-webkit-scrollbar {
    display: none;
}

.bio-store-card {
    min-width: 120px;
    width: 120px;
    background: transparent;
    border: none;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.bio-store-cover {
    width: 120px;
    height: 150px; /* 4:5 aspect ratio (120 * 5 / 4 = 150px) */
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    background: #111111;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.bio-store-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.bio-store-cover .product-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
}

.bio-store-body {
    padding: 8px 2px 4px;
}

.bio-store-name {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bio-store-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}

.bio-footer {
    padding: 24px 20px 36px;
    text-align: center;
    border-top: none; /* No visible separator line */
    background: #000000;
}

.bio-footer-poppins {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.bio-footer-poppins:hover {
    text-decoration: underline;
    color: #ffffff !important;
}

/* ------------------------------------------------------------------
   Store page
   ------------------------------------------------------------------ */
.store-hero {
    padding: 40px 0 24px;
    border-bottom: 1px solid var(--line);
}

.store-hero .store-name {
    font-size: 26px;
}

.store-hero .store-accent {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 8px;
    vertical-align: middle;
}

/* ------------------------------------------------------------------
   Checkout Layout (PC & Phone Responsive - Part 0, 1, 4)
   ------------------------------------------------------------------ */

.checkout-wrap {
    display: grid;
    grid-template-columns: calc(45% - 20px) calc(55% - 20px);
    column-gap: 40px;
    row-gap: 40px;
    padding: 32px 0 56px;
    width: 100%;
    box-sizing: border-box;
}

.checkout-media {
    width: 100%;
    box-sizing: border-box;
}

.checkout-main-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 480px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.checkout-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.checkout-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.checkout-thumbs::-webkit-scrollbar {
    display: none;
}

.checkout-thumb {
    width: 64px;
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.checkout-thumb[aria-current="true"] {
    border: 2px solid #165D92 !important;
}

.checkout-info {
    width: 100%;
    padding-left: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.checkout-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 10px;
}

.checkout-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.checkout-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.checkout-price-strike {
    font-size: 16px;
    text-decoration: line-through;
    color: var(--muted);
    font-weight: 500;
}

.checkout-promo-box {
    background: var(--surface-alt);
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--line);
    margin-bottom: 24px;
    box-sizing: border-box;
}

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

.checkout-promo-row {
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.checkout-promo-input {
    flex: 1;
    height: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-sizing: border-box;
    outline: none;
}

.checkout-promo-input:focus {
    border-color: #165D92;
}

.checkout-promo-btn {
    height: 44px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 9999px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.checkout-promo-btn:hover:not(:disabled) {
    border-color: #165D92;
    background: var(--surface-alt);
}

.checkout-promo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkout-promo-status {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.checkout-btn-buy {
    width: 100%;
    height: 52px;
    min-height: 52px;
    border-radius: 9999px;
    background: #165D92;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background 0.15s ease;
}

.checkout-btn-buy:hover {
    background: #124b77;
}

.checkout-btn-download {
    width: 100%;
    height: 52px;
    min-height: 52px;
    border-radius: 9999px;
    background: #ffffff;
    color: var(--success);
    border: 2px solid var(--success);
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background 0.15s ease;
}

.checkout-btn-download:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.08);
}

.checkout-secondary-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.checkout-btn-secondary {
    flex: 1;
    height: 44px;
    min-height: 44px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.checkout-btn-secondary:hover {
    border-color: #165D92;
    background: var(--surface-alt);
}

/* Description spans full width below both columns on PC */
.checkout-desc {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    box-sizing: border-box;
}

.checkout-desc h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--ink);
}

.checkout-desc-content {
    position: relative;
}

.description-container {
    position: relative;
    box-sizing: border-box;
}

.description-container.collapsed {
    max-height: 220px;
    overflow: hidden;
}

.description-container.expanded {
    max-height: none;
    overflow: visible;
}

@media (max-width: 699px) {
    .description-container.collapsed {
        max-height: 180px;
    }
}

.description-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 14px;
}

.description-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .description-fade,
body.dark .description-fade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

.checkout-desc-toggle {
    background: none;
    border: none;
    padding: 0;
    color: #165D92;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
}

.checkout-desc-toggle:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   Phone Layout (< 700px)
   ------------------------------------------------------------------ */
@media (max-width: 699px) {
    .checkout-wrap {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 16px 0 40px;
    }

    .checkout-media {
        width: 100%;
    }

    .checkout-main-img {
        aspect-ratio: 1 / 1;
        max-height: 60vh;
        width: 100%;
        border-radius: 6px;
    }

    .checkout-thumb {
        width: 56px;
        height: 56px;
    }

    .checkout-info {
        padding-left: 0;
        width: 100%;
    }

    .checkout-title {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .checkout-price {
        font-size: 20px;
        font-weight: 700;
    }

    .checkout-price-wrap {
        margin-bottom: 16px;
    }

    .checkout-promo-box {
        margin-bottom: 20px;
        padding: 14px;
    }

    .checkout-promo-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .checkout-promo-input {
        width: 100%;
        height: 52px;
        min-height: 52px;
        font-size: 15px;
    }

    .checkout-promo-btn {
        width: 100%;
        height: 52px;
        min-height: 52px;
        font-size: 15px;
        border-radius: 9999px;
    }

    .checkout-btn-buy,
    .checkout-btn-download {
        width: 100%;
        height: 52px;
        min-height: 52px;
        font-size: 16px;
    }

    .checkout-secondary-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .checkout-btn-secondary {
        flex: 1;
        width: calc(50% - 5px);
        height: 44px;
        min-height: 44px;
        font-size: 13px;
    }

    .checkout-desc {
        margin-top: 24px;
        padding-top: 20px;
        width: 100%;
    }
}

/* ------------------------------------------------------------------
   Dashboard shell
   ------------------------------------------------------------------ */
.dash-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.dash-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 0 16px;
}

.dash-header-row .env-switch {
    margin-left: 8px;
}

.dash-header-row .spacer {
    flex: 1;
}

.dash-tabs {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 6px 16px;
    scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar {
    display: none;
}

.dash-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

.dash-tabs a:hover {
    background: var(--surface-alt);
    text-decoration: none;
}

.dash-tabs a[aria-current="page"] {
    background: var(--brand-tint);
    color: var(--brand);
}

.dash-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

.dash-section+.dash-section {
    margin-top: 24px;
}

.dash-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

/* Dashboard sub-pieces */
.stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 16px;
}

.stat .stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat .stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-top: 6px;
}

.stat.stat-brand {
    background: var(--brand-tint);
    border-color: var(--brand-tint-strong);
}

.stat.stat-brand .stat-value {
    color: var(--brand);
    font-size: 26px;
}

.notice {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: #fff;
}

.notice+.notice {
    margin-top: 10px;
}

.notice-title {
    font-weight: 700;
    font-size: 14px;
}

.notice-msg {
    color: var(--ink-soft);
    font-size: 13px;
    margin-top: 2px;
}

.notice-brand {
    background: var(--brand-tint);
    border-color: var(--brand-tint-strong);
    color: var(--brand);
}

.notice-warning {
    background: var(--warning-bg);
    border-color: #fde68a;
    color: var(--warning);
}

.notice-danger {
    background: var(--danger-bg);
    border-color: #fecaca;
    color: var(--danger);
}

.notice-success {
    background: var(--success-bg);
    border-color: #a7f3d0;
    color: var(--success);
}

.notice iconify-icon {
    font-size: 22px;
    margin-top: 2px;
}

.list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.list-item {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

.list-item .item-title {
    font-weight: 700;
    font-size: 14px;
}

.list-item .item-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

/* File picker used in product form */
.file-tile {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
    padding: 14px;
}

.file-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.file-tile-title {
    font-weight: 700;
    font-size: 13px;
}

.file-tile-hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-card);
    margin-top: 6px;
}

.file-list span {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

/* Social editor preview grid */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

@media (max-width: 900px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* Account preview rectangular mockup (no phone bezel/notch) */
.phone-frame,
.account-preview-box {
    width: 360px;
    max-width: calc(100vw - 24px);
    height: 640px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    padding: 0;
}

.phone-screen,
.account-preview-inner {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    overflow-y: auto;
    background: #000000;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
}

/* Customer insights panel */
.customer-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .customer-insights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.insight-ranked-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-ranked-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.insight-ranked-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.insight-bar-bg {
    height: 8px;
    background: var(--surface-alt);
    border-radius: 9999px;
    overflow: hidden;
}

.insight-bar-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Settings panel */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
}

@media (max-width: 800px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    height: fit-content;
}

@media (max-width: 800px) {
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
    }
}

.settings-nav button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-soft);
    text-align: left;
}

.settings-nav button[aria-current="true"] {
    background: var(--brand-tint);
    color: var(--brand);
}

.settings-nav button:hover {
    background: var(--surface-alt);
}


/* ------------------------------------------------------------------
   Mobile drawer
   ------------------------------------------------------------------ */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    border: none;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82%, 320px);
    background: #fff;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
    gap: 12px;
}

.drawer-panel h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0;
}

.drawer-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 6px;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
}

.drawer-panel a:hover {
    background: var(--surface-alt);
    text-decoration: none;
}

.drawer-panel a[aria-current="page"] {
    background: var(--brand-tint);
    color: var(--brand);
}

/* Small screen tweaks */
@media (max-width: 600px) {
    .site-header .wrap {
        height: 56px;
    }

    .brand span {
        display: none;
    }

    .btn {
        height: 40px;
        padding: 0 16px;
    }

    h1 {
        font-size: 24px;
    }

    .land-hero {
        padding: 48px 0 32px;
    }
}

/* ------------------------------------------------------------------
   Splash Screens & Modal Overlays (X to close in top-right)
   ------------------------------------------------------------------ */
.splash-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.splash-modal.hidden {
    display: none !important;
}

.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
}

.splash-overlay.hidden {
    display: none !important;
}

.contact-overlay,
.overlay:has(.contact-modal) {
    background: #ffffff;
    opacity: 1;
    z-index: 99999;
}

.contact-overlay .overlay-backdrop,
.overlay:has(.contact-modal) .overlay-backdrop {
    background: #ffffff;
    opacity: 1;
}

.splash-modal-body {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 28px;
}

.splash-modal-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    overflow-y: auto;
    padding: 32px 20px;
}

.splash-modal-fullscreen.hidden {
    display: none !important;
}

.splash-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ink);
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s ease;
}

.splash-close-btn:hover {
    background: var(--line-strong);
}

/* ------------------------------------------------------------------
   Store Grid & 9:16 Aspect Ratio (4 cols PC, 2 cols phone)
   ------------------------------------------------------------------ */
.store-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .store-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.store-product-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s ease;
}

.store-product-card:hover {
    border-color: var(--brand);
    text-decoration: none;
}

.store-product-cover-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--surface-alt);
    overflow: hidden;
    position: relative;
}

.store-product-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.store-product-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-product-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand);
    margin-top: auto;
}

/* ------------------------------------------------------------------
   Customer Table Summary Row
   ------------------------------------------------------------------ */
.table-summary-row td {
    background: var(--surface-alt) !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    border-top: 2px solid var(--line) !important;
    border-bottom: 2px solid var(--line) !important;
}

/* ------------------------------------------------------------------
   Circle Loaders
   ------------------------------------------------------------------ */
.circle-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinCircle 0.6s linear infinite;
    vertical-align: middle;
}

.circle-loader.brand {
    border: 2px solid var(--brand-tint-strong);
    border-top-color: var(--brand);
}

.circle-loader.lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

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

/* ------------------------------------------------------------------
   Storefront Product Grid & 9:16 Aspect Ratio Cards
   ------------------------------------------------------------------ */
.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.drafts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .store-grid,
    .drafts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .store-grid,
    .drafts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.store-card,
.draft-card {
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 6px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    cursor: pointer;
}

@media (hover: hover) and (min-width: 769px) {
    .store-card:hover,
    .draft-card:hover {
        border-color: var(--brand);
        box-shadow: none;
        transform: none;
    }
}

.store-card-cover,
.draft-card-cover {
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    background: var(--surface-alt);
    position: relative;
    border-radius: 6px;
    flex-shrink: 0;
}

.store-card-cover img,
.draft-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.store-card-cover-placeholder,
.draft-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 28px;
}

.store-card-actions-overlay {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.card-action-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    box-shadow: none;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.card-action-icon-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.card-action-icon-btn.danger:hover {
    border-color: var(--danger);
    color: var(--danger);
}

@media (max-width: 768px) {
    .card-action-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.store-card-body,
.draft-card-body {
    padding: 6px 0 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-card-title,
.draft-card-title {
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    line-height: 1.3;
}

.store-card-price,
.draft-card-price {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}

.store-card-actions {
    display: none;
}

/* Customers daily summary row */
.customers-day-summary td {
    background: var(--surface-alt) !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    border-top: 2px solid var(--line) !important;
    border-bottom: 2px solid var(--line) !important;
}

/* Product Type Selection Cards */
.product-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .product-type-grid {
        grid-template-columns: 1fr;
    }
}

.product-type-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    background: var(--surface);
    transition: border-color 0.15s ease, background-color 0.15s ease;
    text-align: left;
}

.product-type-card:hover {
    border-color: var(--brand);
    background: var(--surface-alt);
}

.product-type-card.selected {
    border-color: var(--brand);
    background: #EFF6FF;
}

.product-type-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 4px;
}

.product-type-examples {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

/* Analytics Mobile Responsiveness */
#view-analytics,
.chart-bars,
.chart-labels {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .chart-bars {
        gap: 2px;
        overflow: hidden;
    }
    .chart-labels {
        gap: 2px;
        overflow: hidden;
    }
    .chart-bar {
        min-width: 0;
        flex: 1;
    }
}

/* ==================================================================
   MOBILE-FIRST DASHBOARD (pdashboard.html)
   Scoped to body[data-page="pdashboard"] and .mobile-* classes
   ================================================================== */
body[data-page="pdashboard"] {
    background-color: #f1f5f9;
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
}

body[data-page="pdashboard"] * {
    box-shadow: none !important;
}

/* Top Bar (56px) */
.mobile-topbar {
    position: sticky;
    top: 0;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.mobile-topbar-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
}
.mobile-topbar-btn:active {
    background: var(--surface-alt);
}

.mobile-topbar-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    user-select: none;
    pointer-events: none;
}

.mobile-topbar-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 9999px;
    background: var(--brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid var(--line);
    cursor: pointer;
    padding: 0;
}
.mobile-topbar-avatar:active {
    opacity: 0.85;
}

/* Fixed Bottom Tab Bar (72px) */
.mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #ffffff;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-tab-item {
    flex: 1;
    min-height: 44px;
    min-width: 44px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 2px 0;
    gap: 4px;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}
.mobile-tab-item iconify-icon {
    font-size: 24px;
}
.mobile-tab-item span {
    font-size: 11px;
    font-weight: 600;
    margin-top: 0;
    line-height: 1;
}
.mobile-tab-item.active {
    color: var(--brand);
}
.mobile-tab-item.active span {
    font-weight: 700;
}
.mobile-tab-item:active {
    opacity: 0.7;
}

/* Product type selection card (PC & mobile) */
.product-type-card {
    border: 1px solid var(--line);
    background: #ffffff;
    transition: all 0.15s ease;
}
.product-type-card.selected {
    border: 2px solid #165D92 !important;
    background: #EFF6FC !important;
}

/* Compact Social Environment for Phone (Part 3) */
body[data-page="pdashboard"] {
    overflow-x: hidden;
}

body[data-page="pdashboard"] #social-editor,
body[data-page="pdashboard"] #social-editor *,
.mobile-social-editor,
.mobile-social-editor * {
    box-sizing: border-box;
    max-width: 100%;
}

body[data-page="pdashboard"] #social-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
body[data-page="pdashboard"] #social-editor .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px !important;
}
body[data-page="pdashboard"] #social-editor input,
body[data-page="pdashboard"] #social-editor textarea,
body[data-page="pdashboard"] #social-editor select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
body[data-page="pdashboard"] #social-editor h3 {
    font-size: 13px !important;
    margin-bottom: 8px !important;
}
body[data-page="pdashboard"] #social-editor label {
    font-size: 12px !important;
}
body[data-page="pdashboard"] #social-editor .hint {
    font-size: 11px !important;
    word-break: break-word;
}
body[data-page="pdashboard"] #social-editor textarea#social-bio {
    min-height: 80px !important;
}

/* Account Dropdown Menu */
.mobile-account-menu {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 230px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    z-index: 200;
}
.mobile-account-menu.hidden {
    display: none;
}
.mobile-account-menu-header {
    padding: 12px 14px;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--line);
}
.mobile-account-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}
.mobile-account-menu button:last-child {
    border-bottom: none;
}
.mobile-account-menu button.danger {
    color: var(--danger);
}
.mobile-account-menu button:active {
    background: var(--surface-alt);
}

/* Bottom Sheet ("More") */
.mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.mobile-sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sheet-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid var(--line);
    z-index: 151;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-sheet-panel.active {
    transform: translateY(0);
}

.mobile-sheet-handle {
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: var(--line-strong);
    margin: 0 auto 12px;
}

.mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.mobile-sheet-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

.mobile-sheet-row {
    height: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}
.mobile-sheet-row:last-child {
    border-bottom: none;
}
.mobile-sheet-row:active {
    background: var(--surface-alt);
}
.mobile-sheet-row.danger {
    color: var(--danger);
}
.mobile-sheet-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-sheet-row iconify-icon {
    font-size: 22px;
}

/* Pull to Refresh */
.mobile-ptr {
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.2s ease;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
}
.mobile-ptr.refreshing {
    height: 44px;
}

/* KPI Grids */
.mobile-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-kpi-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
    height: 96px;
    min-height: 96px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.mobile-kpi-card.full-width {
    grid-column: span 2;
    height: auto;
    min-height: 96px;
}
.mobile-kpi-card.brand-tint {
    background: #EFF6FF;
    border-color: #BFDBFE;
}
.mobile-kpi-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}
.mobile-kpi-card.brand-tint .mobile-kpi-number {
    color: var(--brand);
}
.mobile-kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mobile-kpi-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: var(--muted-soft);
}

/* Quick Action Tiles (2x2) */
.mobile-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.mobile-action-tile {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px 14px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.mobile-action-tile:active {
    background: var(--surface-alt);
}
.mobile-action-icon {
    font-size: 32px;
    color: var(--brand);
    margin-bottom: 8px;
}
.mobile-action-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}
.mobile-action-subtitle {
    font-size: 11px;
    color: var(--muted);
}

/* 2-Column Product Grid (Drafts & Storefront) */
.mobile-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.mobile-product-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    box-shadow: none;
}
.mobile-product-card:active {
    background: #fafafa;
}
.mobile-product-cover {
    aspect-ratio: 4 / 5;
    width: 100%;
    border-radius: 6px;
    background: var(--surface-alt);
    object-fit: cover;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.mobile-product-body {
    padding: 6px 0 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mobile-product-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.mobile-product-price {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-top: 2px;
}
.mobile-product-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    z-index: 5;
}
.mobile-card-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    box-shadow: none;
}
.mobile-card-icon-btn:active {
    background: #fff;
    color: var(--brand);
}
.mobile-card-icon-btn.danger:active {
    color: var(--danger);
}

/* Customers Tab: Cards & Daily Summary Header Cards */
.mobile-customer-day-header {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 16px 0 8px;
}
.mobile-customer-day-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
}
.mobile-customer-day-stats {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px;
}

.mobile-customer-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-customer-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-customer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.mobile-customer-amount {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand);
}
.mobile-customer-product {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-customer-row-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted-soft);
}

/* Marketing Tab: 1-Column Coupon Cards */
.mobile-coupon-card {
    width: 100%;
    min-height: 120px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Settings Tab: 2-Column Category Tiles & Fullscreen Subviews */
.mobile-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.mobile-settings-tile {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px 14px;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.mobile-settings-tile:active {
    background: var(--surface-alt);
}
.mobile-settings-tile-icon {
    font-size: 24px;
    color: var(--brand);
}
.mobile-settings-tile-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 8px;
    margin-bottom: 4px;
}

.mobile-subview {
    position: fixed;
    inset: 0;
    background: #f1f5f9;
    z-index: 120;
    overflow-y: auto;
    padding: 0 16px calc(80px + env(safe-area-inset-bottom, 0px));
}
.mobile-subview.hidden {
    display: none;
}
.mobile-subview-header {
    height: 56px;
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -16px 16px -16px;
    padding: 0 16px;
    z-index: 10;
}
.mobile-subview-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

/* Touch Targets & Large Inputs (52px) */
body[data-page="pdashboard"] .btn,
body[data-page="pdashboard"] button.mobile-primary-btn {
    min-height: 52px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
}
body[data-page="pdashboard"] .btn:active {
    filter: brightness(0.92);
}

body[data-page="pdashboard"] input[type="text"],
body[data-page="pdashboard"] input[type="number"],
body[data-page="pdashboard"] input[type="email"],
body[data-page="pdashboard"] input[type="tel"],
body[data-page="pdashboard"] select,
body[data-page="pdashboard"] .mobile-input {
    min-height: 52px;
    height: 52px;
    font-size: 16px !important;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    padding: 0 14px;
    background: #ffffff;
    box-sizing: border-box;
    width: 100%;
}
body[data-page="pdashboard"] textarea {
    font-size: 16px !important;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    padding: 12px 14px;
    background: #ffffff;
    box-sizing: border-box;
    width: 100%;
}

/* Fullscreen Modals */
.mobile-fullscreen-modal {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
}
.mobile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    height: 44px;
}
.mobile-close-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
}
.mobile-close-btn:active {
    background: var(--surface-alt);
}

/* Clean Empty & Error States */
.mobile-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 16px;
    gap: 8px;
}
.mobile-empty-icon {
    font-size: 48px;
    color: var(--muted-soft);
    margin-bottom: 4px;
}
.mobile-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.mobile-empty-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 12px 0;
    max-width: 280px;
    line-height: 1.4;
}

/* ------------------------------------------------------------------
   Dashboard Smoothness (Part 7)
   ------------------------------------------------------------------ */

/* 7.1 Skeleton Loaders */
.skeleton-box {
    background: #e2e8f0;
    background: linear-gradient(90deg, #edf2f7 25%, #e2e8f0 50%, #edf2f7 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 7.2 Tab Fade Transitions (120ms) */
.tab-content-fade {
    animation: tabFadeIn 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7.4 Modal Fade Transitions (150ms) */
.modal-overlay,
.mobile-fullscreen-modal {
    transition: opacity 150ms ease, transform 150ms ease;
}
.modal-fade-in {
    animation: modalFadeIn 150ms ease forwards;
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 7.5 Route Change Top Loading Bar */
#route-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--brand);
    z-index: 99999;
    width: 0%;
    transition: width 0.25s ease;
    pointer-events: none;
}

/* ------------------------------------------------------------------
   Notifications Overlay (Part 1.2) - z-index: 999999
   ------------------------------------------------------------------ */
.notify-layer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 440px;
    pointer-events: none;
}
.notify {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    animation: notifyIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes notifyIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.notify-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.notify-success .notify-icon { color: var(--success); }
.notify-error .notify-icon { color: var(--danger); }
.notify-warning .notify-icon { color: var(--warning); }
.notify-info .notify-icon { color: var(--brand); }
.notify-title {
    font-weight: 600;
    color: var(--ink);
}
.notify-msg {
    color: var(--muted);
    margin-top: 2px;
}
.notify-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--muted-soft);
    cursor: pointer;
    padding: 0 4px;
}
.notify-close:hover {
    color: var(--ink);
}

/* ------------------------------------------------------------------
   Suspension & Ban Screen (Part 3)
   ------------------------------------------------------------------ */
.account-blocked-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.account-blocked-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    max-width: 520px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.account-blocked-card.suspended {
    border-top: 4px solid var(--warning);
}
.account-blocked-card.banned {
    border-top: 4px solid var(--danger);
}
.account-blocked-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}
.account-blocked-reason {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--ink-soft);
    width: 100%;
    text-align: left;
    white-space: pre-wrap;
}
.account-blocked-note {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}
.account-blocked-btn {
    border-radius: 9999px;
    font-weight: 600;
    padding: 10px 32px;
    background: var(--brand);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.account-blocked-btn:hover {
    background: var(--brand-hover);
}

/* ------------------------------------------------------------------
   Golden Tick & Premium Styling (Part 5 & 7)
   ------------------------------------------------------------------ */
.golden-tick {
    color: #c9a227;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
    font-size: 1.1em;
}
.settings-nav-premium {
    color: #c9a227 !important;
    font-weight: 600;
}
.settings-nav-premium:hover,
.settings-nav-premium.active {
    background: #fdf8e6 !important;
    color: #b38b18 !important;
}
.premium-gold-badge {
    background: #fef9e7;
    border: 1px solid #f2e29f;
    color: #927110;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ------------------------------------------------------------------
   Support View & Go Premium Card
   ------------------------------------------------------------------ */
.support-fullscreen-view {
    max-width: 680px;
    margin: 0 auto;
}
.support-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.support-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
.support-form-group input,
.support-form-group select,
.support-form-group textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    background: var(--surface);
    color: var(--ink);
    outline: none;
}
.support-form-group input:focus,
.support-form-group select:focus,
.support-form-group textarea:focus {
    border-color: var(--brand);
}
.support-form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.premium-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.premium-feature-item:last-child {
    border-bottom: none;
}

/* ------------------------------------------------------------------
   Verification Viewer Zoom & Compare (Part 6.4)
   ------------------------------------------------------------------ */
.verif-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.verif-fullscreen-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.verif-fullscreen-img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}
.verif-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 12px;
}
.verif-compare-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

/* ------------------------------------------------------------------
   Loading Splash Screen (Part 5)
   ------------------------------------------------------------------ */
.page-loading-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 150ms ease, visibility 150ms ease;
}

.page-loading-splash.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loading-splash .splash-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 18px;
    object-fit: contain;
}

.page-loading-splash .splash-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin-bottom: 14px;
}

.page-loading-splash .splash-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin: 0;
}

/* ------------------------------------------------------------------
   Checkout Header Redesign (Part 3 & 6)
   ------------------------------------------------------------------ */
.checkout-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    margin-bottom: 28px;
    width: 100%;
}

.checkout-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.checkout-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.checkout-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.checkout-header-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.checkout-header-store {
    font-family: 'Anton', Impact, sans-serif;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent, #165D92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.checkout-header-store:hover {
    color: var(--accent, #165D92);
    opacity: 0.85;
    text-decoration: none;
}

.checkout-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.checkout-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 9999px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.checkout-header-btn:hover {
    border-color: var(--brand);
    background: var(--surface-alt);
    color: var(--brand-hover);
    text-decoration: none;
}

.checkout-header-desktop {
    display: block;
    width: 100%;
}

.checkout-header-mobile {
    display: none;
    width: 100%;
}

/* Mobile Header (< 700px) */
@media (max-width: 699px) {
    .checkout-header {
        padding: 16px 0;
        margin-bottom: 20px;
    }

    .checkout-header-desktop {
        display: none;
    }

    .checkout-header-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .checkout-header-upper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .checkout-header-upper .checkout-header-store {
        font-size: 24px;
        flex: 1;
        min-width: 0;
    }

    .checkout-header-upper .checkout-header-logo img {
        width: 28px;
        height: 28px;
    }

    .checkout-header-lower {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .checkout-header-btn {
        height: 44px;
        min-height: 44px;
        padding: 0 12px;
        width: 100%;
        font-size: 13px;
    }
}

/* ------------------------------------------------------------------
   Auth Security Questions Challenge (Stacked Mobile & Desktop)
   ------------------------------------------------------------------ */
.sec-challenge-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sec-challenge-input {
    width: 100%;
    height: 52px;
    font-size: 16px;
    padding: 0 16px;
    border-radius: 6px;
    box-sizing: border-box;
}

/* ==================================================================
   Store Page: Search, Filters, Header, Footer & Suspended View
   ================================================================== */

/* Part 3: Store Header Login button */
.store-login-btn {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 20px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Part 2: Search Bar */
.store-controls-section {
    padding-top: 24px;
    width: 100%;
}

.store-search-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.store-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--muted-soft);
    pointer-events: none;
}

.store-search-input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 9999px;
    padding: 0 20px 0 48px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.store-search-input:focus {
    border-color: var(--accent, #165D92);
}

/* Part 2: Filter Rows (Types + Price) */
.store-filters-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.store-type-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.store-price-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.store-filter-pill {
    height: 36px;
    padding: 0 14px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.15s ease;
    user-select: none;
}

.store-filter-pill:hover {
    border-color: var(--accent, #165D92);
    color: var(--accent, #165D92);
}

.store-filter-pill.active {
    background: var(--accent, #165D92) !important;
    border-color: var(--accent, #165D92) !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Empty filter state */
.store-filter-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--muted);
    font-size: 15px;
}

.store-clear-filters-link {
    background: none;
    border: none;
    color: var(--accent, #165D92);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    margin-top: 8px;
    text-decoration: underline;
    border-radius: 9999px;
}

.store-clear-filters-link:hover {
    opacity: 0.8;
}

/* Part 2: Mobile Layout (< 700px) */
@media (max-width: 700px) {
    .store-filters-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .store-type-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        width: 100%;
    }

    .store-type-pills::-webkit-scrollbar {
        display: none;
    }

    .store-price-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        width: 100%;
    }

    .store-price-pills::-webkit-scrollbar {
        display: none;
    }
}

/* Part 4: Store Page Footer */
[data-page="store"] .site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin-top: 64px;
    padding: 40px 0 32px;
}

[data-page="store"] .site-footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.store-footer-cta {
    font-size: 18px;
    font-weight: 700;
    color: #165D92;
    text-decoration: none;
    display: block;
    margin-bottom: 24px;
}

.store-footer-cta:hover {
    text-decoration: underline;
}

.store-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
}

.store-footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.store-footer-links a:hover {
    color: #165D92;
}

@media (max-width: 700px) {
    .store-footer-cta {
        font-size: 16px;
    }
}

/* Part 5: Suspended Store View */
.store-suspended-view {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    text-align: center;
    background: #ffffff;
}

.suspended-card {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.suspended-icon {
    font-size: 64px;
    color: #dc2626;
    margin-bottom: 16px;
}

.suspended-title {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 12px;
}

.suspended-subtext {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* Part 6.3: Checkout Email Input */
.checkout-email-input {
    height: 48px;
    font-size: 15px;
}

@media (max-width: 700px) {
    .checkout-email-input {
        height: 52px;
        font-size: 16px;
    }
}

/* Complete Your Purchase (Buy Modal) */
.buy-overlay-form {
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 6px;
    box-sizing: border-box;
}

.buy-overlay-form .modal-close {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.buy-overlay-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.buy-overlay-form label {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
}

.buy-overlay-form .input,
.buy-overlay-form .select,
.buy-overlay-form button[type="submit"] {
    height: 52px;
    min-height: 52px;
    font-size: 15px;
    box-sizing: border-box;
}

.buy-overlay-form button[type="submit"] {
    width: 100%;
    border-radius: 9999px;
}

@media (max-width: 700px) {
    #react-buy-overlay {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    .buy-overlay-form {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        padding: 16px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        display: flex;
        flex-direction: column;
    }

    .buy-overlay-form .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

