:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --accent-fire: #f97316;
    --accent-electric: #facc15;
    --accent-psychic: #a855f7;
    --accent-water: #3b82f6;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --touch-target: 48px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --gold: #d4af37;
    --gold-light: #f4e4a6;
    --gold-dark: #b8860b;
    --dark-bg: #0a0a0f;
    --dark-bg-alt: #12121a;
    --dark-card: #1a1a25;
    --dark-card-hover: #22222f;
    --dark-border: #2a2a3a;
    --dark-text: #f0f0f5;
    --dark-text-muted: #8888a0;
    --blue-glow: #4a9eff;
}

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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.navbar {
    background: var(--card-bg);
    padding: 0.875rem 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.hamburger {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.hamburger:hover {
    background: var(--bg-alt);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s;
}

.nav-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-spacer {
    flex: 1;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 200;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--card-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 300;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.nav-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.drawer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.drawer-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    background: var(--border);
}

.drawer-links {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.drawer-link:hover {
    background: var(--bg-alt);
}

.drawer-link.active {
    background: var(--primary-light);
    border-left-color: var(--primary);
    color: var(--primary);
}

.drawer-icon {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
}

.drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.user-tier {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1.25rem;
}

.drawer-link.locked {
    color: var(--text-muted);
}

.lock-badge {
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 700;
    text-transform: uppercase;
}

.drawer-link.upgrade-link {
    color: var(--primary);
    font-weight: 600;
}

.user-tier-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.user-tier-badge.tier-collector {
    background: var(--bg-alt);
    color: var(--text-muted);
}

.user-tier-badge.tier-seller {
    background: var(--primary);
    color: white;
}

.auth-page {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.tier-selection {
    margin: 1.5rem 0;
}

.tier-selection h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.tier-options {
    display: flex;
    gap: 0.75rem;
}

.tier-option {
    flex: 1;
    cursor: pointer;
}

.tier-option input {
    display: none;
}

.tier-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.tier-option input:checked + .tier-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.tier-card.seller {
    border-color: var(--primary);
}

.tier-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 700;
}

.tier-name {
    font-weight: 700;
    font-size: 1rem;
}

.tier-price {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.tier-features {
    list-style: none;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tier-features li {
    padding: 0.25rem 0;
}

.tier-features li::before {
    content: '✓';
    margin-right: 0.25rem;
    color: var(--success);
}

.upgrade-container {
    max-width: 800px;
    margin: 0 auto;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upgrade-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upgrade-header p {
    color: var(--text-muted);
}

.tier-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .tier-comparison {
        grid-template-columns: 1fr;
    }
}

.tier-column {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.tier-column.upgrade {
    border: 2px solid var(--primary);
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tier-column .tier-header {
    text-align: center;
    margin-bottom: 1rem;
}

.tier-column .tier-header h2 {
    font-size: 1.25rem;
}

.tier-column .tier-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.current-badge {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.tier-column .tier-features {
    font-size: 0.875rem;
}

.tier-column .tier-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.tier-column .tier-features li.locked {
    color: var(--text-muted);
}

.tier-column .tier-features li.locked::before {
    content: '✕';
    color: var(--danger);
}

.tier-column .tier-features li.highlight {
    font-weight: 600;
    color: var(--primary);
}

.upgrade-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.main-content {
    padding: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    touch-action: manipulation;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover, .btn-primary:active {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover, .btn-secondary:active {
    background: var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-small {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-cancel {
    background: var(--danger);
    color: white;
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
}

.pos-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-section {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    min-height: 56px;
    padding: 0.875rem 1.25rem;
    font-size: 1.0625rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--card-bg);
    color: var(--text);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.search-result-item {
    min-height: 70px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-item:hover, .search-result-item:active {
    background: var(--bg-alt);
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.25rem;
}

.result-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    min-width: 0;
}

.result-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold, #d4af37);
    white-space: nowrap;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.qty-badge {
    background: var(--success);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.selected-card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.card-info h2 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text);
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.quantity-badge, .condition-badge {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.quantity-badge {
    background: var(--primary-light);
    color: var(--primary);
}

.condition-badge {
    background: #dcfce7;
    color: var(--success);
}

.price-section {
    margin: 1.25rem 0;
}

.price-section label {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.price-input {
    width: 100%;
    min-height: 70px;
    padding: 1rem;
    font-size: 2rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--card-bg);
    color: var(--text);
}

.price-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.payment-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.payment-btn {
    min-height: 56px;
    padding: 1rem;
    font-size: 1.0625rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}

.payment-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.sell-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sell-btn {
    min-height: 70px;
    padding: 1.25rem;
    font-size: 1.375rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.15s;
    color: white;
}

.sell-1 { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.sell-custom { background: linear-gradient(135deg, #2a2a35 0%, #1a1a22 100%); border: 1px solid #d4af37; }

.sell-btn:active {
    transform: scale(0.98);
}

.custom-qty-section {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.custom-qty-input {
    min-height: 60px;
    padding: 1rem;
    font-size: 1.375rem;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text);
}

.sumup-payment-section {
    margin-top: 1.5rem;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    text-align: center;
}

.sumup-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sumup-icon {
    color: var(--gold);
}

.sumup-icon svg {
    width: 64px;
    height: 64px;
}

#sumupStatusText {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.sumup-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.btn-cancel-payment {
    min-height: 50px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-cancel-payment:active {
    transform: scale(0.98);
}

.recent-section {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.recent-section h3 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 600;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    min-height: 50px;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-name {
    font-weight: 500;
    flex: 1;
    margin-right: 0.5rem;
}

.recent-qty {
    color: var(--text-muted);
    margin-right: 0.75rem;
}

.recent-price {
    color: var(--success);
    font-weight: 700;
    font-size: 1.0625rem;
}

.inventory-container, .sales-container, .photos-container, .settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.inventory-header, .sales-header, .photos-header {
    margin-bottom: 1.25rem;
}

.inventory-header h1, .sales-header h1, .photos-header h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.header-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* Inventory Stats Bar */
.inventory-stats-bar {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    margin-bottom: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    min-height: var(--touch-target);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--border);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn.active, .filter-btn:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.filter-search {
    flex: 1;
    min-height: var(--touch-target);
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text);
}

.filter-search:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.inventory-table-wrapper, .sales-table-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
    border: 1px solid var(--border);
}

.inventory-table, .sales-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.inventory-table th, .sales-table th {
    background: var(--bg-alt);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.inventory-table td, .sales-table td {
    padding: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9375rem;
}

.inventory-table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.inventory-table a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.active { background: #dcfce7; color: #166534; }
.status-badge.sold_out { background: #fef3c7; color: #92400e; }
.status-badge.archived { background: #f1f5f9; color: #64748b; }

.condition-badge.nm { background: #dcfce7; color: #166534; }
.condition-badge.lp { background: #dbeafe; color: #1e40af; }
.condition-badge.mp { background: #fef3c7; color: #92400e; }
.condition-badge.hp { background: #fee2e2; color: #991b1b; }

.guide-price {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.guide-price::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.guide-price.confidence-high::before { background: #22c55e; }
.guide-price.confidence-medium::before { background: #f59e0b; }
.guide-price.confidence-low::before { background: #ef4444; }
.guide-price.confidence-skipped::before { background: #94a3b8; }

.guide-price-none, .price-date-none {
    color: #94a3b8;
}

.photo-preview {
    margin-top: 0.5rem;
    max-width: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

input[type="file"] {
    padding: 0.5rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

.price-date {
    font-size: 0.75rem;
    color: #64748b;
}

.payment-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.payment-badge.cash { background: #dcfce7; color: #166534; }
.payment-badge.card { background: #dbeafe; color: #1e40af; }

.rarity-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.card-location {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.result-location {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.summary-card.cash .summary-value { color: var(--success); }
.summary-card.card .summary-value { color: #1e40af; }

.summary-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.photo-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.photo-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.photo-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.photo-card img:hover {
    opacity: 0.9;
}

.photo-info {
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.photo-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.photo-unassigned {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.875rem;
}

.primary-badge, .archived-badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.primary-badge { background: var(--primary); color: white; }
.archived-badge { background: var(--secondary); color: white; }

.photo-actions {
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    padding: 0;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--text);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.close-btn:hover {
    background: var(--bg-alt);
}

.modal-content form, .modal-content .capture-options {
    padding: 1.25rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--dark-text);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    min-height: var(--touch-target);
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group select {
    cursor: pointer;
}

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

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-help {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-warning {
    font-size: 0.8125rem;
    color: var(--warning);
    margin-top: 0.25rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    min-height: var(--touch-target);
}

.checkbox-group input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    min-height: var(--touch-target);
    color: var(--dark-text);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--dark-border);
    border-radius: 6px;
    background: var(--dark-card);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-bg);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label span {
    color: var(--dark-text);
}

.item-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 1.5rem;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-form {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.detail-photos {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.detail-photos h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.settings-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.settings-section {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.settings-section h2 {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.danger-zone {
    border: 2px solid var(--danger);
}

.data-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-account-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.payment-account-card.is-default {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.account-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.provider-name {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.account-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.default-badge {
    background: var(--gold);
    color: #000;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-height: auto;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.no-accounts {
    color: var(--text-muted);
    font-style: italic;
    padding: 1rem 0;
}

.add-provider-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.add-provider-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.capture-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem !important;
}

.capture-option h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text);
}

.capture-tip {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-select-btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

.selected-file-name {
    padding: 0.75rem;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    word-break: break-all;
}

.selected-file-name.has-file {
    color: var(--success);
    font-weight: 500;
}

.camera-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    background: #1e293b;
}

.camera-preview, .captured-image {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 220px);
    border-radius: var(--radius);
    background: #1e293b;
    object-fit: contain;
    display: block;
}

.card-guide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-border {
    width: min(80%, calc(100% - 24px));
    aspect-ratio: 5 / 7;
    max-height: 90%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.4);
}

.guide-text {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    white-space: nowrap;
}

.camera-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    z-index: 10;
}

.camera-controls .btn {
    flex: 1 1 45%;
    min-width: 120px;
}

.import-info {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

/* File upload styling for import modal */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-alt);
    border: 2px dashed var(--gold);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-light);
}

.file-upload-icon {
    font-size: 1.5rem;
}

.file-upload-text {
    font-weight: 600;
    color: var(--gold);
}

.file-name-display {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.file-name-display.has-file {
    color: var(--success);
    font-weight: 500;
}

/* Import info box */
.import-info-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.import-info-title {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.import-info-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.import-columns-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.import-columns-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
}

.import-columns-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.import-columns-list li strong {
    color: var(--text);
}

.import-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.import-result {
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.import-result .success { color: var(--success); }
.import-result .error { color: var(--danger); }

.ocr-results {
    padding: 1.25rem;
}

.ocr-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.ocr-text {
    margin-bottom: 1.5rem;
}

.ocr-text h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.ocr-text pre {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.8125rem;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.ocr-matches h4 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

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

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.match-item:hover, .match-item:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.match-item:hover .match-score, .match-item:active .match-score {
    color: rgba(255,255,255,0.8);
}

.match-name {
    font-weight: 600;
}

.match-score, .match-details {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.manual-search {
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.manual-search h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.search-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.search-row .form-input {
    flex: 1;
    min-height: var(--touch-target);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--card-bg);
}

.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    background: var(--text);
    color: white;
    font-weight: 600;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.hidden { display: none !important; }

.no-items, .no-sales, .no-photos, .no-recent, .no-results, .no-photos-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

@media (min-width: 480px) {
    .sell-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .custom-qty-section {
        flex-direction: row;
    }
    
    .summary-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .camera-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 640px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .header-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .modal {
        align-items: center;
        padding: 1rem;
    }
    
    .modal-content {
        border-radius: var(--radius-xl);
        max-width: 600px;
    }
    
    .modal-large {
        max-width: 800px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .data-actions {
        flex-direction: row;
    }
    
    .summary-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) {
    .inventory-table, .sales-table {
        min-width: auto;
    }
    
    .inventory-header, .sales-header, .photos-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .inventory-header h1, .sales-header h1, .photos-header h1 {
        margin-bottom: 0;
    }
    
    .filters {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .camera-preview, .captured-image {
        max-height: 500px;
    }
}

@media (min-width: 900px) {
    .main-content {
        padding: 2rem;
    }
    
    .detail-content {
        flex-direction: row;
    }
    
    .detail-form {
        flex: 2;
    }
    
    .detail-photos {
        flex: 1;
    }
    
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .photo-card img {
        height: 180px;
    }
    
    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .inventory-container, .sales-container, .photos-container, .settings-container, .valuation-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 2rem 3rem;
    }
    
    .header-actions .btn {
        min-width: auto;
    }
    
    .inventory-table td, .sales-table td {
        padding: 1.25rem 1rem;
        font-size: 1rem;
    }
    
    .inventory-table th, .sales-table th {
        font-size: 0.9rem;
        padding: 1rem 1rem;
    }
    
    .inventory-table-wrapper, .sales-table-wrapper {
        overflow-x: visible;
    }
    
    .filters {
        gap: 2rem;
    }
    
    .filter-group {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .inventory-header, .sales-header, .photos-header, .valuation-header {
        margin-bottom: 1.5rem;
    }
    
    .inventory-header h1, .sales-header h1, .photos-header h1, .valuation-header h1 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1200px) {
    .pos-container {
        max-width: 800px;
    }
    
    .inventory-container, .sales-container, .photos-container, .settings-container, .valuation-container {
        max-width: 1600px;
        padding: 2.5rem 4rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .inventory-table td, .sales-table td {
        font-size: 1.0625rem;
        padding: 1.25rem 1.25rem;
    }
    
    .main-content {
        padding: 2.5rem 3rem;
    }
}

@media (min-width: 1440px) {
    .inventory-container, .sales-container, .photos-container, .settings-container, .valuation-container {
        max-width: 1800px;
    }
    
    .inventory-table, .sales-table {
        font-size: 1.0625rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Batch Scan Styles */
.scan-session-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-btn:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-btn input {
    display: none;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.session-info {
    flex: 1;
}

.session-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.mode-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.mode-badge.pokemon {
    background: #fef3c7;
    color: #92400e;
}

.mode-badge.yugioh {
    background: #ddd6fe;
    color: #5b21b6;
}

.mode-badge.other {
    background: #e0e7ff;
    color: #3730a3;
}

.session-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.session-stats {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
}

.session-notes {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.session-actions {
    display: flex;
    gap: 0.5rem;
}

/* New Scanner Page - Fullscreen */
body.scanner-fullscreen {
    background: #0f172a;
}

body.scanner-fullscreen .navbar {
    display: none;
}

.scanner-page-new {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: #0f172a;
    overflow: hidden;
}

.scanner-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.scanner-stats {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.capture-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.count-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.count-number.pulse {
    animation: pulse-scale 0.3s ease;
}

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

.count-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.location-badge {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #a5b4fc;
}

.location-badge.pulse {
    animation: pulse-bg 0.3s ease;
}

@keyframes pulse-bg {
    0%, 100% { background: rgba(99, 102, 241, 0.2); }
    50% { background: rgba(99, 102, 241, 0.4); }
}

.scanner-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-finish {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.scanner-menu {
    background: rgba(255, 255, 255, 0.1);
}

.scanner-menu span {
    background: white;
}

.camera-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.camera-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 5 / 7;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.card-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid white;
}

.corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.capture-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0.8;
    animation: flash 0.15s ease-out;
}

@keyframes flash {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

.scanner-dock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 1rem 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.dock-btn:hover, .dock-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.dock-icon {
    font-size: 1.5rem;
}

.dock-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.toggle-input {
    display: none;
}

.capture-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
}

/* Review Queue */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.session-defaults {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.scan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.scan-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.scan-image {
    position: relative;
    aspect-ratio: 5/7;
    background: var(--bg-alt);
}

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

.scan-warnings {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.scan-info {
    padding: 0.875rem;
}

.parsed-fields .field {
    margin-bottom: 0.25rem;
}

.parsed-fields .field-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.no-ocr {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.875rem;
}

.confidence-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.confidence-high {
    background: #dcfce7;
    color: #166534;
}

.confidence-medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-low {
    background: #fee2e2;
    color: #991b1b;
}

.scan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 36px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
}

.btn-ghost:hover {
    background: var(--border);
    color: var(--text);
}

/* Create from Scan */
.scan-preview-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.scan-preview {
    max-width: 300px;
    margin: 0 auto;
}

.scan-preview img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* Valuation / Price Steer Dashboard */
.valuation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.valuation-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.valuation-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.disclaimer-banner {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
}

.disclaimer-banner strong {
    color: #92400e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 0.25rem;
    font-weight: 600;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.action-btn {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
}

.info-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
}

.info-section h3 {
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    color: var(--text);
}

.info-section ol, .info-section ul {
    margin-left: 1.25rem;
    color: var(--text-muted);
}

.info-section li {
    margin-bottom: 0.5rem;
}

.cost-estimate {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
}

.cost-estimate h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.cost-row:last-child {
    border-bottom: none;
    font-weight: 600;
}

.progress-log {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
}

.progress-log h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.log-entries {
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8125rem;
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.log-entry {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.log-success {
    color: var(--success);
}

.log-error {
    color: var(--danger);
}

.log-info {
    color: var(--primary);
}

/* Price Guide on Item Detail */
.price-guide-section {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border);
}

.price-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.price-guide-header h4 {
    color: var(--text);
    font-size: 0.9375rem;
}

.price-guide-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.price-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-guide-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Photos Page - Match Scanner UI */
.photos-fullscreen .navbar {
    display: none;
}

.photo-capture-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: #0f172a;
    overflow: hidden;
}

.photo-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.photo-top-bar h2 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

.photo-camera-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.photo-camera-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 5 / 7;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.photo-camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-captured-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1e293b;
}

.photo-dock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 1rem 2rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.photo-capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.photo-capture-btn:active {
    transform: scale(0.95);
}

.photo-capture-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
}

.photo-action-btns {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.photo-action-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.photo-action-btn.primary {
    background: var(--success);
    color: white;
}

.photo-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Upload section in photo modal */
.upload-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.upload-section h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-alt);
}

.upload-dropzone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-dropzone p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===========================================
   CARDZVAULT DARK THEME
   =========================================== */

/* Home Page Styles */
.home-page {
    background: var(--dark-bg);
    color: var(--dark-text);
    min-height: 100vh;
}

.home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-header {
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #000000;
    border-bottom: 1px solid var(--gold);
}

.home-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.home-logo {
    display: flex;
    align-items: center;
}

.home-logo-img {
    height: 28px;
    width: auto;
}

.home-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-nav-links .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

.home-nav-links .btn-gold {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
}

.nav-link {
    color: var(--dark-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--gold);
}

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    color: #000;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 5.5rem 1rem 2rem;
    text-align: center;
    background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at center, rgba(74, 158, 255, 0.05) 0%, transparent 50%);
}

.hero-image {
    max-width: 180px;
    margin: 0 auto 0.5rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--dark-text-muted);
    margin-bottom: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-large {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
}

/* Editions Section */
.editions-section {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.edition-card {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.25rem 1.25rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.edition-card:hover {
    transform: translateY(-5px);
}

.edition-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #000;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.edition-logo {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.edition-logo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
}

.edition-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4a9eff;
    margin-bottom: 0.5rem;
}

.edition-title.seller {
    color: var(--gold);
}

.edition-price {
    text-align: center;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

.price-period {
    display: block;
    font-size: 0.8rem;
    color: var(--dark-text-muted);
}

.edition-tagline {
    text-align: center;
    color: var(--dark-text-muted);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.edition-features {
    list-style: none;
    margin-bottom: 1rem;
}

.edition-features li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.edition-features li:last-child {
    border-bottom: none;
}

.edition-features li.locked {
    color: var(--dark-text-muted);
}

.edition-features li.highlight {
    color: var(--gold);
}

.feature-icon {
    font-size: 1rem;
}

.feature-icon.gold {
    color: var(--gold);
}

/* Features Section */
.features-section {
    padding: 2rem 1rem;
    background: var(--dark-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card.seller-feature {
    border-color: var(--gold-dark);
}

.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.feature-image {
    margin-bottom: 0.5rem;
}

.feature-icon-large {
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.feature-card p {
    color: var(--dark-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 2rem 1rem;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.cta-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: var(--dark-text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
.home-footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--dark-border);
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--dark-text-muted);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--dark-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* Coming Soon Ribbon */
.coming-soon-ribbon {
    position: fixed;
    top: 28px;
    left: -35px;
    width: 180px;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 8px 0;
    transform: rotate(-45deg);
    transform-origin: center;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(198, 18, 31, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

/* Waitlist Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.waitlist-modal {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    padding: 2rem;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--dark-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--dark-border);
    color: var(--dark-text);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--dark-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.waitlist-modal .form-group {
    margin-bottom: 1rem;
}

.waitlist-modal .form-group label {
    display: block;
    color: var(--dark-text);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.waitlist-modal .form-group input[type="text"],
.waitlist-modal .form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--dark-text);
    font-size: 1rem;
}

.waitlist-modal .form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.waitlist-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.edition-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--gold);
}

.radio-option input[type="radio"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
}

.radio-label {
    color: var(--dark-text);
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

.success-message {
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-bg);
    margin: 0 auto 1rem;
}

.success-message h3 {
    color: var(--dark-text);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--dark-text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .waitlist-modal .form-row {
        grid-template-columns: 1fr;
    }
    
    .waitlist-modal {
        padding: 1.5rem;
    }
}

/* Dark Auth Pages */
.auth-page.dark-theme {
    background: var(--dark-bg);
    min-height: 100vh;
}

.auth-card.dark {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.auth-card.dark.wide {
    max-width: 600px;
}

.auth-logo-link {
    display: block;
}

.auth-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 16px;
}

.auth-card.dark .auth-header p {
    color: var(--dark-text-muted);
}

.auth-card.dark label {
    color: var(--dark-text);
}

.auth-card.dark input {
    background: var(--dark-bg);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.auth-card.dark input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.auth-card.dark input::placeholder {
    color: var(--dark-text-muted);
}

.auth-card.dark .auth-footer {
    color: var(--dark-text-muted);
}

.auth-card.dark .auth-footer a {
    color: var(--gold);
}

/* Dark Tier Selection */
.tier-selection.dark h3 {
    color: var(--dark-text);
}

.tier-card.dark {
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    padding: 1.25rem;
}

.tier-card.dark.seller {
    border-color: var(--gold-dark);
}

.tier-option input:checked + .tier-card.dark {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.tier-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 0.5rem;
}

.tier-logo.rounded {
    border-radius: 16px;
}

.tier-card.dark .tier-name {
    color: var(--dark-text);
}

.tier-card.dark .tier-price {
    color: var(--gold);
}

.tier-card.dark .tier-features {
    color: var(--dark-text-muted);
}

.tier-badge.gold {
    background: var(--gold);
    color: #000;
}

/* App Dark Mode */
.app-dark {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.app-dark .main-content {
    background: var(--dark-bg);
}

.navbar.dark {
    background: #000000;
    border-bottom: 2px solid var(--gold);
}

.navbar.dark .hamburger span {
    background: var(--dark-text);
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-bell .bell-icon {
    font-size: 22px;
    filter: grayscale(1) brightness(0.7);
    transition: filter 0.2s;
}

.notification-bell.has-notifications .bell-icon {
    filter: none;
}

.notification-bell.ring .bell-icon {
    animation: ringBell 0.5s ease-in-out;
}

@keyframes ringBell {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge.hidden {
    display: none;
}

.nav-drawer.dark {
    background: var(--dark-card);
}

.nav-drawer.dark .drawer-header {
    background: var(--dark-bg);
    border-bottom-color: var(--dark-border);
}

.drawer-logo {
    height: 40px;
    width: auto;
}

.nav-drawer.dark .drawer-close {
    color: var(--dark-text-muted);
}

.nav-drawer.dark .drawer-user {
    background: var(--dark-bg);
    border-bottom-color: var(--dark-border);
}

.user-avatar.tier-collector {
    background: linear-gradient(135deg, #4a9eff, #3b82f6);
}

.user-avatar.tier-seller {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}

.nav-drawer.dark .user-name {
    color: var(--dark-text);
}

.nav-drawer.dark .user-tier {
    color: var(--dark-text-muted);
}

.nav-drawer.dark .drawer-link {
    color: var(--dark-text);
    border-left-color: transparent;
}

.nav-drawer.dark .drawer-link:hover {
    background: var(--dark-bg);
}

.nav-drawer.dark .drawer-link.active {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--gold);
    color: var(--gold);
}

.nav-drawer.dark .drawer-divider {
    background: var(--dark-border);
}

.nav-drawer.dark .drawer-link.upgrade-link {
    color: var(--gold);
}

.nav-drawer.dark .lock-badge {
    background: var(--gold);
    color: #000;
}

.user-tier-badge.tier-collector {
    background: rgba(74, 158, 255, 0.2);
    color: var(--blue-glow);
}

.user-tier-badge.tier-seller {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

/* Dark Cards and Containers */
.app-dark .selected-card,
.app-dark .recent-section,
.app-dark .inventory-card,
.app-dark .photo-card {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

.app-dark .card-info h2,
.app-dark .result-name {
    color: var(--dark-text);
}

.app-dark .search-input {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.app-dark .search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.app-dark .search-results {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

.app-dark .search-result-item {
    border-bottom-color: var(--dark-border);
}

.app-dark .search-result-item:hover {
    background: var(--dark-card-hover);
}

.app-dark .btn-secondary {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.app-dark .btn-secondary:hover {
    background: var(--dark-card-hover);
}

.app-dark .payment-btn {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.app-dark .payment-btn.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.app-dark .filter-btn {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.app-dark .filter-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.app-dark .price-input,
.app-dark .custom-qty-input {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.app-dark .price-input:focus,
.app-dark .custom-qty-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.app-dark h1, .app-dark h2, .app-dark h3 {
    color: var(--dark-text);
}

.app-dark .text-muted,
.app-dark .result-meta,
.app-dark .card-info p {
    color: var(--dark-text-muted);
}

.app-dark .inventory-table-wrapper,
.app-dark .sales-table-wrapper {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

.app-dark .inventory-table th,
.app-dark .sales-table th {
    background: var(--dark-bg-alt);
    color: var(--dark-text);
}

.app-dark .inventory-table td,
.app-dark .sales-table td {
    color: var(--dark-text);
    border-top-color: var(--dark-border);
}

.app-dark .inventory-table a {
    color: var(--gold);
}

.inventory-table th.sortable a,
.sales-table th.sortable a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.inventory-table th.sortable a:hover,
.sales-table th.sortable a:hover {
    color: var(--primary);
}

.app-dark .inventory-table th.sortable a:hover,
.app-dark .sales-table th.sortable a:hover {
    color: var(--gold);
}

.inventory-table th.sortable a::after,
.sales-table th.sortable a::after {
    content: '\2195';
    opacity: 0.4;
    font-size: 0.75em;
}

.inventory-table th.sorted a::after,
.sales-table th.sorted a::after {
    opacity: 1;
}

.inventory-table th.sorted.asc a::after,
.sales-table th.sorted.asc a::after {
    content: '\2191';
}

.inventory-table th.sorted.desc a::after,
.sales-table th.sorted.desc a::after {
    content: '\2193';
}

.photo-add-section {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-dark .no-photos {
    color: var(--dark-text-muted);
}

/* Form row for signup */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tier-options {
        flex-direction: column;
    }
}

.offline-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}

.offline-mode .offline-banner {
    display: flex;
}

.offline-icon {
    font-size: 1.25rem;
}

.pending-badge {
    background: #000;
    color: #f59e0b;
    border-radius: 50%;
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.offline-mode .payment-btn[data-method="card"] {
    opacity: 0.5;
    pointer-events: none;
}

.offline-mode .payment-btn[data-method="card"]::after {
    content: " (offline)";
    font-size: 0.75rem;
}

.catalog-request-banner {
    background: linear-gradient(180deg, #1a1a2e 0%, #12121a 100%);
    border: 1px solid var(--gold);
    border-radius: 16px;
    margin: 16px;
    padding: 0;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
}

.catalog-request-banner.hidden {
    display: none;
}

.catalog-request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.catalog-request-customer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #b8942d 100%);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.request-ref {
    font-size: 13px;
    color: var(--gold);
    font-weight: 500;
}

.request-ref span {
    font-family: monospace;
    letter-spacing: 1px;
}

.catalog-clear-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.catalog-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.catalog-request-items {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    max-height: 200px;
    overflow-y: auto;
}

.catalog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-item:last-child {
    border-bottom: none;
}

.catalog-item-name {
    flex: 1;
    color: #fff;
}

.catalog-item-qty {
    color: #888;
    margin: 0 12px;
    font-size: 13px;
}

.catalog-item-price {
    color: var(--gold);
    font-weight: 600;
}

.catalog-request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-item-count {
    font-size: 14px;
    color: #888;
}

.catalog-request-total {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}

.event-selector-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    margin-bottom: 16px;
}

.event-selector-label {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
}

.event-selector {
    flex: 1;
    padding: 10px 14px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    min-width: 0;
}

.event-selector:focus {
    border-color: var(--gold);
    outline: none;
}

.event-selector option {
    background: #1a1a2e;
    color: #fff;
}

.event-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
}

.event-indicator.hidden {
    display: none;
}

.event-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.event-indicator .event-name {
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.catalog-payment-section {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-payment-toggle {
    display: flex;
    gap: 8px;
}

.catalog-pay-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.catalog-pay-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.catalog-pay-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-color: var(--gold);
    color: var(--gold);
}

.catalog-pay-btn .pay-icon {
    font-size: 20px;
}

.catalog-complete-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalog-complete-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
}

.catalog-complete-btn:active {
    transform: translateY(0);
}

.catalog-complete-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.event-list {
    padding: 0;
}

.event-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--dark-border);
}

.event-card.inactive {
    opacity: 0.6;
}

.event-info {
    flex: 1;
}

.event-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-code {
    font-family: monospace;
    color: var(--gold);
    margin-bottom: 8px;
}

.event-stats {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--dark-text-muted);
}

.event-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-gold {
    background: var(--gold);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-muted {
    background: var(--dark-border);
    color: var(--dark-text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.text-gold {
    color: var(--gold);
}

/* === POS Basket === */
.pos-basket {
    background: linear-gradient(180deg, #1a1a2e 0%, #12121a 100%);
    border: 1px solid var(--gold);
    border-radius: 16px;
    margin: 16px;
    padding: 0;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
}

.pos-basket.hidden {
    display: none;
}

.basket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.basket-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.basket-icon {
    font-size: 20px;
}

.basket-count {
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.basket-clear-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.basket-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.basket-items {
    padding: 12px 16px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.basket-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.basket-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.basket-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.basket-item-details {
    font-size: 11px;
    color: var(--dark-text-muted);
}

.basket-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.basket-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.basket-qty-btn:hover {
    background: var(--gold);
    color: #000;
}

.basket-item-qty {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.basket-item-price {
    display: flex;
    align-items: center;
}

.basket-price-input {
    width: 70px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.basket-price-input:focus {
    outline: none;
    border-color: var(--gold);
}

.basket-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.basket-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.basket-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.basket-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--dark-text-muted);
}

.basket-total-edit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.basket-total-edit label {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.basket-total-input {
    width: 120px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    text-align: right;
}

.basket-total-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.basket-discount {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.basket-discount.hidden {
    display: none;
}

.discount-amount {
    color: #22c55e;
    font-weight: 600;
}

.basket-payment-section {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.basket-payment-toggle {
    display: flex;
    gap: 8px;
}

.basket-pay-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.basket-pay-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.basket-pay-btn .pay-icon {
    font-size: 18px;
}

.basket-checkout-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--gold) 0%, #b8942d 100%);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.basket-checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.basket-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Sell buttons adjustments */
.sell-btn.add-basket {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: #fff;
}

.sell-btn.add-basket:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.sell-buttons-secondary {
    margin-top: 8px;
}

.sell-btn.sell-custom-small {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 14px;
    padding: 10px 16px;
}

.sell-btn.sell-custom-small:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* === Quick Sale === */
.quick-sale-section {
    margin: 16px 0;
}

.quick-sale-toggle {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 8px;
    color: #22c55e;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.quick-sale-toggle:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.2) 100%);
    border-color: #22c55e;
}

.quick-sale-icon {
    font-size: 18px;
    font-weight: 700;
}

.quick-sale-panel {
    margin-top: 12px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
}

.quick-sale-panel.hidden {
    display: none;
}

.quick-sale-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.quick-sale-row label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    min-width: 60px;
}

.quick-sale-desc {
    flex: 1;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.quick-sale-desc:focus {
    outline: none;
    border-color: #22c55e;
}

.quick-sale-amount {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #22c55e;
    border-radius: 8px;
    color: #22c55e;
    font-size: 24px;
    font-weight: 700;
    text-align: right;
}

.quick-sale-amount:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.quick-sale-payment {
    display: flex;
    gap: 10px;
}

.quick-pay-btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.quick-pay-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.quick-pay-btn:active {
    transform: scale(0.98);
}

.quick-pay-btn .pay-icon {
    font-size: 18px;
}
