/* R1 (navbar fixed) + R3 (no scrollbar shift) */
html {
    scrollbar-gutter: stable;
}

/* R5: page owns its base look + layout (were inherited from dashboard.css) */
body {
    background-color: #f4f7fc;
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url("../../dashboard/img/dashboard.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    overflow-x: clip;
}

.today-auction-page {
    font-family: 'Poppins', sans-serif;
}
.today-auction-container {
    display: flex;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 40px;
    gap: 50px;
}
.today-auction-main {
    flex-grow: 1;
}
@media (max-width: 900px) {
    .today-auction-container { flex-direction: column; }
}
@media (max-width: 600px) {
    .today-auction-container { padding: 0 16px; margin: 20px auto; }
}

/* Today Auction Specific Styles */

.today-auction-page {
    padding-bottom: 80px;
    width: 100%;
}

.today-auction-page .main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Top Header Bar */
.today-auction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 6px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-title {
    color: #0088ea;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.live-dot {
    width: 7px;
    height: 7px;
    background-color: #16a34a;
    border-radius: 50%;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.page-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action-light {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action-light:hover {
    background: #f8fafc;
    border-color: #0088ea;
    color: #0088ea;
    transform: translateY(-1px);
}

.btn-action-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0088ea;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 136, 234, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action-primary:hover {
    background: #0070c0;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 136, 234, 0.4);
}

/* Controls Bar with Category Dropdown Search */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 136, 234, 0.12);
    border-radius: 16px;
    padding: 12px 18px;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 20;
}

.search-container-wrap {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.search-input-group:focus-within {
    border-color: #0088ea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 136, 234, 0.1);
}

.search-icon-left {
    padding-left: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 1;
    padding: 10px 10px 10px 10px;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 13.5px;
    outline: none;
    min-width: 0;
}

/* Search Category Selector */
.search-category-dropdown {
    position: relative;
    border-left: 1px solid #e2e8f0;
}

.category-trigger-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #0088ea;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.category-trigger-btn svg {
    transition: transform 0.2s ease;
}

.category-trigger-btn.is-active svg {
    transform: rotate(180deg);
}

.category-trigger-btn:hover {
    background: rgba(0, 136, 234, 0.06);
}

.category-menu-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 136, 234, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    min-width: 150px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}

.category-menu-list.is-open {
    display: flex;
}

.category-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.15s ease;
}

.category-item-btn:hover {
    background: #f1f5f9;
    color: #0088ea;
}

.category-item-btn.is-active {
    background: rgba(0, 136, 234, 0.1);
    color: #0088ea;
    font-weight: 700;
}

/* Auto-complete Results Floating Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 136, 234, 0.18);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    padding: 8px;
}

.search-results-dropdown.is-open {
    display: block;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8fafc;
}

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

.result-item:hover {
    background: #f0f7ff;
    transform: translateX(2px);
}

.result-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-avatar-fallback {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0088ea, #0ea5e9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.result-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.result-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 136, 234, 0.1);
    color: #0088ea;
}

.result-badge.badge-player {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.result-badge.badge-team {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}

.result-badge.badge-match {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.result-badge.badge-tournament {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.search-loading-item,
.search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #0088ea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Filter Tabs */
.tabs-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
}

.tab-pill {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-pill:hover {
    color: #0088ea;
    background: #e0f2fe;
}

.tab-pill.active {
    background: #0088ea;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 136, 234, 0.25);
}

.tab-count {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.tab-pill.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Auction Cards Grid */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Card Design Matching SmartScorer Style */
.auction-card {
    background: 
        radial-gradient(circle at 100% 0%, rgba(0, 136, 234, 0.12) 0%, transparent 60%),
        repeating-linear-gradient(
            to right,
            rgba(59, 130, 246, 0.01) 0px,
            rgba(59, 130, 246, 0.01) 35px,
            rgba(59, 130, 246, 0.03) 35px,
            rgba(59, 130, 246, 0.03) 70px
        ), #ffffff;
    border: 1px solid rgba(0, 136, 234, 0.15);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.05), 0 10px 24px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px -4px rgba(59, 130, 246, 0.2), 0 14px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 136, 234, 0.4);
}

.auction-card.card-is-live {
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.12), 0 10px 24px rgba(0, 0, 0, 0.03);
}

.auction-card.card-is-live:hover {
    box-shadow: 0 10px 32px -4px rgba(34, 197, 94, 0.3), 0 14px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(34, 197, 94, 0.7);
}

.ac-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px 16px 24px;
    position: relative;
    z-index: 1;
}

.ac-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    height: 28px;
    width: 4px;
    background-color: #0088ea;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(0, 136, 234, 0.5);
}

.card-is-live .ac-header::before {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.ac-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ffffff;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.ac-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0088ea, #0284c7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 136, 234, 0.3);
}

.card-is-live .ac-avatar-placeholder {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.ac-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.ac-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ac-name {
    font-size: 17.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status Badges */
.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.status-badge.waiting {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-badge.live {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-badge.completed {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ac-date-time {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
}

.ac-date-time span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Inner Details Grid */
.ac-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    font-size: 13.5px;
    color: #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin: 0 24px 18px 24px;
    padding: 14px 18px;
    position: relative;
    z-index: 1;
}

.ac-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ac-label {
    color: #64748b;
    font-weight: 500;
}

.ac-value {
    font-weight: 700;
    color: #0f172a;
}

.ac-value.highlight {
    color: #0088ea;
}

/* Card Action Footer */
.ac-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
    background: rgba(248, 250, 252, 0.6);
    gap: 12px;
}

.btn-card-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-card-secondary:hover {
    background: #f8fafc;
    border-color: #0088ea;
    color: #0088ea;
    transform: translateY(-1px);
}

.btn-card-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #0088ea;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 136, 234, 0.28);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-card-primary:hover {
    background: #0070c0;
    box-shadow: 0 4px 14px rgba(0, 136, 234, 0.4);
    transform: translateY(-1px);
}

.btn-card-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.32);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-card-live:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

/* Empty State */
.empty-state-card {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 136, 234, 0.1);
    color: #0088ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.empty-state-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 440px;
    margin: 0;
}

