:root {
    --bg-color: #070709;
    --surface-color: #121216;
    --surface-hover: #1a1a20;
    --text-primary: #f4f4f9;
    --text-secondary: #8e8e9f;
    --brand-teal: #008f9c;
    --brand-teal-light: #00d6b5;
    --brand-teal-glow: rgba(0, 214, 181, 0.3);
    --border-color: rgba(255, 255, 255, 0.08);
    --red-badge: #ff453a;
    --notification-badge-bg: linear-gradient(135deg, #ff5b55 0%, #d9243f 100%);
    --notification-badge-text: #fff;
    --notification-badge-ring: #070709;
    --notification-badge-shadow: 0 8px 18px rgba(255, 69, 58, 0.28), 0 3px 10px rgba(0,0,0,0.42);
    --unread-row-bg: linear-gradient(90deg, rgba(255, 69, 58, 0.08), rgba(255, 69, 58, 0.018) 62%, transparent);
    --unread-pill-bg: rgba(255, 69, 58, 0.12);
    --unread-pill-border: rgba(255, 69, 58, 0.24);
    --accent-color: var(--brand-teal-light);
    --primary-button-bg: linear-gradient(135deg, #00d6b5 0%, #008f9c 100%);
    --primary-button-text: #fff;
    --primary-button-border: rgba(0, 214, 181, 0.3);
    --outline-button-bg: rgba(0, 214, 181, 0.05);
    --outline-button-border: rgba(0, 214, 181, 0.4);
    --outline-button-hover-bg: rgba(0, 214, 181, 0.1);
    --subtle-border-color: rgba(255,255,255,0.08);
    --soft-fill-color: rgba(255,255,255,0.035);
    --soft-panel-bg: linear-gradient(180deg, rgba(20, 23, 23, 0.98), rgba(13, 15, 15, 0.98));
    --search-card-bg: #0f1314;
    --search-card-border: transparent;
    --search-card-title: var(--text-primary);
    --sheet-bg: rgba(22, 22, 26, 0.98);
    --profile-card-bg: var(--soft-panel-bg);
    --profile-card-border: rgba(255,255,255,0.09);
    --profile-stat-bg: rgba(255,255,255,0.015);
    --profile-stat-border: rgba(255,255,255,0.07);
    --about-hero-bg: radial-gradient(circle at 86% 10%, rgba(0, 214, 181, 0.16), transparent 34%), linear-gradient(145deg, rgba(18, 18, 22, 0.96), rgba(5, 14, 14, 0.96));
    --about-hero-border: rgba(255, 255, 255, 0.09);
    --about-hero-shadow: 0 18px 44px -28px rgba(0, 214, 181, 0.55);
    --verification-hero-bg: radial-gradient(circle at 86% 0%, rgba(0, 214, 181, 0.2), transparent 34%), linear-gradient(145deg, rgba(13, 39, 42, 0.96), rgba(15, 17, 20, 0.98));
    --verification-hero-border: rgba(0, 214, 181, 0.22);
    --verification-hero-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
    --elevated-card-bg: var(--soft-panel-bg);
    --elevated-card-border: var(--subtle-border-color);
    --elevated-muted-bg: rgba(255,255,255,0.035);
    --accent-panel-bg: #073539;
    --accent-panel-border: rgba(33, 155, 157, 0.2);
    --online-panel-bg: linear-gradient(135deg, rgba(33, 155, 157, 0.18), rgba(28, 28, 30, 0.96));
    --selected-panel-bg: rgba(0, 143, 156, 0.13);
    --selected-chip-text: #fff;
    --nav-height: 64px;
    --safe-bottom-space: calc(var(--nav-height) + 64px + env(safe-area-inset-bottom, 0px));
    --header-height: 56px;
    --glass-bg: rgba(18, 18, 22, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-med: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-card: 0 8px 32px -4px rgba(0,0,0,0.6), 0 4px 12px -2px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 24px var(--brand-teal-glow), 0 4px 12px rgba(0, 214, 181, 0.2);
    --app-shell-bg: #000;
    --app-frame-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    --header-shadow: 0 4px 20px -8px rgba(0,0,0,0.5);
    --scrollbar-thumb: rgba(255, 255, 255, 0.15);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.25);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-sheet: 18px;
    --radius-pill: 999px;
    --font-caption: 12px;
    --font-meta: 13px;
    --font-body: 14px;
    --font-label: 15px;
    --font-title: 17px;
    --font-screen-title: 18px;
    --font-hero: 20px;
    --line-tight: 1.2;
    --line-body: 1.38;
    --control-height-sm: 34px;
    --control-height-md: 40px;
    --control-height-lg: 44px;
    --control-height-xl: 48px;
    --row-height-sm: 52px;
    --row-height-md: 60px;
    --row-height-lg: 68px;
    --icon-size-sm: 20px;
    --icon-size-md: 22px;
    --icon-size-lg: 24px;
    --avatar-size-sm: 34px;
    --avatar-size-md: 44px;
    --avatar-size-lg: 52px;
    --screen-pad-x: 16px;
    --section-pad-y: 16px;
    --section-gap: 12px;
    --component-radius: var(--radius-md);
    --card-radius: var(--radius-lg);
    --sheet-radius: var(--radius-sheet);
    --listing-grid-pad-x: var(--screen-pad-x);
    --listing-grid-pad-y: var(--section-pad-y);
    --listing-grid-col-gap: 10px;
    --listing-grid-row-gap: 14px;
    --ui-chip-height: var(--control-height-sm);
    --ui-chip-pad-x: 14px;
    --ui-chip-radius: var(--radius-pill);
    --ui-chip-font-size: var(--font-body);
    --ui-meta-font-size: var(--font-meta);
    --ui-tab-font-size: var(--font-label);
    --ui-row-title-size: var(--font-label);
}

html[data-theme="milky"],
body[data-theme="milky"] {
    --bg-color: #f7f1e6;
    --surface-color: #fffaf1;
    --surface-hover: #efe4d1;
    --text-primary: #241d18;
    --text-secondary: #6f5f50;
    --brand-teal: #006d73;
    --brand-teal-light: #006d73;
    --brand-teal-glow: rgba(0, 122, 127, 0.18);
    --border-color: rgba(92, 70, 48, 0.18);
    --red-badge: #c73935;
    --notification-badge-bg: linear-gradient(135deg, #d94842 0%, #a72c2b 100%);
    --notification-badge-text: #fffaf1;
    --notification-badge-ring: #fffaf1;
    --notification-badge-shadow: 0 8px 18px rgba(167, 44, 43, 0.2), 0 3px 10px rgba(85, 56, 28, 0.2);
    --unread-row-bg: linear-gradient(90deg, rgba(199, 57, 53, 0.1), rgba(199, 57, 53, 0.026) 62%, transparent);
    --unread-pill-bg: rgba(199, 57, 53, 0.09);
    --unread-pill-border: rgba(199, 57, 53, 0.2);
    --accent-color: var(--brand-teal);
    --primary-button-bg: linear-gradient(135deg, #0b8f88 0%, #006d73 100%);
    --primary-button-text: #fffaf1;
    --primary-button-border: rgba(0, 109, 115, 0.35);
    --outline-button-bg: rgba(0, 122, 127, 0.08);
    --outline-button-border: rgba(0, 122, 127, 0.32);
    --outline-button-hover-bg: rgba(0, 122, 127, 0.14);
    --subtle-border-color: rgba(92, 70, 48, 0.14);
    --soft-fill-color: rgba(92, 70, 48, 0.055);
    --soft-panel-bg: linear-gradient(180deg, #fffaf1, #f4ead8);
    --search-card-bg: #fffaf1;
    --search-card-border: rgba(92, 70, 48, 0.16);
    --search-card-title: #241d18;
    --sheet-bg: rgba(255, 250, 241, 0.98);
    --profile-card-bg: linear-gradient(180deg, #fffaf1, #f3e8d5);
    --profile-card-border: rgba(92, 70, 48, 0.16);
    --profile-stat-bg: rgba(92, 70, 48, 0.045);
    --profile-stat-border: rgba(92, 70, 48, 0.14);
    --about-hero-bg: radial-gradient(circle at 86% 10%, rgba(0, 109, 115, 0.1), transparent 34%), linear-gradient(145deg, #fffaf1, #f2e4ce);
    --about-hero-border: rgba(92, 70, 48, 0.16);
    --about-hero-shadow: 0 18px 38px -30px rgba(85, 56, 28, 0.42);
    --verification-hero-bg: radial-gradient(circle at 86% 0%, rgba(0, 109, 115, 0.12), transparent 34%), linear-gradient(145deg, #fffaf1, #f2e4ce);
    --verification-hero-border: rgba(92, 70, 48, 0.16);
    --verification-hero-shadow: 0 12px 30px -18px rgba(85, 56, 28, 0.38);
    --elevated-card-bg: linear-gradient(180deg, #fffaf1, #f3ead9);
    --elevated-card-border: rgba(92, 70, 48, 0.16);
    --elevated-muted-bg: rgba(92, 70, 48, 0.055);
    --accent-panel-bg: linear-gradient(135deg, #fffaf1, #f0e1c9);
    --accent-panel-border: rgba(0, 109, 115, 0.22);
    --online-panel-bg: linear-gradient(135deg, rgba(0, 109, 115, 0.1), #fffaf1);
    --selected-panel-bg: rgba(0, 109, 115, 0.09);
    --selected-chip-text: #004f53;
    --glass-bg: rgba(255, 250, 241, 0.82);
    --glass-border: rgba(92, 70, 48, 0.14);
    --shadow-card: 0 12px 30px -18px rgba(85, 56, 28, 0.38), 0 4px 14px -8px rgba(85, 56, 28, 0.22);
    --shadow-glow: 0 0 0 3px rgba(0, 143, 138, 0.12), 0 8px 22px rgba(0, 122, 127, 0.12);
    --app-shell-bg: #e7dcc9;
    --app-frame-shadow: 0 0 40px rgba(82, 58, 35, 0.24), 0 0 0 1px rgba(92, 70, 48, 0.14);
    --header-shadow: 0 6px 22px -16px rgba(85, 56, 28, 0.42);
    --scrollbar-thumb: rgba(92, 70, 48, 0.24);
    --scrollbar-thumb-hover: rgba(92, 70, 48, 0.34);
}

html[data-theme="pink"],
body[data-theme="pink"] {
    --bg-color: #fff2f6;
    --surface-color: #fffafb;
    --surface-hover: #f8dce6;
    --text-primary: #321923;
    --text-secondary: #7a5362;
    --brand-teal: #a72c67;
    --brand-teal-light: #a72c67;
    --brand-teal-glow: rgba(214, 59, 134, 0.22);
    --border-color: rgba(139, 61, 92, 0.18);
    --red-badge: #c02d48;
    --notification-badge-bg: linear-gradient(135deg, #e84878 0%, #b51e52 100%);
    --notification-badge-text: #fffafb;
    --notification-badge-ring: #fffafb;
    --notification-badge-shadow: 0 8px 18px rgba(181, 30, 82, 0.2), 0 3px 10px rgba(130, 39, 76, 0.2);
    --unread-row-bg: linear-gradient(90deg, rgba(192, 45, 72, 0.1), rgba(192, 45, 72, 0.026) 62%, transparent);
    --unread-pill-bg: rgba(192, 45, 72, 0.09);
    --unread-pill-border: rgba(192, 45, 72, 0.2);
    --accent-color: var(--brand-teal);
    --primary-button-bg: linear-gradient(135deg, #d63b86 0%, #a72c67 100%);
    --primary-button-text: #fffafb;
    --primary-button-border: rgba(176, 47, 112, 0.34);
    --outline-button-bg: rgba(214, 59, 134, 0.08);
    --outline-button-border: rgba(176, 47, 112, 0.3);
    --outline-button-hover-bg: rgba(214, 59, 134, 0.14);
    --subtle-border-color: rgba(139, 61, 92, 0.14);
    --soft-fill-color: rgba(139, 61, 92, 0.055);
    --soft-panel-bg: linear-gradient(180deg, #fffafb, #fae5ed);
    --search-card-bg: #fffafb;
    --search-card-border: rgba(139, 61, 92, 0.16);
    --search-card-title: #321923;
    --sheet-bg: rgba(255, 250, 251, 0.98);
    --profile-card-bg: linear-gradient(180deg, #fffafb, #fae2eb);
    --profile-card-border: rgba(139, 61, 92, 0.16);
    --profile-stat-bg: rgba(139, 61, 92, 0.045);
    --profile-stat-border: rgba(139, 61, 92, 0.14);
    --about-hero-bg: radial-gradient(circle at 86% 10%, rgba(167, 44, 103, 0.11), transparent 34%), linear-gradient(145deg, #fffafb, #f9dce7);
    --about-hero-border: rgba(139, 61, 92, 0.16);
    --about-hero-shadow: 0 18px 38px -30px rgba(130, 39, 76, 0.42);
    --verification-hero-bg: radial-gradient(circle at 86% 0%, rgba(167, 44, 103, 0.11), transparent 34%), linear-gradient(145deg, #fffafb, #f9dce7);
    --verification-hero-border: rgba(139, 61, 92, 0.16);
    --verification-hero-shadow: 0 14px 32px -20px rgba(130, 39, 76, 0.42);
    --elevated-card-bg: linear-gradient(180deg, #fffafb, #fae5ed);
    --elevated-card-border: rgba(139, 61, 92, 0.16);
    --elevated-muted-bg: rgba(139, 61, 92, 0.055);
    --accent-panel-bg: linear-gradient(135deg, #fffafb, #f8dce6);
    --accent-panel-border: rgba(167, 44, 103, 0.2);
    --online-panel-bg: linear-gradient(135deg, rgba(167, 44, 103, 0.1), #fffafb);
    --selected-panel-bg: rgba(167, 44, 103, 0.09);
    --selected-chip-text: #6d1744;
    --glass-bg: rgba(255, 250, 251, 0.84);
    --glass-border: rgba(139, 61, 92, 0.15);
    --shadow-card: 0 14px 32px -20px rgba(130, 39, 76, 0.42), 0 5px 16px -10px rgba(130, 39, 76, 0.28);
    --shadow-glow: 0 0 0 3px rgba(214, 59, 134, 0.12), 0 8px 22px rgba(214, 59, 134, 0.16);
    --app-shell-bg: #f2ccd9;
    --app-frame-shadow: 0 0 42px rgba(130, 39, 76, 0.22), 0 0 0 1px rgba(139, 61, 92, 0.13);
    --header-shadow: 0 6px 22px -16px rgba(130, 39, 76, 0.45);
    --scrollbar-thumb: rgba(139, 61, 92, 0.24);
    --scrollbar-thumb-hover: rgba(139, 61, 92, 0.36);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--app-shell-bg);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    line-height: 1.5;
    font-size: var(--font-body);
    display: flex;
    justify-content: center;
}

body:not(.app-ready) .app-container,
body:not(.app-ready) .bottom-nav {
    visibility: hidden;
}

body.startup-failed .bottom-nav {
    display: none;
}

.startup-failure-view {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 32px;
}

.startup-failure-card {
    width: min(100%, 360px);
}

html[dir="rtl"] body {
    direction: rtl;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .search-input {
    text-align: right;
}

html[dir="rtl"] .ph-arrow-left,
html[dir="rtl"] .ph-arrow-right,
html[dir="rtl"] .ph-caret-left,
html[dir="rtl"] .ph-caret-right {
    transform: rotate(180deg);
}

html[dir="rtl"] .header,
html[dir="rtl"] .list-item,
html[dir="rtl"] .profile-menu-row,
html[dir="rtl"] .chat-product,
html[dir="rtl"] .order-row,
html[dir="rtl"] .settings-card {
    direction: rtl;
}

html[dir="rtl"] .bottom-nav,
html[dir="rtl"] .item-price,
html[dir="rtl"] .item-price-protect,
html[dir="rtl"] .chat-item-price-row,
html[dir="rtl"] .offer-row,
html[dir="rtl"] .stat-number,
html[dir="rtl"] .checkout-price-summary strong,
html[dir="rtl"] .checkout-footer-total strong,
html[dir="rtl"] .price-lines strong,
html[dir="rtl"] .order-detail-grid strong {
    direction: ltr;
    unicode-bidi: isolate;
}

html[dir="rtl"] .category-browser-card,
html[dir="rtl"] .category-list-row,
html[dir="rtl"] .item-info,
html[dir="rtl"] .profile-identity-button,
html[dir="rtl"] .profile-button-card,
html[dir="rtl"] .profile-badges-card,
html[dir="rtl"] .profile-menu-row,
html[dir="rtl"] .profile-action-row,
html[dir="rtl"] .profile-boost-card,
html[dir="rtl"] .privacy-centre-page h1,
html[dir="rtl"] .privacy-action-row,
html[dir="rtl"] .privacy-faq-row,
html[dir="rtl"] .acknowledgements-page h1,
html[dir="rtl"] .promote-card,
html[dir="rtl"] .promotion-market-card,
html[dir="rtl"] .promotion-package,
html[dir="rtl"] .promotion-payment-row,
html[dir="rtl"] .promotion-audience-card,
html[dir="rtl"] .promotion-audience-row,
html[dir="rtl"] .order-row,
html[dir="rtl"] .address-card,
html[dir="rtl"] .shipping-option,
html[dir="rtl"] .seller-profile-link,
html[dir="rtl"] .sell-picker-row,
html[dir="rtl"] .checkout-option {
    text-align: right;
}

html[dir="rtl"] .visual-search-head button {
    right: auto;
    left: 14px;
}

html[dir="rtl"] .profile-actions-sheet .badge-sheet-header button {
    right: auto;
    left: 16px;
}

html[dir="rtl"] .item-badge {
    left: auto;
    right: 8px;
}

html[dir="rtl"] .item-likes {
    right: auto;
    left: 8px;
}

html[dir="rtl"] .result-title-line strong,
html[dir="rtl"] .checkout-edit-button {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .profile-root-header {
    padding-right: 0;
    padding-left: 14px;
}

html[dir="rtl"] .profile-stats-row button {
    border-right: 0;
    border-left: 1px solid rgba(255,255,255,0.07);
}

html[dir="rtl"] .profile-stats-row button:last-child {
    border-left: 0;
}

html[dir="rtl"] .sell-picker-row:active {
    padding-left: var(--screen-pad-x);
    padding-right: var(--space-5);
}

html[dir="rtl"] .feedback-card p {
    margin-right: 0;
    margin-left: 16px;
}

html[dir="rtl"] .order-detail-grid > div {
    border-right: 0;
    border-left: 1px solid var(--border-color);
}

html[dir="rtl"] .order-detail-grid > div:nth-child(2n) {
    border-left: none;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--app-frame-shadow);
}

/* Typography */
h1, h2, h3, h4 { font-weight: 600; }
.text-xs { font-size: var(--font-caption); }
.text-sm { font-size: var(--font-body); }
.text-base { font-size: var(--font-label); }
.text-lg { font-size: var(--font-title); }
.text-xl { font-size: var(--font-hero); }
.text-muted { color: var(--text-secondary); }
.text-teal { color: var(--brand-teal-light); }

/* Layouts */
@keyframes viewFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.view-container {
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background-color: var(--bg-color);
}

.view {
    display: none;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-bottom: var(--safe-bottom-space);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-size: var(--font-body);
    line-height: var(--line-body);
}
.view.active {
    display: block;
    animation: none;
}

/* Headers */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 var(--screen-pad-x);
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 10;
    border-bottom: 1px solid var(--glass-border);
    gap: var(--space-3);
    box-shadow: var(--header-shadow);
}
.header.no-border { border-bottom: none; }
.header-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: var(--font-screen-title);
    font-weight: 650;
    line-height: var(--line-tight);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-icon {
    width: var(--control-height-sm);
    height: var(--control-height-sm);
    display: grid;
    place-items: center;
    flex: 0 0 var(--control-height-sm);
    font-size: var(--icon-size-lg);
    color: var(--text-primary);
    cursor: pointer;
}
button.header-icon {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
}
button.header-icon i {
    font-size: inherit;
    pointer-events: none;
}
button.header-icon:focus-visible {
    outline: 2px solid var(--brand-teal-light);
    outline-offset: 2px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 24px -8px rgba(0,0,0,0.5);
}
.bottom-nav.is-hidden {
    display: none;
}
.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    cursor: pointer;
    width: 20%;
    height: 100%;
    min-width: 0;
    transition: color var(--transition-fast);
}
.nav-item:active { transform: none; }
.nav-item i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: var(--icon-size-lg);
    line-height: 1;
    transition: none;
}
.nav-item span {
    width: 100%;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
}
.nav-item.active { color: var(--brand-teal-light); }
.nav-item.active i { font-weight: normal; transform: none; }

.icon-badge-container { position: relative; }
.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: var(--notification-badge-bg);
    border-radius: var(--radius-pill);
    border: 2px solid var(--notification-badge-ring);
    color: var(--notification-badge-text);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: var(--notification-badge-shadow);
    transform: translateZ(0);
}
.badge.visible {
    display: inline-flex;
}

.badge.visible::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--red-badge) 34%, transparent);
    opacity: 0.72;
    pointer-events: none;
}

.nav-item.inbox-reacting .icon-badge-container {
    animation: inboxReactPulse 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-item.inbox-reacting .badge.visible {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--red-badge) 18%, transparent), var(--notification-badge-shadow);
}

@keyframes inboxReactPulse {
    0% { transform: scale(1); }
    34% { transform: scale(1.24) translateY(-2px); }
    68% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-item.inbox-reacting .icon-badge-container {
        animation: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px var(--space-4);
    border-radius: var(--component-radius);
    font-size: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    width: 100%;
    min-height: var(--control-height-lg);
    transition: background var(--transition-med), border-color var(--transition-med), color var(--transition-med), box-shadow var(--transition-med), filter var(--transition-med), transform var(--transition-fast);
    position: relative;
    overflow: hidden;
    letter-spacing: 0;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
    box-shadow: 0 4px 20px var(--brand-teal-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid var(--primary-button-border);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-primary:hover { box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.3); filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline {
    background-color: var(--outline-button-bg);
    color: var(--brand-teal-light);
    border: 1px solid var(--outline-button-border);
}
.btn-outline:hover { background: var(--outline-button-hover-bg); border-color: var(--brand-teal-light); }
.btn-ghost {
    background-color: transparent;
    color: var(--text-primary);
}
.btn-ghost:hover { background: var(--surface-hover); }

/* List Items (Profile Menu, Settings) */
.list-group {
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.list-item {
    display: flex;
    align-items: center;
    min-height: var(--row-height-md);
    padding: 0 var(--screen-pad-x);
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    gap: var(--space-3);
    transition: background var(--transition-fast);
}
.list-item:hover { background-color: var(--surface-hover); }
.list-item:active { background-color: var(--surface-hover); }
.list-item:last-child { border-bottom: none; }
.list-item-icon { font-size: var(--icon-size-md); color: var(--text-secondary); }
.list-item-content {
    flex: 1;
    min-width: 0;
    font-size: var(--font-label);
    line-height: var(--line-tight);
}
.list-item-right { color: var(--text-secondary); font-size: var(--font-meta); display: flex; align-items: center; gap: var(--space-2); }

/* Toggles */
.toggle {
    appearance: none;
    width: 40px;
    height: 24px;
    background-color: #39393d;
    border-radius: 12px;
    position: relative;
    outline: none;
    cursor: pointer;
}
.toggle:checked { background-color: var(--brand-teal-light); }
.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}
.toggle:checked::after { transform: translateX(16px); }

/* Home Search Bar */
.search-container {
    height: auto;
    min-height: 68px;
    padding: 10px var(--screen-pad-x);
    background-color: var(--bg-color);
}
.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    min-height: var(--control-height-xl);
    background-color: var(--surface-color);
    border-radius: var(--component-radius);
    padding: 0 14px;
    gap: var(--space-2);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.search-bar:focus-within {
    border-color: var(--brand-teal-light);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 3px var(--brand-teal-glow);
}
.search-bar i { color: var(--text-secondary); font-size: 20px; transition: color var(--transition-fast); }
.search-bar:focus-within i { color: var(--brand-teal-light); }
.visual-search-button {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: transparent;
    color: var(--brand-teal-light);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}
.visual-search-button i {
    color: inherit;
    font-size: 22px;
}
.visual-search-button:active {
    transform: scale(0.94);
    background: var(--brand-teal-glow);
}
.sponsored-ads-button {
    color: #f4b400;
}
.sponsored-ads-button:active {
    background: rgba(244, 180, 0, 0.14);
}
.search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}
.search-input::placeholder { color: var(--text-secondary); }

.sponsored-ads-view {
    display: grid;
    gap: 14px;
    padding: 16px var(--screen-pad-x) calc(var(--nav-height) + 24px);
}

.sponsored-ads-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(244, 180, 0, 0.14), rgba(0, 214, 181, 0.05)),
        var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
}

.sponsored-ads-hero span {
    display: block;
    margin-bottom: 5px;
    color: #f4b400;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sponsored-ads-hero h1 {
    margin: 0 0 7px;
    color: var(--text-primary);
    font-size: 25px;
    line-height: 1.05;
}

.sponsored-ads-hero p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.sponsored-ads-hero > i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(244, 180, 0, 0.16);
    color: #f4b400;
    font-size: 30px;
}

.sponsored-ads-policy {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sponsored-ads-policy div {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.sponsored-ads-policy strong,
.sponsored-ads-policy span {
    display: block;
}

.sponsored-ads-policy strong {
    color: var(--text-primary);
    font-size: 13px;
}

.sponsored-ads-policy span {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
}

.sponsored-rate-card,
.sponsored-market-study,
.sponsored-revenue-model,
.sponsored-protocol {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
}

.sponsored-market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sponsored-market-grid article {
    display: grid;
    gap: 5px;
    min-height: 118px;
    padding: 12px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.sponsored-market-grid strong {
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.1;
}

.sponsored-market-grid span {
    color: #f4b400;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sponsored-market-grid p,
.sponsored-rate-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.4;
}

.sponsored-revenue-rules {
    display: grid;
    gap: 8px;
}

.sponsored-revenue-rules div {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.sponsored-revenue-rules strong {
    color: var(--text-primary);
    font-size: 13px;
}

.sponsored-revenue-rules span {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.sponsored-rate-title span {
    display: block;
    margin-bottom: 4px;
    color: #f4b400;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sponsored-rate-title h2,
.sponsored-protocol h2 {
    margin: 0 0 5px;
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.2;
}

.sponsored-rate-title p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.sponsored-rate-grid {
    display: grid;
    gap: 9px;
}

.sponsored-rate-item {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.sponsored-rate-item > strong,
.sponsored-rate-item > small {
    display: block;
}

.sponsored-rate-item > strong {
    color: var(--text-primary);
    font-size: 14px;
}

.sponsored-rate-item > small {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
}

.sponsored-rate-item div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 7px;
    border-top: 1px solid var(--elevated-card-border);
}

.sponsored-rate-item span {
    color: var(--text-secondary);
    font-size: 12px;
}

.sponsored-rate-item b {
    color: var(--text-primary);
    font-size: 13px;
}

.sponsored-protocol p {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.sponsored-protocol i {
    color: var(--brand-teal-light);
    font-size: 17px;
}

.sponsored-ads-board {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 10px;
}

.sponsored-ad-card {
    min-height: 150px;
    position: relative;
    display: grid;
    align-content: end;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sponsored-ad-hero {
    grid-column: span 8;
    min-height: 280px;
}

.sponsored-ad-medium {
    grid-column: span 4;
    min-height: 210px;
}

.sponsored-ad-small {
    grid-column: span 2;
    min-height: 150px;
}

.sponsored-ad-media {
    position: absolute;
    inset: 0;
    background: var(--surface-color);
}

.sponsored-ad-media img,
.sponsored-ad-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sponsored-ad-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16) 54%, rgba(0, 0, 0, 0.02)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 56%);
}

.sponsored-ad-media span {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.sponsored-ad-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    gap: 5px;
    padding: 14px;
}

.sponsored-ad-copy small {
    color: #f4b400;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sponsored-ad-copy h2,
.sponsored-ad-copy h3,
.sponsored-ad-copy p {
    margin: 0;
}

.sponsored-ad-copy h2 {
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.15;
}

.sponsored-ad-hero .sponsored-ad-copy h2 {
    font-size: 24px;
}

.sponsored-ad-small .sponsored-ad-copy {
    padding: 12px;
}

.sponsored-ad-small .sponsored-ad-copy h2 {
    font-size: 15px;
}

.sponsored-ad-copy h3 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 750;
}

.sponsored-ad-copy p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.sponsored-ad-small .sponsored-ad-copy p {
    display: none;
}

.sponsored-ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.sponsored-ad-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--elevated-muted-bg);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 750;
}

.sponsored-ads-dashboard {
    padding: 12px;
    gap: 12px;
}

.sponsored-dashboard-shell {
    display: grid;
    gap: 12px;
}

.sponsored-dashboard-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
}

.sponsored-dashboard-command-bar div,
.sponsored-editor-header div {
    display: grid;
    gap: 4px;
}

.sponsored-dashboard-command-bar span,
.sponsored-editor-header span {
    color: #f4b400;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sponsored-dashboard-command-bar h3,
.sponsored-dashboard-command-bar p,
.sponsored-editor-header h3,
.sponsored-editor-header p {
    margin: 0;
}

.sponsored-dashboard-command-bar h3,
.sponsored-editor-header h3 {
    color: var(--text-primary);
    font-size: 18px;
}

.sponsored-dashboard-command-bar p,
.sponsored-editor-header p {
    max-width: 620px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.sponsored-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sponsored-dashboard-kpi {
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.sponsored-dashboard-kpi span,
.sponsored-dashboard-kpi small {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
}

.sponsored-dashboard-kpi strong {
    display: block;
    margin: 4px 0;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sponsored-dashboard-workbench {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: 12px;
    align-items: start;
}

.sponsored-ad-editor,
.sponsored-ad-admin-list {
    display: grid;
    gap: 10px;
}

.sponsored-dashboard-list-panel,
.sponsored-ad-editor {
    padding: 12px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
}

.sponsored-dashboard-list-panel {
    position: sticky;
    top: 10px;
}

.sponsored-form-section {
    display: grid;
    gap: 9px;
    padding: 12px 0 0;
    border-top: 1px solid var(--elevated-card-border);
}

.sponsored-form-section h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
}

.sponsored-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sponsored-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

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

.sponsored-ad-editor label {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
}

.sponsored-ad-editor input,
.sponsored-ad-editor select,
.sponsored-ad-editor textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 0 11px;
    font: inherit;
    font-size: 13px;
}

.sponsored-ad-editor input:focus,
.sponsored-ad-editor select:focus,
.sponsored-ad-editor textarea:focus {
    outline: none;
    border-color: rgba(74, 166, 178, 0.72);
    box-shadow: 0 0 0 3px rgba(74, 166, 178, 0.14);
}

.sponsored-ad-editor textarea {
    min-height: 88px;
    padding-top: 10px;
    resize: vertical;
}

.sponsored-ad-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 11px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.sponsored-ad-admin-row strong,
.sponsored-ad-admin-row span,
.sponsored-ad-admin-row small {
    display: block;
}

.sponsored-ad-admin-row strong {
    color: var(--text-primary);
    font-size: 14px;
}

.sponsored-ad-admin-row span {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 13px;
}

.sponsored-ad-admin-row small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.sponsored-ad-status-pill {
    justify-self: end;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--elevated-card-bg);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sponsored-ad-status-pill[data-status="active"] {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.14);
}

.sponsored-ad-status-pill[data-status="paused"] {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}

.sponsored-ad-admin-row menu {
    display: flex;
    gap: 7px;
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.sponsored-ad-admin-row menu button {
    min-height: 34px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
    color: var(--text-primary);
    padding: 0 10px;
    font-weight: 800;
}

.sponsored-dashboard-forecast {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sponsored-dashboard-forecast div {
    display: grid;
    gap: 5px;
    padding: 11px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.sponsored-dashboard-forecast span {
    color: #f4b400;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sponsored-dashboard-forecast h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 17px;
}

.sponsored-dashboard-forecast p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.sponsored-ad-detail {
    display: grid;
    gap: 14px;
    padding: 16px var(--screen-pad-x) calc(var(--nav-height) + 24px);
}

.sponsored-ad-detail-media {
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
}

.sponsored-ad-detail-media img,
.sponsored-ad-detail-media video {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    object-fit: cover;
}

.sponsored-ad-detail-copy {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
}

.sponsored-ad-detail-copy > span {
    color: #f4b400;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sponsored-ad-detail-copy h2,
.sponsored-ad-detail-copy h3,
.sponsored-ad-detail-copy p {
    margin: 0;
}

.sponsored-ad-detail-copy h2 {
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1.15;
}

.sponsored-ad-detail-copy h3 {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.25;
}

.sponsored-ad-detail-copy p,
.sponsored-ad-detail-copy small {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .sponsored-ads-board {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sponsored-ad-hero,
    .sponsored-ad-medium {
        grid-column: span 4;
    }

    .sponsored-ad-small {
        grid-column: span 2;
    }

    .sponsored-dashboard-command-bar,
    .sponsored-editor-header {
        display: grid;
    }

    .sponsored-dashboard-kpis,
    .sponsored-field-grid,
    .sponsored-field-grid-three {
        grid-template-columns: 1fr;
    }

    .sponsored-dashboard-workbench {
        grid-template-columns: 1fr;
    }

    .sponsored-dashboard-list-panel {
        position: static;
    }

    .sponsored-market-grid,
    .sponsored-dashboard-forecast {
        grid-template-columns: 1fr;
    }

    .sponsored-revenue-rules div {
        grid-template-columns: 1fr;
    }
}

.search-header {
    gap: 12px;
    border-bottom: none;
    width: 100%;
    min-width: 0;
}

.search-header .header-icon {
    flex: 0 0 auto;
    width: 32px;
    text-align: center;
}

.search-header .search-bar,
.category-results-header .search-bar {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.category-results-header {
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.category-results-header .header-icon {
    flex: 0 0 32px;
    width: 32px;
    text-align: center;
}

.search-tabs {
    background-color: var(--bg-color);
    position: sticky;
    top: 72px;
    z-index: 9;
}

.search-tabs .tab {
    min-height: var(--control-height-lg);
    padding: 0;
    font-size: var(--ui-tab-font-size);
    line-height: var(--line-tight);
}

.search-results-shell {
    min-height: calc(100vh - 132px - var(--nav-height));
    border-top: 1px solid var(--border-color);
}

.recent-searches {
    padding: var(--space-5) var(--screen-pad-x) var(--space-2);
}

.recent-searches-title {
    color: var(--text-secondary);
    font-size: var(--font-meta);
    margin-bottom: var(--space-4);
}

.recent-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--row-height-md);
    gap: var(--space-3);
    cursor: pointer;
}

.recent-search-main {
    min-width: 0;
}

.recent-search-query {
    color: var(--text-primary);
    font-size: var(--font-label);
    font-weight: 600;
    line-height: 1.3;
}

.recent-search-query .new-count {
    color: var(--brand-teal-light);
}

.visual-search-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 360;
    width: min(480px, 100vw);
    transform: translateX(-50%);
    max-height: 78vh;
    overflow-y: auto;
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
    border: 1px solid var(--glass-border);
    border-bottom: 0;
    background: var(--sheet-bg);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.46);
}
.visual-search-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
}
.visual-search-head h2 {
    font-size: var(--font-screen-title);
}
.visual-search-head button {
    position: absolute;
    right: 14px;
    width: var(--control-height-lg);
    height: var(--control-height-lg);
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: var(--icon-size-lg);
}
.visual-search-body {
    padding: var(--space-5) var(--screen-pad-x) var(--space-6);
}
.visual-search-preview {
    width: 100%;
    aspect-ratio: 1.08;
    object-fit: cover;
    border-radius: var(--card-radius);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}
.visual-search-copy {
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: var(--space-4) 0 var(--space-5);
}
.visual-search-copy strong {
    color: var(--text-primary);
    font-size: var(--font-screen-title);
    line-height: 1.25;
}
.visual-search-copy p,
.visual-search-copy small {
    color: var(--text-secondary);
    font-size: var(--font-body);
    line-height: 1.4;
}
.visual-search-pill {
    display: inline-flex;
    align-items: center;
    min-height: var(--ui-chip-height);
    padding: 0 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 201, 167, 0.38);
    background: rgba(0, 201, 167, 0.12);
    color: var(--brand-teal-light);
    font-weight: 700;
}
.visual-search-matches {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
}
.visual-search-match {
    display: grid;
    grid-template-columns: 56px 1fr var(--control-height-sm);
    align-items: center;
    gap: var(--space-3);
    min-height: var(--row-height-lg);
    padding: var(--space-2);
    border: 1px solid var(--border-color);
    border-radius: var(--component-radius);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}
.visual-search-match img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-color);
}
.visual-search-match strong {
    display: block;
    color: var(--text-primary);
    font-size: var(--font-body);
    line-height: 1.25;
}
.visual-search-match p {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.visual-search-match span {
    display: block;
    margin-top: 4px;
    color: var(--text-primary);
    font-size: var(--font-body);
    font-weight: 700;
}
.visual-search-match button {
    width: var(--control-height-sm);
    height: var(--control-height-sm);
    border: 1px solid rgba(0, 214, 181, 0.35);
    border-radius: var(--radius-pill);
    background: rgba(0, 214, 181, 0.08);
    color: var(--brand-teal-light);
    display: inline-grid;
    place-items: center;
    font-size: var(--icon-size-sm);
}
.visual-search-view-results {
    width: 100%;
    min-height: var(--control-height-lg);
    margin-bottom: var(--space-2);
}
.small-loader {
    width: 26px;
    height: 26px;
    border-width: 3px;
    margin: 0 0 4px;
}

.recent-search-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-body);
    line-height: 1.35;
}

.recent-save-btn {
    width: var(--control-height-lg);
    height: var(--control-height-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--icon-size-lg);
}

.member-empty-state {
    min-height: calc(100vh - 190px - var(--nav-height));
    padding: 56px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.member-empty-icon {
    color: #73d8cb;
    font-size: 82px;
    line-height: 1;
    margin-bottom: 32px;
}

.member-empty-state h2 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.member-empty-state p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.42;
    max-width: 340px;
}

.member-result-list {
    padding: 8px 0;
}

.member-result-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--row-height-md);
    padding: var(--space-2) var(--screen-pad-x);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.member-result-row img {
    width: var(--avatar-size-md);
    height: var(--avatar-size-md);
    border-radius: 50%;
    background: var(--surface-color);
}

.member-result-info {
    flex: 1;
    min-width: 0;
}

.member-result-info strong,
.member-result-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-result-info span {
    color: var(--text-secondary);
    font-size: var(--font-meta);
}

.member-follow-btn {
    width: auto;
    min-height: var(--control-height-sm);
    padding: 0 var(--space-3);
    font-size: var(--font-meta);
}

.category-browser-grid {
    padding: var(--space-4) var(--screen-pad-x) var(--safe-bottom-space);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
}

.category-browser-card {
    min-height: 152px;
    border: 1px solid var(--search-card-border);
    border-radius: 8px;
    background: var(--search-card-bg);
    color: var(--search-card-title);
    padding: var(--space-4) var(--space-4) var(--space-3);
    position: relative;
    overflow: hidden;
    text-align: left;
    font: inherit;
    font-size: var(--font-label);
    font-weight: 700;
    cursor: pointer;
    display: grid;
    grid-template-rows: 52px 1fr;
    gap: 8px;
    align-items: stretch;
}

.category-browser-title {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    max-width: 100%;
    color: var(--search-card-title);
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    align-self: start;
}

.category-browser-art {
    min-height: 68px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
}

.category-browser-art img {
    position: static !important;
    z-index: 1;
    width: min(82px, 64%);
    height: 68px;
    object-fit: contain;
    transform: translate(6px, 0);
    pointer-events: none;
}

html[dir="rtl"] .category-browser-card {
    text-align: right;
}

html[dir="rtl"] .category-browser-art {
    justify-content: flex-start;
}

html[dir="rtl"] .category-browser-art img {
    transform: translate(-4px, 2px);
}

.category-list {
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.category-list-row {
    width: 100%;
    min-height: 60px;
    padding: 0 var(--screen-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--ui-row-title-size);
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
}

.category-list-label {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
}

.category-list-label span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-list-leading-icon {
    width: 32px;
    color: var(--brand-teal-muted) !important;
    font-size: 28px !important;
}

.category-list-row i {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: var(--icon-size-sm);
}

.category-results-header {
    gap: 12px;
}

.category-results-header .search-bar {
    min-height: 48px;
}

.filter-chip-row {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: 9px var(--screen-pad-x) 10px;
    scrollbar-width: none;
}

.filter-chip-row::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    min-height: var(--ui-chip-height);
    padding: 0 var(--ui-chip-pad-x);
    border-radius: var(--ui-chip-radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
    font: inherit;
    font-size: var(--ui-chip-font-size);
}

.filter-chip i {
    font-size: var(--font-label);
}

.filter-chip.active {
    border-color: var(--brand-teal);
    background: rgba(33, 155, 157, 0.2);
    color: var(--brand-teal-light);
}

.results-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px var(--screen-pad-x) 10px;
    color: var(--text-secondary);
    font-size: var(--ui-meta-font-size);
}

.results-count-row span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-caption);
}

.category-results-grid {
    --listing-grid-pad-x: 16px;
    --listing-grid-pad-y: 0px;
    padding-bottom: 22px;
    contain: inline-size;
}

.result-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.auto-dir {
    unicode-bidi: plaintext;
    text-align: start;
}

.result-title-line span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-title-line strong {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 13px;
    color: var(--text-primary);
}

/* Categories Pills */
.categories-scroll {
    display: flex;
    overflow-x: auto;
    padding: 8px 16px;
    gap: 8px;
    scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-pill {
    min-height: var(--ui-chip-height);
    padding: 0 var(--ui-chip-pad-x);
    border-radius: var(--ui-chip-radius);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    font-size: var(--ui-chip-font-size);
    white-space: nowrap;
    background-color: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.category-pill:hover { border-color: var(--text-secondary); }
.category-pill.active {
    border-color: var(--brand-teal-light);
    color: var(--selected-chip-text);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0,201,167,0.2), rgba(0,119,130,0.15));
    box-shadow: 0 0 12px var(--brand-teal-glow);
}

.home-refresh-indicator {
    height: 0;
    margin: 0 var(--screen-pad-x);
    border: 1px solid transparent;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    transition: height var(--transition-fast), margin-top var(--transition-fast), margin-bottom var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.home-refresh-indicator.active {
    height: 36px;
    margin-top: 8px;
    margin-bottom: 2px;
    border-color: rgba(0, 214, 181, 0.24);
    background: rgba(0, 214, 181, 0.08);
    color: var(--brand-teal-light);
    opacity: 1;
    transform: translateY(0);
}

.home-refresh-indicator.active i {
    animation: refreshSpin 0.9s linear infinite;
}

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

.category-pill.disabled,
.category-pill:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
    box-shadow: none;
}

/* Item Grid */
.item-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, calc((100% - var(--listing-grid-col-gap)) / 2)));
    gap: var(--listing-grid-row-gap) var(--listing-grid-col-gap);
    padding: var(--listing-grid-pad-y) var(--listing-grid-pad-x);
    align-items: start;
    justify-content: start;
    overflow-x: hidden;
}
.item-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto;
    gap: 6px;
    transition: transform var(--transition-med);
}
.item-card > * {
    min-width: 0;
}
.item-card:hover { transform: translateY(-2px); }
.item-card:active { transform: scale(0.98) translateY(0); }
.item-image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--card-radius);
    overflow: hidden;
    background-color: var(--surface-color);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}
.item-image-container[data-card-gallery] {
    touch-action: pan-y;
    overscroll-behavior: contain;
}
.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.item-card:hover .item-image { transform: scale(1.05); }
.item-card-gallery-dots {
    position: absolute;
    left: 8px;
    right: 54px;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 4px;
    pointer-events: auto;
    z-index: 2;
}
.item-card-gallery-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.item-card-gallery-dot.active {
    width: 14px;
    border-radius: 999px;
    background: #fff;
}
.listing-loading-card {
    width: 100%;
    display: grid;
    gap: 8px;
}
.listing-loading-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
}
.listing-loading-line {
    width: 86%;
    height: 13px;
    border-radius: 4px;
}
.listing-loading-line.short {
    width: 54%;
}
.item-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    font-size: var(--font-caption);
    display: flex;
    align-items: center;
    gap: 4px;
}
.item-card-promoted .item-image-container {
    border-color: rgba(33, 200, 183, 0.38);
}
.item-badge-promoted {
    max-width: calc(100% - 74px);
    background: rgba(0, 119, 130, 0.86);
    color: #f2fffd;
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-badge-promoted i { flex: 0 0 auto; }
.item-badge-owner {
    background: rgba(255, 202, 58, 0.88);
    color: #101010;
}
.item-likes {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    font-size: var(--font-caption);
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    cursor: pointer;
}
.item-likes.active {
    background-color: rgba(255, 69, 58, 0.16);
    color: var(--red-badge);
    box-shadow: 0 0 0 1px rgba(255, 69, 58, 0.36), 0 8px 18px rgba(0,0,0,0.35);
}
.item-likes.active i,
.item-likes .ph-fill.ph-heart {
    color: var(--red-badge);
}
.item-info {
    min-width: 0;
    display: grid;
    grid-template-rows: 20px 18px 23px 18px;
    row-gap: 2px;
}
.item-brand {
    min-width: 0;
    overflow: hidden;
    color: var(--text-primary);
    font-size: var(--font-body);
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-size-cond {
    min-width: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: var(--font-caption);
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-price {
    min-width: 0;
    overflow: hidden;
    font-size: var(--font-label);
    font-weight: 700;
    line-height: 23px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-price-protect {
    min-width: 0;
    overflow: hidden;
    color: var(--brand-teal-light);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-caption);
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-price-protect i {
    flex: 0 0 auto;
}

/* Profile Card */
.profile-scroll {
    padding: var(--space-2) 0 calc(var(--nav-height) + 34px);
}
.profile-root-header {
    border-bottom-color: var(--subtle-border-color);
    padding-right: var(--screen-pad-x);
}
.profile-root-header .header-title,
.profile-details-header .header-title {
    font-size: var(--font-screen-title);
    font-weight: 700;
}
.profile-auth-screen {
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    padding: var(--space-4) var(--screen-pad-x) calc(var(--nav-height) + 28px);
}
.profile-auth-card,
.profile-auth-benefits {
    border: 1px solid var(--subtle-border-color);
    border-radius: var(--component-radius);
    background: var(--soft-panel-bg);
    box-shadow: var(--shadow-card);
}
.profile-auth-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
}
.profile-auth-mark {
    width: var(--avatar-size-lg);
    height: var(--avatar-size-lg);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 214, 181, 0.12);
    color: var(--brand-teal-light);
    font-size: 28px;
}
.profile-auth-card h1 {
    margin: 2px 0 0;
    font-size: var(--font-hero);
    line-height: 1.12;
}
.profile-auth-card p {
    color: var(--text-secondary);
    font-size: var(--font-body);
    line-height: 1.45;
}
.profile-google-button {
    margin-top: 4px;
    border-radius: var(--component-radius);
    box-shadow: none;
}
.profile-auth-benefits {
    margin-top: var(--space-3);
    padding: var(--space-3) var(--screen-pad-x);
}
.profile-auth-benefits h2 {
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-size: var(--font-label);
}
.profile-auth-benefit {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    min-height: var(--control-height-lg);
    color: var(--text-secondary);
    font-size: var(--font-body);
}
.profile-auth-benefit i {
    color: var(--brand-teal-light);
    font-size: var(--icon-size-sm);
}
.profile-auth-secondary {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 18px 0 0;
}
.profile-auth-secondary button {
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: var(--font-body);
}
.profile-card,
.profile-hero-card {
    margin: var(--space-3) var(--screen-pad-x) var(--space-3);
    border: 1px solid var(--profile-card-border);
    border-radius: var(--component-radius);
    background: var(--profile-card-bg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.profile-card {
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: transform var(--transition-fast);
}
.profile-identity-button {
    width: 100%;
    min-height: var(--row-height-lg);
    display: grid;
    grid-template-columns: var(--avatar-size-lg) minmax(0, 1fr) var(--icon-size-md);
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 0;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    font: inherit;
}
.profile-hero-avatar {
    width: var(--avatar-size-lg);
    height: var(--avatar-size-lg);
}
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--profile-stat-border);
}
.profile-stats-row button {
    min-height: var(--row-height-sm);
    border: 0;
    border-right: 1px solid var(--profile-stat-border);
    background: var(--profile-stat-bg);
    color: var(--text-primary);
    font: inherit;
}
.profile-stats-row button:last-child {
    border-right: 0;
}
.profile-stats-row strong,
.profile-stats-row span {
    display: block;
}
.profile-stats-row strong {
    font-size: var(--font-label);
    line-height: 1.1;
}
.profile-stats-row span {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 12px;
}
.profile-button-card,
.profile-badges-card,
.profile-menu-row {
    width: calc(100% - 32px);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
}
.profile-button-card,
.profile-badges-card {
    cursor: pointer;
}
.profile-card:active { transform: scale(0.98); }
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007782, #00c9a7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info {
    min-width: 0;
}
.profile-info h2 {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    font-size: 17px;
    line-height: 1.2;
}
.profile-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-info p { font-size: 13px; color: var(--text-secondary); }
.profile-badges-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 16px 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background-color: rgba(255,255,255,0.035);
}
.profile-badge-copy { flex: 1; min-width: 0; }
.profile-badge-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 650;
}
.profile-badge-title span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.profile-progress-track {
    height: 6px;
    margin-top: 13px;
    border-radius: 999px;
    background-color: var(--surface-hover);
    overflow: hidden;
}
.profile-progress-fill {
    height: 100%;
    border-radius: inherit;
    background-color: var(--brand-teal-light);
}
.profile-authority-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 32px);
    margin: 6px 16px 14px;
    padding: 14px;
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--component-radius);
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    text-align: left;
    font: inherit;
}
.profile-authority-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-teal-light);
    color: #fff;
    flex: 0 0 auto;
}
.profile-authority-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
.profile-authority-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}
.profile-authority-copy small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}
.profile-menu-block {
    margin-top: 16px;
}
.profile-menu-block h3 {
    margin: 0 24px 8px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: uppercase;
}
.profile-menu-section {
    margin: 0 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.026);
    overflow: hidden;
}
.profile-menu-section .profile-menu-row {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
}
.profile-menu-section .profile-menu-row:last-child { border-bottom: none; }
.profile-page-section { margin-top: 0; }
.profile-menu-row .list-item-content span {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}
.profile-menu-row .list-item-icon {
    width: 34px;
    min-width: 34px;
    color: var(--text-secondary);
    font-size: 22px;
}
.profile-menu-row .list-item-content {
    font-size: 15px;
    font-weight: 620;
}
.profile-resource-panel {
    margin: 16px var(--screen-pad-x) 0;
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--card-radius);
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.profile-resource-feature,
.profile-resource-tile {
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
}
.profile-resource-feature {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    text-align: left;
}
.profile-resource-feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(0, 214, 181, 0.12);
    color: var(--brand-teal-light);
    font-size: 24px;
}
.profile-resource-feature strong,
.profile-resource-feature small {
    display: block;
}
.profile-resource-feature strong {
    font-size: 15px;
    line-height: 1.2;
}
.profile-resource-feature small {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.3;
}
.profile-resource-feature > .ph-caret-right {
    color: var(--text-secondary);
    font-size: 18px;
}
.profile-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--elevated-card-border);
}
.profile-resource-tile {
    min-height: 74px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    padding: 12px 8px;
    border-right: 1px solid var(--elevated-card-border);
    border-bottom: 1px solid var(--elevated-card-border);
}
.profile-resource-tile:nth-child(2n) {
    border-right: 0;
}
.profile-resource-tile:nth-last-child(-n + 2) {
    border-bottom: 0;
}
.profile-resource-tile i {
    color: var(--brand-teal-light);
    font-size: 22px;
}
.profile-resource-tile span {
    max-width: 100%;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}
