@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   StarEA Market — application styles
   Bootstrap 5.3 is loaded first; this file layers the marketplace design
   system on top of it.
   ========================================================================== */

:root {
    --bs-body-font-family: "Noto Sans Thai", sans-serif !important;
    --bs-font-sans-serif: "Noto Sans Thai", sans-serif !important;
    --sea-ink: #0b261b;
    --sea-ink-2: #103627;
    --sea-navy: #082117;
    --sea-navy-soft: #0e3325;
    --sea-brand: #10b981;
    --sea-brand-strong: #059669;
    --sea-brand-soft: #ecfdf5;
    --sea-brand-border: #a7f3d0;
    --sea-teal: #14b8a6;
    --sea-teal-soft: #f0fdf4;
    --sea-danger: #dc4c5b;
    --sea-success: #10b981;
    --sea-warning: #f59e0b;
    --sea-bg: #f6fbf8;
    --sea-panel: #ffffff;
    --sea-border: #e2ece5;
    --sea-border-strong: #cbe0d3;
    --sea-text: #132a20;
    --sea-muted: #537566;
    --sea-muted-2: #7c9c8e;
    --sea-radius: 18px;
    --sea-radius-sm: 12px;
    --sea-shadow: 0 18px 40px -28px rgba(8, 38, 26, 0.18);
    --sea-shadow-lg: 0 30px 70px -40px rgba(8, 38, 26, 0.28);
    --sea-font: "Noto Sans Thai", sans-serif;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c3cddd transparent;
}

html {
    scroll-behavior: smooth;
}

html, body, p, span, div, a, input, button, select, textarea, label {
    font-family: var(--sea-font);
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .brand-text, .nav-link, .btn {
    font-family: var(--sea-font) !important;
}

/* Preserve bootstrap icons */
.bi, [class^="bi-"], [class*=" bi-"] {
    font-family: "bootstrap-icons" !important;
}

body {
    font-family: var(--sea-font);
    color: var(--sea-text);
    background: var(--sea-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: #059669;
    text-decoration: none;
}

a:hover {
    color: #047857;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sea-ink);
}

code, .font-monospace {
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--sea-brand);
    color: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 10px 0;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
}

/* ---------------------------------------------------------- typography */
.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #059669;
}

.eyebrow-light {
    color: #a7f3d0 !important;
}

.lead {
    font-size: 1.06rem;
    line-height: 1.75;
}

.text-muted-soft {
    color: var(--sea-muted) !important;
}

.text-brand {
    color: var(--sea-brand-strong) !important;
}

.link-soft {
    color: var(--sea-muted);
    font-weight: 600;
}

.link-soft:hover {
    color: var(--sea-ink);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--sea-ink);
    white-space: nowrap;
}

.link-arrow i {
    transition: transform 0.16s ease;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.min-w-0 {
    min-width: 0;
}

/* ---------------------------------------------------------- buttons */
.btn {
    border-radius: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-brand {
    --bs-btn-bg: var(--sea-brand);
    --bs-btn-border-color: var(--sea-brand);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #059669;
    --bs-btn-hover-border-color: #059669;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: var(--sea-brand-strong);
    --bs-btn-active-border-color: var(--sea-brand-strong);
    --bs-btn-active-color: #ffffff;
    --bs-btn-disabled-bg: #a7f3d0;
    --bs-btn-disabled-border-color: #a7f3d0;
    --bs-btn-disabled-color: #065f46;
    box-shadow: 0 10px 22px -14px rgba(16, 185, 129, 0.85);
}

.btn-brand:hover {
    transform: translateY(-1px);
}

.btn-outline-secondary {
    --bs-btn-color: var(--sea-ink);
    --bs-btn-border-color: var(--sea-border-strong);
    --bs-btn-hover-bg: #ecfdf5;
    --bs-btn-hover-border-color: #a7f3d0;
    --bs-btn-hover-color: var(--sea-brand-strong);
    --bs-btn-active-bg: #d1fae5;
    --bs-btn-active-border-color: #6ee7b7;
    --bs-btn-active-color: var(--sea-brand-strong);
    --bs-btn-disabled-color: #9aa7b8;
    background: #fff;
}

.btn-outline-danger {
    --bs-btn-color: var(--sea-danger);
    --bs-btn-border-color: #f0c2c7;
    --bs-btn-hover-bg: #fdf0f1;
    --bs-btn-hover-border-color: var(--sea-danger);
    --bs-btn-hover-color: #a52432;
}

.btn-outline-light {
    --bs-btn-color: #f6f8fc;
    --bs-btn-border-color: rgba(255, 255, 255, 0.35);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.7);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.2);
    --bs-btn-active-color: #fff;
}

.btn-link {
    text-decoration: none;
    font-weight: 700;
}

.btn-lg {
    padding: 0.78rem 1.5rem;
    font-size: 1rem;
    border-radius: 13px;
}

.btn-sm {
    border-radius: 9px;
}

/* ---------------------------------------------------------- badges */
.badge {
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.42em 0.68em;
    border-radius: 8px;
}

.badge-soft {
    background: #eef2f8;
    color: #4a5b72;
    border: 1px solid #e1e7f0;
}

.badge-brand {
    background: var(--sea-brand-soft);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-success {
    background: #e3f6ec;
    color: #13724f;
    border: 1px solid #bfe8d5;
}

.badge-warning {
    background: #fdf1da;
    color: #8a5c09;
    border: 1px solid #f3ddb0;
}

.badge-danger {
    background: #fde8ea;
    color: #a52432;
    border: 1px solid #f5c6cb;
}

.badge-info {
    background: #e5f1fd;
    color: #1a5e99;
    border: 1px solid #c4ddf7;
}

.badge-secondary {
    background: #eef1f5;
    color: #5b687a;
    border: 1px solid #e0e5ed;
}

.badge-verified {
    background: var(--sea-teal-soft);
    color: #0c6b5f;
    border: 1px solid #b8e8e1;
}

.badge-lg {
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--sea-border-strong);
    color: var(--sea-muted);
}

