:root {
    --primary: #ec4899;
    --primary-soft: #f472b6;
    --primary-light: #f9a8d4;
    --secondary: #9d174d;
    --accent: #f59e0b;
    --success: #10b981;
    --info: #38bdf8;
    --dark: #4b0628;
    --darker: #17020d;
    --page: #2f1d27;
    --panel: #15191a;
    --panel-soft: #22121b;
    --panel-top: #351326;
    --text: #f8eaf2;
    --muted: #d8bdca;
    --muted-2: #a98b9a;
    --border: rgba(249, 168, 212, 0.36);
}

* {
    font-family: 'Be Vietnam Pro', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, rgba(75, 6, 40, 0.98) 0, rgba(75, 6, 40, 0.98) 320px, rgba(47, 29, 39, 0.98) 321px, rgba(27, 17, 24, 1) 100%),
        var(--page);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--primary-light);
}

a:hover {
    color: var(--primary-soft);
}

.text-muted,
.small.text-muted,
p.text-muted,
a.text-muted {
    color: var(--muted) !important;
}

.text-dark {
    color: var(--text) !important;
}

.navbar,
.bg-dark {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%) !important;
    box-shadow: 0 2px 14px rgba(236, 72, 153, 0.22);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-light) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(253, 242, 248, 0.76);
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--primary-light);
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title {
    color: var(--text);
}

.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(35, 18, 28, 0.98), rgba(18, 22, 23, 0.98));
    color: var(--text);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 168, 212, 0.68);
    box-shadow: 0 12px 24px rgba(244, 114, 182, 0.2);
}

.card.bg-transparent,
.card.border-0.bg-transparent {
    background: transparent !important;
    box-shadow: none;
}

.card-header {
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.card-footer {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid var(--border);
}

.btn-primary,
.btn-outline-primary:hover,
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-soft) 50%, var(--primary) 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.btn-primary {
    padding: 10px 25px;
    border-radius: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary) 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transform: scale(1.02);
}

.btn-outline-primary {
    color: var(--primary-light);
    border-color: var(--primary-soft);
}

.btn-outline-light {
    border-color: rgba(249, 168, 212, 0.55);
    color: var(--text);
}

.btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-secondary {
    background: #3b2631;
    border-color: rgba(249, 168, 212, 0.24);
    color: var(--text);
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, var(--accent) 100%);
    border: none;
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #34d399 0%, var(--success) 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    border: none;
}

.text-primary {
    color: var(--primary-light) !important;
}

.text-danger {
    color: #fb7185 !important;
}

.text-success {
    color: #34d399 !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.bg-primary,
.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-soft), var(--primary)) !important;
}