.profile-resource-feature:active,
.profile-resource-tile:active,
.profile-resource-feature:focus-visible,
.profile-resource-tile:focus-visible {
    background: var(--surface-hover);
    outline: none;
}

.verified-check {
    --verified-check-fill: #1d9bf0;
    --verified-check-foreground: #071014;
    --verified-check-shadow: rgba(29, 155, 240, 0.22);
    width: 18px;
    min-width: 18px;
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    color: var(--verified-check-foreground);
    line-height: 0;
    vertical-align: -4px;
    filter: drop-shadow(0 1px 2px var(--verified-check-shadow));
    flex: 0 0 auto;
}
.verified-check-icon {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
}
.verified-check-seal {
    fill: var(--verified-check-fill);
}
.verified-check-tick {
    fill: none;
    stroke: var(--verified-check-foreground);
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.verified-check[data-tone="creator"] {
    --verified-check-fill: #8f1d2d;
    --verified-check-foreground: #ffffff;
    --verified-check-shadow: rgba(143, 29, 45, 0.24);
}
.verified-check[data-tone="staff"] {
    --verified-check-fill: #1d9bf0;
    --verified-check-foreground: #071014;
}
.verified-check[data-tone="seller"],
.verified-check[data-tone="member"] {
    --verified-check-fill: #1f9f62;
    --verified-check-foreground: #07140d;
    --verified-check-shadow: rgba(31, 159, 98, 0.22);
}
.verified-check[data-tone="commercial"] {
    --verified-check-fill: #f4b400;
    --verified-check-foreground: #1d1300;
    --verified-check-shadow: rgba(244, 180, 0, 0.24);
}
.verified-check[data-tone="institution"] {
    --verified-check-fill: #8a97a3;
    --verified-check-foreground: #071014;
    --verified-check-shadow: rgba(28, 39, 49, 0.2);
}
.verified-check-inline { margin-left: 3px; }
.profile-info .verified-check {
    margin-left: 0;
    width: 20px;
    min-width: 20px;
    vertical-align: -5px;
}
.item-seller-line {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
}

.authority-dashboard {
    min-height: calc(100vh - 60px);
    padding: 16px 16px calc(var(--nav-height) + 28px);
    background: var(--bg-color);
}
.authority-dashboard-creator {
    display: grid;
    align-content: start;
    gap: 14px;
    background: var(--bg-color);
}
.creator-command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.creator-command-tile {
    min-height: 158px;
    display: grid;
    align-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--component-radius);
    background: var(--elevated-card-bg);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    font: inherit;
    text-align: left;
}
.creator-command-tile:active,
.creator-command-tile:focus-visible {
    border-color: rgba(0, 214, 181, 0.55);
    background: var(--surface-hover);
    outline: none;
}
.creator-command-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.creator-command-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(143, 29, 45, 0.12);
    color: #bd4050;
    font-size: 22px;
}
.creator-command-head small {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(0, 214, 181, 0.1);
    color: var(--brand-teal-light);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
.creator-command-copy,
.creator-command-copy strong,
.creator-command-copy span {
    display: block;
}
.creator-command-copy strong {
    font-size: 16px;
    line-height: 1.15;
}
.creator-command-copy span {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}
.creator-command-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-teal-light);
    font-size: 13px;
    font-weight: 800;
}
.authority-hero {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
}
.authority-hero-creator {
    border-color: rgba(143, 29, 45, 0.24);
    background:
        radial-gradient(circle at 92% 0%, rgba(143, 29, 45, 0.18), transparent 34%),
        var(--elevated-card-bg);
}
.authority-hero-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(143, 29, 45, 0.12);
    color: #b43748;
    font-size: 28px;
}
.authority-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-teal-light);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}
.authority-hero h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.05;
}
.authority-hero p,
.authority-section-title p,
.authority-lane-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}
.authority-hero-creator p { color: var(--text-secondary); }
.authority-dashboard[data-staff-role="SUPPORT"] .authority-hero,
.authority-dashboard[data-staff-role="SUPPORT"] .authority-hero-mark {
    border-color: rgba(0, 161, 155, 0.28);
}
.authority-dashboard[data-staff-role="SUPPORT"] .authority-hero-mark {
    background: rgba(0, 161, 155, 0.13);
    color: var(--brand-teal-light);
}
.authority-dashboard[data-staff-role="REVIEW_ADMIN"] .authority-hero,
.authority-dashboard[data-staff-role="REVIEW_ADMIN"] .authority-hero-mark {
    border-color: rgba(52, 109, 219, 0.28);
}
.authority-dashboard[data-staff-role="REVIEW_ADMIN"] .authority-hero-mark {
    background: rgba(52, 109, 219, 0.12);
    color: #4b86e8;
}
.authority-dashboard[data-staff-role="ADMIN"] .authority-hero,
.authority-dashboard[data-staff-role="ADMIN"] .authority-hero-mark {
    border-color: rgba(88, 82, 72, 0.28);
}
.authority-dashboard[data-staff-role="ADMIN"] .authority-hero-mark {
    background: rgba(88, 82, 72, 0.12);
    color: var(--text-primary);
}
.authority-dashboard[data-staff-role="SUPERVISOR"] .authority-hero,
.authority-dashboard[data-staff-role="SUPERVISOR"] .authority-hero-mark {
    border-color: rgba(143, 29, 45, 0.24);
}
.authority-dashboard[data-staff-role="SUPERVISOR"] .authority-hero-mark {
    background: rgba(143, 29, 45, 0.12);
    color: #b43748;
}
.authority-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.authority-dashboard-creator .authority-metric-grid {
    margin-top: 0;
}
.authority-metric-card,
.authority-panel,
.authority-lane-card {
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
}
.authority-metric-card {
    padding: 13px;
}
.authority-metric-button {
    width: 100%;
    min-width: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.authority-metric-button::after {
    content: "Open";
    display: inline-flex;
    margin-top: 9px;
    color: var(--brand-teal-light);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}
.authority-metric-button:focus-visible,
.authority-metric-button:hover {
    outline: none;
    border-color: rgba(74, 166, 178, 0.48);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}
.authority-metric-card span,
.authority-metric-card small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}
.authority-metric-card strong {
    display: block;
    margin: 4px 0;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
}
.authority-lane-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.authority-lane-card {
    padding: 15px;
}
.authority-lane-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(0, 161, 155, 0.12);
    color: var(--brand-teal-light);
    font-size: 22px;
}
.authority-lane-card h3,
.authority-section-title h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.2;
}
.authority-lane-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-teal-light);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}
.authority-panel {
    margin-top: 14px;
    padding: 15px;
}
.authority-dashboard-creator .authority-panel {
    margin-top: 0;
}

