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

:root {
    --cream: #f7edd8;
    --cream-dark: #e8d9bf;
    --brown: #2a1f10;
    --brown-light: #4d3b28;
    --rust: #b5322a;
    --rust-light: #d4453d;
    --gold: #d4a04a;
    --gold-light: #e8bc5e;
    --tan: #b89a6a;
    --forest: #2d6b4f;
    --warm-white: #faf0dc;
    --mustard: #e6a817;
    --terracotta: #c65d2a;
    --sage: #6b9e6e;
    --dusty-rose: #c4887a;
    --warm-gray: #a89a8c;
    --paper: #f0e2c6;
    --teal: #1a7a7a;
    --vinyl-black: #111111;
    --honey: #d4882a;
    --neon-red: #ff3b3b;
    --vintage-red: #b5322a;
    --deep-amber: #c47a20;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --cream: #17130e;
    --cream-dark: #2a231a;
    --brown: #f0e4d1;
    --brown-light: #d4c8b0;
    --warm-white: #1c170f;
    --paper: #231d14;
    --tan: #cbb894;
    --teal: #2ab5a0;
    --honey: #e8a030;
    --vintage-red: #e04444;
    --gold-light: #e6c87a;
}

html { scroll-behavior: smooth; }
html.no-smooth-scroll { scroll-behavior: auto !important; }

body {
    min-width: 0;
}

/* Clip horizontal overflow without breaking position:sticky */
html { overflow-x: clip; }

body {
    overflow-x: hidden;
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--brown);
    transition: background 0.3s, color 0.3s;
}

::selection {
    background: var(--terracotta);
    color: #fff;
}

/* Grain overlay — analog texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.07;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: multiply;
}

/* ==========================================
   TOAST NOTIFICATIONS
========================================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, #2a1f10, #3d2e18);
    color: #faf0dc;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,160,74,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s;
}

[data-theme="dark"] .toast {
    background: linear-gradient(135deg, #3d3020, #4d3e28);
    color: #f5ead6;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,160,74,0.2);
}

.toast.success { border-left: 4px solid var(--forest); }
.toast.info { border-left: 4px solid var(--gold); }
.toast.alert { border-left: 4px solid var(--rust); }

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.75rem;
    opacity: 0.8;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 5px;
}

.toast-close:hover { opacity: 1; }

.toast.removing {
    animation: slideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ==========================================
   IMAGE LIGHTBOX
========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    overscroll-behavior: contain;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-image {
    width: min(500px, 85vw);
    height: min(500px, 85vw);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255,255,255,0.2);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: var(--rust);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.lightbox-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================
   MODAL SYSTEM
========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--cream);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,160,74,0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cream-dark);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--terracotta);
    color: white;
}

/* ==========================================
   NOW SPINNING LIVE FEED - Top Banner
========================================== */
.now-spinning-banner {
    background: linear-gradient(90deg, #2a1f10, #3d2e18, #2a1f10);
    color: #faf0dc;
    padding: 12px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    transition: background 0.3s, color 0.3s;
    min-width: 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}

[data-theme="dark"] .now-spinning-banner {
    background: linear-gradient(90deg, #0a0806, #111, #0a0806);
    color: #f5f0e6;
}

.now-spinning-banner .pulse {
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.now-spinning-banner span {
    color: var(--tan);
}

.now-spinning-banner strong {
    color: var(--gold);
    transition: opacity 0.3s;
}

/* ==========================================
   HEADER
========================================== */
header {
    position: sticky;
    top: 38px;
    z-index: 1000;
    padding: 20px 50px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: var(--cream);
    border-bottom: 2px solid var(--cream-dark);
    transition: background 0.3s, border-color 0.3s;
    box-shadow: 0 2px 20px rgba(42, 31, 16, 0.08);
    min-width: 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--brown);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 1px 1px 0 rgba(212, 160, 74, 0.3);
}

.logo:hover { color: var(--terracotta); text-shadow: 2px 2px 0 rgba(198, 93, 42, 0.25); }

.logo .tagline {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    text-shadow: none;
    margin-top: -2px;
}

nav {
    display: flex;
    gap: 30px;
    justify-self: center;
}

nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brown-light);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover, nav a.active { color: var(--terracotta); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--cream-dark);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.25s;
    color: var(--brown);
}

.icon-btn:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: rgba(198, 93, 42, 0.06);
    transform: scale(1.05);
}

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--rust), #d4453d);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(181, 50, 42, 0.4);
}
.icon-btn .badge:empty,
.icon-btn .badge[data-count="0"] {
    display: none;
}

.theme-toggle {
    font-size: 1rem;
}

.cart-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    background: linear-gradient(135deg, var(--brown) 0%, #3d2e18 100%);
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(42, 31, 16, 0.3);
    border: none;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
}

[data-theme="dark"] .cart-btn {
    background: linear-gradient(135deg, var(--rust) 0%, #d4453d 100%);
    color: white;
}

.cart-btn:hover { background: linear-gradient(135deg, var(--rust) 0%, var(--terracotta) 100%); color: white; transform: translateY(-1px); box-shadow: 0 5px 15px rgba(181, 50, 42, 0.3); }

/* ==========================================
   HERO
========================================== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 50px 80px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--cream);
}

[data-theme="dark"] .hero-bg {
    background: var(--cream);
}

/* SVG collage background — hidden for plain hero */
.hero-collage {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.hero-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.hero-tag::before {
    content: '';
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--brown);
    text-shadow: 2px 2px 0 rgba(212, 160, 74, 0.15);
}

.hero-title em {
    font-style: italic;
    color: var(--terracotta);
    text-shadow: 2px 3px 0 rgba(198, 93, 42, 0.15);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--brown-light);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Turntable removed — clean hero */

/* Offset anchor scroll so sticky header doesn't cover section titles */
section[id] {
    scroll-margin-top: 120px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--rust) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(181, 50, 42, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--mustard), var(--gold));
    color: #1a1408;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--mustard) 0%, var(--gold) 100%);
    color: var(--brown);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 160, 74, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--brown);
    border: 2px solid var(--brown);
    border-radius: 8px;
}

.btn-secondary:hover {
    background: var(--brown);
    color: var(--cream);
    border-color: var(--brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 31, 16, 0.2);
}

[data-theme="dark"] .btn-secondary {
    border-color: var(--tan);
    color: var(--tan);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

/* ==========================================
   VIRTUAL CRATE DIGGING
========================================== */
.crate-section {
    padding: 100px 50px;
    background: url('../images/music-wall.jpg') center/cover no-repeat;
    color: #faf0dc;
    transition: color 0.3s;
    position: relative;
}

/* Dark warm overlay on photo background */
.crate-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 22, 10, 0.88);
    z-index: 0;
    pointer-events: none;
}

.crate-section > * {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .crate-section {
    color: #f5f0e6;
}

[data-theme="dark"] .crate-section::before {
    background: rgba(8, 6, 3, 0.78);
}

.crate-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.crate-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(212, 160, 74, 0.4);
}

.crate-header h2 em {
    color: var(--gold-light);
    font-style: italic;
}

.crate-header p {
    color: #e8dcc8;
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Genre tabs for crate */
.crate-genre-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.crate-genre-tab {
    padding: 10px 24px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    color: #f0e4d1;
}

.crate-genre-tab:hover, .crate-genre-tab.active {
    background: linear-gradient(135deg, var(--mustard), var(--gold));
    border-color: var(--mustard);
    color: var(--brown);
    box-shadow: 0 3px 12px rgba(230, 168, 23, 0.3);
    transform: translateY(-1px);
}

/* Alphabet strip */
.crate-alphabet {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.crate-letter {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: #f0e4d1;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crate-letter:hover, .crate-letter.active {
    background: linear-gradient(135deg, var(--terracotta), var(--rust));
    color: white;
    box-shadow: 0 3px 10px rgba(198, 93, 42, 0.3);
    transform: scale(1.1);
}

.crate-letter.disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.crate-letter .letter-count {
    display: none;
}

/* Crate display area */
.crate-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.crate-current-letter {
    text-align: center;
    margin-bottom: 10px;
}

.crate-current-letter span {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.25;
    text-shadow: 0 0 30px rgba(212, 160, 74, 0.3);
}

/* Horizontal scrollable record strip */
.crate-records-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 60px 40px 30px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,164,92,0.3) transparent;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    position: relative;
}

.crate-records-strip:active {
    cursor: grabbing;
}

.crate-records-strip::-webkit-scrollbar {
    height: 6px;
}
.crate-records-strip::-webkit-scrollbar-track {
    background: transparent;
}
.crate-records-strip::-webkit-scrollbar-thumb {
    background: rgba(201,164,92,0.3);
    border-radius: 3px;
}

.crate-record {
    flex-shrink: 0;
    width: 160px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
    position: relative;
}

.crate-record:hover {
    transform: translateY(-40px) scale(1.1);
    z-index: 10;
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.6));
}

.crate-record-inner {
    width: 100%;
    aspect-ratio: 1;
    background: var(--cream);
    border-radius: 4px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

.crate-record-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}

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

.crate-record-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4) 70%, transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.25s;
}

.crate-record:hover .crate-record-info {
    opacity: 1;
}