.bg-warning,
.badge.bg-warning {
    background: linear-gradient(135deg, #fbbf24, var(--accent)) !important;
}

.bg-success,
.badge.bg-success {
    background: linear-gradient(135deg, #34d399, var(--success)) !important;
}

.bg-info,
.badge.bg-info {
    background: linear-gradient(135deg, #7dd3fc, var(--info)) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #3b2631, #15191a) !important;
}

.bg-white,
.bg-light {
    background: var(--panel) !important;
    color: var(--text) !important;
}

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.5rem;
}

.product-card .card-body > *:last-child {
    margin-top: auto;
}

.product-card .card-body .btn {
    width: 100%;
}

.product-card .card-img-top {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    background:
        linear-gradient(145deg, rgba(75, 6, 40, 0.7), rgba(18, 22, 23, 0.96));
    transition: transform 0.3s;
}

.product-card .card-img-top.bg-secondary,
.product-card div.card-img-top {
    background:
        linear-gradient(145deg, rgba(75, 6, 40, 0.7), rgba(18, 22, 23, 0.96)) !important;
}

.product-card:hover .card-img-top {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-badges .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.product-checklist {
    text-align: left;
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.product-checklist .check-item {
    padding: 0;
}

.product-checklist .check-item.unchecked {
    opacity: 0.7;
}

.product-card-title {
    min-height: 3.35em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0.65rem 0.15rem 0.55rem !important;
    padding: 0 0.15rem;
    color: #58b8ff !important;
    font-size: 0.9rem;
    line-height: 1.26;
    font-weight: 900;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 2px 9px rgba(47, 125, 225, 0.34);
}

.product-card-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.product-card-stat {
    min-width: 0;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    line-height: 1.15;
}

.product-card-stat-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #4aa3ff;
    font-size: 0.76rem;
    font-weight: 900;
}

.product-card-stat-label i {
    color: #38a7ff;
}

.product-card-stat strong {
    max-width: 100%;
    color: #f8eaf2;
    font-size: 0.88rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.badge-code {
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
}

.badge-account {
    background: linear-gradient(135deg, #c084fc, #a855f7);
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
}

.price-original {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--muted-2);
}

.product-short-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

.stock-info {
    font-size: 0.85rem;
}

.stock-unlimited {
    color: #34d399;
}

.stock-limited {
    color: #fbbf24;
}

.stock-soldout {
    color: #fb7185;
}

.category-card {
    cursor: pointer;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(75, 6, 40, 0.82), rgba(21, 25, 26, 0.98));
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-soft);
    margin-bottom: 10px;
}

.category-card h5 {
    margin: 0;
    color: var(--text);
}

.hero-section {
    background: linear-gradient(135deg, #17020d 0%, #4b0628 55%, #6d0a3b 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 12px 34px rgba(236, 72, 153, 0.18);
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-section p {
    color: rgba(253, 242, 248, 0.88);
    opacity: 1;
    font-size: 1.1rem;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 2px solid rgba(249, 168, 212, 0.26);
    background-color: rgba(21, 25, 26, 0.96);
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: rgba(216, 189, 202, 0.62);
}

.form-control:focus,
.form-select:focus {
    background-color: #15191a;
    color: var(--text);
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2);
}

.form-label {
    color: var(--muted);
    font-weight: 600;
}

.alert {
    border-radius: 10px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
}

.alert-danger {
    background: rgba(225, 29, 72, 0.16);
    border-color: rgba(225, 29, 72, 0.28);
    color: #fecdd3;
}

.alert-info {
    background: rgba(236, 72, 153, 0.16);
    border-color: rgba(236, 72, 153, 0.28);
    color: #fbcfe8;
}

.table {
    --bs-table-bg: rgba(21, 25, 26, 0.96);
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(249, 168, 212, 0.18);
    --bs-table-striped-bg: rgba(249, 168, 212, 0.05);
    --bs-table-striped-color: var(--text);
    --bs-table-hover-bg: rgba(249, 168, 212, 0.1);
    --bs-table-hover-color: var(--text);
    border-radius: 10px;
    overflow: hidden;
    color: var(--text);
}

.table thead th {
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    color: white;
    border: none;
    font-weight: 600;
}

.modal-content {
    border-radius: 15px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
}

.modal-header {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    border-top: 1px solid var(--border);
}

.modal-header .btn-close {
    filter: invert(1);
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--muted-2);
}

.breadcrumb-item,
.breadcrumb-item.active {
    color: var(--muted);
}

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

.product-detail-image {
    border-radius: 15px;
    overflow: hidden;
    background: var(--panel);
}

.product-info h2 {
    color: var(--text);
    font-weight: 700;
}

.type-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.type-code {
    background: rgba(236, 72, 153, 0.18);
    color: var(--primary-light);
}

.type-account {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
}

.seller-info {
    position: relative;
    overflow: visible;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(249, 168, 212, 0.32);
    background:
        linear-gradient(135deg, rgba(249, 168, 212, 0.16), rgba(236, 72, 153, 0.03) 42%),
        linear-gradient(180deg, rgba(35, 18, 28, 0.96), rgba(18, 22, 23, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.24);
}

.seller-info__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.seller-profile {
    min-width: 0;
    flex: 1 1 245px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.seller-avatar {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    padding: 4px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 18%, rgba(56, 189, 248, 0.6), transparent 42%),
        linear-gradient(135deg, #22d3ee, var(--primary-light), var(--primary));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
    isolation: isolate;
}

.seller-avatar__image,
.seller-avatar__initial {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 2px solid rgba(248, 234, 242, 0.9);
}

.seller-avatar__image {
    display: block;
    object-fit: cover;
}

.seller-avatar__initial {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0891b2, #ec4899);
}

.seller-avatar__letter {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.2;
}

.seller-avatar.vip-avatar-effect-wrap {
    --vip-avatar-frame-size: 142%;
}

.seller-avatar.vip-avatar-effect-wrap {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.seller-avatar.vip-avatar-effect-wrap .seller-avatar__image,
.seller-avatar.vip-avatar-effect-wrap .seller-avatar__initial {
    border: 0;
    transform: scale(1.08);
}

.seller-details {
    min-width: 0;
    display: grid;
    gap: 0.45rem;
}

.seller-name-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.seller-name {
    max-width: 100%;
    display: inline-block;
    overflow: hidden;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.seller-name:hover {
    color: var(--primary-light);
}

.seller-level-badge {
    flex: 0 0 auto;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, var(--accent));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.seller-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.seller-stat {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(249, 168, 212, 0.18);
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.seller-stat i {
    color: var(--primary-light);
}

.seller-stat strong {
    color: var(--text);
    font-weight: 900;
}

.seller-stat--role {
    border-color: rgba(245, 158, 11, 0.38);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(236, 72, 153, 0.08));
    color: #ffe4a3;
}

.seller-stat--role i,
.seller-stat--role strong {
    color: #fbbf24;
}

.seller-actions {
    flex: 0 0 222px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.seller-action-form {
    margin: 0;
}

.seller-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-weight: 900;
    line-height: 1.15;
    white-space: normal;
}

.purchase-card {
    border-left: 4px solid var(--primary);
}

.purchase-content {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--panel);
    color: var(--text);
}

.global-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 12000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.global-toast {
    pointer-events: auto;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left-width: 4px;
    border-radius: 8px;
    background: rgba(21, 25, 26, 0.96);
    color: var(--text);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    animation: globalToastIn 0.22s ease-out;
}

.global-toast--success {
    border-left-color: var(--success);
}

.global-toast--success i:first-child {
    color: #34d399;
}

.global-toast--danger {
    border-left-color: #e11d48;
}

.global-toast--danger i:first-child {
    color: #fb7185;
}

.global-toast--warning {
    border-left-color: var(--accent);
}

.global-toast--warning i:first-child {
    color: #fbbf24;
}

.global-toast--info {
    border-left-color: var(--info);
}

.global-toast--info i:first-child {
    color: #7dd3fc;
}

.global-toast span {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.global-toast__close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.global-toast__close:hover,
.global-toast__close:focus {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.global-toast.is-hiding {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes globalToastIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 2, 13, 0.72);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dropdown-menu {
    background: var(--panel);
    border-color: var(--border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(236, 72, 153, 0.16);
    color: var(--primary-light);
}

.dropdown-item:active {
    background-color: var(--primary);
}

.dropdown-divider {
    border-top-color: rgba(249, 168, 212, 0.18);
}

.list-group-item {
    background: var(--panel);
    color: var(--text);
    border-color: rgba(249, 168, 212, 0.18);
}

.pagination .page-link {
    background: var(--panel);
    border-color: rgba(249, 168, 212, 0.2);
    color: var(--primary-light);
}

.pagination .page-link:hover {
    background: rgba(236, 72, 153, 0.16);
}

.admin-sidebar {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    min-height: 100vh;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(253, 242, 248, 0.82);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 5px 10px;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 25px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        border-radius: 0 0 20px 20px;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }

    .seller-info__inner {
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .seller-info {
        padding: 12px;
    }

    .seller-profile {
        flex: 0 1 auto;
        gap: 0.75rem;
    }

    .seller-avatar {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }

    .seller-avatar.vip-avatar-effect-wrap {
        --vip-avatar-frame-size: 126%;
    }

    .seller-details {
        gap: 0.35rem;
    }

    .seller-name-row {
        gap: 0.35rem;
    }

    .seller-name {
        font-size: 0.9rem;
    }

    .seller-level-badge {
        min-height: 20px;
        padding: 0.14rem 0.45rem;
        font-size: 0.62rem;
    }

    .seller-stats {
        gap: 0.35rem;
    }

    .seller-stat {
        min-height: 24px;
        padding: 0.22rem 0.42rem;
        border-radius: 7px;
        font-size: 0.7rem;
    }

    .seller-actions {
        flex-basis: auto;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .seller-actions .btn {
        min-height: 38px;
        padding: 0.42rem 0.55rem;
        font-size: 0.82rem;
        border-radius: 8px;
    }
}

@media (max-width: 420px) {
    .seller-info {
        padding: 10px;
    }

    .seller-profile {
        align-items: center;
        gap: 0.65rem;
    }

    .seller-avatar {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
    }

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

    .seller-actions .btn {
        min-height: 36px;
        font-size: 0.78rem;
    }

    .seller-stat {
        font-size: 0.66rem;
    }

    .seller-level-badge {
        font-size: 0.58rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2f1d27;
}

::-webkit-scrollbar-thumb {
    background: #f9a8d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f472b6;
}

/* Sakura top toolbar */
.shop-topbar {
    min-height: 70px;
    padding: 0;
    background: rgba(58, 7, 32, 0.98) !important;
    border-bottom: 1px solid rgba(249, 168, 212, 0.08);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.shop-topbar::before,
.shop-topbar::after {
    content: "✦";
    position: absolute;
    top: 6px;
    color: rgba(249, 168, 212, 0.72);
    font-size: 1.4rem;
    text-shadow: 0 0 18px rgba(244, 114, 182, 0.48);
    pointer-events: none;
}

.shop-topbar::before {
    right: 35%;
}

.shop-topbar::after {
    right: 6%;
}

.shop-topbar__inner {
    min-height: 70px;
}

.shop-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 210px;
    padding: 0;
    margin: 0;
}

.shop-brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #071a38, #030816);
    border: 1px solid rgba(249, 168, 212, 0.24);
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.24);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
}

.site-logo {
    display: block;
    height: 40px;
    max-width: 190px;
    margin-right: 10px;
    object-fit: contain;
}

.shop-brand__text--fallback {
    display: none;
}

.shop-brand__text {
    display: grid;
    gap: 0.08rem;
    line-height: 1.05;
}

.shop-brand__text strong {
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 900;
}

.shop-brand__text small {
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-nav {
    gap: 1.25rem;
}

.shop-nav .nav-link {
    min-height: 70px;
    display: inline-flex;
    align-items: center;
    padding: 0 !important;
    color: rgba(248, 234, 242, 0.68) !important;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

.shop-nav .nav-link:hover,
.shop-nav .nav-link:focus,
.shop-nav .nav-link.active {
    color: var(--primary-soft) !important;
}

.shop-actions {
    align-items: center;
    gap: 0.85rem;
    min-width: 220px;
    justify-content: flex-end;
}

.topbar-chip,
.topbar-login,
.user-toggle {
    min-height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(249, 168, 212, 0.24);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text) !important;
    font-weight: 800;
    text-decoration: none;
}

.topbar-chip {
    width: 38px;
    padding: 0;
}

.topbar-chip--cart {
    color: var(--primary-light) !important;
    font-size: 1rem;
}

.topbar-login {
    padding: 0 1rem;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-soft), var(--primary));
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.22);
}

.user-toggle {
    border: 0;
    background: transparent;
    padding: 0 !important;
    max-width: 260px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: visible;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-weight: 900;
}

.user-avatar img {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar.vip-avatar-effect-wrap {
    --vip-avatar-frame-size: 142%;
    background: transparent;
}

.user-avatar.vip-avatar-effect-wrap img {
    transform: scale(1.08);
}

.vip-avatar-effect-wrap {
    --vip-avatar-frame-size: 142%;
    position: relative;
    border-radius: 50%;
    isolation: isolate;
    overflow: visible;
}

.vip-avatar-effect-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--vip-avatar-frame-size);
    height: var(--vip-avatar-frame-size);
    z-index: 3;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.vip-avatar-effect-wrap.vip-avatar-effect-legacy::after {
    background-image: url("../../../assets/vip_frames/legacy.webp");
}

.vip-avatar-effect-wrap.vip-avatar-effect-premium::after {
    background-image: url("../../../assets/vip_frames/premium.webp");
}

.vip-avatar-effect-wrap.vip-avatar-effect-idol::after {
    background-image: url("../../../assets/vip_frames/idol.gif");
}

.vip-avatar-effect-wrap.vip-avatar-effect-level_max::after {
    background-image: url("../../../assets/vip_frames/level-max.gif");
}

.vip-avatar-effect-wrap.vip-avatar-effect-vtd_1::after {
    background-image: url("../../../assets/vip_frames/vtd-1.gif");
}

.vip-avatar-effect-wrap.vip-avatar-effect-vtd_cat::after {
    background-image: url("../../../assets/vip_frames/vtd-cat.png");
}

.vip-avatar-effect-wrap.vip-avatar-effect-vtd_verify::after {
    background-image: url("../../../assets/vip_frames/vtd-verify.gif");
}

.user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(248, 234, 242, 0.82);
    font-weight: 800;
}

.global-announcement-bar {
    position: sticky;
    top: 70px;
    z-index: 1019;
    display: flex;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    background: linear-gradient(180deg, rgba(75, 6, 40, 0.96), rgba(65, 5, 34, 0.94));
    border-bottom: 1px solid rgba(249, 168, 212, 0.1);
}

.global-announcement-marquee {
    position: relative;
    width: min(960px, 100%);
    height: 2.35rem;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(249, 168, 212, 0.18);
    background: rgba(47, 6, 27, 0.62);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.1);
}

.global-announcement-track {
    height: 100%;
    width: max-content;
    min-width: max-content;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    animation: global-marquee-scroll 20s linear infinite;
    will-change: transform;
}

.global-announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-right: 2.5rem;
    white-space: nowrap;
    color: var(--primary-soft);
    font-size: 0.82rem;
    font-weight: 900;
}

@keyframes global-marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 991.98px) {
    .shop-topbar {
        padding: 0.65rem 0;
    }

    .shop-topbar__inner,
    .shop-nav .nav-link {
        min-height: auto;
    }

    .shop-brand {
        min-width: auto;
    }

    .shop-nav {
        gap: 0.2rem;
        padding: 0.75rem 0;
    }

    .shop-nav .nav-link {
        padding: 0.55rem 0 !important;
    }

    .shop-actions {
        align-items: flex-start;
        min-width: 0;
        gap: 0.65rem;
        padding-bottom: 0.25rem;
    }

    .global-announcement-bar {
        top: 64px;
    }
}

@media (max-width: 575.98px) {
    .shop-brand__text strong {
        font-size: 1rem;
    }

    .shop-brand__text small {
        font-size: 0.66rem;
    }

    .global-announcement-marquee {
        height: 2.2rem;
    }

    .global-announcement-item {
        font-size: 0.75rem;
        margin-right: 2rem;
    }
}