.staff-protocol-grid,
.staff-workload-grid {
    display: grid;
    gap: 10px;
}

.staff-protocol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.staff-protocol-step,
.staff-workload-grid > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.staff-protocol-step span,
.staff-workload-grid span,
.staff-workload-grid small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.staff-protocol-step span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(0, 161, 155, 0.12);
    color: var(--brand-teal-light);
    font-weight: 800;
}

.staff-protocol-step strong,
.staff-workload-grid strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.2;
}

.staff-protocol-step small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.staff-team-workload .staff-workload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.staff-workload-grid strong {
    font-size: 22px;
}

.authority-command-panel {
    padding: 0;
    overflow: hidden;
}

.creator-drilldown-view {
    gap: 14px;
}

.creator-drilldown-search-card {
    margin-top: 0;
}

.creator-drilldown-search {
    margin-top: 12px;
}

.creator-drilldown-list {
    display: grid;
    gap: 10px;
}

.creator-drilldown-row {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    column-gap: 14px;
    padding: 13px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
    color: var(--text-primary);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.creator-drilldown-row > .avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    justify-self: center;
}

.creator-drilldown-row:focus-visible,
.creator-drilldown-row:hover {
    outline: none;
    border-color: rgba(74, 166, 178, 0.48);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.creator-drilldown-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(74, 166, 178, 0.12);
    color: var(--brand-teal-light);
    font-size: 21px;
}