/* ---------------------------------------------------------- flash */
.flash-stack {
    position: relative;
    z-index: 20;
}

.flash-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border-radius: var(--sea-radius-sm);
    border: 1px solid transparent;
    box-shadow: var(--sea-shadow);
    margin: 1rem 0;
}

.flash-alert .btn-close {
    margin-left: auto;
}

/* ---------------------------------------------------------- navbar */
.site-navbar {
    background: rgba(8, 33, 23, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 0;
    box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.6);
}

.site-navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

.brand-text {
    font-size: 1.12rem;
}

.site-navbar .nav-link {
    color: rgba(225, 242, 234, 0.84);
    font-weight: 600;
    font-size: 0.94rem;
    border-radius: 9px;
    padding: 0.5rem 0.7rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-icon-link {
    position: relative;
    font-size: 1.12rem;
}

.nav-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--sea-brand);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.nav-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: #0f3627;
}

.nav-user-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-search {
    min-width: 240px;
}

.site-search .form-control {
    border-radius: 10px 0 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.9rem;
}

.site-search .form-control::placeholder {
    color: rgba(215, 238, 227, 0.6);
}

.site-search .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
    color: #fff;
    box-shadow: none;
}

.site-search .btn {
    border-radius: 0 10px 10px 0;
}

.site-banner {
    background: linear-gradient(90deg, #d1fae5, #a7f3d0);
    color: #064e3b;
    border-bottom: 1px solid #6ee7b7;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.45rem 1rem;
}

/* ---------------------------------------------------------- layout */
.site-main {
    min-height: 62vh;
}

.page-section {
    padding: 3.2rem 0;
}

.page-section.pt-4 {
    padding-top: 1.5rem !important;
}

.page-section.pt-0 {
    padding-top: 0 !important;
}

.narrow-container {
    max-width: 860px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    margin-bottom: 0.25rem;
}

.section-subtitle {
    color: var(--sea-muted);
    margin-bottom: 0;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.page-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.4rem;
}

.page-lead {
    color: var(--sea-muted);
    max-width: 720px;
    margin-bottom: 0;
}

.page-header-compact {
    margin-bottom: 1.2rem;
}

/* ---------------------------------------------------------- panels */
.panel {
    background: var(--sea-panel);
    border: 1px solid var(--sea-border);
    border-radius: var(--sea-radius);
    padding: 1.5rem;
    box-shadow: var(--sea-shadow);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--sea-border);
}

.panel-title {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.panel-head .panel-title {
    margin-bottom: 0;
}

.panel-dark {
    background: linear-gradient(150deg, #14233a 0%, #0b1524 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d8e2ef;
}

.panel-dark h1, .panel-dark h2, .panel-dark h3, .panel-dark h4, .panel-dark h5 {
    color: #fff;
}

.panel-dark .text-muted-soft {
    color: rgba(214, 225, 240, 0.62) !important;
}

.panel-summary {
    background: #f8fafd;
}

.panel-summary .summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    color: var(--sea-muted);
    font-size: 0.94rem;
}

.panel-summary .summary-row strong {
    color: var(--sea-text);
}

.panel-summary .summary-total {
    border-top: 1px dashed var(--sea-border-strong);
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    font-size: 1.05rem;
    color: var(--sea-ink);
    font-weight: 800;
}

.info-block {
    background: #f7f9fd;
    border: 1px solid var(--sea-border);
    border-radius: var(--sea-radius-sm);
    padding: 1rem 1.1rem;
}

.info-block-title {
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sea-muted);
    margin-bottom: 0.35rem;
}

/* ---------------------------------------------------------- hero */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 4.6rem 0 4rem;
    background:
        radial-gradient(1100px 460px at 82% -10%, rgba(16, 185, 129, 0.22), transparent 60%),
        radial-gradient(800px 420px at 0% 110%, rgba(52, 211, 153, 0.16), transparent 60%),
        linear-gradient(155deg, #072419 0%, #0c3627 55%, #051c14 100%);
    color: #e2f4eb;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 460px;
    height: 460px;
    right: -120px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.32), transparent 65%);
    filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.18;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-title span {
    color: #34d399;
}

.hero-lead {
    color: rgba(220, 245, 233, 0.82);
    font-size: 1.04rem;
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 1.6rem;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 640px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.45rem 0.45rem 0.45rem 0.9rem;
    backdrop-filter: blur(6px);
}

.hero-search > i {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 0.55rem 0.25rem;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(219, 229, 243, 0.5);
}

.hero-search .btn {
    flex-shrink: 0;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 1.3rem;
    font-size: 0.85rem;
    color: rgba(209, 222, 239, 0.68);
}

.hero-trust i {
    color: var(--sea-brand);
    margin-right: 0.25rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.3rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}

.hero-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(214, 226, 243, 0.75);
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-card-head .text-muted-soft {
    color: rgba(214, 226, 243, 0.5) !important;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #47d7a8;
    box-shadow: 0 0 0 4px rgba(71, 215, 168, 0.18);
    animation: livePulse 2.2s infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(71, 215, 168, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(71, 215, 168, 0.05); }
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-metrics div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-metrics strong {
    font-size: 1.5rem;
    color: #fff;
    line-height: 1;
}

.hero-metrics span {
    font-size: 0.72rem;
    color: rgba(208, 221, 239, 0.6);
}

.hero-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.6rem;
}

.hero-mini {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.35rem;
    border-radius: 10px;
    color: #dbe6f4;
    transition: background 0.15s ease;
}

.hero-mini:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.hero-mini-rank {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(244, 183, 64, 0.16);
    color: var(--sea-brand);
    font-size: 0.76rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.hero-mini-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-mini-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sea-brand);
}

