:root {
    --modern-bg: #f8fafc;
    --modern-card-bg: rgba(255, 255, 255, 0.85);
    --modern-text: #0f172a;
    --modern-text-muted: #64748b;
    --modern-orange: #ea580c;
    --modern-orange-glow: rgba(234, 88, 12, 0.35);
    --modern-gradient-orange: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    --modern-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --modern-border: #e2e8f0;
    --modern-radius-lg: 16px;
    --modern-radius-md: 10px;
    --modern-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --modern-shadow-glow: 0 8px 25px rgba(234, 88, 12, 0.25);
}

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

body.theme-modern-body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    background-color: var(--modern-bg);
    color: var(--modern-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--modern-text);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Header */
.modern-header {
    background: #0f172a;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 14px 20px;
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(234, 88, 12, 0.6));
}

.logo-text .highlight {
    color: #f97316;
}

/* Modern Search Box */
.modern-search-box {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 580px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px 6px 4px 18px;
    transition: all 0.3s ease;
}

.modern-search-box:focus-within {
    background: #ffffff;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

.search-icon {
    font-size: 1rem;
    color: #94a3b8;
    margin-right: 10px;
}

.modern-search-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
}

.modern-search-box:focus-within input {
    color: #0f172a;
}

.search-btn {
    background: var(--modern-gradient-orange);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.04);
}

/* Header Actions */
.modern-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-ghost {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: 20px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-glow {
    background: var(--modern-gradient-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: var(--modern-shadow-glow);
}

.btn-glow:hover {
    transform: translateY(-2px);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.user-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Subnav Category Chips */
.modern-subnav {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
}

.cat-pill-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
}

.cat-chip {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}

.cat-chip:hover {
    background: #f97316;
    color: #ffffff;
    border-color: #f97316;
}

/* Main Content Wrapper */
.modern-main-content {
    padding: 30px 20px;
}

/* Modern Card Glass Panel */
.modern-glass-card {
    background: #ffffff;
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius-lg);
    box-shadow: var(--modern-shadow);
    padding: 30px;
}

/* Modern Product Detail Layout (Ultra Sleek) */
.product-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 35px;
    margin-bottom: 40px;
}

/* Product Media Showcase */
.product-media-card {
    background: #ffffff;
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--modern-shadow);
}

.live-badge-pulse {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.media-hero-view {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-hero-view img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.media-hero-view img:hover {
    transform: scale(1.05);
}

/* Auction Command Center (Right Column) */
.auction-command-card {
    background: #ffffff;
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius-lg);
    padding: 35px;
    box-shadow: var(--modern-shadow);
    display: flex;
    flex-direction: column;
}

.product-meta-header {
    margin-bottom: 20px;
}

.category-tag-pill {
    background: #ffedd5;
    color: #c2410c;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-meta-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 10px;
    line-height: 1.25;
}

.seller-trust-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #64748b;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--modern-border);
}

.seller-trust-badge .stars {
    color: #f59e0b;
    font-weight: 700;
}

/* Digital Countdown Clock */
.digital-clock-card {
    background: var(--modern-gradient-dark);
    color: #ffffff;
    border-radius: var(--modern-radius-md);
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clock-label {
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 500;
}

.clock-digits {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f97316;
    letter-spacing: 1px;
    font-family: monospace;
}

/* Price Pulse Box */
.price-pulse-box {
    margin-bottom: 20px;
}

.price-pulse-label {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.price-pulse-amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
}

/* Bidding Controls */
.bidding-action-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bid-input-container {
    display: flex;
    gap: 10px;
}

.bid-input-modern {
    flex-grow: 1;
    padding: 14px 18px;
    border: 2px solid var(--modern-border);
    border-radius: var(--modern-radius-md);
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}

.bid-input-modern:focus {
    border-color: #ea580c;
}

.btn-bid-submit {
    background: var(--modern-gradient-orange);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--modern-radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--modern-shadow-glow);
    transition: transform 0.2s;
}

.btn-bid-submit:hover {
    transform: translateY(-2px);
}

/* Chips presets */
.chip-presets {
    display: flex;
    gap: 10px;
}

.chip-btn {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--modern-border);
    color: #ea580c;
    font-weight: 700;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-btn:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
}

/* Recent Activity Timeline */
.activity-timeline {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--modern-border);
}

.activity-timeline h4 {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 12px;
}

.timeline-list {
    list-style: none;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.9rem;
}

.timeline-user {
    font-weight: 600;
    color: #1e293b;
}

.timeline-price {
    font-weight: 700;
    color: #16a34a;
}

/* Lower Section Tabs */
.content-deck-card {
    background: #ffffff;
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius-lg);
    box-shadow: var(--modern-shadow);
    padding: 35px;
}

.deck-tabs-nav {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid var(--modern-border);
    margin-bottom: 30px;
}

.deck-tab-link {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.deck-tab-link.active {
    color: #ea580c;
    border-bottom-color: #ea580c;
}

.deck-tab-pane {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #334155;
}

/* Modern Footer */
.modern-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.92rem;
}

.theme-switcher-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-label {
    color: #e2e8f0;
    font-weight: 600;
}

.theme-opt {
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
}

.theme-opt.active {
    background: #ea580c;
    color: #ffffff;
    font-weight: 700;
    border-color: #ea580c;
}

/* Responsive Media Queries */
@media (max-width: 850px) {
    .product-showcase-container {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .modern-search-box {
        width: 100%;
        max-width: 100%;
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
    }
}