.creator-drilldown-copy {
    min-width: 0;
    overflow: hidden;
}

.creator-drilldown-row strong,
.creator-drilldown-row span,
.creator-drilldown-row small {
    display: block;
    min-width: 0;
}

.creator-drilldown-row strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creator-drilldown-row span {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.creator-drilldown-row small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.creator-drilldown-chevron {
    color: var(--text-muted);
    font-size: 18px;
}

.authority-command-panel .authority-section-title {
    padding: 15px 15px 12px;
}

.authority-command-list {
    display: grid;
}

.authority-command-row {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 0;
    border-top: 1px solid var(--elevated-card-border);
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    font: inherit;
}

.authority-command-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(0, 161, 155, 0.11);
    color: var(--brand-teal-light);
    font-size: 21px;
}

.authority-command-copy {
    min-width: 0;
}

.authority-command-copy strong,
.authority-command-copy small {
    display: block;
}

.authority-command-copy strong {
    font-size: 15px;
    line-height: 1.2;
}

.authority-command-copy small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.authority-command-action {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--brand-teal-light);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.profile-resource-feature-creator {
    border-bottom: 1px solid var(--elevated-card-border);
    background:
        linear-gradient(90deg, rgba(143, 29, 45, 0.12), rgba(0, 214, 181, 0.045)),
        transparent;
}

.profile-resource-feature-creator .profile-resource-feature-icon {
    overflow: hidden;
    background: rgba(143, 29, 45, 0.14);
}

.profile-resource-feature-icon .avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
}

.creator-analytics-panel {
    display: grid;
    gap: 13px;
    overflow: hidden;
}

.creator-analytics-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.creator-analytics-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.creator-analytics-actions .btn {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.creator-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.creator-insight-card {
    min-height: 94px;
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.creator-insight-card span,
.creator-insight-card small {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
}

.creator-insight-card strong {
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.05;
}

.creator-analytics-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.analytics-breakdown-card {
    padding: 12px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.08);
}

.analytics-breakdown-card > strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.2;
}

.analytics-breakdown-card p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid var(--elevated-card-border);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.25;
}

.analytics-breakdown-card p:first-of-type {
    border-top: 0;
}

.analytics-breakdown-card b {
    color: var(--text-primary);
    font-weight: 800;
}

@media (max-width: 390px) {
    .creator-analytics-title {
        display: grid;
    }
    .creator-analytics-actions {
        width: 100%;
    }
    .creator-analytics-actions .btn {
        flex: 1 1 0;
        justify-content: center;
        padding-inline: 8px;
    }
    .creator-analytics-breakdown {
        grid-template-columns: 1fr;
    }
}

.report-conversation-context {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(0, 214, 181, 0.16);
    border-radius: 8px;
    background: rgba(0, 214, 181, 0.06);
}

.report-conversation-context > strong {
    color: var(--brand-teal-light);
    font-size: 12px;
}

.report-conversation-context > p,
.report-conversation-message p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.report-conversation-message {
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.report-conversation-message span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
}

.creator-alias-card {
    margin: 22px 0 8px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(143, 29, 45, 0.18), rgba(255,255,255,0.035));
}
.creator-alias-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.creator-alias-heading span {
    color: #ffd7a1;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}
.creator-alias-heading h3 {
    margin: 3px 0 0;
    font-size: 16px;
}
.creator-alias-card p {
    margin: 10px 0 14px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}
.authority-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}
.authority-toggle input {
    width: 18px;
    height: 18px;
}
.creator-alias-fields {
    display: grid;
    gap: 10px;
}
.creator-alias-fields label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}
.creator-alias-fields input,
.creator-alias-fields select,
.creator-alias-fields textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    padding: 0 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.creator-alias-fields textarea {
    min-height: 112px;
    padding-top: 12px;
    line-height: 1.45;
    resize: vertical;
}
.creator-alias-description-field {
    grid-column: 1 / -1;
}
.creator-alias-fields :is(input, select, textarea):focus {
    outline: none;
    border-color: rgba(74, 166, 178, 0.72);
    box-shadow: 0 0 0 3px rgba(74, 166, 178, 0.16);
    background: var(--elevated-card-bg);
}
.creator-alias-fields :is(input, textarea)::placeholder {
    color: var(--text-muted);
}
  .creator-alias-fields select {
      appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
      background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
  }
.creator-alias-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}
.creator-alias-dashboard-preview {
    align-items: flex-start;
}
.creator-alias-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
}
.creator-alias-preview strong,
.creator-alias-preview span,
.creator-alias-preview small {
    display: block;
}
.creator-alias-preview span {
    margin-top: 3px;
    color: var(--text-primary);
    font-size: 13px;
}
.creator-alias-preview small {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}
  .creator-alias-disclosure {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 12px;
      color: var(--text-secondary);
      font-size: 13px;
      line-height: 1.35;
  }
  .creator-alias-disclosure input {
      width: 18px;
      height: 18px;
      margin-top: 1px;
      flex: 0 0 18px;
  }
  .creator-alias-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      margin-top: 12px;
  }
  .creator-alias-actions .secondary-action {
      min-height: 40px;
      padding: 0 14px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      background: var(--surface-color);
      color: var(--text-primary);
      font: inherit;
      font-size: 13px;
      font-weight: 750;
  }

  .creator-ally-manager {
      display: grid;
      gap: var(--space-4);
      padding: var(--space-4) var(--screen-pad-x) var(--safe-bottom-space);
  }
  .creator-ally-list,
  .creator-ally-editor {
      display: grid;
      gap: 12px;
  }
  .creator-ally-row {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 12px;
      padding: 12px 0;
      border-top: 1px solid var(--border-color);
  }
  .creator-ally-row:first-child {
      border-top: 0;
  }
  .creator-ally-row strong,
  .creator-ally-row span,
  .creator-ally-row small {
      display: block;
      min-width: 0;
  }
  .creator-ally-row strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: var(--font-label);
  }
  .creator-ally-row span,
  .creator-ally-row small {
      margin-top: 4px;
      color: var(--text-secondary);
      font-size: var(--font-meta);
      line-height: 1.35;
  }
  .creator-ally-row menu {
      grid-column: 2;
      display: flex;
      gap: 8px;
      margin: 0;
      padding: 0;
  }
  .creator-ally-row menu button {
      min-height: 34px;
      padding: 0 10px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      background: transparent;
      color: var(--text-primary);
      font: inherit;
      font-size: 12px;
      font-weight: 750;
  }
  .creator-ally-row menu button[data-ally-delete] {
      color: #ff6678;
  }
  .creator-ally-editor {
      padding: 16px;
      border: 1px solid var(--border-color);
      border-radius: var(--component-radius);
      background: var(--surface-color);
  }
  .seller-owner-disclosure {
      margin-top: 2px;
      color: var(--text-secondary);
      font-size: var(--font-caption);
      line-height: 1.25;
  }

.profile-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background-color: var(--brand-teal-light);
    color: var(--bg-color);
    font-size: 13px;
    white-space: nowrap;
}
.profile-menu-row .list-item-icon {
    color: var(--text-secondary);
}
.profile-menu-row .list-item-right {
    color: var(--text-secondary);
    font-size: 14px;
}
.profile-details-header .header-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-menu-button,
.icon-button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    display: grid;
    place-items: center;
    font: inherit;
    font-size: 24px;
}
.profile-details-body {
    padding-bottom: var(--safe-bottom-space);
}
.profile-details-tabs {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}
.profile-action-strip {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4) var(--screen-pad-x) 0;
}
.profile-boost-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: var(--row-height-lg);
    padding: var(--space-3) var(--screen-pad-x);
    border: 1px solid rgba(0, 214, 181, 0.18);
    border-radius: var(--component-radius);
    background: linear-gradient(135deg, rgba(0, 143, 156, 0.24), rgba(0, 214, 181, 0.08));
    color: var(--text-primary);
    text-align: left;
    font: inherit;
}
.profile-boost-card strong,
.profile-boost-card small {
    display: block;
}
.profile-boost-card strong {
    margin-bottom: 2px;
    font-size: 15px;
}
.profile-boost-card small {
    color: var(--text-secondary);
    line-height: 1.35;
}
.profile-listings-section,
.profile-reviews-panel,
.profile-about-panel {
    padding: 16px;
}
.profile-public-summary {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    margin: 14px 16px 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.032);
}
.profile-public-avatar {
    width: 58px;
    height: 58px;
}
.profile-public-copy {
    min-width: 0;
}
.profile-public-copy h2 {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    font-size: 18px;
    line-height: 1.2;
}
.profile-public-copy p {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-public-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}
.profile-public-trust span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    color: var(--text-secondary);
    font-size: 12px;
}
.profile-public-trust i {
    color: #ffca3a;
}
.profile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.profile-section-heading > div {
    min-width: 0;
}
.profile-section-heading h3 {
    font-size: 17px;
}
.profile-section-heading p {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: var(--font-caption);
    line-height: 1.35;
}
.profile-hidden-listings-section {
    padding-top: 0;
}
.profile-hidden-pill {
    border-color: rgba(216, 106, 120, 0.28);
    background: rgba(216, 106, 120, 0.11);
    color: #f0a0aa;
}
.profile-listing-card-hidden .item-image-container {
    opacity: 0.72;
}
.profile-listing-card-hidden .item-image {
    filter: saturate(0.55) brightness(0.72);
}
.profile-hidden-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(10, 12, 15, 0.78);
    color: #f5d5d9;
    font-size: 12px;
    font-weight: 650;
    backdrop-filter: blur(8px);
}
.profile-hidden-badge i {
    font-size: 14px;
}
.profile-listings-grid {
    padding: 0;
}
.profile-listings-grid .profile-empty-state {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: center;
}
.profile-empty-state {
    min-height: 42vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 0;
    padding: 32px 24px;
    border: 1px dashed rgba(255,255,255,0.09);
    border-radius: 10px;
    background: rgba(255,255,255,0.018);
    text-align: center;
    color: var(--text-secondary);
}
.profile-empty-state h2 {
    color: var(--text-primary);
    font-size: 20px;
}
.profile-empty-state p {
    max-width: 320px;
}
.empty-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 214, 181, 0.1);
    color: var(--brand-teal-light);
    font-size: 42px;
}
.profile-about-copy {
    color: var(--text-secondary);
}
.profile-about-copy {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.026);
    line-height: 1.45;
}
.profile-action-list {
    padding-bottom: 18px;
}
.profile-info-note,
.profile-content-block,
.legal-document {
    padding: 20px 24px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.profile-content-block {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-color);
}
.profile-content-block h2,
.legal-document h2 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 18px;
}
.profile-content-block .btn { margin-top: 20px; }
.legal-document {
    max-width: 640px;
}
.legal-document p { margin-bottom: 16px; }
.legal-document h1 {
    margin: 10px 0 24px;
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}
.legal-document section {
    padding-bottom: 10px;
}
.legal-document section + section {
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}
.legal-document strong {
    color: var(--text-primary);
}
.platform-guide {
    padding-bottom: calc(var(--nav-height) + 32px);
}
.platform-guide h2 {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.3;
}
.platform-guide-actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}
.guide-article-page {
    min-height: calc(100vh - var(--nav-height) - 72px);
    padding: 38px 24px 56px;
    background: #f7f8f5;
    color: #1a2020;
    line-height: 1.45;
}
.guide-article-page h1 {
    margin: 0 0 24px;
    color: #0d1414;
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.16;
    letter-spacing: 0;
}
.guide-article-page h2 {
    margin: 34px 0 18px;
    color: #111818;
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.22;
    font-weight: 500;
}
.guide-article-page p,
.guide-article-page li {
    color: #596060;
    font-size: clamp(20px, 5.4vw, 27px);
    line-height: 1.38;
}
.guide-article-page p {
    margin: 0 0 24px;
}
.guide-article-page strong {
    color: #111818;
    font-weight: 800;
}
.guide-article-page ul {
    margin: 0 0 24px;
    padding-left: 28px;
}
.guide-article-page li {
    margin-bottom: 18px;
}
.guide-article-page hr {
    border: 0;
    border-top: 1px solid #d8dedc;
    margin: 52px 0 30px;
}
.guide-inline-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #106b67;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.guide-price-table {
    width: 100%;
    margin: 18px 0 58px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #242929;
    font-size: clamp(19px, 5vw, 25px);
}
.guide-price-table th,
.guide-price-table td {
    border: 1px solid #626a67;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.25;
}
.guide-price-table th {
    background: #c9cbc9;
    color: #111818;
    font-weight: 500;
}
.guide-price-table td {
    background: #f8f9f6;
    color: #596060;
}
.guide-helpful-footer {
    padding: 38px 24px calc(var(--nav-height) + 28px);
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}
.guide-helpful-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.guide-helpful-row span {
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.25;
}
.guide-helpful-row .btn {
    width: auto;
    min-width: 130px;
    min-height: 54px;
    gap: 8px;
}
.legal-intro {
    color: var(--text-secondary);
    font-size: 16px;
}
.privacy-centre-page h1 {
    text-align: left;
    text-transform: none;
}
.privacy-card-grid,
.privacy-actions-list,
.privacy-faq-list {
    display: grid;
    gap: 12px;
}
.privacy-info-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
}
.privacy-info-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.25;
}
.privacy-info-card p {
    margin-bottom: 12px;
}
.privacy-info-card button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-color);
    font: inherit;
    font-weight: 700;
}