/* ---------------------------------------------------------- announcement */
.announcement-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-left: 4px solid var(--sea-brand);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: var(--sea-shadow);
    margin-bottom: 0.6rem;
}

.announcement-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--sea-brand-soft);
    color: var(--sea-brand-strong);
    display: grid;
    place-items: center;
}

/* ---------------------------------------------------------- categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 16px;
    padding: 1.15rem;
    color: var(--sea-text);
    box-shadow: var(--sea-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #a7f3d0;
    box-shadow: 0 16px 36px -18px rgba(16, 185, 129, 0.25);
    color: var(--sea-text);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sea-brand-soft);
    color: var(--sea-brand-strong);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.category-name {
    font-weight: 800;
    font-size: 0.96rem;
}

.category-count {
    font-size: 0.78rem;
    color: var(--sea-muted);
}

/* ---------------------------------------------------------- product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.3rem;
}

.product-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

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

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sea-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #a7f3d0;
    box-shadow: 0 20px 45px -20px rgba(16, 185, 129, 0.25);
}

.product-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #09261c;
    overflow: hidden;
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-cover img {
    transform: scale(1.035);
}

.product-platform,
.product-featured {
    position: absolute;
    top: 0.7rem;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.28rem 0.55rem;
    border-radius: 7px;
    letter-spacing: 0.02em;
}

.product-platform {
    left: 0.7rem;
    background: rgba(8, 33, 23, 0.88);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.product-featured {
    right: 0.7rem;
    background: var(--sea-brand);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem 1.1rem;
    flex: 1;
}

.product-category {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sea-teal);
}

.product-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.product-title a {
    color: var(--sea-ink);
}

.product-title a:hover {
    color: #1f6fb2;
}

.product-tagline {
    font-size: 0.84rem;
    color: var(--sea-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--sea-muted);
}

.product-sales {
    white-space: nowrap;
}

.product-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sea-border);
}

.price-currency {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sea-muted);
}

.product-price {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--sea-ink);
    letter-spacing: -0.02em;
}

.product-cycle {
    font-size: 0.74rem;
    color: var(--sea-muted-2);
}

.product-store {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 52%;
    font-size: 0.76rem;
    color: var(--sea-muted);
}

.product-store:hover {
    color: var(--sea-ink);
}

/* ---------------------------------------------------------- stars */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    color: var(--sea-brand-strong);
    font-size: 0.8rem;
    white-space: nowrap;
}

.stars-value {
    margin-left: 0.25rem;
    font-weight: 800;
    color: var(--sea-ink);
}

.stars-count {
    margin-left: 0.2rem;
    color: var(--sea-muted);
    font-size: 0.76rem;
}

/* ---------------------------------------------------------- lists */
.tip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tip-list li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--sea-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tip-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sea-brand);
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(219, 230, 244, 0.78);
}

.feature-list li i {
    color: var(--sea-brand);
    font-size: 1.05rem;
    margin-top: 0.1rem;
}

.feature-list li strong {
    color: #fff;
}

.panel:not(.panel-dark) .feature-list li {
    color: var(--sea-muted);
}

.panel:not(.panel-dark) .feature-list li strong {
    color: var(--sea-ink);
}

.step-list {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--sea-ink, #0f172a);
    font-size: 0.92rem;
    font-weight: 500;
}

.step-list li > span:first-child {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(16, 124, 65, 0.12);
    color: var(--sea-brand, #107c41);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.82rem;
}

.panel-dark .step-list li,
.step-list.step-light li {
    color: rgba(219, 230, 244, 0.9);
}

.panel-dark .step-list li > span:first-child,
.step-list.step-light li > span:first-child {
    background: rgba(244, 183, 64, 0.16);
    color: var(--sea-brand, #f4b740);
}

.account-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.account-status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.62rem 0;
    border-bottom: 1px dashed var(--sea-border);
    font-size: 0.88rem;
    color: var(--sea-muted);
}

.account-status-list li:last-child {
    border-bottom: 0;
}

.account-status-list li strong,
.account-status-list li > a {
    color: var(--sea-ink);
    text-align: right;
}

/* ---------------------------------------------------------- stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    box-shadow: var(--sea-shadow);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #f1f5fb;
    color: #41536c;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sea-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--sea-ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.stat-hint {
    font-size: 0.76rem;
    color: var(--sea-muted-2);
}

.stat-primary {
    background: linear-gradient(150deg, #14233a, #0d1728);
    border-color: rgba(255, 255, 255, 0.08);
}

.stat-primary .stat-label,
.stat-primary .stat-hint {
    color: rgba(214, 226, 243, 0.62);
}

.stat-primary .stat-value {
    color: #fff;
}

.stat-primary .stat-icon {
    background: rgba(244, 183, 64, 0.16);
    color: var(--sea-brand);
}

/* ---------------------------------------------------------- sellers */
.seller-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.seller-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.5rem;
    border-radius: 12px;
    color: var(--sea-text);
    transition: background 0.16s ease;
}

.seller-row:hover {
    background: #f6f9fd;
    color: var(--sea-text);
}

.seller-logo {
    border-radius: 12px;
    object-fit: cover;
    background: #eef2f8;
}

.seller-row-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    font-size: 0.78rem;
    color: var(--sea-muted);
    white-space: nowrap;
}

.seller-row-stats i {
    color: var(--sea-brand-strong);
}

/* ---------------------------------------------------------- reviews */
.review-card {
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--sea-shadow);
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--sea-muted);
    margin: 0.5rem 0 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sea-brand-soft);
    color: #8a5f04;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.review-author strong {
    font-size: 0.85rem;
    display: block;
}

.review-author a {
    font-size: 0.76rem;
    color: var(--sea-muted);
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.review-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 130px;
}

.review-score strong {
    font-size: 3rem;
    line-height: 1;
    color: var(--sea-ink);
}

