:root {
    --bg: #ffffff;
    --surface: #f4f4f4;
    --text: #1a1a1a;
    --text-muted: #666666;
    --accent: #ff4d00;
    --border: #e0e0e0;
    --black: #000000;
    --radius: 0px;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --sidebar-bg: #000000;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg);
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('Images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
.minimal-header {
    background-color: var(--bg);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.minimal-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* --- Nav Minimal --- */
.nav-minimal { flex: 1; display: flex; justify-content: center; gap: 2rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--text); font-weight: 700; font-size: 0.95rem; transition: 0.2s; }
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }
.header-search { position: relative; width: 250px; }
.header-search-input { width: 100%; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 0.85rem; outline: none; }
.header-search-input:focus { border-color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { background: none; border: none; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-family: inherit; font-size: 0.95rem; }
@media (max-width: 768px) { .nav-minimal { display: none !important; } }
.btn-black {
    background: var(--black);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-black:hover {
    background: var(--accent);
}

/* --- Intro --- */
.intro {
    margin-bottom: 4rem;
}

.intro h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.intro h1 span {
    color: var(--accent);
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    border: 2px solid var(--black);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
}

/* ─── Filter Section ─────────────────────────── */
.filter-section {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-row {
    background: #f2f2f2;
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    overflow: hidden;
}

.filter-row-hdr {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    min-width: 76px;
}

.filter-row-hdr span {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #bbb;
    white-space: nowrap;
}

/* Scale pills */
.scale-pills-wrap {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.scale-pills-wrap::-webkit-scrollbar { display: none; }

.scale-pills {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.scale-pill {
    background: #dcdcdc;
    border: none;
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    color: #555;
    transition: background 0.15s, color 0.15s;
}

.scale-pill:hover:not(.active) {
    background: #e8e8e8;
    color: #111;
}

.scale-pill.active {
    background: var(--accent);
    color: #fff;
}

/* Brand chips */
.brand-chips-outer {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.brand-chips {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 2.5rem;
    flex-wrap: nowrap;
    align-items: center;
}
.brand-chips::-webkit-scrollbar { display: none; }

.brand-chips-fade {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50px;
    background: linear-gradient(to right, transparent, #f2f2f2);
    pointer-events: none;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcdcdc;
    border: 1.5px solid transparent;
    border-radius: 50px;
    padding: 0.22rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
    min-height: 32px;
    min-width: 44px;
}

.brand-chip:hover:not(.active) {
    border-color: #aaa;
}

.brand-chip.active {
    border-color: var(--accent);
    border-width: 2px;
}

.brand-logo-img {
    height: 20px;
    width: auto;
    max-width: 76px;
    object-fit: contain;
    display: block;
}

.brand-chip-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: #444;
    white-space: nowrap;
}

.brand-chip.active .brand-chip-label {
    color: var(--accent);
}

/* backwards compat — old filter classes still used in some places */
.chip { background: #fff; border: 1px solid var(--border); border-radius: 50px; padding: 0.3rem 0.75rem; font-family: inherit; font-weight: 700; font-size: 0.78rem; cursor: pointer; white-space: nowrap; transition: 0.15s; color: var(--text-muted); }
.chip.active { background: var(--black); color: #fff; border-color: var(--black); }
.chip:hover:not(.active) { border-color: var(--black); color: var(--black); }
.filter-panel { margin-bottom: 3rem; }
.filter-panel-inner { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.filter-group-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; min-width: 0; }
.filter-group-label { font-size: 0.62rem; font-weight: 800; color: #bbb; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.filter-divider { width: 1px; height: 28px; background: var(--border); margin: 0 0.8rem; }
.filters { margin-bottom: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.filters-row { display: flex; align-items: center; gap: 1.5rem; overflow-x: auto; }
.filter-label-inline { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; min-width: 80px; }
.filter-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }


.filter-bar-scales {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.filter-bar-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #aaa;
    padding: 0 1.2rem 0 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    margin-right: 0;
}

.scale-tabs {
    display: flex;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.scale-tabs::-webkit-scrollbar { display: none; }

.scale-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.4rem;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    margin-bottom: -1px;
}

.scale-tab:hover {
    color: var(--black);
}

.scale-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.filter-bar-brands {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.filter-bar-brands .filter-bar-label {
    border-right: 1px solid var(--border);
    height: 100%;
    padding: 0.8rem 1.2rem 0.8rem 0;
}

.brand-scroll-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: 0.6rem 0 0.6rem 1rem;
}

.brand-scroll-wrap .filter-group {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 3rem;
    flex-wrap: nowrap;
}
.brand-scroll-wrap .filter-group::-webkit-scrollbar { display: none; }

.brand-scroll-fade {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
}

/* chip = brand pills inside brand scroll */
.chip {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.3rem 0.75rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.15s;
    color: var(--text-muted);
}

.chip.active {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
}

.chip:hover:not(.active) {
    border-color: var(--black);
    color: var(--black);
}

/* old filter styles compat */
.filter-panel { margin-bottom: 3rem; }
.filter-panel-inner { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.filter-group-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; min-width: 0; }
.filter-group-label { font-size: 0.62rem; font-weight: 800; color: #bbb; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.filter-divider { width: 1px; height: 28px; background: var(--border); margin: 0 0.8rem; }
.filters { margin-bottom: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.filters-row { display: flex; align-items: center; gap: 1.5rem; overflow-x: auto; }
.filter-label-inline { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; min-width: 80px; }
.filter-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* --- Grid --- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    border: 1px solid var(--border);
    padding: 1rem;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    background-color: var(--bg);
}

.card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(255, 77, 0, 0.1);
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    letter-spacing: 1px;
    z-index: 10;
}

.card:hover {
    border-color: var(--black);
    box-shadow: 10px 10px 0px var(--surface);
}

.card.featured:hover {
    border-color: var(--accent);
    box-shadow: 10px 10px 0px rgba(255, 77, 0, 0.2);
}

.card-img {
    height: 220px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #f8f8f8;
}

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

.card-brand {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    height: 24px;
}

.card-brand-logo {
    height: 100%;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: 0.2s;
}

.card:hover .card-brand-logo {
    filter: grayscale(0) opacity(1);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-scale {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Card meta row with brand + share button */
.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.card-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 4px;
    transition: 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.card-share-btn:hover {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    right: 2rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.buy-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--black);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    cursor: pointer;
}

.buy-btn:hover {
    background: var(--accent);
}

/* --- Seller & Profile --- */
.seller-line {
    margin: 0.5rem 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.seller-link {
    color: var(--text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.seller-link:hover { color: var(--accent); }

.profile-header {
    border-bottom: 2px solid var(--black);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.profile-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.profile-meta span {
    color: var(--accent);
    font-weight: 700;
}

.reviews-list h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--surface);
    margin-bottom: 1rem;
    border-left: 4px solid var(--border);
}

.review-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-user {
    font-weight: 700;
    font-size: 0.9rem;
}

.review-score {
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    color: white;
}

.score-3 { background: #2a9d8f; } /* Green */
.score-2 { background: #e9c46a; } /* Yellow */
.score-1 { background: #e63946; } /* Red */

.review-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
}

/* --- Footer --- */
.minimal-footer {
    margin-top: 5rem;
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-section p {
    color: var(--text-muted);
    max-width: 280px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-section a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: 0.2s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.credits span {
    color: var(--accent);
    font-weight: 700;
}

/* --- Modal Grid Original --- */
.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 600px;
}

.modal-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Carousel --- */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    height: 100%;
    width: 100%;
    align-items: center;
}

.carousel-img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: var(--black);
    border: none;
    padding: 1.5rem 0.8rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 5;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.9);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--black);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 6;
    transition: 0.2s;
}

.fullscreen-btn:hover {
    background: var(--accent);
}

/* --- Fullscreen Modal --- */
.fullscreen-modal {
    background-color: rgba(0, 0, 0, 0.95) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.fullscreen-modal .close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
}

.fullscreen-modal img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
}

/* --- Forms & Modals --- */
.small-modal {
    max-width: 400px;
    margin: 10% auto;
}

.modal-padding {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    font-family: inherit;
    outline: none;
    background: #fdfdfd;
}

.form-group input:focus {
    border-color: var(--black);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
    margin: 1.5rem 0;
    line-height: 20px; /* Match checkmark height for perfect baseline */
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--black);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.offer-section input {
    border: 2px solid var(--accent) !important;
    font-weight: 700;
}

.condition-badge {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0;
}

/* Responsive — modal, footer, forms */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .carousel-container {
        height: 45vh;
    }
    .modal-info {
        padding: 2.5rem 1.5rem;
    }
    .carousel-btn {
        opacity: 1;
        background: rgba(255,255,255,0.7);
        color: var(--black);
        padding: 0.8rem 0.4rem;
        font-size: 1.2rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .close {
        top: 1rem;
        right: 1rem;
        background: white;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 2100;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2100;
    transition: 0.2s;
    line-height: 1;
}

.close:hover {
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    background-color: #fcfcfc;
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    margin-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    transition: 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.socials a {
    margin-left: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
/* =====================================================
   NAVIGATION — User chip, badge, hamburger
   ===================================================== */
.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--black);
    color: white;
    padding: 0.35rem 0.8rem;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 600;
    transition: 0.2s;
    border: none;
}
.nav-user-chip:hover { background: var(--accent) !important; color: white !important; }
.nav-username { font-weight: 700; }
.nav-credits  { color: var(--accent); font-size: 0.75rem; opacity: 0.9; }
.nav-user-chip:hover .nav-credits { color: #fff; }

.nav-admin-link { color: var(--accent) !important; font-weight: 700 !important; }
.nav-logout { color: var(--text-muted) !important; }

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    margin-left: 2px;
    vertical-align: middle;
}

/* Hamburger */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.2rem;
    line-height: 1;
}

/* Admin mobile topbar */
.admin-mobile-topbar {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border, #eee);
}
.admin-mobile-logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #000;
}
.admin-logo-sub {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    margin-top: 0.2rem;
}

/* =====================================================
   SKELETON LOADER
   ===================================================== */
.skeleton-card { pointer-events: none; }
.skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    background: #e8e8e8;
}
.skeleton-line {
    background: #e8e8e8;
    border-radius: 2px;
}
.skeleton-anim {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-notif {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #eee);
    border-left: 4px solid var(--accent);
    padding: 0.9rem 1.1rem;
    min-width: 280px;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    pointer-events: all;
    animation: toastIn 0.35s cubic-bezier(0.22,1,0.36,1);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
.toast-notif.toast-fadeout {
    animation: toastOut 0.4s ease forwards;
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(60px); }
}

.toast-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.toast-body { flex: 1; min-width: 0; }
.toast-sender { font-weight: 700; font-size: 0.85rem; color: var(--text); }
.toast-preview { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.toast-link:hover { text-decoration: underline; }
.toast-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    margin-left: 0.2rem;
}

/* =====================================================
   ADMIN LAYOUT — standardized black sidebar
   ===================================================== */
/* ── Messages Layout ── */
.msg-container {
    max-width: 1200px; /* Same as header container */
    margin: 2rem auto;
    background: #fff;
    border: 1px solid #eee;
    height: 700px;
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.msg-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.chat-list {
    width: 320px;
    border-right: 1px solid #eee;
    overflow-y: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.messages-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
    background: #fdfdfd;
    opacity: 0; /* Hidden initially to avoid jump */
    transition: opacity 0.3s;
}
.messages-area.ready {
    opacity: 1;
}

@media (max-width: 768px) {
    .msg-container {
        margin: 0;
        height: calc(100vh - 70px);
        border: none;
        border-radius: 0;
    }
    .chat-list {
        width: 100%;
        display: none; /* Hide list by default on mobile if chat is open */
    }
    .chat-list.show { display: flex; }
    .chat-window { flex: 1; }
    .chat-window.hide { display: none; }
}
.admin-sidebar {
    width: 240px;
    background: #0a0a0a;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    padding: 2.5rem 1.8rem;
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.admin-sidebar-header {
    margin-bottom: 3rem;
}
.admin-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}
.admin-logo-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #444;
    margin-top: 0.25rem;
}
.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.admin-nav a {
    display: block;
    margin-bottom: 0.2rem;
    color: #666;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    transition: 0.15s;
    letter-spacing: 0.2px;
}
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.admin-nav a.active { color: #fff; font-weight: 700; background: rgba(255,255,255,0.08); }
.admin-back-link {
    margin-top: auto !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    color: var(--accent) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    background: none !important;
}

/* Admin Main Content */
.admin-content {
    margin-left: 240px;
    flex: 1;
    padding: 4rem;
    background: #fff;
    min-height: 100vh;
}

@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(-100%); width: 260px; box-shadow: none; }
    .admin-sidebar.sidebar-open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,0.3); }
    .admin-content { margin-left: 0; padding: 1.5rem 1rem; padding-top: 0; }
    .admin-mobile-topbar { display: flex; }
    .admin-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 4px;
        background: #f5f5f5;
        border: 1px solid #eee;
        color: #000;
        font-size: 1.2rem;
        cursor: pointer;
    }
}

/* Theme Picker */
.theme-picker {
    padding: 1.2rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.theme-picker-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 0.75rem;
}
.theme-picker-swatches {
    display: flex;
    gap: 0.5rem;
}
.swatch {
    width: 28px;
    height: 28px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    padding: 0;
}
.swatch-active { border-color: #fff !important; transform: scale(1.15); }
.swatch-default { background: #fff; }
.swatch-dark    { background: #7c5cfc; }
.swatch-hw      { background: linear-gradient(135deg, #e60012 50%, #f5c000 50%); }
.swatch-carbon  { background: #00ff88; }

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}
.admin-title { font-size: 1.8rem; font-weight: 700; color: var(--text, #000); }
.admin-theme-badge { font-size: 0.8rem; color: var(--text-muted, #888); background: var(--surface, #eee); padding: 0.4rem 0.8rem; }

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.stat-card {
    background: var(--bg, #fff);
    border: 1px solid var(--border, #eee);
    padding: 1.5rem 2rem;
}
.stat-card h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted, #888);
    margin-bottom: 0.5rem;
}
.stat-card .value { font-size: 2.2rem; font-weight: 800; color: var(--text, #000); }
.stat-card-accent { border-left: 4px solid var(--accent); }
.stat-card-accent .value { color: var(--accent); }

/* Admin tables */
.admin-section { margin-bottom: 3rem; }
.section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border, #eee);
    color: var(--text, #000);
}
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted, #888);
    border-bottom: 2px solid var(--border, #eee);
    white-space: nowrap;
}
.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border, #eee);
    font-size: 0.88rem;
    color: var(--text, #000);
    vertical-align: middle;
}
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--surface, #eee);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted, #555);
}
.badge-sold   { background: #e7f5ef; color: #2a9d8f; }
.badge-other  { background: #fef9e7; color: #b7950b; }
.badge-repost { background: #f0f0f0; color: #555; }

.admin-notice {
    background: #fff8f0;
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
    margin-bottom: 2rem;
    color: #555;
}
.admin-notice code { background: #f0f0f0; padding: 0.1rem 0.4rem; font-size: 0.8rem; }

/* btn-action (shared for admin tables) */
.btn-action {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.15s;
}

/* =====================================================
   RESPONSIVE — Navigation mobile
   ===================================================== */

/* ── Header Base ── */
.minimal-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.minimal-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Nav links - Desktop default */
.nav-minimal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.15s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); }

/* Utility visibility classes */
.desktop-only { display: flex !important; }
.mobile-only { display: none !important; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 0.6rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--border);
    background: #f8f8f8;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: 0.2s;
}
.header-search input:focus {
    background: #fff;
    border-color: var(--black);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.header-search-icon {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-dropdown-trigger svg {
    transition: transform 0.2s;
    color: var(--text-muted);
}
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 0.5rem 0;
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: 0.15s;
    font-weight: 500;
}
.nav-dropdown-item:hover { background: #f8f8f8; color: var(--accent); }
.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.4rem 0;
}
.nav-dropdown-item.logout { color: #999; }

/* Hide mobile-only elements on desktop */
.nav-close-btn { display: none; }
.mobile-sell-btn { display: none; }
.hamburger-btn { display: none; }

/* ── New Mobile Drawer System ── */
.mobile-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 320px;
    height: 100dvh;
    background: #fff;
    z-index: 10005;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 50px rgba(0,0,0,0.1);
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.open { right: 0; }
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 10004;
    display: none;
}
.drawer-overlay.active { display: block; }

.drawer-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.drawer-close { background: none; border: none; font-size: 2.2rem; cursor: pointer; color: #888; font-weight: 300; }
.drawer-user { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: #fafafa; border-radius: 12px; margin-bottom: 2rem; text-decoration: none; color: inherit; }
.drawer-avatar { width: 45px; height: 45px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: 0.9rem; }
.drawer-username { font-weight: 800; font-size: 1.1rem; flex: 1; }
.drawer-credits { color: var(--accent); font-weight: 700; font-size: 0.9rem; }

.drawer-link { display: block; padding: 1.1rem 0; font-weight: 700; color: #111; text-decoration: none; border-bottom: 1px solid #f5f5f5; font-size: 1rem; transition: 0.2s; background: none; border: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.drawer-link:hover { color: var(--accent); padding-left: 10px; }
.drawer-divider { height: 1.5rem; }
.drawer-sell-btn { width: 100%; background: var(--accent); color: #fff; border: none; padding: 0.9rem; border-radius: 8px; font-weight: 800; font-size: 0.9rem; cursor: pointer; margin-top: 1rem; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 6px 15px rgba(230, 57, 70, 0.15); }
.drawer-logout { display: block; margin-top: auto; padding: 1.5rem 0; color: #999; font-weight: 700; text-decoration: none; font-size: 0.85rem; border-top: 1px solid #eee; }

@media (max-width: 768px) {
    .header-search.desktop-only, .nav-dropdown.desktop-only, .nav-link.desktop-only, .btn-black.desktop-only { display: none !important; }
    .hamburger-btn { display: flex !important; }
    
    .msg-container { margin: 0; height: 100dvh; border: none; border-radius: 0; width: 100% !important; max-width: none !important; }
    .chat-list { width: 100%; display: none; }
    .chat-list.show { display: flex; }
    .chat-window { flex: 1; }
    .chat-window.hide { display: none; }
    
    .messages-area { padding: 1.5rem 1rem; }
    .msg-bubble { 
        max-width: 85% !important; 
        margin: 0.5rem 1rem !important; 
    }
    .msg-sent { align-self: flex-end; margin-right: 1.5rem !important; }
    .msg-received { align-self: flex-start; margin-left: 1.5rem !important; }
}


/* =====================================================
   RESPONSIVE — Admin Panel mobile
   ===================================================== */
@media (max-width: 992px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 0.5rem 0.6rem; }
    .admin-topbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 1.5rem; }
}
@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-card { padding: 1rem; }
    .stat-card .value { font-size: 1.6rem; }
}
/* --- Banner --- */
.ban-banner {
    background: #e63946;
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Fix z-indexes */
.nav-overlay { z-index: 999; }
.nav-minimal { z-index: 1000; }
.hamburger-btn { z-index: 1001; }

/* Admin Overlay Fix */
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
}
.admin-overlay.active { display: block; }

/* --- Message Product Preview --- */
.msg-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none !important;
    color: #111 !important;
    max-width: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.msg-product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.msg-product-img {
    width: 100%;
    aspect-ratio: 1.6;
    background-size: cover;
    background-position: center;
    background-color: #f8f8f8;
}
.msg-product-body { padding: 0.8rem; }
.msg-product-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111 !important;
}
.msg-product-price { font-weight: 800; color: var(--accent); font-size: 0.8rem; }

/* --- Message Bubbles Base --- */
.msg-bubble { 
    max-width: 85% !important; 
    padding: 1rem 1.2rem; 
    border-radius: 1.2rem; 
    font-size: 0.95rem; 
    line-height: 1.5; 
    position: relative; 
    word-wrap: break-word; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.b-system {
    background: #fff8f5 !important;
    border: 1px dashed var(--accent) !important;
    color: #111 !important;
    align-self: center !important;
    max-width: 90% !important;
    text-align: center;
}
.msg-sent { 
    align-self: flex-end; 
    background: #111 !important; 
    color: #fff !important; 
    border-bottom-right-radius: 0.2rem; 
}
.msg-rec { 
    align-self: flex-start; 
    background: #f3f3f3 !important; 
    color: #111 !important; 
    border-bottom-left-radius: 0.2rem; 
}
.msg-text { color: inherit !important; display: block; }

/* Fix profile listing titles being blue */
.card {
    text-decoration: none !important;
    color: inherit !important;
}
.card-title {
    color: #111 !important;
}

/* User chip styling from index.php */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.nav-credits {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

/* =====================================================
   ADMIN PANEL STYLES
   ===================================================== */
.admin-layout { display: flex; min-height: 100vh; background: var(--surface); position: relative; z-index: 10001; }
.admin-sidebar { width: 260px; background: #000; color: #fff; padding: 2.5rem 1.5rem; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 10002; transition: transform 0.3s ease; }
.admin-content { flex: 1; margin-left: 260px; padding: 4rem; min-width: 0; background: var(--surface); min-height: 100vh; }
.admin-layout ~ .minimal-header { display: none !important; }
body:has(.admin-layout) .minimal-header { display: none !important; }

.admin-sidebar-header { margin-bottom: 3rem; }
.admin-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.admin-logo-sub { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-top: 0.3rem; }

.admin-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-nav a { color: #888; text-decoration: none; padding: 0.8rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem; transition: 0.2s; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-nav a.active { color: #fff; background: var(--accent); }
.admin-back-link { margin-top: 2rem; border-top: 1px solid #222; padding-top: 2rem !important; color: var(--accent) !important; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card { background: #fff; padding: 2rem; border-radius: 16px; border: 1px solid #eee; transition: 0.2s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.stat-card h3 { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: #000; }
.stat-card-accent { border-left: 4px solid var(--accent); }

.admin-section { background: #fff; border-radius: 16px; border: 1px solid #eee; padding: 2rem; margin-bottom: 2rem; }
.section-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.5px; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 1rem; font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #eee; }
.admin-table td { padding: 1.2rem 1rem; font-size: 0.9rem; border-bottom: 1px solid #fafafa; }
.admin-table tr:last-child td { border-bottom: none; }

.btn-action { padding: 0.5rem 0.8rem; border-radius: 6px; border: none; font-family: inherit; font-weight: 800; font-size: 0.65rem; cursor: pointer; text-decoration: none; display: inline-block; transition: 0.2s; }
.btn-action:hover { opacity: 0.8; transform: scale(1.05); }

.admin-mobile-topbar { display: none; padding: 1rem 1.5rem; background: #000; color: #fff; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 150; }
.admin-hamburger { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.sidebar-open { transform: translateX(0); }
    .admin-content { margin-left: 0; padding: 2rem 1.5rem; }
    .admin-mobile-topbar { display: flex; }
}

/* Review System Styles */
.rev-score-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    transition: 0.2s;
}
.rev-score-label:hover {
    background: #fafafa;
    border-color: var(--accent);
}
.rev-score-label input {
    margin-bottom: 0.2rem;
}
.footer-link { text-decoration: none; color: #666; font-size: 0.9rem; transition: 0.2s; font-weight: 500; }
.footer-link:hover { color: var(--accent); padding-left: 5px; }
.footer-tag { text-decoration: none; background: #f5f5f5; color: #666; padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; transition: 0.2s; }
.footer-tag:hover { background: #000; color: #fff; transform: translateY(-2px); }

/* ─── Pagination ─────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 3rem 0 2rem;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #fff;
    border: 1.5px solid var(--border);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.active):not(.disabled) {
    border-color: var(--black);
    background: var(--surface);
    transform: translateY(-1px);
}

.page-btn.active {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 40px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.page-info {
    margin-left: 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Skeleton cards */
.skeleton-card { pointer-events: none; }
.skeleton-img {
    height: 220px;
    background: #eee;
    margin-bottom: 1rem;
}
.skeleton-line {
    background: #eee;
    border-radius: 2px;
}
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.skeleton-anim {
    animation: skeleton-pulse 1.4s ease-in-out infinite;
}