.about-page {
    padding: 18px 18px calc(var(--nav-height) + 34px);
    display: grid;
    gap: 16px;
}
.about-hero {
    padding: 24px 22px;
    border: 1px solid var(--about-hero-border);
    border-radius: 18px;
    background: var(--about-hero-bg);
    box-shadow: var(--about-hero-shadow);
}
.about-maker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.about-logo-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 16px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 12px 30px -18px var(--brand-teal-light);
}
.about-kicker {
    margin-bottom: 0;
    color: var(--brand-teal-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.about-hero h1 {
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 1.08;
}
.about-lede {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.52;
}
.about-company-card,
.about-card,
.about-values {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: var(--surface-color);
}
.about-company-card {
    padding: 20px;
}
.about-company-card span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brand-teal-light);
    font-size: 13px;
    font-weight: 700;
}
.about-company-card h2,
.about-values h2 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.2;
}
.about-company-card p,
.about-card p,
.about-value span {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
}
.about-card-grid {
    display: grid;
    gap: 12px;
}
.about-card {
    padding: 18px;
}
.about-card i {
    display: block;
    margin-bottom: 12px;
    color: var(--brand-teal-light);
    font-size: 28px;
}
.about-card h3 {
    margin-bottom: 6px;
    font-size: 17px;
}
.about-values {
    padding: 20px;
}
.about-value {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
}
.about-value strong {
    font-size: 15px;
}
.about-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.about-footnote {
    color: var(--text-secondary);
    text-align: center;
    font-size: 13px;
}
.privacy-action-row,
.privacy-faq-row {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    font: inherit;
}
.privacy-action-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}
.privacy-action-row span {
    display: block;
    color: var(--text-secondary);
    line-height: 1.35;
}
.privacy-faq-row span {
    font-weight: 700;
}
.privacy-action-row i,
.privacy-faq-row i {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 20px;
}
.acknowledgements-page h1 {
    text-align: left;
    text-transform: none;
}
.acknowledgement-list {
    display: grid;
    gap: 12px;
}
.acknowledgement-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
}
.acknowledgement-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 17px;
}
.acknowledgement-card p {
    margin-bottom: 10px;
}
.acknowledgement-card span {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.35;
}
.legal-document a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Favorites and referrals */
.favorites-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    padding: 32px;
    text-align: center;
}
.favorite-heart-mark {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    color: #e10085;
    font-size: 72px;
    filter: drop-shadow(0 0 0 #ff8ac9) drop-shadow(0 4px 0 #fb8cc8);
}
.favorites-empty h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.favorites-empty p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 17px;
}
.favorites-empty .btn {
    width: auto;
    min-width: 120px;
    padding-inline: 28px;
}
.referral-page {
    min-height: calc(100vh - var(--header-height));
    padding-bottom: 32px;
    background: var(--bg-color);
}
.referral-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 260px;
    padding: 28px 24px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 119, 130, 0.92), rgba(5, 6, 7, 0.72)),
        url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80") center/cover;
}
.referral-hero::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px auto;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    transform: rotate(10deg);
}
.referral-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 420px;
}
.referral-hero-copy span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.referral-hero-copy h1 {
    max-width: 360px;
    margin-bottom: 12px;
    color: white;
    font-size: 32px;
    line-height: 1.08;
}
.referral-hero-copy p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.45;
}
.referral-copy {
    padding: 28px 24px 36px;
}
.referral-copy h1 {
    margin-bottom: 28px;
    font-size: 27px;
    line-height: 1.16;
    letter-spacing: 0;
}
.referral-copy p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.45;
}
.referral-copy p button {
    border: none;
    background: transparent;
    color: var(--brand-teal-light);
    font: inherit;
    text-decoration: underline;
}
.referral-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    margin: 28px 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 17px;
}
.referral-link-row span {
    min-width: 0;
}
.referral-link-row small {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.referral-link-row strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.referral-link-row button {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 28px;
}
.referral-copy .btn {
    margin-bottom: 12px;
    min-height: 58px;
    font-size: 17px;
}
.referral-status {
    padding: 42px 24px;
    text-align: center;
}
.referral-status h2 {
    margin-bottom: 10px;
    font-size: 24px;
}
.referral-status p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.referral-protocol-card,
.referral-dashboard {
    margin-bottom: 16px;
}
.referral-protocol-card {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-color) 88%, var(--brand-teal-light));
}
.referral-protocol-card h2 {
    margin-bottom: 12px;
    font-size: 17px;
}
.referral-protocol-card p {
    margin: 0;
    font-size: 14px;
}
.referral-timeline {
    display: grid;
    gap: 12px;
}
.referral-timeline div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}
.referral-timeline i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 214, 181, 0.14);
    color: var(--brand-teal-light);
    font-size: 18px;
}
.referral-dashboard {
    padding: 18px 18px 32px;
}
.referral-status-left {
    padding: 24px 4px 14px;
    text-align: left;
}
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.referral-stats-grid div {
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
}
.referral-stats-grid strong,
.referral-stats-grid span {
    display: block;
}
.referral-stats-grid strong {
    margin-bottom: 4px;
    font-size: 22px;
}
.referral-stats-grid span {
    color: var(--text-secondary);
    font-size: 13px;
}
.referral-record-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}
.referral-record,
.referral-empty {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
}
.referral-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}
.referral-record div,
.referral-record strong,
.referral-record span {
    display: block;
    min-width: 0;
}
.referral-record span,
.referral-record small,
.referral-empty span {
    color: var(--text-secondary);
    font-size: 13px;
}
.referral-record small {
    flex: 0 0 auto;
}
.referral-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 26px 16px;
    text-align: center;
}
.referral-empty i {
    color: var(--brand-teal-light);
    font-size: 30px;
}

/* Personalization, promotion, orders */
.personalization-intro {
    padding: 28px 24px 30px;
    border-bottom: 1px solid var(--border-color);
}
.personalization-intro h1 {
    margin-bottom: 6px;
    font-size: 26px;
    line-height: 1.15;
}
.personalization-intro p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.35;
}
.picker-heading {
    margin-bottom: 18px;
    font-size: 20px;
}
.personalization-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.personalization-save {
    margin-top: 28px;
}
.promote-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    width: calc(100% - 32px);
    margin: 16px;
    padding: 26px;
    border: 1px solid var(--accent-panel-border);
    border-radius: 8px;
    background: var(--accent-panel-bg);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}
.promote-card h2 {
    margin-bottom: 4px;
    font-size: 18px;
}
.promote-card p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.32;
}
.promote-art {
    flex: 0 0 82px;
    height: 82px;
    display: grid;
    place-items: center;
    color: #028f99;
    font-size: 58px;
}
.promote-explainer {
    padding: 18px 24px;
    color: var(--text-secondary);
    line-height: 1.45;
    border-bottom: 1px solid var(--border-color);
}
.promotion-summary,
.promotion-packages,
.promotion-payment-card,
.promotion-audience-card,
.promotion-total {
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
}

.promotion-market-card {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--accent-panel-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
}

.promotion-market-card strong,
.promotion-market-card span {
    display: block;
}

.promotion-market-card span {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.35;
}

.promotion-market-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(33, 200, 183, 0.13);
    color: var(--accent-color);
    font-size: 23px;
}
.promotion-summary h3,
.promotion-packages h3 {
    margin-bottom: 14px;
    font-size: 18px;
}
.promotion-summary p {
    color: var(--text-secondary);
}
.promotion-receipt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.promotion-receipt strong,
.promotion-receipt span {
    display: block;
}
.promotion-receipt span {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}
.promotion-listing-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}
.promotion-listing-card img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-color);
}
.promotion-listing-card h2 {
    margin: 3px 0 7px;
    font-size: 19px;
    line-height: 1.2;
}
.promotion-listing-card p {
    color: var(--text-secondary);
    line-height: 1.35;
}
.promotion-package {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface-color);
    color: var(--text-primary);
    text-align: left;
}
.promotion-package.selected {
    border-color: var(--accent-color);
    background: rgba(33, 200, 183, 0.09);
}
.promotion-package-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(33, 200, 183, 0.13);
    color: var(--accent-color);
    font-size: 24px;
}
.promotion-package strong,
.promotion-package span,
.promotion-package small {
    display: block;
}
.promotion-package em {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(33, 200, 183, 0.16);
    color: var(--accent-color);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    vertical-align: middle;
}
.promotion-package span {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.3;
}
.promotion-package small {
    margin-top: 5px;
    color: var(--accent-color);
    font-size: 13px;
}
.promotion-package b {
    white-space: nowrap;
}

.promotion-payment-card {
    display: grid;
    gap: 10px;
}

.promotion-payment-row {
    min-height: 46px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.promotion-payment-row i {
    color: var(--accent-color);
    font-size: 22px;
}

.promotion-payment-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promotion-payment-row b {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--elevated-muted-bg);
    color: var(--text-primary);
    font-size: 12px;
}

.promotion-audience-card {
    display: grid;
    gap: 12px;
}

.promotion-audience-card h3 {
    margin: 0 0 2px;
    font-size: 18px;
}

.promotion-audience-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.promotion-audience-row i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(33, 200, 183, 0.12);
    color: var(--accent-color);
    font-size: 19px;
}

.promotion-audience-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promotion-audience-card p {
    margin: 2px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.38;
}
.orders-tabs .tab {
    border: 0;
    background: transparent;
}
.orders-filter-row {
    padding: 14px 24px 16px;
    margin: 0;
}
.orders-list {
    border-top: 1px solid var(--border-color);
}
.order-row {
    display: grid;
    grid-template-columns: 72px 1fr 28px;
    gap: 18px;
    width: 100%;
    min-height: 118px;
    padding: 24px;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-primary);
    text-align: left;
}
.order-thumb-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    align-self: start;
}
.order-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}
.order-clock {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background-color: #9aa8aa;
    color: #071112;
    font-size: 18px;
}
.order-row-copy {
    min-width: 0;
}
.order-row-copy h3 {
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.22;
}
.order-row-copy p {
    margin-bottom: 2px;
    color: var(--text-secondary);
    font-size: 16px;
}
.order-row-copy span {
    color: var(--text-secondary);
    font-size: 16px;
}
.order-chevron {
    align-self: center;
    color: var(--text-secondary);
    font-size: 28px;
}
.orders-empty {
    padding: 28px 24px;
    color: var(--text-secondary);
    text-align: center;
}

/* Settings */
.settings-scroll {
    padding-bottom: calc(var(--nav-height) + 24px);
}
.header-save {
    width: var(--control-height-lg);
    height: var(--control-height-lg);
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: var(--icon-size-lg);
    display: grid;
    place-items: center;
}
.settings-menu-section {
    margin-top: 0;
}
.settings-section-label {
    padding: var(--space-5) var(--screen-pad-x) var(--space-2);
    color: var(--text-secondary);
    font-size: var(--font-meta);
}
.settings-danger-row .list-item-content {
    color: var(--text-primary);
}
.settings-version {
    padding: var(--space-4) var(--screen-pad-x) var(--space-2);
    color: var(--text-secondary);
    text-align: center;
    font-size: var(--font-meta);
}
.settings-avatar {
    width: var(--avatar-size-lg);
    height: var(--avatar-size-lg);
    flex: 0 0 var(--avatar-size-lg);
}
.settings-form-row {
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: center;
    min-height: var(--row-height-lg);
    padding: 0 var(--screen-pad-x);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-color);
}
.settings-form-row.tall {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: var(--space-4);
    min-height: 220px;
}
.settings-form-row label {
    color: var(--text-secondary);
    font-size: var(--font-label);
}
.settings-form-row input,
.settings-form-row textarea {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: var(--font-label);
    outline: none;
}
.settings-form-row textarea {
    min-height: 130px;
    resize: vertical;
    margin-top: var(--space-4);
}
.settings-account-email,
.settings-phone-section {
    padding: var(--space-4) var(--screen-pad-x);
    border-bottom: 16px solid #050607;
    background-color: var(--surface-color);
}
.settings-account-email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}
.settings-account-email strong,
.settings-phone-title h2 {
    font-size: var(--font-title);
}
.settings-account-email p,
.settings-phone-section p {
    margin-top: var(--space-1);
    color: var(--text-secondary);
    line-height: 1.4;
}
.settings-account-email p i {
    color: #47b478;
}
.settings-phone-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
}
.settings-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--row-height-md);
    border-top: 1px solid var(--border-color);
}
.settings-social-row .btn,
.settings-account-email .btn,
.settings-phone-title .btn {
    width: auto;
    min-width: 86px;
    padding: 0 var(--space-4);
}
.settings-empty-panel {
    margin: 8px 24px 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--surface-color);
    color: var(--text-secondary);
}
.settings-empty-panel i {
    color: var(--brand-teal-light);
    font-size: 36px;
}
.settings-empty-panel h2 {
    margin: 12px 0 8px;
    color: var(--text-primary);
    font-size: 18px;
}
.settings-empty-panel p {
    line-height: 1.45;
}
.postage-section {
    padding: 26px 24px;
    border-bottom: 16px solid #050607;
}
.postage-section h2 {
    margin-bottom: 18px;
    font-size: 20px;
}
.postage-section > p {
    margin-top: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
}
.address-card,
.shipping-option {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 28px;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
}
.address-card p,
.shipping-option p {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.34;
}
.address-card i {
    align-self: start;
    color: var(--text-secondary);
    font-size: 24px;
}
.shipping-option {
    grid-template-columns: 42px 1fr 28px;
    margin-top: 16px;
    align-items: center;
}
.shipping-option > i:first-child {
    color: var(--text-secondary);
    font-size: 28px;
}
.shipping-option.disabled {
    opacity: 0.45;
}
.security-intro {
    padding: 28px 24px 28px;
    border-bottom: 1px solid var(--border-color);
}
.security-intro h1 {
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1.15;
}
.security-intro p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.35;
}
.security-row {
    min-height: 110px;
}
.security-row .list-item-content strong {
    display: block;
    margin-bottom: 6px;
}
.two-step-settings-card {
    display: grid;
    gap: 18px;
    padding: 20px var(--screen-pad-x) calc(var(--nav-height) + 24px);
}
.two-step-status {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--surface-color);
}
.two-step-status-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    background: rgba(79, 95, 109, 0.12);
    color: var(--text-secondary);
    font-size: 26px;
}
.two-step-status-icon.enabled {
    background: rgba(45, 161, 92, 0.14);
    color: #2da15c;
}
.two-step-status p,
.two-step-method-grid span,
.two-step-disable-panel span {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.35;
}
.two-step-status h1 {
    margin: 2px 0 4px;
    font-size: 30px;
    line-height: 1.05;
}
.two-step-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.two-step-method-grid > div,
.two-step-disable-panel {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface-color);
}
.two-step-code-grid {
    display: grid;
    gap: 14px;
}
.two-step-disable-panel {
    margin-top: 2px;
    gap: 14px;
}
.two-step-disable-panel .danger {
    border-color: rgba(225, 76, 96, 0.45);
    color: #e14c60;
}
.two-factor-challenge-card {
    display: grid;
    gap: 18px;
    padding: 32px var(--screen-pad-x) calc(var(--nav-height) + 24px);
}
.two-factor-lock {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 20px;
    background: rgba(22, 163, 184, 0.14);
    color: var(--brand-teal);
    font-size: 32px;
}
.two-factor-challenge-card h1 {
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.12;
}
.two-factor-challenge-card p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.4;
}
.privacy-toggle-list {
    border-top: 1px solid var(--border-color);
}
.privacy-toggle-row {
    display: grid;
    grid-template-columns: 1fr 58px;
    gap: 18px;
    align-items: center;
    min-height: 112px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-color);
}
.privacy-toggle-row.compact {
    min-height: 78px;
}
.privacy-toggle-row strong {
    font-size: 18px;
    line-height: 1.24;
}
.privacy-toggle-row p {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.35;
}

/* Safety Centre */
.support-centre {
    display: grid;
    gap: 16px;
    padding: 16px var(--screen-pad-x) calc(var(--nav-height) + 24px);
}
.support-hero {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--card-radius);
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
}
.support-hero-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(0, 214, 181, 0.12);
    color: var(--brand-teal-light);
    font-size: 30px;
}
.support-hero h1 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.14;
}
.support-hero p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.42;
}
.support-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.support-action-card {
    min-height: 96px;
    display: grid;
    align-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--component-radius);
    background: var(--elevated-muted-bg);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
}
.support-action-card i {
    color: var(--brand-teal-light);
    font-size: 25px;
}
.support-action-card strong,
.support-action-card small {
    display: block;
    line-height: 1.25;
}
.support-action-card strong {
    font-size: 14px;
}
.support-action-card small {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 12px;
}
.support-action-card:active,
.support-action-card:focus-visible {
    border-color: rgba(0, 214, 181, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 214, 181, 0.14);
    outline: none;
}
.support-topic-section {
    display: grid;
    gap: 8px;
}
.support-topic-section h2 {
    margin: 0 2px 2px;
    font-size: 16px;
}
.support-topic-card {
    padding: 14px;
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--component-radius);
    background: var(--surface-color);
}
.support-topic-card strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}
.support-topic-card p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}
.safety-centre {
    padding-bottom: calc(var(--nav-height) + 24px);
}
.safety-hero {
    padding: 28px 24px 24px;
    border-bottom: 1px solid var(--border-color);
    background:
        linear-gradient(135deg, rgba(31, 166, 152, 0.13), rgba(247, 197, 72, 0.06)),
        var(--surface-color);
}
.safety-hero i {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: rgba(31, 166, 152, 0.16);
    color: var(--brand-teal-light);
    font-size: 30px;
}
.safety-hero h1 {
    margin: 0 0 10px;
    font-size: 27px;
    line-height: 1.12;
}
.safety-hero p,
.safety-rule p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.38;
}
.safety-rule {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}
.safety-rule strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}
.safety-rule p {
    margin: 0;
}

.inbox-empty-state {
    min-height: 42vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px var(--screen-pad-x);
    text-align: center;
}
.inbox-empty-state i {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(31, 166, 152, 0.15);
    color: var(--brand-teal-light);
    font-size: 28px;
}
.inbox-empty-state h2 {
    margin: 2px 0 0;
    font-size: var(--font-section-title);
    line-height: var(--line-tight);
}
.inbox-empty-state p {
    max-width: 280px;
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-body-sm);
    line-height: var(--line-normal);
}

/* Badges */
.badges-list {
    padding-bottom: calc(var(--nav-height) + 28px);
}
.badge-row {
    display: grid;
    grid-template-columns: 72px 1fr 44px;
    gap: 16px;
    padding: 30px 24px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}
