:root {
    /* Brand Color Palette */
    --hero-gradient: linear-gradient(90deg, #2a55d4 0%, #1843b6 100%);
    --btn-cyan: #00E5FF;
    --btn-cyan-hover: #00b8cc;
    --text-white: #ffffff;
    --text-dark: #0D1B2A; /* Brand Dark Blue */
    --primary-blue: #0d6efd;
    --accent-gold: #f59e0b;
    
    /* Extended Palette */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: var(--text-dark);
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark) !important;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Global color override - Kill Black */
h1, h2, h3, h4, h5, h6, p, span, div, a, li {
    color: var(--text-dark);
}

/* Exception for white text */
.text-white, .hero-section h1, .hero-section p { color: #ffffff !important; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 6rem 1rem;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.hero-btn {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Cards --- */
.lots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}

.lot-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lot-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.lot-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.lot-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lot-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.lot-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto;
}

/* --- Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

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

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

.restart-btn {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}
.restart-btn:hover { background: #f1f5f9; }

/* --- Detail Page & Utility --- */
.lot-detail-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

/* GPT Chat Style */
.ai-chat-block {
    background: #f0f9ff;
    border: 1px solid #bae6fd !important;
    border-radius: var(--radius) !important;
}

.bid-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.bid-history-table th {
    text-align: left;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
}

.bid-history-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Button Loading State - Spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

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