.review-bars {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.8rem;
    color: var(--sea-muted);
}

.review-bar {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: #eef2f8;
    overflow: hidden;
}

.review-bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--sea-brand);
}

.review-list {
    display: flex;
    flex-direction: column;
}

.review-item {
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--sea-border);
}

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

.review-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-item-title {
    font-size: 0.98rem;
    margin: 0.35rem 0;
}

.review-item-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--sea-muted);
    margin-bottom: 0.5rem;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.review-images a,
.review-images img {
    width: 96px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--sea-border);
}

.seller-reply {
    margin-top: 0.8rem;
    padding: 0.8rem 1rem;
    background: #f7f9fd;
    border-left: 3px solid var(--sea-teal);
    border-radius: 0 10px 10px 0;
    font-size: 0.86rem;
    color: var(--sea-muted);
}

.seller-reply strong {
    color: var(--sea-ink);
}

/* ---------------------------------------------------------- empty state */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--sea-border-strong);
    border-radius: var(--sea-radius);
    color: var(--sea-muted);
}

.empty-state i {
    font-size: 2rem;
    color: var(--sea-brand-strong);
    display: block;
    margin-bottom: 0.7rem;
}

.empty-state h2,
.empty-state h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.empty-state p {
    font-size: 0.88rem;
    max-width: 480px;
    margin: 0 auto 1rem;
}

/* ---------------------------------------------------------- forms */
.form-label {
    font-weight: 700;
    font-size: 0.86rem;
    color: #2b3a4f;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: var(--sea-border-strong);
    padding: 0.6rem 0.8rem;
    font-size: 0.92rem;
    color: var(--sea-text);
}

.form-control:focus,
.form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.22rem rgba(16, 185, 129, 0.18);
}

.form-control::placeholder {
    color: #a4afbe;
}

.form-text {
    font-size: 0.78rem;
    color: var(--sea-muted-2);
}

.input-group-text {
    background: #ecfdf5;
    border-color: var(--sea-border-strong);
    color: var(--sea-muted);
    border-radius: 10px 0 0 10px;
    font-weight: 700;
}

.form-check-input:checked {
    background-color: var(--sea-brand);
    border-color: var(--sea-brand);
}

.form-check-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.18);
}

.form-check-label {
    font-size: 0.9rem;
}

.input-icon {
    position: relative;
}

.input-icon > i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sea-muted-2);
}

.input-icon > .form-control {
    padding-left: 2.5rem;
}

.otp-input {
    letter-spacing: 0.4em;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
}

.rating-input input {
    position: absolute;
    opacity: 0;
}

.rating-input-star {
    font-size: 1.75rem;
    color: #d7dee8;
    cursor: pointer;
    transition: color 0.12s ease;
}

.rating-input input:checked ~ .rating-input-star,
.rating-input-star:hover,
.rating-input-star:hover ~ .rating-input-star {
    color: var(--sea-brand-strong);
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--sea-border-strong);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.plan-option:has(input:checked) {
    border-color: var(--sea-brand-strong);
    background: #fffdf6;
}

.plan-option input {
    margin-top: 0.15rem;
}

.plan-option-info {
    flex: 1;
}

.plan-name {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
}

.plan-option-buy {
    font-weight: 800;
    color: var(--sea-ink);
    white-space: nowrap;
}

/* ---------------------------------------------------------- tables */
.table-card {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    font-size: 0.88rem;
}

.table-card > :not(caption) > * > * {
    padding: 0.8rem 0.9rem;
    border-bottom-color: var(--sea-border);
    vertical-align: middle;
}

.table-card thead th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sea-muted);
    font-weight: 800;
    background: #f8fafd;
    white-space: nowrap;
}

.table-card tbody tr:hover > * {
    background: #fbfcfe;
}

.table-thumb {
    border-radius: 8px;
    object-fit: cover;
    background: #eef2f8;
}

.table-avatar {
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f8;
}

/* ---------------------------------------------------------- pagination */
.pagination {
    margin: 1.5rem 0 0;
    gap: 0.3rem;
}

.page-item .page-link {
    border-radius: 9px;
    border-color: var(--sea-border-strong);
    color: var(--sea-ink);
    font-weight: 600;
    min-width: 38px;
    text-align: center;
}

.page-item.active .page-link {
    background: var(--sea-ink);
    border-color: var(--sea-ink);
    color: #fff;
}

.page-item.disabled .page-link {
    color: #a8b3c2;
    background: #f6f8fb;
}

/* ---------------------------------------------------------- marketplace */
.filter-panel {
    position: sticky;
    top: 88px;
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    padding: 1rem 0;
    border-top: 1px solid var(--sea-border);
}

.filter-group:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.filter-group h3 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sea-muted);
    margin-bottom: 0.6rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--sea-border-strong);
    background: #fff;
    color: var(--sea-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--sea-ink);
    border-color: var(--sea-ink);
    color: #fff;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.market-result-count {
    font-size: 0.88rem;
    color: var(--sea-muted);
}

.breadcrumb-light {
    background: transparent;
    padding: 0;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.breadcrumb-light .breadcrumb-item a {
    color: var(--sea-muted);
}

.breadcrumb-light .breadcrumb-item.active {
    color: var(--sea-text);
}

/* ---------------------------------------------------------- product detail */
.product-detail-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin: 0.35rem 0 0.5rem;
}

.product-detail-tagline {
    font-size: 1rem;
    color: var(--sea-muted);
    line-height: 1.7;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.9rem 0;
    margin: 0.8rem 0;
    border-top: 1px solid var(--sea-border);
    border-bottom: 1px solid var(--sea-border);
    font-size: 0.84rem;
    color: var(--sea-muted);
}

.product-detail-meta strong {
    color: var(--sea-ink);
}

.product-gallery {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--sea-border);
    background: #0d1728;
    box-shadow: var(--sea-shadow);
}