.badge-medal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 8px solid #536064;
    background: radial-gradient(circle at 45% 35%, #057b83 0%, #04545a 58%, #113235 100%);
    color: var(--brand-teal-light);
    font-size: 32px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06);
}
.badge-row.earned .badge-medal {
    border-color: var(--brand-teal-light);
    box-shadow: 0 0 0 4px rgba(78, 170, 183, 0.14), inset 0 0 0 2px rgba(255,255,255,0.08);
}
.badge-copy {
    min-width: 0;
}
.badge-copy h2 {
    margin: 2px 0 6px;
    font-size: 18px;
    line-height: 1.25;
}
.badge-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.35;
}
.badge-copy .btn {
    margin-top: 24px;
    min-height: 56px;
}
.badge-info-button {
    align-self: start;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--text-secondary);
    background: transparent;
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    font-size: 22px;
}
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 350;
    background: rgba(0, 0, 0, 0.62);
}
.badge-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 360;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--surface-color);
    box-shadow: 0 -24px 60px rgba(0,0,0,0.45);
}
.badge-sheet-grip {
    width: 64px;
    height: 5px;
    border-radius: 999px;
    margin: -22px auto 18px;
    background-color: rgba(255,255,255,0.18);
}
.badge-sheet-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    min-height: var(--header-height);
    padding: 0 58px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-color);
}
.badge-sheet-header h2 {
    font-size: var(--font-screen-title);
    line-height: 1.2;
}
.badge-sheet-header button {
    position: absolute;
    right: 18px;
    top: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 28px;
}
.badge-sheet-body {
    padding: var(--space-5) var(--screen-pad-x) var(--space-6);
    color: var(--text-secondary);
    font-size: var(--font-body);
    line-height: 1.42;
}
.badge-sheet-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--space-5);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #067783;
    color: var(--brand-teal-light);
    font-size: 48px;
}
.badge-sheet-body h3 {
    margin: var(--space-6) 0 var(--space-2);
    color: var(--text-secondary);
    font-size: var(--font-label);
    font-weight: 500;
}
.badge-sheet-body ul {
    margin: 0 0 28px 18px;
    padding: 0;
}
.badge-sheet-body li {
    margin-bottom: 7px;
}

.profile-actions-sheet {
    border: 1px solid var(--elevated-card-border);
    border-bottom: 0;
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
    background: var(--sheet-bg);
    box-shadow: 0 -18px 52px rgba(0,0,0,0.42);
}

.profile-actions-sheet .badge-sheet-grip {
    width: 42px;
    height: 4px;
    margin: 10px auto 0;
    background-color: rgba(255,255,255,0.16);
}

.profile-actions-sheet .badge-sheet-header {
    min-height: var(--header-height);
    border-bottom: 1px solid var(--elevated-card-border);
    background: transparent;
}

.profile-actions-sheet .badge-sheet-header h2 {
    font-size: var(--font-screen-title);
    font-weight: 700;
}

.profile-actions-sheet .badge-sheet-header button {
    right: var(--screen-pad-x);
    top: 8px;
    width: var(--control-height-md);
    height: var(--control-height-md);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: var(--icon-size-lg);
}

.profile-actions-sheet .badge-sheet-header button:active {
    background: rgba(255,255,255,0.06);
}

.profile-action-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--screen-pad-x) calc(env(safe-area-inset-bottom, 0px) + var(--space-4));
}

.profile-action-row {
    width: 100%;
    min-height: var(--row-height-md);
    display: grid;
    grid-template-columns: var(--control-height-md) minmax(0, 1fr) var(--icon-size-sm);
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--component-radius);
    background: var(--elevated-muted-bg);
    color: var(--text-primary);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.profile-action-row:active {
    border-color: rgba(0, 214, 181, 0.2);
    background: rgba(0, 214, 181, 0.08);
}

.profile-action-icon {
    width: var(--control-height-md);
    height: var(--control-height-md);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 214, 181, 0.1);
    color: var(--brand-teal-light);
    font-size: var(--icon-size-md);
}

.profile-action-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-action-copy strong {
    font-size: var(--font-label);
    font-weight: 650;
    line-height: 1.2;
}

.profile-action-copy small {
    color: var(--text-secondary);
    font-size: var(--font-caption);
    line-height: 1.25;
}

.profile-action-chevron {
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    font-size: var(--icon-size-sm);
}

.profile-action-row-danger {
    grid-template-columns: var(--control-height-md) minmax(0, 1fr);
}

.profile-action-row-danger .profile-action-icon {
    background: rgba(216, 106, 120, 0.12);
    color: #d86a78;
}

.product-action-sheet .badge-sheet-header {
    min-height: 54px;
}

.listing-action-preview {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-3) var(--screen-pad-x) var(--space-2);
    padding: var(--space-2);
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--component-radius);
    background: var(--elevated-muted-bg);
}

.listing-action-preview img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-hover);
}

.listing-action-preview div {
    min-width: 0;
}

.listing-action-preview strong,
.listing-action-preview span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-action-preview strong {
    color: var(--text-primary);
    font-size: var(--font-label);
    line-height: var(--line-tight);
}

.listing-action-preview span {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: var(--line-tight);
}

.listing-action-list {
    padding-top: var(--space-2);
}

.owner-detail-actions {
    margin: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

.owner-insights-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 10px var(--screen-pad-x);
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    font: inherit;
}

.owner-insights-row > i:first-child {
    color: var(--brand-teal-light);
    font-size: 21px;
}

.owner-insights-row strong,
.owner-insights-row small {
    display: block;
}

.owner-insights-row strong {
    font-size: 14px;
    line-height: var(--line-tight);
}

.owner-insights-row small {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: var(--line-tight);
}

.owner-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px var(--screen-pad-x);
}

.owner-action-grid button {
    min-height: 38px;
    border: 1px solid var(--brand-teal-light);
    border-radius: 8px;
    background: transparent;
    color: var(--brand-teal-light);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
}

.owner-action-grid i {
    margin-right: 6px;
}

.owner-sticky-actions {
    justify-content: center;
}

.owner-sticky-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.tab {
    flex: 1;
    text-align: center;
    min-height: var(--control-height-lg);
    padding: 0;
    display: grid;
    place-items: center;
    font-size: var(--font-label);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    background: transparent;
    font-family: inherit;
}
.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--brand-teal-light);
}
.inbox-tab-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}
.inbox-tab-badge {
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--notification-badge-bg);
    color: var(--notification-badge-text);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: var(--notification-badge-shadow);
}

/* Chat List */
.chat-item {
    position: relative;
    display: flex;
    min-height: var(--row-height-md);
    padding: 10px var(--screen-pad-x);
    gap: var(--space-3);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.chat-item.unread {
    background: var(--unread-row-bg);
}
.chat-item.unread::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: var(--radius-pill);
    background: var(--notification-badge-bg);
    box-shadow: 0 0 12px color-mix(in srgb, var(--red-badge) 26%, transparent);
}
.chat-avatar-wrap {
    position: relative;
    flex: 0 0 var(--avatar-size-md);
    width: var(--avatar-size-md);
    height: var(--avatar-size-md);
    align-self: center;
}
.chat-avatar { width: 100%; height: 100%; border-radius: 50%; background-color: #333; object-fit: cover; display: block; }
.chat-avatar-wrap .chat-unread-dot {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    background: var(--notification-badge-bg);
    box-shadow: var(--notification-badge-shadow);
}
.chat-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: 4px; }
.chat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: var(--font-label); }
.chat-time { flex: 0 0 auto; font-size: var(--font-caption); color: var(--text-secondary); }
.chat-message { font-size: var(--font-meta); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chat-item.unread .chat-name,
.chat-item.unread .chat-message {
    color: var(--text-primary);
}
.chat-item.unread .chat-message {
    font-weight: 650;
}
.chat-meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: 7px;
}
.chat-meta-row .mini-listing {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}
.chat-unread-pill {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--unread-pill-border);
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--unread-pill-bg);
    color: var(--red-badge);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.notification-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: var(--space-3);
    margin: var(--space-3) var(--screen-pad-x) 0;
    padding: var(--space-3);
    border-bottom: 1px solid var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    background: var(--elevated-card-bg);
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.notification-item:active {
    background: var(--surface-hover);
}

.notification-thumb {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
}

.notification-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notification-text {
    color: var(--text-primary);
    font-size: var(--font-label);
    font-weight: 650;
    line-height: 1.34;
}

.notification-time {
    color: var(--text-secondary);
    font-size: var(--font-meta);
}

/* Chat View */
.chat-view {
    padding-bottom: 0;
    --chat-side-pad: var(--screen-pad-x);
}
.chat-view-container {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100dvh - var(--header-height));
}
.chat-item-header {
    display: flex;
    padding: 10px var(--chat-side-pad) var(--space-3);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-3);
    align-items: center;
    background: var(--elevated-card-bg);
}
.chat-item-thumb {
    width: var(--avatar-size-md);
    height: var(--avatar-size-md);
    border-radius: var(--radius-sm);
    background-color: #333;
    object-fit: cover;
    flex: 0 0 var(--avatar-size-md);
}
.chat-item-details {
    min-width: 0;
    flex: 1;
}
.chat-item-title {
    min-width: 0;
    margin-bottom: 3px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: var(--font-label);
    font-weight: 650;
    line-height: 1.22;
}
.chat-item-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    color: var(--text-secondary);
    font-size: var(--font-caption);
    line-height: 1.25;
}
.chat-item-price-row .item-price-protect {
    max-width: 100%;
    font-size: var(--font-caption);
    line-height: 1.25;
}
.chat-item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-top: var(--space-2);
}
.chat-item-actions .btn {
    min-height: var(--control-height-sm);
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-caption);
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
    text-shadow: none;
}
.chat-item-actions .btn-primary {
    color: #061314;
}
.chat-item-actions .btn-outline {
    background: rgba(0, 214, 181, 0.035);
}
.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-3) var(--chat-side-pad) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.message-system { text-align: center; color: var(--text-secondary); font-size: var(--font-caption); margin: var(--space-2) 0; }
.message-bubble {
    max-width: min(78%, 300px);
    padding: var(--space-2) 11px;
    border-radius: var(--radius-sheet);
    font-size: var(--font-body);
    line-height: 1.35;
    animation: msgIn 0.2s ease-out;
}
.message-bubble small {
    font-size: var(--font-caption);
    line-height: 1.35;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.message-received { background-color: var(--surface-color); align-self: flex-start; border-bottom-left-radius: 4px; }
.message-sent { background: linear-gradient(135deg, #00c9a7, #007782); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.order-event-block {
    width: calc(100% + (var(--chat-side-pad) * 2));
    margin: 2px calc(var(--chat-side-pad) * -1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.order-event-date {
    align-self: center;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1;
    padding: 6px 0;
}
.order-event-card {
    width: 100%;
    padding: var(--space-3) var(--screen-pad-x);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--elevated-card-bg);
    cursor: default;
}
.order-event-card[data-open-order-id] {
    cursor: pointer;
}
.order-event-card h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: var(--font-label);
    line-height: 1.25;
}
.order-event-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.35;
}
.order-event-cta {
    width: 100%;
    margin-top: 12px;
    min-height: var(--control-height-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-meta);
    letter-spacing: 0;
}
.message-photo-bubble {
    max-width: min(72vw, 280px);
    padding: 6px;
    border-radius: 18px;
    animation: msgIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.message-photo-bubble img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}
.message-photo-bubble span {
    padding: 0 6px 4px;
    font-size: 13px;
}
.seller-intro-row,
.message-line {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.seller-intro-row,
.message-line.received { justify-content: flex-start; }
.message-line.sent { justify-content: flex-end; }
.message-stack {
    max-width: min(78%, 300px);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.message-stack.sent {
    align-items: flex-end;
}
.message-stack.received {
    align-items: flex-start;
}
.message-stack .message-bubble,
.message-stack .message-photo-bubble,
.message-stack .offer-card {
    max-width: 100%;
}
.message-receipt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.2;
}
.message-receipt.seen {
    color: var(--brand-teal-light);
}
.message-receipt i {
    font-size: 13px;
    line-height: 1;
}
.seller-intro-avatar,
.message-avatar {
    width: var(--avatar-size-sm);
    height: var(--avatar-size-sm);
    border-radius: 50%;
    background: var(--surface-color);
    flex: 0 0 var(--avatar-size-sm);
}
.seller-intro-card {
    max-width: calc(100% - 42px);
    border: 1px solid var(--border-color);
    border-radius: var(--component-radius);
    padding: 10px var(--space-3);
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.35;
}
.seller-intro-card strong {
    color: var(--text-primary);
    font-size: var(--font-body);
}
.seller-intro-card span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.offer-card {
    width: min(320px, calc(100vw - 78px));
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--component-radius);
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.offer-sent {
    background: var(--elevated-card-bg);
}
.offer-card-label {
    color: var(--text-secondary);
    font-size: var(--font-meta);
}
.offer-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--font-body);
}
.offer-card-price strong {
    color: var(--text-primary);
    font-size: var(--font-title);
}
.offer-card-price s {
    color: var(--text-secondary);
}
.offer-card-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.35;
}
.offer-status {
    color: var(--text-secondary);
    font-weight: 700;
}
.offer-status.declined { color: #d86a78; }
.offer-status.accepted { color: var(--brand-teal-light); }
.offer-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
}
.offer-actions .btn {
    width: 100%;
    min-height: var(--control-height-sm);
    padding-inline: 10px;
}
.btn.danger {
    border-color: #d86a78;
    color: #d86a78;
}
.chat-input-area {
    width: 100%;
    display: grid;
    grid-template-columns: var(--control-height-sm) var(--control-height-sm) minmax(0, 1fr) 52px;
    align-items: center;
    min-height: 58px;
    padding: 8px calc(12px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--border-color);
    gap: var(--space-2);
    background-color: var(--bg-color);
}
.chat-input {
    width: 100%;
    min-width: 0;
    min-height: var(--control-height-md);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    caret-color: var(--brand-teal-light);
    outline: none;
    font-size: var(--font-body);
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.chat-input-icon {
    width: var(--control-height-sm);
    height: var(--control-height-sm);
    display: grid;
    place-items: center;
    border: 1px solid var(--text-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--icon-size-sm);
    cursor: pointer;
}

.chat-send-button {
    width: 52px;
    height: var(--control-height-sm);
    min-width: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(0, 214, 181, 0.1);
    color: var(--brand-teal-light);
    font: inherit;
    font-size: var(--font-meta);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

/* Info Cards (Promote, Balance) */
.info-card {
    border-radius: 14px;
    padding: 18px;
    margin: 16px;
    background: var(--accent-panel-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--accent-panel-border);
    transition: transform var(--transition-fast);
}
.info-card:hover { transform: translateY(-1px); }
.info-card h3 { font-size: 16px; margin-bottom: 4px; }
.info-card p { font-size: 13px; color: var(--text-secondary); }
.info-card-icon { font-size: 40px; color: var(--brand-teal-light); opacity: 0.8; }

/* Item Details */
.product-detail-hero {
    position: relative;
    width: 100%;
    background: #050607;
}

.product-detail-hero[data-product-gallery] {
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.item-details-image { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.product-detail-overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    color: white;
    text-shadow: 0 0 8px rgba(0,0,0,0.75);
    z-index: 3;
}

.product-detail-overlay-header .header-icon {
    color: white;
}

.product-heart {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(5, 8, 9, 0.78);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.product-heart.active {
    border-color: rgba(255,255,255,0.15);
    background: rgba(5, 8, 9, 0.78);
    color: white;
}

.product-heart.active i,
.product-heart .ph-fill.ph-heart {
    color: var(--red-badge);
}

.product-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    pointer-events: auto;
    padding: 0;
    z-index: 2;
}

.product-sticky-title {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.product-sticky-title .header-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 17px;
}

.product-summary-section {
    padding: var(--space-4) var(--screen-pad-x) var(--space-5);
    border-bottom: 8px solid #050607;
}

.item-details-info { padding: var(--space-4) var(--screen-pad-x); }
.item-details-title { font-size: var(--font-screen-title); font-weight: 650; margin-bottom: var(--space-1); line-height: 1.25; }
.item-details-meta { color: var(--text-secondary); font-size: var(--font-body); margin-bottom: var(--space-4); line-height: var(--line-body); }
.item-details-price { font-size: var(--font-label); font-weight: 600; margin-bottom: 3px; }
.item-details-shield { color: var(--brand-teal-light); font-size: var(--font-body); display: flex; align-items: center; gap: 4px; margin-bottom: 0; line-height: 1.3; }

.product-owner-summary {
    padding: 14px var(--screen-pad-x) 12px;
    border-bottom-width: 1px;
}

.product-owner-summary .item-details-title {
    margin-bottom: 3px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.22;
}

.product-owner-summary .item-details-meta {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.3;
}

.product-owner-summary .item-details-price {
    margin-bottom: 2px;
    font-size: 17px;
    line-height: 1.2;
}

.product-owner-summary .item-details-shield {
    font-size: 13px;
    line-height: 1.25;
}

.product-owner-summary .product-favorite-count {
    margin-top: 8px;
    padding: 6px 9px;
    font-size: 12px;
}

.product-favorite-count {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 7px 10px;
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--radius-pill);
    background: var(--elevated-muted-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.product-favorite-count i {
    color: var(--red-badge);
    font-size: 16px;
}

.product-promotion-note {
    margin-top: var(--space-3);
    padding: var(--space-3);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    border: 1px solid rgba(33, 200, 183, 0.22);
    border-radius: var(--component-radius);
    background: rgba(33, 200, 183, 0.08);
}

.product-promotion-note > i {
    width: var(--control-height-md);
    height: var(--control-height-md);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(33, 200, 183, 0.14);
    color: var(--accent-color);
    font-size: var(--icon-size-sm);
}

.product-promotion-note strong,
.product-promotion-note span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-promotion-note span {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
}

.product-promotion-owner {
    border-color: rgba(255, 202, 58, 0.25);
    background: rgba(255, 202, 58, 0.08);
}

.product-promotion-owner > i {
    background: rgba(255, 202, 58, 0.16);
    color: #ffca3a;
}

.product-section {
    padding: var(--space-5) var(--screen-pad-x);
    border-bottom: 1px solid var(--border-color);
}

.product-section-label {
    color: var(--text-secondary);
    font-size: var(--font-meta);
    margin-bottom: var(--space-3);
}

.product-description {
    color: var(--text-secondary);
    font-size: var(--font-body);
    line-height: 1.42;
    white-space: pre-line;
    margin-bottom: var(--space-5);
}

.product-spec-list {
    border-bottom: 8px solid #050607;
}

.product-spec-row {
    min-height: var(--row-height-md);
    padding: 0 var(--screen-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.product-spec-row strong {
    font-size: var(--font-label);
    color: var(--text-primary);
}

.product-spec-row span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: var(--font-body);
    text-align: right;
    min-width: 0;
}

.seller-panel {
    padding: var(--space-4) var(--screen-pad-x);
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: var(--space-3);
    border-bottom: 8px solid #050607;
    background: var(--surface-color);
}

.seller-main {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.seller-profile-link {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.seller-main img {
    width: var(--avatar-size-md);
    height: var(--avatar-size-md);
    flex: 0 0 var(--avatar-size-md);
    border-radius: 50%;
    background: #333;
}

.seller-main-copy {
    min-width: 0;
}

.seller-main strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-label);
    line-height: 1.25;
}

.seller-rating {
    color: #ffca3a;
    font-size: var(--font-meta);
    line-height: 1.35;
    white-space: nowrap;
}

.seller-rating span {
    color: var(--text-secondary);
    margin-left: 6px;
}

.seller-ask-btn {
    width: auto;
    max-width: min(38vw, 136px);
    align-self: center;
    justify-self: end;
    min-height: var(--control-height-md);
    padding: 0 var(--space-3);
    border-radius: var(--component-radius);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.seller-badge {
    grid-column: 1 / -1;
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 201, 167, 0.18);
    color: var(--brand-teal-light);
    font-size: var(--font-meta);
}

.seller-profile-page {
    padding: var(--space-4) var(--screen-pad-x) calc(var(--nav-height) + 28px);
}

.seller-profile-hero,
.seller-profile-badges,
.seller-profile-tabs {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
}

.seller-profile-hero {
    padding: 18px;
}

.seller-profile-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.seller-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    flex: 0 0 76px;
    background: #123f42;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.seller-profile-identity {
    min-width: 0;
}

.seller-profile-identity h1 {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.15;
}

.seller-profile-identity p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-profile-rating,
.seller-review-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.seller-profile-rating .stars,
.seller-review-stars {
    color: #ffca3a;
}

.seller-profile-rating strong {
    color: var(--text-primary);
}

.seller-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.seller-profile-actions .btn {
    min-height: 46px;
    border-radius: 12px;
}

.seller-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.seller-profile-stats div {
    padding: 12px 8px;
    border-radius: 12px;
    background: var(--elevated-muted-bg);
    text-align: center;
}

.seller-profile-stats strong,
.seller-profile-stats span {
    display: block;
}

.seller-profile-stats strong {
    font-size: 18px;
}

.seller-profile-stats span {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 12px;
}

.seller-profile-badges {
    margin-top: 12px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seller-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 201, 167, 0.13);
    color: var(--brand-teal-light);
    font-size: 13px;
}

.seller-profile-tabs {
    margin-top: 12px;
    overflow: hidden;
}

.seller-tab-panel {
    display: none;
    padding: 14px;
}

.seller-tab-panel.active {
    display: block;
}

.seller-listings-grid {
    padding: 0;
}

.seller-review-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: var(--elevated-muted-bg);
    margin-bottom: 12px;
}

.seller-review-summary strong,
.seller-review-summary span {
    display: block;
}

.seller-review-summary strong {
    font-size: 28px;
}

.seller-review-summary span {
    color: #ffca3a;
    font-size: 14px;
}

.seller-review-summary p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: right;
}

.seller-review-list {
    display: grid;
    gap: 10px;
}

.seller-review-card {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--elevated-muted-bg);
}

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