.crate-record-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crate-record-info p {
    font-size: 0.65rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crate-record-count {
    text-align: center;
    margin-top: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #c4b8a0;
    opacity: 0.7;
}

.crate-empty {
    text-align: center;
    padding: 80px 20px;
    color: #d4c8b0;
    font-size: 0.9rem;
}

.crate-empty span {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Fade edges of the strip */
.crate-strip-wrapper {
    position: relative;
}
.crate-strip-wrapper::before,
.crate-strip-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}
.crate-strip-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #1a1408, transparent);
}
.crate-strip-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #1a1408, transparent);
}
[data-theme="dark"] .crate-strip-wrapper::before {
    background: linear-gradient(to right, #080604, transparent);
}
[data-theme="dark"] .crate-strip-wrapper::after {
    background: linear-gradient(to left, #080604, transparent);
}

/* ==========================================
   PRODUCT GRID
========================================== */
.section {
    padding: 100px 50px;
    position: relative;
}

/* New Arrivals section gets a warm gradient background */
#shop {
    background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 30%, var(--paper) 100%);
}
[data-theme="dark"] #shop {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    position: relative;
}

/* Decorative underline for section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold));
    margin-top: 10px;
    border-radius: 2px;
}

.section-title em {
    font-style: italic;
    color: var(--rust);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--tan);
    margin-top: 8px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 2px solid var(--cream-dark);
    background: transparent;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s;
    border-radius: 6px;
    color: var(--brown);
}

.filter-tab:hover, .filter-tab.active {
    background: linear-gradient(135deg, var(--terracotta), var(--rust));
    border-color: var(--terracotta);
    color: #fff;
    box-shadow: 0 3px 10px rgba(198, 93, 42, 0.25);
    transform: translateY(-1px);
}

[data-theme="dark"] .filter-tab:hover,
[data-theme="dark"] .filter-tab.active {
    background: linear-gradient(135deg, var(--mustard), var(--gold));
    border-color: var(--mustard);
    color: var(--brown);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    position: relative;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
    z-index: 10;
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--cream-dark);
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(42, 31, 16, 0.12), 0 2px 8px rgba(42, 31, 16, 0.06);
    border: 1px solid rgba(42, 31, 16, 0.06);
    transition: box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover .product-image {
    overflow: visible;
    box-shadow: 0 15px 40px rgba(42, 31, 16, 0.2), 0 5px 15px rgba(198, 93, 42, 0.1);
    border-color: rgba(198, 93, 42, 0.15);
}

.product-vinyl {
    position: absolute;
    width: 85%;
    height: 85%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.product-card:hover .product-vinyl {
    right: -38%;
    transform: translateY(-50%) rotate(20deg);
}

.product-vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Grooves overlay — subtle concentric rings */
.product-vinyl-disc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 17%, rgba(255,255,255,0.03) 17.5%, transparent 18%),
        radial-gradient(circle at center, transparent 24%, rgba(255,255,255,0.02) 24.3%, transparent 24.6%),
        radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.03) 30.3%, transparent 30.6%),
        radial-gradient(circle at center, transparent 36%, rgba(255,255,255,0.02) 36.3%, transparent 36.6%),
        radial-gradient(circle at center, transparent 42%, rgba(255,255,255,0.03) 42.3%, transparent 42.6%),
        radial-gradient(circle at center, transparent 48%, rgba(255,255,255,0.02) 48.3%, transparent 48.6%),
        radial-gradient(circle at center, transparent 54%, rgba(255,255,255,0.03) 54.3%, transparent 54.6%),
        radial-gradient(circle at center, transparent 60%, rgba(255,255,255,0.02) 60.3%, transparent 60.6%),
        radial-gradient(circle at center, transparent 66%, rgba(255,255,255,0.03) 66.3%, transparent 66.6%),
        radial-gradient(circle at center, transparent 72%, rgba(255,255,255,0.02) 72.3%, transparent 72.6%),
        radial-gradient(circle at center, transparent 78%, rgba(255,255,255,0.03) 78.3%, transparent 78.6%),
        radial-gradient(circle at center, transparent 84%, rgba(255,255,255,0.02) 84.3%, transparent 84.6%),
        radial-gradient(circle at center, transparent 90%, rgba(255,255,255,0.03) 90.3%, transparent 90.6%),
        radial-gradient(circle at center, transparent 96%, rgba(255,255,255,0.02) 96.3%, transparent 96.6%);
    z-index: 1;
    pointer-events: none;
}