.product-gallery-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.product-tabs {
    border-bottom: 1px solid var(--sea-border);
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.product-tabs .nav-link {
    white-space: nowrap;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--sea-muted);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0;
}

.product-tabs .nav-link.active {
    color: var(--sea-ink);
    border-bottom-color: var(--sea-brand-strong);
    background: transparent;
}

.product-tab-content {
    padding-top: 1.4rem;
    font-size: 0.93rem;
    line-height: 1.8;
    color: #3b4a60;
}

.product-tab-content h1,
.product-tab-content h2,
.product-tab-content h3 {
    font-size: 1.05rem;
    margin-top: 1.4rem;
}

.rich-text {
    line-height: 1.8;
    color: #3b4a60;
    overflow-wrap: anywhere;
}

.purchase-card {
    position: sticky;
    top: 88px;
}

.purchase-head {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.purchase-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sea-muted);
}

.purchase-price {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--sea-ink);
}

.purchase-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: var(--sea-muted);
}

.purchase-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.purchase-benefits i {
    color: var(--sea-teal);
}

.seller-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    background: #f8fafd;
    border: 1px solid var(--sea-border);
    border-radius: 14px;
}

.seller-card-logo {
    border-radius: 12px;
    object-fit: cover;
    background: #eef2f8;
}

.seller-card-name {
    font-weight: 800;
    display: block;
}

.seller-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--sea-muted);
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.version-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--sea-border);
    border-radius: 10px;
    font-size: 0.86rem;
}

.version-badge {
    font-weight: 800;
    color: var(--sea-ink);
    min-width: 68px;
}

.license-box {
    background: #f7f9fd;
    border: 1px dashed var(--sea-border-strong);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.license-key {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sea-ink);
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    display: inline-block;
    overflow-wrap: anywhere;
}

.license-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--sea-border);
}

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

/* ---------------------------------------------------------- store */
.store-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #0e3023, #082117);
    border-radius: 20px;
    color: #e2f4eb;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--sea-shadow-lg);
}

.store-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -80px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 65%);
}

.store-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.store-logo {
    width: 92px;
    height: 92px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: #0f3627;
}

.store-title {
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 0.25rem;
}

.store-tagline {
    color: rgba(214, 226, 243, 0.72);
    margin-bottom: 0.6rem;
}

.store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(214, 226, 243, 0.72);
}

.store-meta strong {
    color: #fff;
}

.store-banner-preview,
.product-form-cover,
.store-logo-preview {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    border: 1px solid var(--sea-border);
    object-fit: cover;
}

/* ---------------------------------------------------------- cart / checkout */
.cart-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--sea-border);
}

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

.cart-cover {
    width: 132px;
    height: 82px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--sea-border);
    background: #eef2f8;
}

.cart-title {
    font-size: 0.96rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

.cart-price {
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--sea-border);
}

.checkout-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.checkout-item img {
    width: 64px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef2f8;
}

.payment-method-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--sea-border-strong);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.payment-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eef2f8;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #41536c;
}

.bank-box {
    background: #f7f9fd;
    border: 1px solid var(--sea-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------- invoice */
.invoice-sheet {
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 14px;
    padding: 2.2rem;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--sea-shadow);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid var(--sea-ink);
}

.invoice-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    font-size: 1.1rem;
}

.invoice-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sea-muted);
    font-weight: 800;
}

.invoice-parties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    padding: 1.4rem 0;
}

.invoice-section-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sea-muted);
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.invoice-table {
    width: 100%;
    font-size: 0.88rem;
    border-collapse: collapse;
}

.invoice-table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sea-muted);
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--sea-border-strong);
}

.invoice-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--sea-border);
}

.invoice-totals {
    margin-left: auto;
    max-width: 320px;
    padding-top: 0.8rem;
}

.invoice-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--sea-muted);
}

.invoice-grand {
    border-top: 1px solid var(--sea-ink);
    margin-top: 0.5rem;
    padding-top: 0.6rem !important;
    font-size: 1.1rem !important;
    font-weight: 800;
    color: var(--sea-ink) !important;
}

.invoice-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--sea-border-strong);
    font-size: 0.78rem;
    color: var(--sea-muted-2);
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------- chat */
.chat-shell {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: var(--sea-radius);
    box-shadow: var(--sea-shadow);
    overflow: hidden;
    height: min(72vh, 720px);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--sea-border);
    background: #fbfcfe;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background:
        radial-gradient(700px 300px at 100% 0%, rgba(244, 183, 64, 0.05), transparent 60%),
        #f8fafd;
}

.chat-empty {
    margin: auto;
    text-align: center;
    color: var(--sea-muted-2);
}

.chat-empty i {
    font-size: 2rem;
    color: var(--sea-border-strong);
    display: block;
    margin-bottom: 0.4rem;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 78%;
}

.chat-message.mine {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.theirs {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble {
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 14px 14px 14px 4px;
    padding: 0.65rem 0.85rem;
    box-shadow: 0 6px 18px -16px rgba(13, 26, 46, 0.5);
}

.chat-message.mine .chat-bubble {
    background: #132138;
    border-color: #132138;
    color: #eaf1fb;
    border-radius: 14px 14px 4px 14px;
}

.chat-sender {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sea-muted-2);
    margin-bottom: 0.2rem;
}

.chat-message.mine .chat-sender {
    color: rgba(255, 255, 255, 0.55);
}

.chat-body {
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.chat-time {
    font-size: 0.68rem;
    color: var(--sea-muted-2);
    margin-top: 0.3rem;
    text-align: right;
}

.chat-message.mine .chat-time {
    color: rgba(255, 255, 255, 0.4);
}

.chat-masked-note {
    font-size: 0.72rem;
    color: var(--sea-warning);
    margin-top: 0.25rem;
}

.chat-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    font-size: 0.8rem;
}

.chat-attachment small {
    opacity: 0.7;
}

.chat-attachment-image img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 10px;
    margin-top: 0.4rem;
    object-fit: cover;
}