.seller-review-head span,
.seller-review-card small {
    color: var(--text-secondary);
}

.seller-review-card p {
    margin: 9px 0 8px;
    color: var(--text-primary);
    line-height: 1.35;
}

.seller-about-card {
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    margin-bottom: 12px;
}

.seller-about-card h3,
.seller-about-card p {
    margin: 0;
}

.seller-about-card p {
    margin-top: 8px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.seller-about-list {
    border-top: 1px solid var(--border-color);
}

.seller-about-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.seller-about-row span {
    color: var(--text-secondary);
}

.seller-about-row strong {
    text-align: right;
    font-weight: 600;
}

.protection-panel {
    display: flex;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 8px solid #050607;
    background: var(--surface-color);
}

.protection-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 201, 167, 0.16);
    color: var(--brand-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.protection-panel h3 {
    font-size: var(--font-title);
    margin-bottom: 4px;
}

.protection-panel p {
    color: var(--text-secondary);
    font-size: var(--font-body);
    line-height: 1.35;
}

.product-postage {
    min-height: var(--row-height-md);
    padding: 0 var(--screen-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-body);
}

.product-postage div:last-child {
    color: var(--text-secondary);
}

.legal-note {
    padding: var(--space-3) var(--screen-pad-x) var(--space-5);
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.45;
    border-bottom: 8px solid #050607;
}

.legal-note button {
    border: 0;
    background: none;
    color: var(--brand-teal-light);
    text-decoration: underline;
    font: inherit;
}

.detail-related-tabs {
    background: var(--surface-color);
}

.detail-related-tabs .tab {
    min-height: var(--control-height-lg);
    padding: 0;
    font-size: var(--font-label);
}

.bundle-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--screen-pad-x);
}

.bundle-heading h3 {
    font-size: var(--font-title);
}

.bundle-heading p {
    color: var(--text-secondary);
    font-size: var(--font-body);
}

.bundle-create-btn {
    width: auto;
    min-width: 140px;
    min-height: var(--control-height-md);
    border-radius: var(--component-radius);
    color: #031f22;
}

.product-related-grid {
    padding-top: 0;
}

.bundle-builder-intro {
    padding: var(--space-4) var(--screen-pad-x) 10px;
    text-align: center;
    color: var(--brand-teal-light);
    font-size: var(--font-label);
}

.bundle-anchor-card {
    margin: 0 var(--screen-pad-x) var(--space-4);
    padding: var(--space-3);
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid rgba(0, 214, 181, 0.22);
    border-radius: var(--component-radius);
    background: rgba(0, 214, 181, 0.07);
}

.bundle-anchor-card img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-color);
}

.bundle-anchor-card div {
    min-width: 0;
}

.bundle-anchor-card span,
.bundle-anchor-card p {
    display: block;
    color: var(--text-secondary);
    font-size: var(--font-caption);
    line-height: 1.25;
}

.bundle-anchor-card strong {
    display: block;
    min-width: 0;
    margin: 2px 0;
    overflow: hidden;
    color: var(--text-primary);
    font-size: var(--font-body);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bundle-anchor-card b {
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(0, 214, 181, 0.14);
    color: var(--brand-teal-light);
    font-size: 11px;
    line-height: 1;
}

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--listing-grid-row-gap) var(--listing-grid-col-gap);
    padding: 0 var(--screen-pad-x) 150px;
}

.bundle-item-card {
    min-width: 0;
}

.bundle-item-card .item-image-container {
    aspect-ratio: 1;
}

.bundle-item-card .btn {
    margin-top: var(--space-2);
    min-height: var(--control-height-md);
}

.bundle-bottom-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%);
    min-height: 116px;
    padding: var(--space-3) var(--screen-pad-x) var(--space-6);
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-3);
    z-index: 100;
}

.bundle-selected-strip {
    display: flex;
    align-items: center;
}

.bundle-selected-strip img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--surface-color);
    margin-left: -12px;
}

.bundle-selected-strip img:first-child {
    margin-left: 0;
}

.bundle-total {
    font-size: var(--font-title);
    color: var(--text-primary);
    margin-bottom: 3px;
}

.bundle-protected-total {
    color: var(--brand-teal-light);
    font-size: var(--font-meta);
}

.bundle-selection-note {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.2;
}

.bundle-bottom-bar .btn {
    width: auto;
    min-width: 142px;
}

.bundle-bottom-bar .btn:disabled {
    opacity: 0.52;
    cursor: default;
    box-shadow: none;
}

.bundle-review {
    padding-bottom: 32px;
}

.bundle-review-items {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.bundle-review-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.bundle-review-row:last-child {
    border-bottom: 0;
}

.bundle-review-row img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}

.bundle-review-row p {
    color: var(--text-secondary);
    margin: 2px 0 0;
}

.item-details-actions {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    padding: var(--space-3) var(--screen-pad-x) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-3);
    z-index: 100;
}
.item-details-actions .btn {
    flex: 1;
    min-height: var(--control-height-lg);
    border-radius: var(--component-radius);
    font-size: var(--font-body);
    box-shadow: none;
    text-shadow: none;
}

.item-details-actions .btn-primary {
    background: #45a9b5;
    color: #071113;
    border-color: #45a9b5;
}

.item-details-actions .btn-outline {
    background: transparent;
    color: #45a9b5;
    border-color: #45a9b5;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(0, 119, 130, 0.2), transparent 34%),
        linear-gradient(180deg, #061b1d 0%, #0b1211 58%, #050607 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out;
    overflow: hidden;
}
.splash-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}
.splash-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.018) 0,
        rgba(255, 255, 255, 0.018) 1px,
        transparent 1px,
        transparent 4px
    );
}
.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transition-duration: 0.16s;
}
.splash-badge {
    position: relative;
    z-index: 1;
    width: min(68vw, 286px);
    min-height: 138px;
    display: flex;
    flex-direction: column;
    place-items: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1.5px solid rgba(226, 207, 160, 0.72);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.006)),
        rgba(7, 31, 31, 0.76);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.44),
        inset 0 0 0 7px rgba(0, 0, 0, 0.12),
        0 0 24px rgba(0, 201, 167, 0.11);
    animation: splashBadgeIn 0.7s cubic-bezier(.2,.8,.2,1) both;
}
.splash-badge::before,
.splash-badge::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f2dba3;
    box-shadow: 0 0 16px rgba(242, 219, 163, 0.5);
}
.splash-badge::before { left: 22px; }
.splash-badge::after { right: 22px; }
.splash-logo {
    color: #f8efd5;
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-size: clamp(45px, 13vw, 64px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.9;
    margin-top: 2px;
    text-shadow:
        0 2px 0 #00545b,
        0 9px 22px rgba(0, 0, 0, 0.36),
        0 0 18px rgba(0, 201, 167, 0.14);
    animation: logoGlow 2.2s ease-in-out infinite alternate;
}
.splash-ribbon {
    margin-top: 8px;
    padding: 5px 16px;
    border: 1px solid rgba(248, 239, 213, 0.42);
    border-radius: 999px;
    background: #9f503c;
    color: #f8efd5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
}
.splash-tagline {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    color: rgba(248, 239, 213, 0.76);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0;
    animation: splashFadeUp 0.7s 0.15s ease both;
}
@keyframes logoGlow {
    from {
        text-shadow:
            0 2px 0 #00545b,
            0 9px 22px rgba(0, 0, 0, 0.36),
            0 0 12px rgba(0, 201, 167, 0.1);
    }
    to {
        text-shadow:
            0 2px 0 #00545b,
            0 9px 22px rgba(0, 0, 0, 0.36),
            0 0 24px rgba(0, 201, 167, 0.24);
    }
}
@keyframes splashBadgeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes splashFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.loader {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 214, 181, 0.1);
    border-top-color: #00d6b5;
    border-right-color: #008f9c;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 16px var(--brand-teal-glow);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Utility */
.p-4 { padding: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* Marketplace sections */
.category-card {
    background-color: var(--surface-color);
    border-radius: var(--component-radius);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}
.category-title {
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: var(--space-4);
    z-index: 2;
}
.category-ill {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 8px;
    right: 8px;
    opacity: 0.9;
}

.upload-box {
    border: 1px dashed var(--border-color);
    border-radius: var(--component-radius);
    padding: 32px;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--brand-teal-light);
    background-color: var(--surface-color);
    cursor: pointer;
}
.upload-box i { font-size: var(--icon-size-lg); }

.sell-edit-banner {
    display: none;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
    padding: var(--space-3);
    border: 1px solid rgba(33, 200, 183, 0.24);
    border-radius: var(--component-radius);
    background: rgba(33, 200, 183, 0.08);
    color: var(--text-primary);
}

#sell-view.sell-editing .sell-edit-banner {
    display: grid;
}

.sell-edit-banner i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(33, 200, 183, 0.14);
    color: var(--brand-teal-light);
    font-size: 22px;
}

.sell-edit-banner strong,
.sell-edit-banner span {
    display: block;
}

.sell-edit-banner strong {
    font-size: var(--font-label);
    line-height: var(--line-tight);
}

.sell-edit-banner span {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.35;
}

.sell-save-summary {
    width: 100%;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.35;
    text-align: center;
}

.sell-save-summary.ready {
    color: var(--brand-teal-light);
}

.sell-photo-source-options {
    display: grid;
    gap: var(--space-2);
    padding: 0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
}

.sell-photo-source-options button {
    width: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--component-radius);
    background: var(--surface-color);
    color: var(--text-primary);
    text-align: left;
    font: inherit;
}

.sell-photo-source-options i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(33, 200, 183, 0.12);
    color: var(--brand-teal-light);
    font-size: 24px;
}

.sell-photo-source-options strong,
.sell-photo-source-options small {
    display: block;
}

.sell-photo-source-options strong {
    font-size: var(--font-label);
    line-height: var(--line-tight);
}

.sell-photo-source-options small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: var(--line-tight);
}

#sell-view.sell-has-photos .upload-box {
    align-items: stretch;
    padding: var(--space-3);
}

#sell-view {
    overflow-y: auto !important;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

#sell-view > .p-4 {
    min-height: max-content;
    padding-bottom: 140px;
}

#sell-view .input-group :is(input, textarea) {
    scroll-margin-top: calc(var(--header-height) + 16px);
    scroll-margin-bottom: 180px;
}

#sell-view .item-details-actions {
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    transition: transform var(--transition-normal), opacity var(--transition-fast);
    will-change: transform;
}

#sell-view.sell-keyboard-editing > .p-4 {
    padding-bottom: 96px;
}

#sell-view.sell-keyboard-editing .item-details-actions {
    transform: translate(-50%, calc(100% + 24px + env(safe-area-inset-bottom, 0px)));
    opacity: 0;
    pointer-events: none;
}

#sell-view.sell-keyboard-editing .feedback-card {
    display: none;
}

.photo-preview-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-1);
}

.photo-preview-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #333;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.input-group label {
    font-size: var(--font-meta);
    color: var(--text-secondary);
}
.input-group small {
    color: var(--text-secondary);
    font-size: var(--font-caption);
    line-height: 1.35;
}
.input-group input, .input-group textarea, .input-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--component-radius);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    font-size: var(--font-label);
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.input-group input::placeholder, .input-group textarea::placeholder {
    color: var(--text-secondary);
}

.sell-step-row {
    min-height: var(--row-height-lg);
    margin: 0 calc(var(--screen-pad-x) * -1);
    padding: 0 var(--screen-pad-x) !important;
    cursor: pointer;
}

.sell-step-row .list-item-content {
    font-size: var(--font-label);
    font-weight: 600;
}

.sell-step-row .list-item-right {
    max-width: 55%;
    font-size: var(--font-label);
    text-align: right;
}

.sell-step-row .list-item-right span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sell-step-row .list-item-right span.empty {
    color: var(--text-secondary);
}

.sell-picker-content {
    padding-top: var(--space-5);
}

.sell-picker-search {
    height: var(--control-height-xl);
    margin: 0 var(--screen-pad-x) var(--space-4);
    padding: 0 var(--space-4);
    border-radius: var(--component-radius);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--dark-bg);
    color: var(--text-secondary);
}

.sell-picker-search i {
    font-size: var(--icon-size-lg);
}

.sell-picker-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: var(--font-label);
}

.sell-picker-list {
    border-top: 1px solid var(--border-color);
}

.sell-picker-row {
    width: 100%;
    min-height: var(--row-height-md);
    padding: 0 var(--screen-pad-x);
    border: 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    font: inherit;
    font-size: var(--font-label);
    font-weight: 500;
    transition: background var(--transition-fast), padding-left var(--transition-fast);
    cursor: pointer;
}

.sell-picker-row:hover {
    background: var(--surface-hover);
}

.sell-picker-row:active {
    background: rgba(255, 255, 255, 0.05);
    padding-left: var(--space-5);
}

.sell-picker-label {
    flex: 1;
    letter-spacing: 0;
    transition: color var(--transition-fast);
}

.sell-picker-row:hover .sell-picker-label {
    color: #fff;
}

.sell-picker-icon {
    width: 36px;
    color: var(--brand-teal-light);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: transform var(--transition-fast);
}

.sell-picker-row:hover .sell-picker-icon {
    transform: scale(1.05);
    opacity: 1;
    color: var(--brand-teal);
}

.sell-picker-chevron {
    color: var(--text-secondary);
    font-size: 20px;
    transition: transform var(--transition-med), color var(--transition-fast);
}

.sell-picker-row:hover .sell-picker-chevron {
    color: var(--brand-teal-light);
    transform: translateX(4px);
}

.sell-picker-radio {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: border-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sell-picker-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-teal-light);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 12px var(--brand-teal-glow);
}

.sell-picker-radio.selected {
    border-color: var(--brand-teal-light);
    background: rgba(0, 214, 181, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 214, 181, 0.1);
}

.sell-picker-radio.selected::after {
    transform: translate(-50%, -50%) scale(1);
}

.sell-price-screen {
    min-height: calc(100vh - 170px);
    padding: 54px 24px 120px;
}

.sell-price-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    outline: 0;
    padding: 0 0 18px;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 22px;
}

.sell-price-input::placeholder {
    color: var(--text-secondary);
}

.sell-done-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%);
    padding: 16px 24px 28px;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.feedback-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.feedback-card p { font-size: 14px; flex: 1; margin-right: 16px; }

.upload-feedback-body {
    color: var(--text-primary);
}

.upload-feedback-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-feedback-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.upload-feedback-option {
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-hover);
    color: var(--text-primary);
    padding: 10px 4px;
    display: grid;
    gap: 6px;
    justify-items: center;
    font: inherit;
    font-size: 11px;
    line-height: 1.15;
}

.upload-feedback-option:active,
.upload-feedback-option:focus-visible {
    border-color: var(--brand-teal-light);
    box-shadow: 0 0 0 3px rgba(0, 214, 181, 0.18);
    outline: none;
}

.upload-feedback-emoji {
    font-size: 26px;
    line-height: 1;
}

.listing-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.listing-actions .btn {
    padding: 6px;
    min-height: 34px;
    font-size: 12px;
}

.account-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.auth-hero-card,
.auth-form-card {
    border: 1px solid var(--elevated-card-border);
    background: var(--elevated-card-bg);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.auth-hero-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
}

.auth-hero-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: rgba(74, 166, 178, 0.16);
    color: var(--accent-color);
    font-size: 26px;
}

.auth-hero-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.15;
}

.auth-hero-card p,
.auth-section-title p {
    color: var(--text-secondary);
    line-height: 1.35;
}

