:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --primary: #58a6ff;
    --primary-hover: #1f6feb;
    --accent: #ff7b72;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --border: #30363d;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --font-fam: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-fam);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5 {
    color: #fff;
    font-weight: 600;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}
.logo .dot { color: var(--primary); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--primary-hover); }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover {
    background: var(--border);
    color: #fff;
}
.btn-accent {
    background: var(--accent);
}
.btn-accent:hover {
    background: #e5534b;
    box-shadow: 0 4px 12px rgba(255, 123, 114, 0.3);
}

/* Nav */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-links a:not(.btn) {
    color: var(--text-main);
    font-weight: 500;
}
.nav-links a:not(.btn):hover {
    color: #fff;
}

/* Layout */
.content-wrapper {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    width: 100%;
    padding: 0 2rem;
}

/* Cards & Forms */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #fff;
}
.form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-fam);
    transition: border-color 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Dropdown */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Utility */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Auction View */
.auction-view {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.auction-timer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    width: 100%;
    transition: width 1s linear;
}
.auction-timer-bar.warning { background: var(--accent); }

/* Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.gallery-main {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}
.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gallery-thumbs {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.gallery-thumbs img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

/* Auction Sidebar info */
.auction-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.auction-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tag {
    background: rgba(88, 166, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(88, 166, 255, 0.3);
}
.price-box {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    text-align: center;
}
.price-box .current-price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0;
}

/* Drag drop area */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dropzone.dragover {
    border-color: var(--primary);
    background: rgba(88, 166, 255, 0.05);
    color: var(--primary);
}

/* Loader */
.loader {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    margin-top: auto;
    background: var(--card-bg);
}

.footer-links-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.partner-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.partner-links li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.partner-links li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .partner-links {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Themes */
body.theme-white {
    --bg-color: #f6f8fa;
    --card-bg: #ffffff;
    --primary: #0969da;
    --primary-hover: #0349b4;
    --accent: #cf222e;
    --text-main: #24292f;
    --text-muted: #57606a;
    --border: #d0d7de;
    --glass-bg: rgba(255, 255, 255, 0.9);
}
body.theme-white h1, body.theme-white h2, body.theme-white h3, body.theme-white h4, body.theme-white h5, 
body.theme-white .logo, body.theme-white .price-box .current-price, body.theme-white .form-group label,
body.theme-yellow h1, body.theme-yellow h2, body.theme-yellow h3, body.theme-yellow h4, body.theme-yellow h5, 
body.theme-yellow .logo, body.theme-yellow .price-box .current-price, body.theme-yellow .form-group label,
body.theme-orange h1, body.theme-orange h2, body.theme-orange h3, body.theme-orange h4, body.theme-orange h5, 
body.theme-orange .logo, body.theme-orange .price-box .current-price, body.theme-orange .form-group label,
body.theme-pink h1, body.theme-pink h2, body.theme-pink h3, body.theme-pink h4, body.theme-pink h5, 
body.theme-pink .logo, body.theme-pink .price-box .current-price, body.theme-pink .form-group label {
    color: #1f2328;
}
body.theme-white .gallery-main { background: #f6f8fa; }
body.theme-yellow .gallery-main { background: #fff5b8; }
body.theme-orange .gallery-main { background: #ffcc99; }
body.theme-pink .gallery-main { background: #ffb3d9; }

body.theme-white .nav-links a:not(.btn):hover, 
body.theme-yellow .nav-links a:not(.btn):hover, 
body.theme-orange .nav-links a:not(.btn):hover,
body.theme-pink .nav-links a:not(.btn):hover { color: var(--primary); }

body.theme-red {
    --bg-color: #2b0000;
    --card-bg: #420000;
    --primary: #ff4d4d;
    --primary-hover: #ff1a1a;
    --accent: #ffb3b3;
    --text-main: #ffe6e6;
    --border: #660000;
    --glass-bg: rgba(66, 0, 0, 0.7);
}

body.theme-green {
    --bg-color: #00220d;
    --card-bg: #003d18;
    --primary: #2eb85c;
    --primary-hover: #248f48;
    --accent: #99e6b3;
    --text-main: #e6ffe6;
    --border: #006629;
    --glass-bg: rgba(0, 61, 24, 0.7);
}

body.theme-orange {
    --bg-color: #ff7300;
    --card-bg: #ffcc99;
    --primary: #b33c00;
    --primary-hover: #802b00;
    --accent: #ff8533;
    --text-main: #212121;
    --text-muted: #5e5e5e;
    --border: #e6a073;
    --glass-bg: rgba(255, 204, 153, 0.9);
}

body.theme-yellow {
    --bg-color: #ffde59;
    --card-bg: #fff5b8;
    --primary: #cc9900;
    --primary-hover: #b38600;
    --accent: #ff6600;
    --text-main: #262626;
    --text-muted: #666666;
    --border: #e6c845;
    --glass-bg: rgba(255, 245, 184, 0.9);
}

body.theme-purple {
    --bg-color: #1a002b;
    --card-bg: #270042;
    --primary: #a64dff;
    --primary-hover: #8c1aff;
    --accent: #d9b3ff;
    --text-main: #f2e6ff;
    --border: #400066;
    --glass-bg: rgba(39, 0, 66, 0.7);
}

body.theme-pink {
    --bg-color: #f3207b;
    --card-bg: #ffb3d9;
    --primary: #99004d;
    --primary-hover: #660033;
    --accent: #ff66b8;
    --text-main: #212121;
    --text-muted: #5e5e5e;
    --border: #e68ab3;
    --glass-bg: rgba(255, 179, 217, 0.9);
}

/* Responsiveness */
@media (max-width: 900px) {
    .auction-view {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .gallery-main {
        height: 300px;
    }
}
@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .auction-info h1 {
        font-size: 1.8rem;
    }
    .price-box .current-price {
        font-size: 2.2rem;
    }
    .card {
        padding: 1.2rem;
    }
}

/* Status Badges */
.bid-status {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.bid-status.highest {
    background: rgba(46, 184, 92, 0.1);
    color: #2eb85c;
    border: 1px solid rgba(46, 184, 92, 0.2);
}
.bid-status.outbid {
    background: rgba(255, 123, 114, 0.1);
    color: #ff7b72;
    border: 1px solid rgba(255, 123, 114, 0.2);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 0.5rem;
    vertical-align: middle;
    color: var(--primary);
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #21262d;
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    width: 250px;
    white-space: pre-wrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    text-align: left;
    font-weight: normal;
}

.tooltip:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Tooltip caret */
.tooltip::before {
    content: "";
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: var(--border) transparent transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::before {
    visibility: visible;
    opacity: 1;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}
.toast {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    max-width: 450px;
    animation: toastIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    position: relative;
    pointer-events: auto;
}
.toast.error { border-left-color: var(--accent); }
.toast.success { border-left-color: #2eb85c; }
.toast.fade-out { animation: toastOut 0.3s ease-in forwards; }

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h5 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .cookie-banner {
        padding: 2rem 1.5rem;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