.chat-risk {
    color: var(--sea-warning);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.chat-report {
    font-size: 0.74rem;
    color: var(--sea-muted-2);
    margin-top: 0.2rem;
}

.chat-report summary {
    cursor: pointer;
}

.chat-report textarea {
    margin-top: 0.35rem;
    min-width: 220px;
}

.chat-warning {
    margin: 0 1rem 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: #fdf1da;
    border: 1px solid #f3ddb0;
    color: #8a5c09;
    font-size: 0.82rem;
}

.chat-warning.is-danger {
    background: #fde8ea;
    border-color: #f5c6cb;
    color: #a52432;
}

.chat-compose {
    border-top: 1px solid var(--sea-border);
    padding: 0.8rem 0.9rem;
    background: #fff;
}

.chat-compose-row {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
}

.chat-compose-row textarea {
    resize: none;
    max-height: 140px;
    min-height: 42px;
    line-height: 1.5;
}

.chat-attach {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--sea-border-strong);
    color: var(--sea-muted);
    cursor: pointer;
    background: #fff;
}

.chat-attach:hover {
    background: #f4f7fb;
    color: var(--sea-ink);
}

.chat-send {
    height: 42px;
    padding: 0 1rem;
    flex-shrink: 0;
}

.chat-compose-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--sea-muted-2);
}

.chat-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-safety-hint {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    color: var(--sea-muted-2);
}

.conversation-list {
    display: flex;
    flex-direction: column;
}

.conversation-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--sea-border);
    color: var(--sea-text);
    transition: background 0.15s ease;
}

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

.conversation-row:hover {
    background: #f8fafd;
    color: var(--sea-text);
}

.conversation-row.unread {
    background: #fffdf6;
}

.conversation-avatar {
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f8;
    flex-shrink: 0;
}

.conversation-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.conversation-name {
    font-weight: 700;
    font-size: 0.92rem;
}

.conversation-time {
    font-size: 0.72rem;
    color: var(--sea-muted-2);
    white-space: nowrap;
}

.conversation-preview {
    font-size: 0.82rem;
    color: var(--sea-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: var(--sea-muted);
    line-height: 1.55;
}

.security-note i {
    color: var(--sea-teal);
    font-size: 1.05rem;
}

/* ---------------------------------------------------------- notifications */
.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--sea-border);
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item.is-unread {
    background: #fffdf6;
}

.notification-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sea-brand);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* ---------------------------------------------------------- wallet / dashboard */
.wallet-balance-box {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: linear-gradient(150deg, #14233a, #0d1728);
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    color: #dbe6f4;
}

.wallet-balance-box span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(214, 226, 243, 0.6);
    font-weight: 700;
}