/* Light reflection sheen */
.product-vinyl-disc::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.04) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Center label */
.vinyl-label {
    position: absolute;
    width: 36%;
    height: 36%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 3;
    overflow: hidden;
    background: #333;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
.vinyl-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Spindle hole */
.vinyl-label::after {
    content: '';
    position: absolute;
    width: 12%;
    height: 12%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--cream-dark, #e8ddd0);
    box-shadow: inset 0 0 2px rgba(0,0,0,0.4);
    z-index: 4;
}
[data-theme="dark"] .vinyl-label::after {
    background: #1a1a1a;
}

/* Vinyl Color Variations */
.vinyl-black {
    background: 
        radial-gradient(circle at center, #1a1a1a 18%, transparent 18.5%),
        radial-gradient(circle at center, #222 22%, transparent 22.5%),
        conic-gradient(from 0deg, #1a1a1a, #111, #1a1a1a, #0f0f0f);
}

.vinyl-red {
    background: 
        radial-gradient(circle at center, #1a1a1a 18%, transparent 18.5%),
        radial-gradient(circle at center, #222 22%, transparent 22.5%),
        conic-gradient(from 0deg, #8b0000, #a52a2a, #8b0000, #5c1a1a);
}

.vinyl-blue {
    background: 
        radial-gradient(circle at center, #1a1a1a 18%, transparent 18.5%),
        radial-gradient(circle at center, #222 22%, transparent 22.5%),
        conic-gradient(from 0deg, #1a3a5c, #2a5a8c, #1a3a5c, #0f2a4c);
}

.vinyl-gold {
    background: 
        radial-gradient(circle at center, #1a1a1a 18%, transparent 18.5%),
        radial-gradient(circle at center, #222 22%, transparent 22.5%),
        conic-gradient(from 0deg, #8a7040, #c9a45c, #8a7040, #6a5030);
}

.vinyl-splatter {
    background: 
        radial-gradient(circle at center, #1a1a1a 18%, transparent 18.5%),
        radial-gradient(circle at 30% 30%, #c45c3e 2%, transparent 3%),
        radial-gradient(circle at 70% 40%, #c45c3e 1.5%, transparent 2.5%),
        radial-gradient(circle at 50% 70%, #c45c3e 2.5%, transparent 3.5%),
        radial-gradient(circle at 25% 60%, #c45c3e 1%, transparent 2%),
        conic-gradient(from 0deg, #1a1a1a, #111, #1a1a1a, #0f0f0f);
}

.product-cover {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
    overflow: hidden;
}

.product-card:hover .product-cover {
    transform: translateX(-12px);
}

.product-cover-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.3);
    position: relative;
}

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

.cover-1 { background: linear-gradient(135deg, #5c4a3a 0%, #3d3225 100%); }
.cover-2 { background: linear-gradient(135deg, #c96f3c 0%, #8b4a2a 100%); }
.cover-3 { background: linear-gradient(135deg, #c9a45c 0%, #8a7040 100%); }
.cover-4 { background: linear-gradient(135deg, #3d4a3a 0%, #2a332a 100%); }
.cover-5 { background: linear-gradient(135deg, #6b5344 0%, #4a3830 100%); }
.cover-6 { background: linear-gradient(135deg, #8b6b4a 0%, #5c4a3a 100%); }
.cover-7 { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); }
.cover-8 { background: linear-gradient(135deg, #744210 0%, #553311 100%); }

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

.product-badge {
    background: linear-gradient(135deg, var(--terracotta), var(--rust));
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-badge.new { background: linear-gradient(135deg, var(--sage), var(--forest)); }
.product-badge.vinyl-color { background: linear-gradient(135deg, var(--mustard), var(--gold)); color: var(--brown); }
.product-badge.price-drop { background: linear-gradient(135deg, var(--rust), #d4453d); animation: pulseBadge 2s infinite; }

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    transition: all 0.25s;
    backdrop-filter: blur(4px);
}

.product-action-btn:hover {
    background: linear-gradient(135deg, var(--terracotta), var(--rust));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(198, 93, 42, 0.3);
}

.product-action-btn.in-wishlist {
    background: var(--terracotta);
    color: white;
}

.product-action-btn.in-collection {
    background: var(--sage);
    color: white;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--brown);
}

.product-info .artist {
    font-size: 0.75rem;
    color: var(--tan);
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.product-info .artist:hover {
    color: var(--rust);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rust);
}

.product-price .original {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.75rem;
    margin-left: 5px;
}

.product-condition {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--forest);
    background: rgba(45, 107, 79, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}
[data-theme="dark"] .product-condition {
    color: #5ec490;
    background: rgba(45, 107, 79, 0.2);
}

/* ==========================================
   ALBUM DETAIL MODAL
========================================== */
.album-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.album-artwork {
    position: relative;
    background: var(--cream-dark);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.album-artwork-main {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    cursor: zoom-in;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.album-artwork-main:hover {
    transform: scale(1.02);
}

.album-artwork-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tan);
    margin-top: 4px;
}

.album-artwork-secondary {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.album-artwork-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.album-vinyl-display {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}
.album-vinyl-display::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 17%, rgba(255,255,255,0.03) 17.5%, transparent 18%),
        radial-gradient(circle at center, transparent 24%, rgba(255,255,255,0.02) 24.3%, transparent 24.6%),
        radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.03) 30.3%, transparent 30.6%),
        radial-gradient(circle at center, transparent 36%, rgba(255,255,255,0.02) 36.3%, transparent 36.6%),
        radial-gradient(circle at center, transparent 42%, rgba(255,255,255,0.03) 42.3%, transparent 42.6%),
        radial-gradient(circle at center, transparent 48%, rgba(255,255,255,0.02) 48.3%, transparent 48.6%),
        radial-gradient(circle at center, transparent 54%, rgba(255,255,255,0.03) 54.3%, transparent 54.6%),
        radial-gradient(circle at center, transparent 60%, rgba(255,255,255,0.02) 60.3%, transparent 60.6%),
        radial-gradient(circle at center, transparent 66%, rgba(255,255,255,0.03) 66.3%, transparent 66.6%),
        radial-gradient(circle at center, transparent 72%, rgba(255,255,255,0.02) 72.3%, transparent 72.6%),
        radial-gradient(circle at center, transparent 78%, rgba(255,255,255,0.03) 78.3%, transparent 78.6%),
        radial-gradient(circle at center, transparent 84%, rgba(255,255,255,0.02) 84.3%, transparent 84.6%),
        radial-gradient(circle at center, transparent 90%, rgba(255,255,255,0.03) 90.3%, transparent 90.6%);
    z-index: 1;
    pointer-events: none;
}
.album-vinyl-display::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.04) 100%);
    z-index: 2;
    pointer-events: none;
}
.album-vinyl-display .vinyl-label {
    position: absolute;
    width: 36%;
    height: 36%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 3;
    overflow: hidden;
    background: #333;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
.album-vinyl-display .vinyl-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.album-vinyl-display .vinyl-label::after {
    content: '';
    position: absolute;
    width: 12%;
    height: 12%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--cream-dark, #e8ddd0);
    box-shadow: inset 0 0 2px rgba(0,0,0,0.4);
    z-index: 4;
}
[data-theme="dark"] .album-vinyl-display .vinyl-label::after {
    background: #1a1a1a;
}

.album-artwork-thumbs { display: none; }

.album-details {
    padding: 40px;
}

.album-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.album-details .artist {
    font-size: 1.1rem;
    color: var(--tan);
    margin-bottom: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.album-details .artist:hover {
    color: var(--rust);
}

.album-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.album-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--brown-light);
}

.album-meta-item strong {
    color: var(--brown);
}

/* Condition Grading */
.condition-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--cream-dark);
    border-radius: 8px;
}

.condition-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.condition-section h4 .help-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tan);
    color: white;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.condition-grades {
    display: flex;
    gap: 8px;
}

.condition-grade {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--cream);
    background: var(--cream);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.condition-grade:hover, .condition-grade.selected {
    border-color: var(--forest);
    background: rgba(61, 74, 58, 0.1);
}

.condition-grade .grade {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--forest);
}

.condition-grade .label {
    font-size: 0.6rem;
    color: var(--tan);
    margin-top: 2px;
}

.condition-grade .price {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rust);
    margin-top: 5px;
}

.album-price-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.album-price {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rust);
    text-shadow: 0 1px 3px rgba(181, 50, 42, 0.15);
}

.album-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.album-actions .btn {
    flex: 1;
}

/* Pickup Option in Modal */
.pickup-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(61, 74, 58, 0.1);
    border-radius: 8px;
    margin-bottom: 25px;
    cursor: pointer;
}

.pickup-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--forest);
}

.pickup-option-text {
    flex: 1;
}

.pickup-option-text strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.pickup-option-text span {
    font-size: 0.75rem;
    color: var(--tan);
}

.pickup-savings {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--forest);
}

/* Sounds Like Recommendations */
.sounds-like {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--cream-dark);
}

.sounds-like h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    color: var(--tan);
}

.sounds-like-grid {
    display: flex;
    gap: 15px;
}

.sounds-like-item {
    width: 80px;
    cursor: pointer;
}

.sounds-like-item img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.sounds-like-cover {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
}

.sounds-like-item h5 {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
}

.sounds-like-item p {
    font-size: 0.6rem;
    color: var(--tan);
}

/* Reviews Section */
.reviews-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--cream-dark);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reviews-header h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.review-card {
    padding: 15px;
    background: var(--cream-dark);
    border-radius: 8px;
    margin-bottom: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer {
    font-weight: 600;
    font-size: 0.85rem;
}

.review-date {
    font-size: 0.7rem;
    color: var(--tan);
}

.review-stars {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.review-text {
    font-size: 0.85rem;
    color: var(--brown-light);
    line-height: 1.6;
}

/* ==========================================
   CONDITION GRADING GUIDE MODAL
========================================== */
.grading-modal {
    padding: 40px;
}

.grading-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.grading-modal > p {
    color: var(--tan);
    margin-bottom: 30px;
}

.grading-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grading-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 20px;
    background: var(--cream-dark);
    border-radius: 8px;
}

.grading-item .grade-badge {
    width: 60px;
    height: 60px;
    background: var(--forest);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.grading-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.grading-item p {
    font-size: 0.85rem;
    color: var(--brown-light);
    line-height: 1.6;
}

/* ==========================================
   WISHLIST & COLLECTION SIDEBAR
========================================== */
.sidebar-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--cream);
    z-index: 4000;
    box-shadow: -10px 0 50px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--terracotta);
    overscroll-behavior: contain;
}

.sidebar-panel.active {
    right: 0;
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid var(--cream-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--cream-dark);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.sidebar-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--tan);
}

.sidebar-empty svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--cream-dark);
    border-radius: 8px;
    margin-bottom: 10px;
}

.sidebar-item-image {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
}

.sidebar-item-info {
    flex: 1;
}

.sidebar-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.sidebar-item-info p {
    font-size: 0.75rem;
    color: var(--tan);
}

.sidebar-item-info .price {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rust);
    margin-top: 5px;
}

.sidebar-item-info .price-alert {
    font-size: 0.65rem;
    color: var(--forest);
    margin-top: 3px;
}

.sidebar-item-remove {
    background: none;
    border: none;
    color: var(--tan);
    cursor: pointer;
    padding: 5px;
}

.sidebar-item-remove:hover {
    color: var(--rust);
}

/* ==========================================
   NEWSLETTER / NOTIFICATIONS
========================================== */
.newsletter-section {
    background: url('../images/hero-records.jpg') center/cover no-repeat;
    padding: 80px 50px;
    color: #faf0dc;
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 22, 10, 0.88);
    z-index: 0;
}

.newsletter-section > * {
    position: relative;
    z-index: 1;
}

.newsletter-section h2,
.newsletter-section h3 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.newsletter-section p,
.newsletter-section label {
    color: #e8dcc8;
}

[data-theme="dark"] .newsletter-section::before {
    background: rgba(8, 6, 3, 0.78);
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #faf0dc;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.newsletter-content h2 em {
    color: var(--mustard);
    font-style: italic;
}

.newsletter-content p {
    color: #d4c8b0;
    margin-bottom: 25px;
    line-height: 1.8;
}

.notification-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.notification-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.notification-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--rust);
}

.notification-option span {
    font-size: 0.9rem;
    color: #d4c8b0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 8px;
    outline: none;
    color: #faf0dc;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.45);
}

.newsletter-form input:focus {
    border-color: var(--mustard);
    background: rgba(255,255,255,0.12);
}

.pickup-info {
    background: rgba(255,255,255,0.06);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

.pickup-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #faf0dc;
}

.pickup-info p {
    color: #d4c8b0;
    margin-bottom: 15px;
    line-height: 1.8;
}

.pickup-badge {
    display: inline-block;
    background: var(--sage);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
[data-theme="dark"] .pickup-badge {
    background: var(--teal);
}

/* ==========================================
   MINI PLAYER
========================================== */
.mini-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 260px;
    z-index: 999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.4s ease,
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Collapsed / bar mode ---- */
.mini-player.collapsed {
    bottom: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
}

.mini-player.collapsed .player-dropzone {
    border-radius: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 58px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* Smoothly fade/shrink inner elements instead of display:none snap */
.player-header,
.player-turntable,
.player-progress,
.player-time {
    /* Expanding: delay opacity so box grows first, then contents fade in */
    transition: opacity 0.3s ease 0.2s, max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin 0.4s ease, padding 0.4s ease;
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
}

.mini-player.collapsed .player-header,
.mini-player.collapsed .player-turntable,
.mini-player.collapsed .player-progress,
.mini-player.collapsed .player-time {
    /* Collapsing: fade out fast first, then shrink */
    transition: opacity 0.2s ease, max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, margin 0.4s ease 0.1s, padding 0.4s ease 0.1s;
    opacity: 0;
    max-height: 0;
    max-width: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    border: none;
    overflow: hidden;
}

.now-playing-info {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-player.collapsed .now-playing-info {
    flex: 1;
    text-align: left;
    padding: 0;
    min-height: auto;
    min-width: 0;
    overflow: hidden;
}

.mini-player.collapsed .now-playing-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #faf0dc;
    line-height: 1.3;
}

.mini-player.collapsed .now-playing-artist {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--tan);
    line-height: 1.3;
}

.mini-player.collapsed .now-playing-empty {
    font-size: 0.7rem;
    color: #666;
}

/* ---- Hide/show toggle button ---- */
.player-collapse-btn {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 16px;
    border: none;
    background: linear-gradient(145deg, #5c4a3a 0%, #3d3225 100%);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tan);
    font-size: 0.5rem;
    z-index: 5;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.player-collapse-btn:hover {
    color: var(--gold);
}
.player-collapse-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mini-player.collapsed .player-collapse-btn {
    top: -18px;
    width: 40px;
    height: 20px;
    border-radius: 10px 10px 0 0;
}
.mini-player.collapsed .player-collapse-btn svg {
    transform: rotate(180deg);
}

/* ---- Bar transport controls ---- */
.bar-transport {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.2s ease;
}

.mini-player.collapsed .bar-transport {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    transition: opacity 0.3s ease 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

/* Single play/stop toggle — chunky turntable button */
.transport-btn.btn-play {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(180deg, #c45c3e 0%, #8b2a1a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(196, 92, 62, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Recessed bezel */
.transport-btn.btn-play::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06);
    pointer-events: none;
}

.transport-btn.btn-play:hover {
    background: linear-gradient(180deg, #d4664a 0%, #9b3a2a 100%);
    box-shadow: 0 4px 12px rgba(196, 92, 62, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1.08);
}
.transport-btn.btn-play:active {
    transform: scale(0.92);
    box-shadow: 0 1px 4px rgba(196, 92, 62, 0.3), inset 0 2px 4px rgba(0,0,0,0.3);
}

/* ---- Audio waveform visualizer ---- */
.bar-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 28px;
    padding: 0 12px;
    flex-shrink: 0;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.15s ease, max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-player.collapsed .bar-waveform {
    opacity: 1;
    max-width: 200px;
    transition: opacity 0.3s ease 0.3s, max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.wave-bar {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--rust) 0%, var(--gold) 100%);
    transition: height 0.12s ease;
    min-height: 3px;
    opacity: 0.6;
}

.wave-bar.active {
    opacity: 1;
    animation: waveIdle 1.2s ease-in-out infinite alternate;
}

@keyframes waveIdle {
    0% { height: 3px; }
    100% { height: var(--wave-h, 14px); }
}

.wave-bar.playing {
    animation: wavePulse 0.4s ease-in-out infinite alternate;
}

@keyframes wavePulse {
    0% { height: var(--wave-lo, 3px); }
    100% { height: var(--wave-hi, 22px); }
}

/* ---- Bar progress thin line ---- */
.bar-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.06);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.mini-player.collapsed .bar-progress {
    opacity: 1;
    transition: opacity 0.3s ease 0.35s;
}
.bar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rust), var(--gold));
    width: 0%;
    transition: width 0.1s linear;
}

/* ---- Mini vinyl spinner in bar ---- */
.bar-vinyl {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1a1a1a, #0f0f0f, #1a1a1a, #111, #1a1a1a);
    flex-shrink: 0;
    margin-left: 12px;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
    opacity: 0;
    transform: scale(0.3);
    /* Expanding back: shrink away quickly */
    transition: opacity 0.15s ease, transform 0.2s ease;
}
.mini-player.collapsed .bar-vinyl {
    opacity: 1;
    transform: scale(1);
    /* Collapsing: pop in with spring after shell settles */
    transition: opacity 0.3s ease 0.2s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.bar-vinyl.spinning {
    animation: spin 2s linear infinite;
}
.bar-vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
}
.bar-vinyl-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bar-vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2c2416;
    z-index: 2;
}

.mini-player.drag-over .player-dropzone {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px var(--rust), 0 20px 60px rgba(196, 92, 62, 0.4);
}

.player-dropzone {
    background: linear-gradient(145deg, #5c4a3a 0%, #3d3225 50%, #2c2416 100%);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 25px 60px rgba(44, 36, 22, 0.5), 0 0 0 1px rgba(212,160,74,0.1);
    transition: border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.player-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tan);
}

.player-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.5rem;
    color: var(--tan);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
}

.status-dot.active {
    background: var(--rust);
    box-shadow: 0 0 10px rgba(196, 92, 62, 0.6);
    animation: pulse 1.5s ease-in-out infinite;
}

.player-turntable {
    position: relative;
    background: linear-gradient(145deg, #3a2f24 0%, #2a2218 100%);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 2px;
}

.player-platter {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 50%;
}

.player-vinyl {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-vinyl.spinning {
    animation: spin 2s linear infinite;
}

.player-vinyl.has-record {
    background: 
        conic-gradient(from 0deg, #1a1a1a, #0f0f0f, #1a1a1a, #111);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Vinyl grooves overlay */
.player-vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 18%, rgba(255,255,255,0.03) 18.5%, transparent 19%),
        radial-gradient(circle at center, transparent 25%, rgba(255,255,255,0.02) 25.5%, transparent 26%),
        radial-gradient(circle at center, transparent 33%, rgba(255,255,255,0.03) 33.5%, transparent 34%),
        radial-gradient(circle at center, transparent 42%, rgba(255,255,255,0.02) 42.5%, transparent 43%),
        radial-gradient(circle at center, transparent 52%, rgba(255,255,255,0.03) 52.5%, transparent 53%),
        radial-gradient(circle at center, transparent 63%, rgba(255,255,255,0.02) 63.5%, transparent 64%),
        radial-gradient(circle at center, transparent 75%, rgba(255,255,255,0.03) 75.5%, transparent 76%),
        radial-gradient(circle at center, transparent 88%, rgba(255,255,255,0.02) 88.5%, transparent 89%);
    pointer-events: none;
    z-index: 3;
}

/* Center label with artwork */
.player-vinyl-label {
    width: 36%;
    height: 36%;
    border-radius: 50%;
    background: #333;
    z-index: 2;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.5);
}

.player-vinyl-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spindle hole */
.player-vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a1a1a;
    z-index: 4;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

/* Vinyl color classes for the player */
.player-vinyl.vinyl-col-black.has-record { background: conic-gradient(from 0deg, #1a1a1a, #0f0f0f, #1a1a1a, #111, #1a1a1a); }
.player-vinyl.vinyl-col-red.has-record { background: conic-gradient(from 0deg, #8b0000, #6b1010, #8b0000, #5c1a1a, #8b0000); }
.player-vinyl.vinyl-col-blue.has-record { background: conic-gradient(from 0deg, #1a3a5c, #15304c, #1a3a5c, #0f2a4c, #1a3a5c); }
.player-vinyl.vinyl-col-gold.has-record { background: conic-gradient(from 0deg, #8a7040, #7a6030, #8a7040, #6a5030, #8a7040); }
.player-vinyl.vinyl-col-splatter.has-record { 
    background: 
        radial-gradient(circle at 30% 30%, #c45c3e 2%, transparent 3%),
        radial-gradient(circle at 70% 40%, #c45c3e 1.5%, transparent 2.5%),
        radial-gradient(circle at 50% 70%, #c45c3e 2.5%, transparent 3.5%),
        radial-gradient(circle at 25% 60%, #c45c3e 1%, transparent 2%),
        radial-gradient(circle at 80% 75%, #c45c3e 1.8%, transparent 2.8%),
        conic-gradient(from 0deg, #1a1a1a, #0f0f0f, #1a1a1a, #111);
}

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

.empty-state {
    font-size: 0.55rem;
    color: #888;
    text-align: center;
}

/* Custom drag ghost */
.drag-ghost {
    position: fixed;
    top: -9999px;
    left: -9999px;
    pointer-events: none;
    z-index: 99999;
}

.drag-ghost-inner {
    display: flex;
    align-items: center;
    gap: 0;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.drag-ghost-sleeve {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.drag-ghost-sleeve img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drag-ghost-vinyl {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-left: -40px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.drag-ghost-vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 20%, rgba(255,255,255,0.04) 20.5%, transparent 21%),
        radial-gradient(circle at center, transparent 35%, rgba(255,255,255,0.03) 35.5%, transparent 36%),
        radial-gradient(circle at center, transparent 50%, rgba(255,255,255,0.04) 50.5%, transparent 51%),
        radial-gradient(circle at center, transparent 65%, rgba(255,255,255,0.03) 65.5%, transparent 66%),
        radial-gradient(circle at center, transparent 80%, rgba(255,255,255,0.04) 80.5%, transparent 81%);
    pointer-events: none;
}

.drag-ghost-vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36%;
    height: 36%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
}

.drag-ghost-vinyl-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drag-ghost-vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1a1a1a;
    z-index: 2;
}

/* Vinyl bg colors for drag ghost */
.drag-vinyl-black { background: conic-gradient(from 0deg, #1a1a1a, #0f0f0f, #1a1a1a, #111, #1a1a1a); }
.drag-vinyl-red { background: conic-gradient(from 0deg, #8b0000, #6b1010, #8b0000, #5c1a1a, #8b0000); }
.drag-vinyl-blue { background: conic-gradient(from 0deg, #1a3a5c, #15304c, #1a3a5c, #0f2a4c, #1a3a5c); }
.drag-vinyl-gold { background: conic-gradient(from 0deg, #8a7040, #7a6030, #8a7040, #6a5030, #8a7040); }
.drag-vinyl-splatter { 
    background: 
        radial-gradient(circle at 30% 30%, #c45c3e 2%, transparent 3%),
        radial-gradient(circle at 70% 40%, #c45c3e 1.5%, transparent 2.5%),
        radial-gradient(circle at 50% 70%, #c45c3e 2.5%, transparent 3.5%),
        conic-gradient(from 0deg, #1a1a1a, #0f0f0f, #1a1a1a, #111);
}

.player-tonearm {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 60px;
    height: 75px;
    transform-origin: calc(100% - 7px) 7px;
    transform: rotate(-135deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 10;
    pointer-events: none;
}

.player-tonearm.playing {
    transform: rotate(-65deg);
}

.player-tonearm-base {
    position: absolute;
    right: 0;
    top: 0;
    width: 14px;
    height: 14px;
    background: linear-gradient(145deg, var(--gold) 0%, #a08040 100%);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    z-index: 2;
}

/* Main arm segment — angled from pivot down toward record center */
.player-tonearm-arm {
    position: absolute;
    right: 5px;
    top: 7px;
    width: 85px;
    height: 2px;
    background: linear-gradient(to left, var(--gold), #c9a45c, #b8962e);
    border-radius: 2px;
    transform-origin: right center;
    transform: rotate(55deg);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Headshell / cartridge at the tip */
.player-tonearm-arm::after {
    content: '';
    position: absolute;
    left: -2px;
    top: -2.5px;
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.now-playing-info {
    text-align: center;
    padding: 2px 0 0;
    min-height: 0;
}

.now-playing-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: #faf0dc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-artist {
    font-size: 0.6rem;
    color: var(--tan);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-empty {
    font-size: 0.6rem;
    color: #999;
    font-style: italic;
}

/* Expanded player controls (play/stop on the full player) */
.expanded-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 3px 0 8px;
}

.mini-player.collapsed .expanded-controls {
    opacity: 0;
    max-height: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}

.exp-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    position: relative;
}

/* Recessed bezel */
.exp-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06);
    pointer-events: none;
}

.exp-btn.exp-play {
    width: 38px;
    height: 38px;
    background: linear-gradient(180deg, #c45c3e 0%, #8b2a1a 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(196, 92, 62, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.exp-btn.exp-play:hover {
    background: linear-gradient(180deg, #d4664a 0%, #9b3a2a 100%);
    box-shadow: 0 5px 15px rgba(196, 92, 62, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1.08);
}
.exp-btn.exp-play:active {
    transform: scale(0.94);
    box-shadow: 0 1px 4px rgba(196, 92, 62, 0.3), inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Progress Bar — seekable */
.player-progress {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin: 2px 0 2px;
    cursor: pointer;
    overflow: visible;
    position: relative;
    transition: height 0.15s ease;
}
.player-progress:hover {
    height: 7px;
}

.player-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--rust), var(--gold));
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
    position: relative;
}

/* Scrubber handle */
.player-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.5), 0 0 0 2px var(--rust);
    transition: transform 0.15s ease;
}
.player-progress:hover .player-progress-bar::after {
    transform: translateY(-50%) scale(1);
}

/* Time display */
.player-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.45rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 0;
}

.spotify-embed-container iframe {
    display: block;
    border: none;
    width: 300px;
    height: 80px;
}

.spotify-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    margin-top: 4px;
    background: rgba(30, 215, 96, 0.08);
    border: 1px solid rgba(30, 215, 96, 0.2);
    border-radius: 12px;
    color: #1DB954;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    cursor: pointer;
}

.spotify-fallback:hover {
    background: rgba(30, 215, 96, 0.15);
    border-color: #1DB954;
}

.spotify-powered {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.45rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
}

.spotify-powered svg {
    opacity: 0.4;
}

/* ==========================================
   FOOTER
========================================== */
footer {
    background: var(--brown);
    color: var(--cream);
    padding: 60px 50px 30px;
    padding-right: 300px;
    transition: background 0.3s, color 0.3s, padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] footer {
    background: #111;
    color: #f5f0e6;
}

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

.footer-brand .logo {
    color: var(--cream);
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    text-shadow: 1px 1px 0 rgba(212, 160, 74, 0.3);
}

[data-theme="dark"] .footer-brand .logo {
    color: #f5f0e6;
}

.footer-brand p {
    color: var(--tan);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-column h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    color: var(--tan);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

[data-theme="dark"] .footer-column a {
    color: #f5f0e6;
}

.footer-column a:hover {
    color: var(--mustard);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--tan);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--tan);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--cream);
}

/* ==========================================
   HAMBURGER MENU
========================================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--brown);
    z-index: 1002;
}
.hamburger svg { display: block; }

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    header { padding: 15px 30px; }
    .now-spinning-banner { padding: 10px 30px; }
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .album-modal { grid-template-columns: 1fr; }
    .newsletter-grid { grid-template-columns: 1fr; }
    footer { padding-right: 30px; }
    header { padding: 12px 20px; }
    nav { gap: 20px; }
    nav a { font-size: 0.75rem; }
    .hero { padding: 80px 30px 60px; }
    .section { padding: 70px 30px; }
    .logo { font-size: 1.5rem; }
    .header-actions { gap: 10px; }
    .cart-btn { padding: 10px 18px; font-size: 0.7rem; }
}

@media (max-width: 768px) {
    /* Hamburger menu */
    .hamburger { display: block; }
    nav {
        display: none !important;
        position: fixed;
        top: 0; left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 9999;
    }
    nav.mobile-open { display: flex !important; }
    nav a { font-size: 1.2rem; color: var(--brown); }

    header {
        padding: 12px 15px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .logo { font-size: 1.3rem; flex: 1; }
    .logo .tagline { display: none; }
    .hamburger { order: 3; }
    .header-actions {
        order: 4;
        width: 100%;
        gap: 6px;
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 6px;
        border-top: 1px solid var(--cream-dark);
    }
    .icon-btn { width: 32px; height: 32px; }
    .icon-btn svg { width: 15px; height: 15px; }
    .cart-btn { padding: 6px 12px; font-size: 0.6rem; }

    .section { padding: 50px 20px; }
    .hero { padding: 70px 20px 50px; }
    .hero-collage { display: none; }
    .hero-subtitle { font-size: 0.95rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }

    .crate-section { padding: 50px 15px; }
    .crate-genre-tabs { gap: 6px; flex-wrap: wrap; }
    .crate-genre-tab { padding: 8px 14px; font-size: 0.6rem; }
    .crate-letter { width: 28px; height: 28px; font-size: 0.65rem; }
    .crate-alphabet { gap: 3px; }
    .crate-record { width: 110px; }
    .crate-records-strip { padding: 40px 15px 15px; gap: 5px; }

    .newsletter-section { padding: 50px 20px; }
    .newsletter-content h2 { font-size: 1.6rem; }

    footer { padding: 40px 20px 70px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; gap: 15px; }

    /* Force mini-player to collapsed bar mode on mobile */
    .mini-player {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    .mini-player .player-header,
    .mini-player .player-turntable,
    .mini-player .player-progress,
    .mini-player .player-time {
        opacity: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .mini-player .player-collapse-btn { display: none !important; }
    .mini-player .player-dropzone {
        display: flex;
        align-items: center;
        padding: 0 12px;
        height: 52px;
    }
    .mini-player .bar-vinyl { width: 30px; height: 30px; margin-left: 6px; }
    .mini-player .now-playing-info { max-width: 100px; }
    .mini-player .bar-waveform { padding: 0 4px; gap: 1px; }
    .transport-btn.btn-play { width: 32px; height: 32px; }

    .sidebar-panel { width: 100%; right: -100%; }
    .now-spinning-banner { padding: 8px 15px; font-size: 0.65rem; gap: 8px; }

    .toast-container { right: 10px; left: 10px; top: 80px; }
    .toast { min-width: 0; max-width: 100%; }

    .lightbox-close { top: 15px; right: 15px; width: 36px; height: 36px; font-size: 1.2rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-caption { bottom: 20px; }
    .lightbox-caption h3 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .hero { padding: 60px 15px 40px; }
    .hero-title { margin-bottom: 15px; }
    .hero-subtitle { font-size: 0.85rem; line-height: 1.6; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { padding: 12px 24px; font-size: 0.8rem; }

    .section { padding: 40px 15px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-card { max-width: 100%; }

    .crate-record { width: 90px; }
    .crate-genre-tab { padding: 6px 12px; font-size: 0.55rem; }

    .newsletter-content h2 { font-size: 1.3rem; }
    .newsletter-section { padding: 40px 15px; }

    footer { padding: 30px 15px 70px; }
    .footer-brand p { font-size: 0.85rem; }

    header { padding: 10px 12px; }
    .logo { font-size: 1.15rem; }
    .logo .tagline { display: none; }
    .cart-btn { padding: 7px 12px; font-size: 0.6rem; }
    .icon-btn { width: 32px; height: 32px; }

    .now-spinning-banner { padding: 6px 12px; font-size: 0.6rem; }

    .mini-player { bottom: 8px; right: 8px; left: 8px; }
}

/* ==========================================
   SEARCH BAR
========================================== */
.search-container {
    position: relative;
    margin-left: 10px;
}
.search-toggle {
    background: none;
    border: none;
    color: var(--brown);
    cursor: pointer;
    padding: 8px;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.search-toggle:hover { color: var(--rust); }
.search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    backdrop-filter: blur(4px);
}
.search-overlay.active { display: flex; }
.search-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--tan);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}
.search-close-btn:hover {
    background: rgba(0,0,0,0.08);
    color: var(--brown);
}
[data-theme="dark"] .search-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #faf0dc;
}
.search-box {
    position: relative;
    background: var(--warm-white);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.3), 0 0 0 1px rgba(212,160,74,0.1);
}
[data-theme="dark"] .search-box { background: var(--cream-dark); }
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--cream-dark);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.search-input-wrap svg { color: var(--tan); flex-shrink: 0; }
.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.2rem;
    font-family: 'Nunito', sans-serif;
    color: var(--brown);
    outline: none;
}
.search-input::placeholder { color: var(--tan); }
.search-results {
    max-height: 500px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.search-result-item:hover { background: var(--cream-dark); }
.search-result-art {
    width: 50px; height: 50px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.search-result-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.search-result-info p {
    font-size: 0.75rem;
    color: var(--tan);
}
.search-empty {
    text-align: center;
    padding: 30px;
    color: var(--tan);
    font-size: 0.9rem;
}
.search-section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    padding: 12px 12px 4px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 4px;
}
.search-section-label:first-child { border-top: none; margin-top: 0; }
.search-external-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    opacity: 0.85;
}
.search-external-item:hover { background: var(--cream-dark); opacity: 1; }
.search-external-art {
    width: 50px; height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.search-external-art img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.search-external-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.search-external-info p {
    font-size: 0.75rem;
    color: var(--tan);
}
.search-external-badge {
    font-size: 0.6rem;
    background: var(--rust);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Space Mono', monospace;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}
.search-loading-ext {
    text-align: center;
    padding: 15px;
    color: var(--tan);
    font-size: 0.8rem;
}
.search-loading-ext::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid var(--tan);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes searchSpin { to { transform: rotate(360deg); } }
[data-theme="dark"] .search-section-label { border-top-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .search-external-item:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .search-result-item:hover { background: rgba(255,255,255,0.05); }

/* ==========================================
   DECADE FILTER
========================================== */
.decade-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 35px;
    justify-content: center;
}
.decade-tab {
    padding: 6px 14px;
    border-radius: 5px;
    border: 1px solid var(--cream-dark);
    background: transparent;
    color: var(--brown);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.05em;
}
.decade-tab:hover, .decade-tab.active {
    background: linear-gradient(135deg, var(--forest), var(--teal));
    color: white;
    border-color: var(--forest);
    box-shadow: 0 2px 8px rgba(45, 107, 79, 0.25);
    transform: translateY(-1px);
}
[data-theme="dark"] .decade-tab { border-color: #444; color: var(--tan); }
[data-theme="dark"] .decade-tab:hover, [data-theme="dark"] .decade-tab.active { color: white; }

/* ==========================================
   PRE-ORDER & EXCLUSIVE BADGES
========================================== */
.product-badge.preorder {
    background: var(--sage);
    color: white;
}
.product-badge.exclusive {
    background: linear-gradient(135deg, var(--mustard), var(--gold-light));
    color: var(--brown);
    font-weight: 700;
}

/* ==========================================
   BLOG / VINYL GUIDE SECTION
========================================== */
.blog-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

#guide {
    background: var(--cream);
}
[data-theme="dark"] #guide {
    background: var(--cream-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.blog-card {
    background: var(--warm-white);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid rgba(42, 31, 16, 0.05);
    box-shadow: 0 4px 15px rgba(42, 31, 16, 0.06);
}
[data-theme="dark"] .blog-card { background: var(--cream-dark); border-color: rgba(255,255,255,0.05); }
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(42, 31, 16, 0.18);
}
.blog-card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.blog-card-content {
    padding: 20px;
}
.blog-card-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 8px;
}
.blog-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.blog-card-content p {
    font-size: 0.85rem;
    color: var(--brown-light);
    line-height: 1.6;
    margin-bottom: 15px;
}
.blog-card-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-link:hover { color: var(--mustard); }

/* ==========================================
   CURATED COLLECTIONS
========================================== */
.collections-section {
    padding: 80px 40px;
    position: relative;
    max-width: none;
}
.collections-section > .section-header,
.collections-section > .collections-tabs,
.collections-section > .collections-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Collections gets vinyl-spread photo background */
#collections {
    background: url('../images/part-tonearm.jpg') center/cover no-repeat;
    position: relative;
    max-width: none;
    color: #faf0dc;
}
#collections::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 22, 10, 0.88);
    z-index: 0;
}
#collections > * {
    position: relative;
    z-index: 1;
}
#collections .section-title,
#collections .section-subtitle {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
#collections .collection-tab {
    color: #f0e4d1;
    border-color: rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] #collections {
    color: #f5f0e6;
}
[data-theme="dark"] #collections::before {
    background: rgba(8, 6, 3, 0.78);
}

/* Override text colors for dark photo background */
#collections .section-title {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
#collections .section-title em {
    color: var(--gold-light);
}
#collections .section-subtitle {
    color: #e8dcc8;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
#collections .collection-tab {
    color: #f0e4d1;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}
#collections .collection-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}
#collections .collection-tab.active {
    background: var(--gold);
    color: #1a1408;
    border-color: var(--gold);
}

/* ---- Collections: product card text on dark background ---- */
#collections .product-info h3 {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
#collections .product-info .artist {
    color: #d4c8b0;
}
#collections .product-info .artist:hover {
    color: var(--gold-light);
}
#collections .product-price {
    color: var(--gold-light);
}
#collections .product-condition {
    background: rgba(107, 158, 110, 0.25);
    color: #a8dda8;
}
#collections .product-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}
#collections .product-card:hover .product-image {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), 0 5px 15px rgba(212, 160, 74, 0.15);
    border-color: rgba(212, 160, 74, 0.2);
}
/* Dark mode collections cards */
[data-theme="dark"] #collections .product-info h3 {
    color: #f5f0e6;
}
[data-theme="dark"] #collections .product-info .artist {
    color: #c4b8a0;
}
[data-theme="dark"] #collections .product-price {
    color: var(--honey);
}

.collections-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}
.collection-tab {
    padding: 8px 20px;
    border-radius: 6px;
    border: 2px solid var(--cream-dark);
    background: transparent;
    color: var(--brown);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.collection-tab:hover, .collection-tab.active {
    background: linear-gradient(135deg, var(--terracotta), var(--rust));
    color: white;
    border-color: var(--terracotta);
    box-shadow: 0 3px 10px rgba(198, 93, 42, 0.25);
    transform: translateY(-1px);
}
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* ==========================================
   ARTIST MODAL
========================================== */
.artist-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.artist-modal-overlay.active { display: flex; }
.artist-modal {
    background: var(--cream);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 40px;
}
[data-theme="dark"] .artist-modal { background: #1a1a1a; }
.artist-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}
.artist-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}
.artist-modal-header p {
    color: var(--tan);
    font-size: 0.85rem;
    margin-top: 5px;
}
.artist-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* ==========================================
   GAMIFICATION SYSTEM
========================================== */
.gamer-profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    color: var(--brown);
    transition: all 0.2s;
    text-decoration: none;
}
.gamer-profile-btn:hover { transform: scale(1.08); }
.gamer-profile-btn .level-badge {
    display: none;
    justify-content: center;
    font-family: 'Space Mono', monospace;
}
.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cream-dark);
    transition: border-color 0.2s;
}
.gamer-profile-btn:hover .header-avatar {
    border-color: var(--terracotta);
}

/* Profile Pic Picker in Gamer Panel */
.profile-pic-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 25px 5px;
}
.profile-pic-current {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s;
}
.profile-pic-current:hover {
    border-color: var(--terracotta);
    transform: scale(1.05);
}
.profile-pic-edit-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    cursor: pointer;
    transition: color 0.2s;
}
.profile-pic-edit-label:hover { color: var(--rust); }

/* Profile Pic Picker Modal */
.pfp-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pfp-picker-overlay.open { display: flex; }
.pfp-picker {
    background: var(--cream);
    border-radius: 16px;
    padding: 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}
[data-theme="dark"] .pfp-picker { background: #1e1a15; }
.pfp-picker-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--brown);
    transition: color 0.2s;
}
.pfp-picker-close:hover { color: var(--rust); }
.pfp-picker h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--brown);
}
.pfp-picker p {
    font-size: 0.75rem;
    color: var(--brown-light);
    margin-bottom: 18px;
}
.pfp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.pfp-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cream-dark);
    cursor: pointer;
    transition: all 0.25s;
}
.pfp-option:hover {
    border-color: var(--terracotta);
    transform: scale(1.1);
}
.pfp-option.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 74, 0.3);
}
.pfp-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--cream-dark);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    color: var(--brown-light);
    transition: all 0.2s;
}
.pfp-upload-btn:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}
[data-theme="dark"] .pfp-upload-btn { border-color: #3d3020; color: #c4b8a4; }
[data-theme="dark"] .pfp-upload-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }

.gamer-panel-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gamer-panel-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.gamer-panel {
    position: fixed;
    top: 0; right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
body.panel-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
    touch-action: none;
}
[data-theme="dark"] .gamer-panel { background: #1a1a1a; }
.gamer-panel.open { transform: translateX(0); }

/* ==========================================
   CART PANEL (slide-out)
========================================== */
.cart-panel-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.cart-panel-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--cream);
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
[data-theme="dark"] .cart-panel { background: #1a1a1a; }
.cart-panel.open { transform: translateX(0); }
.cart-panel-header {
    padding: 22px 25px;
    border-bottom: 1px solid var(--cream-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-panel-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}
.cart-panel-close {
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--brown);
    transition: color 0.2s;
}
.cart-panel-close:hover { color: var(--rust); }
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 25px;
    border-bottom: 1px solid var(--cream-dark);
    transition: background 0.2s;
}
.cart-item:hover { background: rgba(0,0,0,0.02); }
[data-theme="dark"] .cart-item:hover { background: rgba(255,255,255,0.03); }
.cart-item-art {
    width: 60px; height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream-dark);
}
.cart-item-art img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cart-item-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--tan);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-artist {
    font-size: 0.75rem;
    color: var(--tan);
    margin-bottom: 3px;
}
.cart-item-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--brown-light);
}
.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--cream-dark);
    border-radius: 100px;
    padding: 2px 4px;
}
.cart-qty-controls button {
    width: 24px; height: 24px;
    background: none; border: none;
    cursor: pointer; font-size: 1rem;
    color: var(--brown);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.cart-qty-controls button:hover { background: var(--cream-dark); }
.cart-qty-controls span {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    min-width: 16px; text-align: center;
}
.cart-item-subtotal {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--terracotta);
}
.cart-item-remove {
    background: none; border: none;
    cursor: pointer; font-size: 0.7rem;
    color: var(--tan);
    transition: color 0.2s;
    padding: 2px;
}
.cart-item-remove:hover { color: var(--rust); }
.cart-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--cream-dark);
    background: var(--warm-white);
}
[data-theme="dark"] .cart-footer { background: #222; }
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.cart-total-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tan);
}
.cart-total-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terracotta);
}
.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--terracotta), var(--rust));
    color: white;
    border: none;
    border-radius: 100px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}