.auth-form-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.creator-user-search-card {
    gap: 16px;
}

.creator-user-search {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--input-border);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--text-secondary);
}

.creator-user-search:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 166, 178, 0.16);
}

.creator-user-search i {
    font-size: 20px;
    color: var(--accent-color);
}

.creator-user-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-weight: 700;
}

.creator-user-search input::placeholder {
    color: var(--text-secondary);
    font-weight: 600;
}

.creator-user-search-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.creator-user-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.creator-user-result-meta strong {
    color: var(--text-primary);
    font-size: 15px;
}

.creator-user-result-card {
    margin-bottom: 12px;
}

.creator-user-match {
    margin-top: 4px !important;
    color: var(--accent-color) !important;
    font-size: 12px;
    font-weight: 800;
}

.creator-user-empty-state {
    align-items: center;
    flex-direction: row;
    text-align: left;
}

.creator-user-empty-state h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.creator-user-empty-state p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.creator-user-empty-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: rgba(74, 166, 178, 0.14);
    color: var(--accent-color);
    font-size: 24px;
}

.creator-audit-filter-card {
    gap: 14px;
}

.creator-audit-date {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
}

.creator-audit-date span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.creator-audit-date small {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.creator-audit-date input {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--input-border);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--text-primary);
    font: inherit;
    font-weight: 750;
}

.creator-audit-date input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.creator-audit-row {
    gap: 12px;
    margin-bottom: 12px;
}

.creator-audit-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.creator-audit-row-head h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.2;
}

.creator-audit-row-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.creator-audit-row-head > span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(0, 214, 181, 0.1);
    color: var(--brand-teal-light);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.creator-audit-target {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    background: var(--elevated-muted-bg);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.creator-audit-target i {
    color: var(--accent-color);
    font-size: 17px;
}

.creator-audit-metadata {
    display: grid;
    gap: 7px;
}

.creator-audit-metadata div {
    display: grid;
    grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--elevated-card-border);
}

.creator-audit-metadata span {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 750;
}

.creator-audit-metadata strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.creator-assignment-protocol {
    display: grid;
    gap: 14px;
}

.creator-protocol-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.creator-protocol-step {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.creator-protocol-step span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 214, 181, 0.12);
    color: var(--brand-teal-light);
    font-size: 12px;
    font-weight: 900;
}

.creator-protocol-step strong {
    color: var(--text-primary);
    font-size: 14px;
}

.creator-protocol-step small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.creator-escalation-title {
    margin-bottom: 12px;
}

.creator-escalation-list {
    display: grid;
    gap: 12px;
}

.creator-escalation-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-card-bg);
}

.creator-escalation-card[data-priority="high"],
.creator-escalation-card[data-priority="urgent"] {
    border-color: rgba(189, 64, 80, 0.34);
}

.creator-escalation-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.creator-escalation-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(143, 29, 45, 0.14);
    color: #bd4050;
    font-size: 23px;
}

.creator-escalation-head strong,
.creator-escalation-head small {
    display: block;
}

.creator-escalation-head strong {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.2;
}

.creator-escalation-head small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.creator-escalation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.creator-escalation-grid div,
.creator-escalation-owner {
    padding: 10px;
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.creator-escalation-grid span,
.creator-escalation-owner span,
.creator-escalation-owner small {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
}

.creator-escalation-grid strong,
.creator-escalation-owner strong {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.3;
}

.creator-escalation-owner {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.creator-escalation-owner i {
    color: var(--brand-teal-light);
    font-size: 24px;
}

.creator-escalation-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: end;
}

.creator-escalation-actions label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.creator-escalation-actions label span {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.creator-escalation-actions select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
}

.creator-escalation-actions .soft-btn {
    min-height: 38px;
    padding: 0 12px;
}

@media (max-width: 420px) {
    .creator-escalation-actions {
        grid-template-columns: 1fr 1fr;
    }

    .creator-escalation-actions label {
        grid-column: 1 / -1;
    }
}

.google-signin-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: #f7f8f8;
    color: #101819;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.google-signin-button:active {
    transform: scale(0.98);
}

.google-signin-button:disabled {
    cursor: progress;
    opacity: 0.72;
    transform: none;
}

.google-mark {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(from -40deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    font-family: Arial, sans-serif;
}

.auth-status {
    margin: -4px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.auth-status[data-tone="error"] {
    color: #ff8b9b;
}

.auth-status[data-tone="success"] {
    color: var(--accent);
}

.verification-review-workspace {
    gap: 14px;
    padding-bottom: calc(var(--nav-height) + 28px);
}

.verification-review-control-card,
.verification-user-search-card,
.verification-manual-card,
.verification-request-card {
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.verification-status-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.verification-status-segment {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.verification-status-segment button {
    min-width: 0;
    min-height: 62px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 8px 6px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
    color: var(--text-secondary);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.verification-status-segment button i {
    color: var(--accent-color);
    font-size: 20px;
}

.verification-status-segment button.active {
    border-color: rgba(74, 166, 178, 0.46);
    background: rgba(74, 166, 178, 0.15);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px rgba(74, 166, 178, 0.18);
}

.verification-member-result {
    min-height: 70px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
}

.verification-member-result + .verification-member-result {
    margin-top: 8px;
}

.verification-manual-form {
    display: grid;
    gap: 14px;
}

.verification-manual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.verification-manual-grid label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

.verification-manual-grid input,
.verification-manual-grid select,
.verification-manual-grid textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    padding: 0 12px;
}

.verification-manual-grid textarea {
    min-height: 96px;
    padding-top: 11px;
    resize: vertical;
}

.verification-manual-note {
    grid-column: 1 / -1;
}

.verification-apply-button {
    gap: 8px;
}

.verification-apply-button i {
    font-size: 20px;
}

.verification-request-card {
    gap: 12px;
    margin-bottom: 12px;
}

.verification-decision-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.verification-decision-button {
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 8px;
    background: var(--elevated-muted-bg);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
}

.verification-decision-button i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 21px;
}

.verification-decision-button strong,
.verification-decision-button small {
    display: block;
    min-width: 0;
    line-height: 1.2;
}

.verification-decision-button strong {
    font-size: 14px;
}

.verification-decision-button small {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
}

.verification-approve {
    border-color: rgba(33, 200, 183, 0.28);
}

.verification-approve i {
    background: rgba(33, 200, 183, 0.12);
    color: var(--brand-teal-light);
}

.verification-reject {
    border-color: rgba(216, 106, 120, 0.28);
}

.verification-reject i {
    background: rgba(216, 106, 120, 0.12);
    color: #f08a99;
}

@media (max-width: 420px) {
    .verification-status-segment {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .verification-manual-grid,
    .verification-decision-actions {
        grid-template-columns: 1fr;
    }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border-color);
}

.auth-section-title h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.auth-section-title p {
    font-size: 13px;
}

.verification-application {
    display: grid;
    gap: 16px;
}

.verification-hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--verification-hero-border);
    border-radius: 16px;
    background: var(--verification-hero-bg);
    box-shadow: var(--verification-hero-shadow);
}

.verification-hero-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(0, 214, 181, 0.14);
    color: var(--brand-teal-light);
    font-size: 29px;
}

.verification-hero-panel span,
.verification-section-title p,
.verification-upload-card small,
.verification-submit-card span,
.verification-privacy-copy {
    color: var(--text-secondary);
}

.verification-hero-panel > div:last-child > span {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-teal-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.verification-hero-panel h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.12;
}

.verification-hero-panel p,
.verification-section-title p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.verification-progress-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.verification-progress-strip div {
    min-height: 76px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 7px;
    padding: 10px 8px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 12px;
    background: var(--elevated-muted-bg);
    text-align: center;
}

.verification-progress-strip i {
    color: var(--brand-teal-light);
    font-size: 23px;
}

.verification-progress-strip span {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.verification-note {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 214, 181, 0.18);
    border-radius: 12px;
    background: rgba(0, 214, 181, 0.08);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.verification-note i {
    color: var(--brand-teal-light);
    font-size: 22px;
}

.verification-section-title {
    margin-top: 4px;
}

.verification-section-title h4 {
    margin: 0 0 4px;
    font-size: 17px;
}

.verification-form-grid,
.verification-upload-grid {
    display: grid;
    gap: 10px;
}

.verification-form-grid label,
.verification-notes-field {
    display: grid;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.verification-form-grid input,
.verification-form-grid select,
.verification-notes-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 12px;
    background: var(--elevated-muted-bg);
    color: var(--text-primary);
    font: inherit;
    padding: 0 13px;
}

.verification-notes-field textarea {
    min-height: 94px;
    padding-top: 12px;
    resize: vertical;
}

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

.verification-upload-card {
    min-height: 136px;
    display: grid;
    align-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--elevated-card-border);
    border-radius: 14px;
    background: var(--elevated-muted-bg);
    color: var(--text-primary);
}

.verification-upload-card > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 214, 181, 0.12);
    color: var(--brand-teal-light);
    font-size: 23px;
}

.verification-upload-card strong,
.verification-upload-card small {
    display: block;
    line-height: 1.25;
}

.verification-upload-card strong {
    font-size: 14px;
}

.verification-upload-card small {
    margin-top: 3px;
    font-size: 12px;
}

.verification-upload-card input {
    width: 100%;
    min-width: 0;
    color: var(--text-secondary);
    font-size: 11px;
}

.verification-submit-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(0, 214, 181, 0.22);
    border-radius: 14px;
    background: rgba(0, 214, 181, 0.08);
}

.verification-submit-card strong,
.verification-submit-card span {
    display: block;
}

.verification-submit-card span,
.verification-privacy-copy {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
}

.verification-privacy-copy {
    margin: -4px 2px 0;
}

.account-primary-action,
.account-secondary-action {
    width: 100%;
    min-height: 52px;
}

.account-benefit-card {
    margin: 0;
}

.status-panel {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}

.status-panel i {
    color: var(--brand-teal-light);
    font-size: 24px;
}

.status-panel.online {
    border-color: rgba(33, 155, 157, 0.6);
    background: var(--online-panel-bg);
}

.status-panel p,
.faq-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 3px;
}

.faq-card {
    padding: 14px;
    border-radius: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.section-heading {
    padding: 16px 16px 4px;
    font-size: 18px;
    font-weight: 700;
}

.empty-wide {
    grid-column: 1 / -1;
    color: var(--text-secondary);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 32px;
    text-align: center;
    gap: 14px;
}

.empty-icon {
    width: 82px;
    height: 82px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4f7b;
    background: rgba(255, 79, 123, 0.16);
    font-size: 42px;
}

.mini-listing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.mini-listing img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
}

.small-status {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.detail-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
}

.detail-panel h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.detail-panel p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}

.order-image {
    width: 74px;
    height: 74px;
    border-radius: 10px;
    object-fit: cover;
    background: #333;
}

.quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.checkout-screen {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 16px 166px;
}

.checkout-product-summary {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 14px;
    align-items: start;
}

.checkout-product-summary img {
    width: 116px;
    height: 142px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-color);
}

.checkout-product-summary h3 {
    font-size: 17px;
    line-height: 1.25;
    margin: 2px 0 4px;
}

.checkout-product-summary p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.35;
}

.checkout-product-summary strong {
    display: block;
    margin-top: 28px;
    font-size: 18px;
}

.checkout-offer-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 214, 181, 0.12);
    color: var(--brand-teal-light);
    font-size: var(--font-meta);
    font-weight: 700;
}

.checkout-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-section h2 {
    font-size: var(--font-title);
    line-height: 1.2;
    font-weight: 700;
}

.checkout-card,
.checkout-option {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--component-radius);
    background: var(--elevated-card-bg);
}

.checkout-card {
    padding: var(--space-4);
}

.checkout-address-card,
.checkout-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.checkout-payment-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.checkout-address-card > div,
.checkout-payment-card > div,
.checkout-option span:not(.checkout-radio) {
    flex: 1;
    min-width: 0;
}

.checkout-address-card strong,
.checkout-payment-card strong,
.checkout-card-heading strong,
.checkout-option strong {
    display: block;
    color: var(--text-primary);
    font-size: var(--font-label);
    line-height: 1.25;
}

.checkout-address-card p,
.checkout-payment-card p,
.checkout-option small,
.checkout-delivery-details p {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.35;
}

.checkout-option {
    min-height: var(--row-height-lg);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}

.checkout-option.selected {
    border-color: rgba(0, 214, 181, 0.82);
    background: var(--selected-panel-bg);
    box-shadow: inset 0 0 0 1px rgba(0, 214, 181, 0.35);
}

.checkout-option > i,
.checkout-payment-card > i {
    color: var(--text-secondary);
    font-size: var(--icon-size-lg);
}

.checkout-option.selected > i {
    color: var(--brand-teal-light);
}

.checkout-radio {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.checkout-radio.selected {
    color: #061918;
    background: #58c3c9;
    border-color: #58c3c9;
}

.checkout-edit-button {
    width: var(--control-height-sm);
    height: var(--control-height-sm);
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    display: inline-grid;
    place-items: center;
    font-size: var(--icon-size-md);
    margin-left: auto;
}

.checkout-card-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.checkout-courier-mark {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    background: #ffd43b;
    color: #161100;
    display: inline-grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
}

.checkout-delivery-details > strong {
    display: block;
    margin-bottom: var(--space-3);
    font-size: var(--font-label);
}

.checkout-delivery-details #checkout-delivery-detail-rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.checkout-delivery-details p {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    margin-top: 0;
}

.checkout-delivery-details p i {
    color: var(--text-secondary);
    font-size: var(--icon-size-sm);
    line-height: 1.25;
}

.checkout-details-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--card-radius);
    background: var(--elevated-card-bg);
}

.checkout-details-card h3 {
    margin: 0;
    font-size: var(--font-title);
}

.checkout-helper {
    margin-top: -6px;
    color: var(--text-secondary);
    font-size: var(--font-meta);
    line-height: 1.4;
}

.checkout-price-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: 2px;
}

.checkout-price-summary p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: var(--font-body);
}

.checkout-price-summary strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.checkout-sticky-footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 160;
    padding: var(--space-4) var(--screen-pad-x) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--sheet-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.42);
}

.checkout-footer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    font-size: var(--font-label);
    font-weight: 700;
}

.checkout-sticky-footer .btn {
    width: 100%;
    min-height: var(--control-height-xl);
    font-size: var(--font-label);
    background: #35b679;
    border-color: rgba(90, 223, 157, 0.42);
    box-shadow: none;
    text-shadow: none;
}

.checkout-sticky-footer p {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    color: var(--text-secondary);
    font-size: var(--font-meta);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.input-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.check-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--control-height-md);
    color: var(--text-secondary);
    font-size: var(--font-body);
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-teal-light);
}

.input-group input.input-error,
.input-group textarea.input-error {
    border-bottom-color: #f06f8d;
    box-shadow: 0 2px 10px rgba(240, 111, 141, 0.25);
}

@media (max-width: 380px) {
    :root {
        --listing-grid-pad-x: 14px;
        --listing-grid-col-gap: 9px;
        --ui-chip-height: 32px;
        --ui-chip-pad-x: 12px;
        --ui-chip-font-size: 13px;
    }

    .input-row-two {
        grid-template-columns: 1fr;
    }
}

.price-lines {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    background: var(--surface-color);
}

.price-lines p {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    padding: 6px 0;
}

.price-lines .total {
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    margin-top: 6px;
    padding-top: 12px;
}

.timeline-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 0;
}

.timeline-row span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.timeline-row span.done {
    background: var(--brand-teal-light);
    color: #001f23;
    border-color: var(--brand-teal-light);
}

.timeline-row p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Order progress bar */
.order-progress { margin: 16px 0; }
.order-progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}
.order-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-teal-light), #007782);
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px var(--brand-teal-glow);
}

.order-detail-page {
    padding-bottom: 28px;
}

.order-status-card,
.order-rules-card,
.order-detail-grid {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 14px;
    margin: 16px 0;
}

.order-status-card {
    display: flex;
    gap: 14px;
    padding: 16px;
}

.order-status-card > i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #021817;
    background: var(--brand-teal-light);
    font-size: 22px;
}

.order-status-card.late > i {
    background: #f4b35f;
}

.order-status-card h3,
.order-rules-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.order-status-card p,
.order-rules-card p {
    color: var(--text-secondary);
    line-height: 1.45;
}

.order-rules-card {
    padding: 16px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.order-detail-grid > div {
    padding: 14px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.order-detail-grid > div:nth-child(2n) {
    border-right: none;
}

.order-detail-grid > div:nth-last-child(-n + 2) {
    border-bottom: none;
}

.order-detail-grid span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 5px;
}

.order-detail-grid strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.order-action-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.order-action-stack a {
    text-decoration: none;
}

#toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-height) + 20px);
    transform: translate(-50%, 16px);
    width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--accent-panel-bg);
    color: var(--brand-teal-light);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--brand-teal-glow);
    border: 1px solid var(--accent-panel-border);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10000;
}

#toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Gallery dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
}
.gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast), width var(--transition-fast), border-radius var(--transition-fast), box-shadow var(--transition-fast);
}
.gallery-dot.active {
    background: var(--brand-teal-light);
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--brand-teal-glow);
}

/* Skeleton loading shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--surface-color) 25%, var(--surface-hover) 50%, var(--surface-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: 8px;
}

/* Chat item hover */
.chat-item { transition: background var(--transition-fast); }
.chat-item:hover { background-color: var(--surface-hover); }
.chat-item:active { background-color: var(--surface-hover); }

/* Upload box hover */
.upload-box { transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast); }
.upload-box:hover {
    border-color: var(--brand-teal-light);
    background: rgba(0,201,167,0.06);
}

/* Category card hover */
.category-card { transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.category-card:active { transform: scale(0.97); }

/* Smooth scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* Item image lazy load fade */
.item-image { transition: opacity 0.3s ease; opacity: 1; }

/* Search bar focus state */
.search-bar:focus-within {
    border: 1px solid var(--brand-teal-light);
    box-shadow: 0 0 12px var(--brand-teal-glow);
}

/* Favorite heart animation */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.item-likes.fav-pop i { animation: heartPop 0.3s ease; }

/* Input focus glow */
.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
    border-color: var(--brand-teal-light);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 3px var(--brand-teal-glow);
    background: rgba(255, 255, 255, 0.05);
}

/* Status panel improvements */
.status-panel {
    border-radius: 14px;
}
.status-panel.online {
    border-color: rgba(0, 201, 167, 0.3);
    background: var(--online-panel-bg);
}