.wallet-balance-box strong {
    font-size: 2rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.wallet-balance-box small {
    font-size: 0.78rem;
    color: rgba(214, 226, 243, 0.55);
}

.referral-panel {
    background: linear-gradient(140deg, #fffdf6, #fff);
    border-color: #f0dfb6;
}

.affiliate-rate-card {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    background: rgba(244, 183, 64, 0.12);
    border: 1px solid rgba(244, 183, 64, 0.35);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.affiliate-rate-card span {
    font-size: 0.76rem;
    color: var(--sea-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.affiliate-rate-card strong {
    font-size: 1.9rem;
    color: var(--sea-ink);
    line-height: 1;
}

.affiliate-rate-card small {
    font-size: 0.74rem;
    color: var(--sea-muted-2);
}

.panel-dark .affiliate-rate-card span,
.panel-dark .affiliate-rate-card small {
    color: rgba(214, 226, 243, 0.6);
}

.panel-dark .affiliate-rate-card strong {
    color: var(--sea-brand);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 120px;
    padding-top: 0.5rem;
}

.mini-chart-col {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mini-chart-bar {
    display: block;
    width: 100%;
    max-width: 18px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #34d399, #059669);
    min-height: 3px;
}

.workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 14px;
    box-shadow: var(--sea-shadow);
    margin-bottom: 1.5rem;
}

.workspace-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    color: var(--sea-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.workspace-tab:hover {
    background: #f4f7fb;
    color: var(--sea-ink);
}

.workspace-tab.active {
    background: var(--sea-ink);
    color: #fff;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.role-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid var(--sea-border);
    border-radius: 14px;
    padding: 1.1rem;
    background: #fff;
    color: var(--sea-text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.role-card:hover {
    border-color: #e8cd93;
    transform: translateY(-2px);
    color: var(--sea-text);
}

.role-card i {
    font-size: 1.4rem;
    color: var(--sea-brand-strong);
}

.step-card {
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 16px;
    padding: 1.3rem;
    box-shadow: var(--sea-shadow);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--sea-brand-soft);
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--sea-border);
    border-radius: 14px;
    background: #fbfcfe;
}

.contact-method > i {
    font-size: 1.35rem;
    color: var(--sea-brand-strong);
    margin-top: 0.15rem;
}

.faq-list details {
    border-bottom: 1px solid var(--sea-border);
    padding: 0.7rem 0;
}

.faq-list details:last-child {
    border-bottom: 0;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
}

.faq-list p {
    padding-top: 0.5rem;
}

/* ---------------------------------------------------------- auth */
.auth-body {
    background: #082117;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
}

.auth-side {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    background:
        radial-gradient(800px 400px at 80% 0%, rgba(16, 185, 129, 0.22), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(52, 211, 153, 0.16), transparent 60%),
        linear-gradient(155deg, #09261c, #051912);
    color: #e2f4eb;
}

.auth-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 40% 40%, #000, transparent 75%);
    pointer-events: none;
}

.auth-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    z-index: 1;
}

.auth-side-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.auth-side-copy h1 {
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.auth-side-copy > p:not(.eyebrow) {
    color: rgba(211, 224, 241, 0.72);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: rgba(219, 230, 244, 0.8);
}

.auth-points i {
    color: var(--sea-brand);
    margin-right: 0.5rem;
}

.auth-side-foot {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.78rem;
    color: rgba(214, 226, 243, 0.45);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    background: #f7f9fd;
    padding: 1.5rem 2rem;
    overflow-y: auto;
}

.auth-panel-top {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-back {
    font-size: 0.84rem;
    color: var(--sea-muted);
    font-weight: 600;
}

.auth-card {
    width: 100%;
    max-width: 470px;
    margin: auto;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--sea-shadow-lg);
}

.auth-heading {
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
}

.auth-note {
    font-size: 0.88rem;
    color: var(--sea-muted);
    margin-bottom: 1.4rem;
}

.auth-form .form-control {
    padding: 0.7rem 0.85rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.3rem 0;
    color: var(--sea-muted-2);
    font-size: 0.76rem;
}

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

.auth-panel-foot {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--sea-muted-2);
    padding-top: 1.5rem;
}

/* ---------------------------------------------------------- verification */
.verification-card {
    text-align: center;
    padding: 2.2rem 1.5rem;
}

.verification-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: var(--sea-brand-soft);
    color: var(--sea-brand-strong);
    display: grid;
    place-items: center;
    font-size: 1.7rem;
}

.verification-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.verification-help {
    font-size: 0.82rem;
    color: var(--sea-muted);
    margin-top: 1rem;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--sea-border);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    background: #fbfcfe;
}

.document-card > i {
    font-size: 1.35rem;
    color: var(--sea-brand-strong);
}

/* ---------------------------------------------------------- gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.7rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--sea-border);
    aspect-ratio: 4 / 3;
    background: #eef2f8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    left: 0.4rem;
    bottom: 0.4rem;
    background: rgba(10, 18, 32, 0.8);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.gallery-delete {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 18, 32, 0.75);
    color: #fff;
    font-size: 0.7rem;
    display: grid;
    place-items: center;
}

.gallery-delete:hover {
    background: var(--sea-danger);
}

/* ---------------------------------------------------------- footer */
.site-footer {
    background: #082117;
    color: rgba(220, 242, 232, 0.75);
    padding: 3.2rem 0 1.6rem;
    margin-top: 2rem;
}

.footer-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.12rem;
}

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

.footer-heading {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.9rem;
    font-weight: 800;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.footer-links a {
    color: rgba(220, 242, 232, 0.75);
}

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

.footer-divider {
    border-color: rgba(255, 255, 255, 0.09);
    margin: 2rem 0 1rem;
}

.site-footer .text-muted-soft {
    color: rgba(220, 242, 232, 0.55) !important;
}

/* ---------------------------------------------------------- CTA */
.cta-section {
    padding: 2rem 0 3.5rem;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 2.4rem;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(16, 185, 129, 0.25), transparent 60%),
        linear-gradient(150deg, #0e3023, #082117);
    color: #e2f4eb;
    box-shadow: var(--sea-shadow-lg);
}

.cta-box h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    margin-bottom: 0.6rem;
}

.cta-box p {
    color: rgba(220, 242, 232, 0.75);
    max-width: 600px;
    margin-bottom: 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ---------------------------------------------------------- errors */
.error-page {
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.error-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 22px;
    padding: 3rem 2rem;
    box-shadow: var(--sea-shadow-lg);
}

.error-code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.error-search {
    max-width: 420px;
}

/* ==========================================================================
   Admin console
   ========================================================================== */
.admin-body {
    background: #eef2f8;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 264px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #082117, #04140e);
    color: #c5ded2;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    padding: 0.3rem 0.4rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.admin-brand strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.2;
}

.admin-brand small {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.admin-nav {
    flex: 1;
}

.admin-nav-label {
    margin: 1rem 0 0.35rem;
    padding: 0 0.5rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.34);
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    border-radius: 9px;
    color: rgba(217, 229, 244, 0.72);
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.98rem;
    color: rgba(217, 229, 244, 0.5);
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-nav-link.active {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

.admin-nav-link.active i {
    color: #34d399;
}

.admin-sidebar-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 1rem;
}

.admin-foot-role {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    background: #fff;
    border-bottom: 1px solid var(--sea-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--sea-muted-2);
}

.admin-title {
    font-size: 1.3rem;
    margin: 0;
}

.admin-top-actions {
    display: flex;
    gap: 0.45rem;
}

.admin-content {
    padding: 1.5rem 1.6rem;
    flex: 1;
}

.admin-content > .panel:first-child,
.admin-content > .stat-grid:first-child,
.admin-content > .row:first-child {
    margin-top: 0;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    font-size: 0.74rem;
    color: var(--sea-muted-2);
    border-top: 1px solid var(--sea-border);
    background: #fff;
}

.admin-alert-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.admin-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-left: 3px solid var(--sea-brand);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
    color: var(--sea-text);
    box-shadow: var(--sea-shadow);
}

.admin-alert i {
    color: var(--sea-brand-strong);
}

.admin-alert strong {
    color: #a52432;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--sea-shadow);
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.7rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sea-muted);
}

.admin-tab:hover {
    background: #f4f7fb;
    color: var(--sea-ink);
}

.admin-tab.active {
    background: var(--sea-ink);
    color: #fff;
}

.admin-tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.66rem;
    font-weight: 800;
}

.admin-tab.active .admin-tab-count {
    background: rgba(255, 255, 255, 0.18);
}

.admin-toolbar {
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--sea-shadow);
}

.admin-content .panel {
    box-shadow: var(--sea-shadow);
}

.admin-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 230px;
    padding-top: 1.4rem;
    overflow: hidden;
}

.admin-chart-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
}