.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(181, 50, 42, 0.3);
}
.cart-continue-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--cream-dark);
    border-radius: 100px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--brown);
    margin-top: 10px;
    transition: all 0.2s;
    text-align: center;
}
.cart-continue-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }

.gamer-panel-header {
    padding: 25px;
    border-bottom: 1px solid var(--cream-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gamer-panel-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}
.gamer-panel-close {
    background: none;
    border: none;
    color: var(--brown);
    font-size: 1.5rem;
    cursor: pointer;
}

.gamer-level-section {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid var(--cream-dark);
}
.gamer-level-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
.gamer-level-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.gamer-level-subtitle {
    font-size: 0.75rem;
    color: var(--tan);
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.xp-bar-container {
    background: var(--cream-dark);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}
[data-theme="dark"] .xp-bar-container { background: #333; }
.xp-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--terracotta), var(--mustard));
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.xp-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: xpShimmer 2s infinite;
}
@keyframes xpShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.xp-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--tan);
}

.gamer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
}
[data-theme="dark"] .gamer-stats { background: #333; }
.gamer-stat {
    background: var(--cream);
    padding: 15px 10px;
    text-align: center;
}
[data-theme="dark"] .gamer-stat { background: #1a1a1a; }
.gamer-stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rust);
}
.gamer-stat-label {
    font-size: 0.6rem;
    color: var(--tan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--cream-dark);
    padding: 0 10px;
    gap: 0;
}
.profile-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tan);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.profile-tab:hover { color: var(--brown); }
.profile-tab.active {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
    font-weight: 700;
}
.profile-tab-content {
    display: none;
    padding: 20px 25px 25px;
}
.profile-tab-content.active { display: block; }

