/* ==========================================================================
   Bidzin - Premium Design
   ========================================================================== */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gold: #fbbf24;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252540;
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --border: #2d2d44;
    
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(124,58,237,0.3);
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: rgba(15,15,26,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary);
    font-size: 1.25rem;
}

.nav { display: flex; gap: 0.5rem; }

.nav-link {
    padding: 0.625rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover { color: var(--text); background: var(--bg-card); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Search */
.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-box input::placeholder { color: var(--text-secondary); }

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
    z-index: 100;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-card-hover); }

.search-result-item img {
    width: 36px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

.result-info { flex: 1; }
.result-info strong { display: block; font-size: 0.875rem; }
.result-info small { color: var(--text-secondary); font-size: 0.75rem; }
.result-price { color: var(--success); font-weight: 700; }

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

/* User Dropdown */
.user-dropdown { position: relative; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover { border-color: var(--primary); }
.user-btn i:first-child { color: var(--primary); }

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
}

.user-dropdown.open .user-menu { display: block; }

.user-menu a, .user-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.user-menu a:hover, .user-menu button:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.user-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.25rem 0;
}

.mobile-menu-btn { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-success:hover { transform: translateY(-2px); color: white; }

.btn-white {
    background: white;
    color: var(--gray-900);
}

.btn-white:hover { transform: translateY(-2px); color: var(--gray-900); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(124,58,237,0.1);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 1.5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(6,182,212,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(124,58,237,0.1) 0%, transparent 50%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c3aed' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat { text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--primary-light); }
.stat-label { font-size: 0.875rem; color: var(--text-secondary); }

/* ==========================================================================
   Features
   ========================================================================== */
.features {
    padding: 6rem 0;
    background: var(--bg-card);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-secondary); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Popular Section
   ========================================================================== */
.popular-section {
    padding: 6rem 0;
}

.popular-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Cards Grid
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.card-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.card-item:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.card-image {
    aspect-ratio: 0.72;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    transition: var(--transition);
}

.card-item:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.card-item:hover .card-overlay { opacity: 1; }

.card-info {
    padding: 1.25rem;
}

.card-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-set {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

/* ==========================================================================
   Page Headers
   ========================================================================== */
.page-header-fancy {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
}

.page-header-fancy h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header-fancy h1 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.page-header-fancy p {
    color: var(--text-secondary);
}

.page-header-fancy.auctions {
    background: linear-gradient(135deg, rgba(124,58,237,0.1), var(--bg));
}

.page-content {
    padding: 2rem 0 4rem;
}

/* ==========================================================================
   Filters
   ========================================================================== */
.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-filter {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.search-filter i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-filter input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
}

.search-filter input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select {
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    min-width: 180px;
}

.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.toolbar-left { color: var(--text-secondary); }

/* ==========================================================================
   Card Detail Page
   ========================================================================== */
.card-detail-page {
    padding: 2rem 0 4rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { color: var(--text-secondary); font-size: 0.7rem; }
.breadcrumb span { color: var(--text); }

.card-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
}

.card-showcase {
    background: linear-gradient(145deg, var(--bg-card), #16162b);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    position: sticky;
    top: 100px;
}

.card-showcase img {
    max-width: 300px;
    border-radius: var(--radius);
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
}

.card-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-title-section {
    margin-bottom: 2rem;
}

.card-title-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-meta a { color: var(--text-secondary); }
.card-meta span { color: var(--text-secondary); }

/* Price Showcase */
.price-showcase {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.price-main-box {
    display: flex;
    justify-content: space-between;
}

.price-item { }
.price-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.price-value.secondary {
    font-size: 1.75rem;
    opacity: 0.9;
}

.price-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Detail Sections */
.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.detail-section h3 {
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.detail-section h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.variants-table {
    padding: 0.5rem 1.5rem;
}

.variant-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.variant-row:last-child { border-bottom: none; }
.variant-price { color: var(--success); font-weight: 700; }

.graded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.graded-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.graded-item.highlight {
    border-color: var(--gold);
    background: rgba(251,191,36,0.05);
}

.grade-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.grade-price {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.grade-sales {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.info-grid {
    padding: 1rem 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child { border-bottom: none; }
.info-item span:first-child { color: var(--text-secondary); }

/* ==========================================================================
   Auctions Grid
   ========================================================================== */
.auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.auction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.auction-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.auction-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auction-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.auction-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.auction-info {
    padding: 1.5rem;
}

.auction-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auction-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auction-meta .condition,
.auction-meta .graded {
    padding: 0.25rem 0.5rem;
    background: var(--bg);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.auction-meta .graded {
    background: rgba(16,185,129,0.2);
    color: var(--success);
}

.auction-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 0.5rem;
}

.auction-timer {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auction-timer.urgent {
    color: var(--danger);
    font-weight: 600;
}

.auction-bids {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Auction Detail
   ========================================================================== */
.auction-detail-page {
    padding: 2rem 0 4rem;
}

.auction-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
}

.auction-showcase {
    background: linear-gradient(145deg, var(--bg-card), #16162b);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
}

.auction-showcase img {
    max-width: 300px;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
}

.auction-item-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 1.5rem;
    overflow: hidden;
}

.auction-item-info h3 {
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.info-list { padding: 0.5rem 1.25rem; }

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-secondary); }

.auction-detail-right h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* Bid Panel */
.bid-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.bid-current {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.bid-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.bid-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--success);
}

.bid-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.bid-timer {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.bid-timer.urgent {
    background: rgba(239,68,68,0.1);
    border: 1px solid var(--danger);
}

.timer-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.bid-timer.urgent .timer-value { color: var(--danger); }

.bid-form { margin-top: 1.5rem; }

.bid-input-group {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.bid-input-group .currency {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.bid-input-group input {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

.bid-input-group input:focus { outline: none; }

.bid-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.auction-ended {
    text-align: center;
    padding: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.status-badge.sold { background: rgba(16,185,129,0.2); color: var(--success); }

.auction-description {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.auction-description h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.bid-history {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.bid-history h3 {
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.bid-item:last-child { border-bottom: none; }

.bid-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.bid-user i { color: var(--primary); }

.auto-badge {
    padding: 0.125rem 0.5rem;
    background: var(--bg);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.bid-amount {
    font-weight: 700;
    color: var(--success);
}

/* ==========================================================================
   Auth Pages
   ========================================================================== */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-header p { color: var(--text-secondary); }

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.input-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ==========================================================================
   Create Auction Form
   ========================================================================== */
.form-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.form-section h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-search-input {
    position: relative;
}

.search-dropdown-form {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: none;
    z-index: 10;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover { background: var(--bg-card); }

.dropdown-item img {
    width: 40px;
    height: 56px;
    object-fit: contain;
}

.dropdown-item strong { display: block; font-size: 0.875rem; }
.dropdown-item small { color: var(--text-secondary); }

/* ==========================================================================
   My Bids
   ========================================================================== */
.bids-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bid-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.bid-card:hover {
    border-color: var(--primary);
}

.bid-card img {
    width: 60px;
    height: 84px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.bid-card-info {
    flex: 1;
}

.bid-card-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.bid-card-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.bid-card-status {
    text-align: right;
}

.bid-card-status .current {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-secondary);
}

.badge-success { background: rgba(16,185,129,0.2); color: var(--success); }
.badge-gold { background: rgba(251,191,36,0.2); color: var(--gold); }
.badge-primary { background: rgba(124,58,237,0.2); color: var(--primary-light); }

/* ==========================================================================
   Empty States
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state.full {
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Loading
   ========================================================================== */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 1rem;
    color: var(--text-secondary);
}

.loading-inline {
    display: flex;
    justify-content: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner.small {
    width: 32px;
    height: 32px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Error Page
   ========================================================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.error-page i {
    font-size: 5rem;
    color: var(--danger);
    margin-bottom: 1rem;
}

.error-page h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Toast
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-success i { color: var(--success); }

.toast-error { border-left: 4px solid var(--danger); }
.toast-error i { color: var(--danger); }

.toast-info { border-left: 4px solid var(--primary); }
.toast-info i { color: var(--primary); }

.toast-warning { border-left: 4px solid var(--warning); }
.toast-warning i { color: var(--warning); }

.toast span { flex: 1; }

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.375rem 0;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.p-4 { padding: 1rem; }
.mt-4 { margin-top: 1rem; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.ml-2 { margin-left: 0.5rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-detail-grid,
    .auction-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .card-showcase,
    .auction-showcase {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
    }
    
    .nav,
    .search-box {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.25rem;
        color: var(--text);
        cursor: pointer;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .auctions-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .search-filter {
        max-width: none;
    }
}

/* ==========================================================================
   Card Detail Page - Complete View
   ========================================================================== */

.card-detail-header {
    margin-bottom: 2rem;
}

.card-detail-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.card-badges .badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badges .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.5rem;
}

.card-detail-grid-full {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.card-detail-image-col {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.card-showcase-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.card-showcase-box img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.card-external-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.external-link-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.external-link-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.external-link-btn img {
    height: 24px;
    width: auto;
}

.external-link-btn span {
    flex: 1;
}

.external-link-btn .fa-external-link-alt {
    opacity: 0.5;
}

/* Data Column */
.card-detail-data-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price-boxes-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.price-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.price-box.main {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(124,58,237,0.1), transparent);
}

.price-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.price-box-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.price-box-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--success);
}

.price-box-value.secondary {
    color: var(--text);
    font-size: 1.5rem;
}

/* Graded Prices Section */
.graded-prices-section,
.population-section,
.card-info-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.graded-prices-section {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(251,191,36,0.1), transparent);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title i {
    color: var(--gold);
}

.graded-prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.graded-price-item {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    border: 1px solid transparent;
}

.graded-price-item.highlight {
    border-color: var(--gold);
    background: rgba(251,191,36,0.1);
}

.grade-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.grade-price {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.grade-sales {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Population Section */
.population-section .section-title i {
    color: var(--secondary);
}

.population-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.pop-stat {
    text-align: center;
}

.pop-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.pop-value {
    font-size: 1.125rem;
    font-weight: 800;
}

.pop-value.good {
    color: var(--warning);
}

.pop-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

.population-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.pop-item {
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 0.625rem;
    text-align: center;
    border: 1px solid var(--border);
}

.pop-item.highlight {
    border-color: var(--success);
    background: rgba(16,185,129,0.1);
}

.pop-grade {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pop-item.highlight .pop-grade {
    color: var(--success);
}

.pop-count {
    font-size: 0.875rem;
    font-weight: 800;
}

/* Card Info Section */
.card-info-section .section-title i {
    color: var(--secondary);
}

.info-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-key {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-val {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Action Box */
.card-action-box {
    padding-top: 1rem;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.chart-card.graded {
    border-color: rgba(251,191,36,0.3);
    background: linear-gradient(135deg, rgba(251,191,36,0.05), transparent);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.chart-title i {
    color: var(--secondary);
}

.chart-card.graded .chart-title i {
    color: var(--gold);
}

.chart-period {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.chart-period-btns {
    display: flex;
    gap: 0.25rem;
}

.period-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.period-btn:hover,
.period-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.chart-container {
    padding: 1.25rem;
    height: 280px;
}

/* eBay Sales Section */
.ebay-sales-section {
    margin-bottom: 2rem;
}

.section-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.section-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.section-card-header i {
    color: var(--secondary);
}

.grade-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.grade-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.grade-tab:hover {
    border-color: var(--text-secondary);
}

.grade-tab.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.sales-content {
    padding: 1.25rem;
}

.sales-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.sales-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
}

.market-insight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(16,185,129,0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
}

.market-insight i {
    color: var(--success);
    font-size: 1.125rem;
}

.market-insight strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.market-insight span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Sales Table */
.sales-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.sales-table th {
    text-align: left;
    padding: 0.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.sales-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sales-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.sales-table .date {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.sales-table .title {
    max-width: 400px;
    color: var(--text);
}

.sales-table .price {
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
}

.sales-table .action {
    text-align: right;
}

/* Grade Meta */
.grade-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.confidence {
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.625rem;
    text-transform: uppercase;
}

.confidence.high { background: rgba(16,185,129,0.2); color: var(--success); }
.confidence.medium { background: rgba(251,191,36,0.2); color: var(--warning); }
.confidence.low { background: rgba(239,68,68,0.2); color: var(--danger); }

/* Trend Icons */
.trend-up { color: var(--success); margin-left: 0.25rem; }
.trend-down { color: var(--danger); margin-left: 0.25rem; }

/* Graders Breakdown */
.graders-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.grader-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.grader-name {
    color: var(--text-secondary);
    font-weight: 600;
}

.grader-total {
    color: var(--text);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .card-detail-grid-full {
        grid-template-columns: 1fr;
    }
    
    .card-detail-image-col {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .price-boxes-row {
        grid-template-columns: 1fr;
    }
    
    .graded-prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .population-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sales-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