.admin-chart-value {
    font-size: 0.6rem;
    color: var(--sea-muted-2);
    white-space: nowrap;
}

.admin-chart-bar {
    display: block;
    width: 100%;
    max-width: 34px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #34d399, #059669);
    min-height: 3px;
}

.admin-chart-label {
    font-size: 0.62rem;
    color: var(--sea-muted-2);
    white-space: nowrap;
}

.admin-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-mini-list li {
    border-bottom: 1px solid var(--sea-border);
}

.admin-mini-list li:last-child {
    border-bottom: 0;
}

.admin-mini-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--sea-text);
}

.admin-mini-list a:hover {
    background: #f8fafd;
}

.admin-mini-list .bi-chevron-right {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--sea-muted-2);
}

.mini-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--sea-brand-soft);
    color: #8a5f04;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
}

.mini-thumb {
    border-radius: 7px;
    object-fit: cover;
    background: #eef2f8;
    flex-shrink: 0;
}

.admin-rank-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 1rem 0.8rem;
    counter-reset: rank;
}

.admin-rank-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--sea-border);
}

.admin-rank-list li:last-child {
    border-bottom: 0;
}

.rank-number {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 7px;
    background: #f1f5fb;
    color: var(--sea-muted);
    font-size: 0.72rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.admin-rank-list li:first-child .rank-number {
    background: var(--sea-brand-soft);
    color: #8a5f04;
}

.admin-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.admin-activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed var(--sea-border);
}

.admin-activity-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.admin-meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--sea-border);
    font-size: 0.84rem;
    color: var(--sea-muted);
}

.admin-meta-list li:last-child {
    border-bottom: 0;
}

.admin-meta-list li strong {
    color: var(--sea-ink);
    text-align: right;
}

.admin-prose {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #3b4a60;
    overflow-wrap: anywhere;
}

.admin-product-cover {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--sea-border);
    object-fit: cover;
    background: #eef2f8;
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.6rem;
}

.admin-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--sea-border);
}

.admin-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-file-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--sea-border);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    background: #fbfcfe;
}

.admin-file-list > li > i {
    font-size: 1.2rem;
    color: var(--sea-brand-strong);
}

.admin-chat-log {
    max-height: 620px;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #f8fafd;
}

.admin-chat-bubble {
    background: #fff;
    border: 1px solid var(--sea-border);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
}

.announcement-list {
    display: flex;
    flex-direction: column;
}

.announcement-row {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid var(--sea-border);
}

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

.report-list {
    display: flex;
    flex-direction: column;
}

.report-row {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--sea-border);
}

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

.report-quote {
    background: #f8fafd;
    border-left: 3px solid var(--sea-brand);
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    color: #3b4a60;
}

.refund-row {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--sea-border);
}

.commission-display {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: #f8fafd;
    border: 1px solid var(--sea-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

.commission-display > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
    color: var(--sea-muted);
    padding: 0.22rem 0;
}

.commission-display strong {
    color: var(--sea-ink);
}

.audit-meta {
    display: inline-block;
    max-width: 420px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    color: #51617a;
    background: #f1f5fb;
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
}

/* ---------------------------------------------------------- print */
@media print {
    body {
        background: #fff;
    }

    .site-navbar,
    .site-footer,
    .site-banner,
    .invoice-actions,
    .skip-link {
        display: none !important;
    }

    .site-main {
        min-height: 0;
    }

    .page-section {
        padding: 0;
    }

    .invoice-sheet {
        border: 0;
        box-shadow: none;
        padding: 0;
        max-width: none;
    }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
    .product-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .purchase-card,
    .filter-panel {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
    }

    .admin-sidebar {
        width: 78px;
        padding: 1rem 0.6rem;
    }

    .admin-brand span,
    .admin-nav-label,
    .admin-nav-link span,
    .admin-sidebar-foot .small,
    .admin-sidebar-foot .admin-foot-role,
    .admin-sidebar-foot .btn span {
        display: none;
    }

    .admin-brand {
        justify-content: center;
        padding-bottom: 0.8rem;
    }

    .admin-nav-link {
        justify-content: center;
        padding: 0.6rem;
    }

    .admin-nav-link i {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 3.2rem 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .page-section {
        padding: 2.2rem 0;
    }

    .panel {
        padding: 1.15rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-search {
        flex-wrap: wrap;
    }

    .hero-search input {
        width: 100%;
        flex-basis: 100%;
    }

    .hero-search .btn {
        width: 100%;
    }

    .product-grid,
    .product-grid-2,
    .product-grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .admin-topbar {
        padding: 0.9rem 1rem;
        flex-wrap: wrap;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-title {
        font-size: 1.1rem;
    }

    .admin-footer {
        padding: 0.8rem 1rem;
        flex-direction: column;
    }

    .chat-shell {
        height: calc(100vh - 220px);
        min-height: 420px;
    }

    .chat-message {
        max-width: 92%;
    }

    .cart-row {
        flex-direction: column;
    }

    .cart-cover {
        width: 100%;
        height: 150px;
    }

    .cta-box {
        padding: 1.6rem;
    }

    .executive,
    .admin-chart {
        height: 180px;
    }

    .invoice-sheet {
        padding: 1.3rem;
    }

    .store-hero {
        padding: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .product-grid,
    .product-grid-2,
    .product-grid-3 {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        height: 64px;
        width: 100%;
        flex-direction: row;
        z-index: 30;
        padding: 0.35rem;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .admin-brand,
    .admin-sidebar-foot,
    .admin-nav-label {
        display: none;
    }

    .admin-nav {
        display: flex;
    }

    .admin-nav ul {
        flex-direction: row;
        gap: 0.1rem;
    }

    .admin-main {
        padding-bottom: 64px;
    }

    .admin-chart-label {
        display: none;
    }

    .auth-card {
        padding: 1.4rem;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