/* Badges Section */
.badges-section {
    padding: 0;
}
.badges-section h4 {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tan);
    margin-bottom: 15px;
}
.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.badge-item {
    background: var(--warm-white);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .badge-item { background: var(--cream-dark); }
.badge-item.locked {
    opacity: 0.4;
    filter: grayscale(1);
}
.badge-item.unlocked {
    box-shadow: 0 4px 15px rgba(196, 92, 62, 0.2);
}
.badge-item.just-unlocked {
    animation: badgeUnlock 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes badgeUnlock {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.badge-emoji {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.badge-name {
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 3px;
}
.badge-desc {
    font-size: 0.6rem;
    color: var(--tan);
    line-height: 1.4;
}
.badge-progress {
    margin-top: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: var(--rust);
}

/* ==========================================
   WAX REWARDS PUNCH CARD
========================================== */
.punch-card {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px dashed var(--cream-dark);
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .punch-card { background: var(--cream-dark); border-color: #444; }
.punch-card::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 40px; height: 40px;
    background: var(--cream);
    border-radius: 50%;
}
[data-theme="dark"] .punch-card::before { background: #1a1a15; }
.punch-card::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 40px; height: 40px;
    background: var(--cream);
    border-radius: 50%;
}
[data-theme="dark"] .punch-card::after { background: #1a1a15; }
.punch-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 5px;
}
.punch-card-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--tan);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.punch-card-prestige {
    text-align: center;
    margin-bottom: 15px;
}
.prestige-stars {
    color: var(--mustard);
    font-size: 1.2rem;
    letter-spacing: 4px;
}
.prestige-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: var(--mustard);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}
.punch-stamps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.punch-stamp {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-family: 'Space Mono', monospace;
    color: var(--tan);
    position: relative;
    transition: all 0.3s;
}
[data-theme="dark"] .punch-stamp { border-color: #555; }
.punch-stamp.stamped {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
    font-weight: 700;
}
.punch-stamp.milestone {
    border-color: var(--mustard);
    border-width: 3px;
}
.punch-stamp.milestone.stamped {
    background: linear-gradient(135deg, var(--mustard), #e8b84a);
    border-color: var(--mustard);
    animation: milestoneGlow 2s infinite;
}
@keyframes milestoneGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(212,160,74,0.4); }
    50% { box-shadow: 0 0 16px rgba(212,160,74,0.7); }
}
.punch-stamp.next-reward {
    border-color: var(--terracotta);
    border-style: dashed;
}
.punch-milestone-list {
    margin-top: 15px;
}
.punch-milestone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.8rem;
}
[data-theme="dark"] .punch-milestone-item { border-color: #333; }
.punch-milestone-item:last-child { border-bottom: none; }
.punch-milestone-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.punch-milestone-icon.earned {
    background: linear-gradient(135deg, var(--mustard), #e8b84a);
    color: white;
}
.punch-milestone-icon.locked {
    background: var(--cream-dark);
    color: var(--tan);
    filter: grayscale(0.5);
}
[data-theme="dark"] .punch-milestone-icon.locked { background: #333; }
.punch-milestone-info {
    flex: 1;
}
.punch-milestone-name {
    font-weight: 700;
    font-size: 0.8rem;
}
.punch-milestone-desc {
    font-size: 0.65rem;
    color: var(--tan);
    margin-top: 2px;
}
.punch-milestone-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
}
.punch-milestone-status.earned { color: var(--sage); }
.punch-milestone-status.locked { color: var(--tan); }
.punch-milestone-status.next { color: var(--terracotta); }

/* Active Rewards */
.active-rewards {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed var(--cream-dark);
}
.active-reward-item {
    background: linear-gradient(135deg, var(--mustard), #e8b84a);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}
.active-reward-item:hover { transform: scale(1.02); }
.active-reward-emoji { font-size: 1.3rem; }
.active-reward-text { flex: 1; font-size: 0.75rem; font-weight: 700; }
.active-reward-code {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    background: rgba(255,255,255,0.25);
    padding: 4px 8px;
    border-radius: 6px;
}

/* ==========================================
   AWARD SHELF
========================================== */
.award-shelf {
    perspective: 600px;
}
.shelf-row {
    background: linear-gradient(180deg, var(--paper) 0%, var(--cream-dark) 100%);
    border-radius: 0 0 8px 8px;
    padding: 20px 15px 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}
[data-theme="dark"] .shelf-row {
    background: linear-gradient(180deg, #2a241c 0%, #1e1a15 100%);
}
.shelf-row::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--dusty-rose), var(--terracotta), var(--mustard));
    border-radius: 0 0 8px 8px;
}
.shelf-row-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tan);
    margin-bottom: 12px;
}
.shelf-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.shelf-trophy {
    width: 60px;
    text-align: center;
    transition: transform 0.3s;
    cursor: default;
}
.shelf-trophy:hover { transform: translateY(-4px); }
.shelf-trophy-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 6px;
    position: relative;
}
.shelf-trophy-icon.badge-type {
    background: linear-gradient(135deg, var(--warm-white), var(--paper));
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
[data-theme="dark"] .shelf-trophy-icon.badge-type {
    background: linear-gradient(135deg, #2a241c, #333);
}
.shelf-trophy-icon.reward-type {
    background: linear-gradient(135deg, var(--mustard), #e8b84a);
    box-shadow: 0 2px 8px rgba(212,160,74,0.3);
}
.shelf-trophy-icon.prestige-type {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: var(--mustard);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.shelf-trophy-name {
    font-size: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--brown);
}
[data-theme="dark"] .shelf-trophy-name { color: var(--paper); }
.shelf-empty {
    text-align: center;
    padding: 25px;
    color: var(--tan);
    font-size: 0.8rem;
}
.shelf-empty-icon { font-size: 2rem; margin-bottom: 10px; }

/* ==========================================
   LEADERBOARD
========================================== */
.leaderboard-header {
    text-align: center;
    margin-bottom: 20px;
}
.leaderboard-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.leaderboard-header p {
    font-size: 0.65rem;
    color: var(--tan);
    font-family: 'Space Mono', monospace;
}
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--warm-white);
    border-radius: 10px;
    transition: all 0.2s;
}
[data-theme="dark"] .leaderboard-entry { background: var(--cream-dark); }
.leaderboard-entry.is-you {
    border: 2px solid var(--terracotta);
    background: linear-gradient(135deg, rgba(201,111,60,0.08), rgba(212,160,74,0.08));
}
.leaderboard-entry.top-3 {
    background: linear-gradient(135deg, rgba(212,160,74,0.12), rgba(212,160,74,0.04));
}
.leaderboard-rank {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    width: 28px;
    text-align: center;
    color: var(--brown);
}
.leaderboard-rank.gold { color: #d4a04a; }
.leaderboard-rank.silver { color: #a8a8a8; }
.leaderboard-rank.bronze { color: #cd7f32; }
.leaderboard-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
[data-theme="dark"] .leaderboard-avatar { background: #333; }
.leaderboard-info { flex: 1; }
.leaderboard-name {
    font-weight: 700;
    font-size: 0.8rem;
}
.leaderboard-meta {
    font-size: 0.6rem;
    color: var(--tan);
    font-family: 'Space Mono', monospace;
}
.leaderboard-score {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--terracotta);
}
.leaderboard-note {
    text-align: center;
    padding: 20px;
    font-size: 0.7rem;
    color: var(--tan);
    font-style: italic;
    margin-top: 10px;
}

/* Add to collection button in album modal */
.btn-collect {
    background: var(--forest);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-collect:hover { background: #4a5f46; }
.btn-collect.collected {
    background: var(--gold);
    color: var(--brown);
}

/* ==========================================
   INFO MODALS (Shipping, Returns, FAQ, etc.)
========================================== */
.info-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.info-modal-overlay.active { display: flex; }
.info-modal {
    background: var(--cream);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
}
[data-theme="dark"] .info-modal { background: #1a1a1a; }
.info-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}
.info-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 25px 0 10px;
}
.info-modal p, .info-modal li {
    font-size: 0.9rem;
    color: var(--brown-light);
    line-height: 1.8;
}
.info-modal ul {
    margin-left: 20px;
    margin-bottom: 15px;
}
.info-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brown);
    cursor: pointer;
}
.info-modal .faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--warm-white);
    border-radius: 8px;
}
[data-theme="dark"] .info-modal .faq-item { background: var(--cream-dark); }
.info-modal .faq-q {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brown);
    margin-bottom: 8px;
}

/* ==========================================
   MOBILE RESPONSIVE (new features)
========================================== */
@media (max-width: 768px) {
    .search-box { width: 95%; padding: 20px; }
    .search-overlay { padding-top: 80px; }
    .blog-section, .collections-section { padding: 50px 20px; }
    .gamer-panel { width: 100%; }
    .cart-panel { width: 100%; max-width: 100vw; }
    .artist-modal, .info-modal { padding: 25px; width: 95%; }
    .info-modal h2 { font-size: 1.5rem; }
    .modal { max-width: 95vw; }
    .album-artwork { padding: 20px; }
    .badges-grid { grid-template-columns: repeat(2, 1fr); }
    .gamer-level-name { font-size: 1.4rem; }
    .profile-tab { font-size: 0.5rem; padding: 10px 4px; }
    .punch-stamp { width: 30px; height: 30px; font-size: 0.55rem; }
    .leaderboard-entry { padding: 10px; gap: 8px; }
    .leaderboard-name { font-size: 0.7rem; }
    .shelf-trophy { width: 50px; }
    .shelf-trophy-icon { width: 42px; height: 42px; font-size: 1.2rem; }
    .shelf-trophy-name { font-size: 0.45rem; }
    .gamer-stats { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .search-box { width: 100%; border-radius: 0; }
    .search-overlay { padding-top: 60px; }
    .blog-section, .collections-section { padding: 40px 15px; }
    .artist-modal, .info-modal { padding: 20px 15px; width: 98%; }
    .info-modal h2 { font-size: 1.3rem; }
    .welcome-modal { padding: 30px 20px 24px; }
    .punch-stamp { width: 24px; height: 24px; font-size: 0.5rem; }
}

/* ========== WELCOME MODAL ========== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: welcomeFadeIn 0.5s ease forwards;
}
@keyframes welcomeFadeIn {
    to { opacity: 1; }
}
.welcome-modal {
    background: var(--cream);
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    padding: 48px 40px 36px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    animation: welcomeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px);
}
@keyframes welcomeSlideUp {
    to { transform: translateY(0); }
}
[data-theme="dark"] .welcome-modal {
    background: #1e1e1e;
}
.welcome-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}
.welcome-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--brown);
}
[data-theme="dark"] .welcome-modal h2 { color: #faf0dc; }
.welcome-modal p {
    font-size: 0.95rem;
    color: var(--tan);
    line-height: 1.6;
    margin-bottom: 24px;
}
.welcome-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 28px 0 32px;
    padding: 24px;
    background: var(--cream-dark);
    border-radius: 12px;
}
[data-theme="dark"] .welcome-demo { background: #2a2a2a; }
.welcome-record {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    background: linear-gradient(135deg, #5c4a3a, #3d3225);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: welcomeBounce 2s ease-in-out infinite;
}
@keyframes welcomeBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(12px); }
}
.welcome-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--rust);
    animation: welcomeArrowPulse 2s ease-in-out infinite;
}
@keyframes welcomeArrowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(6px); }
}
.welcome-arrow svg { width: 32px; height: 32px; }
.welcome-arrow span {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.welcome-turntable {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1a1a1a, #111, #1a1a1a, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    position: relative;
}
.welcome-turntable::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cream);
    position: absolute;
}
[data-theme="dark"] .welcome-turntable::after { background: #333; }
.welcome-btn {
    background: var(--rust);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.welcome-btn:hover {
    background: var(--rust-light, #d4634a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 92, 62, 0.3);
}
.welcome-skip {
    display: block;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--tan);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.welcome-skip:hover { opacity: 1; }
.welcome-features {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
}
.welcome-feature {
    flex: 1;
    padding: 12px;
    background: var(--cream-dark);
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.5;
}
[data-theme="dark"] .welcome-feature { background: #2a2a2a; }
.welcome-feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--brown);
}
[data-theme="dark"] .welcome-feature strong { color: #faf0dc; }

/* ==========================================
   ADD RECORD MODAL
========================================== */
.add-record-btn {
    background: var(--rust);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.add-record-btn:hover { background: var(--rust-light); transform: translateY(-1px); }
.add-record-btn svg { flex-shrink: 0; }

.add-record-btn-sidebar {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.add-record-btn-gamer {
    width: calc(100% - 50px);
    margin: 15px 25px;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.add-record-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.add-record-overlay.active { display: flex; }

.add-record-modal {
    background: var(--cream);
    width: 560px;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .add-record-modal { background: #1a1a1a; }

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.add-record-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--cream-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.add-record-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}
.add-record-close {
    background: none;
    border: none;
    color: var(--brown);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.add-record-close:hover { background: var(--cream-dark); }

.add-record-tabs {
    display: flex;
    border-bottom: 1px solid var(--cream-dark);
    padding: 0 25px;
}
.add-record-tab {
    background: none;
    border: none;
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tan);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.add-record-tab:hover { color: var(--brown); }
.add-record-tab.active {
    color: var(--rust);
    border-bottom-color: var(--rust);
}

.add-record-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.add-record-tab-content { display: none; }
.add-record-tab-content.active { display: block; }

/* Camera Tab */
.camera-capture-area {
    border: 2px dashed var(--cream-dark);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.camera-capture-area:hover { border-color: var(--rust); background: rgba(196,92,62,0.03); }
.camera-capture-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.camera-capture-area .camera-icon {
    font-size: 2.5rem;
}
.camera-capture-area p {
    font-size: 0.85rem;
    color: var(--tan);
}
.camera-capture-area .camera-hint {
    font-size: 0.7rem;
    color: var(--tan);
    font-family: 'Space Mono', monospace;
}

.camera-preview {
    display: none;
    margin-bottom: 15px;
}
.camera-preview.has-image { display: block; }
.camera-preview img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--cream-dark);
}
.camera-preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.camera-preview-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.camera-retake-btn {
    background: var(--cream-dark);
    color: var(--brown);
}
.camera-retake-btn:hover { background: var(--tan); color: white; }

.camera-search-wrapper {
    margin-top: 15px;
}
.camera-search-wrapper label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: var(--tan);
    font-family: 'Space Mono', monospace;
}

/* Search Tab */
.ar-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.ar-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid var(--cream-dark);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    background: var(--warm-white);
    color: var(--brown);
    transition: border-color 0.2s;
    outline: none;
}
[data-theme="dark"] .ar-search-input { background: #252525; border-color: #333; }
.ar-search-input:focus { border-color: var(--rust); }
.ar-search-input::placeholder { color: var(--tan); }
.ar-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tan);
}

.ar-search-loading {
    text-align: center;
    padding: 30px;
    color: var(--tan);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    display: none;
}
.ar-search-loading.active { display: block; }

.ar-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}
.ar-result-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--warm-white);
    border: 1px solid var(--cream-dark);
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
}
[data-theme="dark"] .ar-result-card { background: #252525; border-color: #333; }
.ar-result-card:hover {
    border-color: var(--rust);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ar-result-art {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: var(--cream-dark);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}
.ar-result-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ar-result-info {
    flex: 1;
    min-width: 0;
}
.ar-result-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ar-result-info p {
    font-size: 0.75rem;
    color: var(--tan);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ar-result-info .ar-result-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--gold);
    margin-top: 2px;
}
.ar-result-add {
    background: var(--forest);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ar-result-add:hover { background: #4a5f46; transform: scale(1.1); }

.ar-no-results {
    text-align: center;
    padding: 30px;
    color: var(--tan);
}
.ar-no-results p {
    font-size: 0.85rem;
    margin-bottom: 5px;
}
.ar-no-results .hint {
    font-size: 0.7rem;
    font-family: 'Space Mono', monospace;
}

/* Manual Tab */
.ar-form-group {
    margin-bottom: 14px;
}
.ar-form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    color: var(--tan);
    font-family: 'Space Mono', monospace;
}
.ar-form-group input,
.ar-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--cream-dark);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    background: var(--warm-white);
    color: var(--brown);
    outline: none;
    transition: border-color 0.2s;
}
[data-theme="dark"] .ar-form-group input,
[data-theme="dark"] .ar-form-group select { background: #252525; border-color: #333; }
.ar-form-group input:focus,
.ar-form-group select:focus { border-color: var(--rust); }
.ar-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ar-manual-photo {
    border: 2px dashed var(--cream-dark);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    position: relative;
    font-size: 0.8rem;
    color: var(--tan);
    transition: border-color 0.2s;
}
.ar-manual-photo:hover { border-color: var(--rust); }
.ar-manual-photo input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.ar-manual-photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
}

.ar-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--rust);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.ar-submit-btn:hover { background: var(--rust-light); }
.ar-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Unified collection sidebar items */
.sidebar-item-source {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}
.sidebar-item-source.store {
    background: var(--forest);
    color: white;
}
.sidebar-item-source.personal {
    background: var(--gold);
    color: var(--brown);
}

/* Mobile responsive for add record modal */
@media (max-width: 768px) {
    .add-record-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .add-record-overlay {
        align-items: stretch;
    }
    .add-record-tabs {
        padding: 0 15px;
    }
    .add-record-tab {
        flex: 1;
        text-align: center;
        padding: 12px 8px;
        font-size: 0.75rem;
    }
    .add-record-body { padding: 20px 15px; }
    .camera-capture-area { min-height: 200px; padding: 25px; }
    .camera-capture-area .camera-icon { font-size: 3rem; }
    .ar-result-card { padding: 10px; }
    .ar-result-add { width: 44px; height: 44px; font-size: 1.3rem; }
}