/* ── Dark Mode ── */
[data-theme="dark"] .today-auction-header {
    color: #f8fafc;
}

[data-theme="dark"] .page-title {
    color: #f8fafc;
}

[data-theme="dark"] .page-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .live-badge {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
}

[data-theme="dark"] .controls-bar {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .search-input-group {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-input-group:focus-within {
    border-color: #0088ea;
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .search-input {
    color: #f8fafc;
}

[data-theme="dark"] .search-input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .category-trigger-btn {
    color: #60a5fa;
}

[data-theme="dark"] .search-category-dropdown {
    border-left-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .category-menu-list,
[data-theme="dark"] .search-results-dropdown {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .category-item-btn {
    color: #cbd5e1;
}

[data-theme="dark"] .category-item-btn:hover,
[data-theme="dark"] .result-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .result-title {
    color: #f8fafc;
}

[data-theme="dark"] .result-meta {
    color: #94a3b8;
}

[data-theme="dark"] .result-item {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .tab-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

[data-theme="dark"] .tab-pill:hover {
    background: rgba(0, 136, 234, 0.18);
    color: #60a5fa;
    border-color: rgba(0, 136, 234, 0.3);
}

[data-theme="dark"] .tab-pill.active {
    background: #0088ea;
    color: #ffffff;
    border-color: #0088ea;
    box-shadow: 0 2px 10px rgba(0, 136, 234, 0.4);
}

[data-theme="dark"] .btn-action-light {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

[data-theme="dark"] .btn-action-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #0088ea;
    color: #60a5fa;
}

[data-theme="dark"] .auction-card {
    background: 
        radial-gradient(circle at 100% 0%, rgba(0, 136, 234, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 6px 18px rgba(0, 0, 0, 0.35),
        0 18px 36px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .auction-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 10px 28px rgba(59, 130, 246, 0.18),
        0 20px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .ac-name,
[data-theme="dark"] .ac-value {
    color: #f8fafc;
}

[data-theme="dark"] .ac-value.highlight {
    color: #60a5fa;
}

[data-theme="dark"] .ac-label {
    color: #94a3b8;
}

[data-theme="dark"] .ac-date-time {
    color: #94a3b8;
}

[data-theme="dark"] .ac-details {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
}

[data-theme="dark"] .ac-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-card-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

[data-theme="dark"] .empty-state-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .empty-state-title {
    color: #f8fafc;
}

[data-theme="dark"] .empty-state-desc {
    color: #94a3b8;
}

[data-theme="dark"] .empty-state-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

@media (max-width: 768px) {
    .today-auction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .page-title {
        font-size: 26px;
    }

    .header-right {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .header-right .btn-action-primary {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 11px 16px;
        font-size: 14px;
    }

    .header-right .btn-action-light {
        justify-content: center;
        padding: 9px 12px;
        font-size: 13px;
    }

    .controls-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 14px;
        gap: 12px;
    }

    .search-container-wrap {
        max-width: 100%;
        min-width: 0;
    }

    .tabs-wrap {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs-wrap::-webkit-scrollbar {
        display: none;
    }

    .tab-pill {
        flex-shrink: 0;
        padding: 7px 12px;
        font-size: 12.5px;
    }

    .auction-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .today-auction-page {
        padding-bottom: 60px;
    }

    .page-title {
        font-size: 23px;
    }

    .live-badge {
        font-size: 11px;
        padding: 3px 9px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .auction-card {
        border-radius: 16px;
    }

    .ac-header {
        padding: 16px 16px 12px 16px;
        gap: 12px;
    }

    .ac-avatar,
    .ac-avatar-placeholder {
        width: 44px;
        height: 44px;
        font-size: 17px;
        border-radius: 10px;
    }

    .ac-name {
        font-size: 15.5px;
    }

    .ac-date-time {
        font-size: 12px;
        gap: 8px;
    }

    .ac-details {
        margin: 0 16px 14px 16px;
        padding: 12px 14px;
        font-size: 12.5px;
        gap: 8px 12px;
    }

    .ac-footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .btn-card-secondary,
    .btn-card-primary,
    .btn-card-live {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
        justify-content: center;
    }

    .empty-state-card {
        padding: 40px 16px;
        border-radius: 16px;
    }

    .empty-state-icon {
        width: 52px;
        height: 52px;
    }

    .empty-state-title {
        font-size: 16px;
    }

    .empty-state-desc {
        font-size: 13px;
    }
}

/* ====================== PREMIUM CARD ANIMATIONS ====================== */
@keyframes slowSlideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-card {
    animation: slowSlideFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
/* ── DARK THEME: page background (was light #f4f7fc with a white veil) ── */
[data-theme="dark"] body {
    background-color: var(--color-bg);
    background-image: linear-gradient(rgba(5, 8, 17, 0.72), rgba(5, 8, 17, 0.88)), url("../../dashboard/img/dashboard.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-text);
}
