/* --- Reset i Zmienne Globalne --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --bg-dark: #0d0d11;
    --bg-card: rgba(30, 30, 38, 0.6);
    --gold-primary: #d4af37;
    --gold-glow: #f3e5ab;
    --text-light: #f4f4f6;
    --text-muted: #8a8a98;
    --border-glass: rgba(212, 175, 55, 0.15);
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(30, 30, 50, 0.5) 0%, transparent 50%)) !important;
}

/* --- Menu w Lewym Górnym Rogu --- */
.auth-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 5px;
    background: rgba(20, 20, 25, 0.8);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.auth-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn i {
    font-size: 0.85rem;
}

.auth-btn:hover {
    color: var(--gold-glow);
}

.auth-btn.active {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--gold-primary);
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.2), 0 0 10px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* --- Główny Kontener --- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.glitch-text {
    font-size: 3rem;
    letter-spacing: 4px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.gold-text {
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* --- Grid z Kartami --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.card-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.card-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- Złote Przyciski --- */
.action-btn {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, #d4af37 0%, #aa841b 100%);
    border: none;
    color: #000;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.action-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
}

/* --- Okna Modalne (Auth) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: rgba(22, 22, 28, 0.95);
    border: 1px solid var(--border-glass);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.05);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s ease;
}

.modal-overlay.visible .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold-primary);
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.modal-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modal-tab-btn:hover {
    color: var(--text-light);
}

.modal-tab-btn.active {
    color: var(--gold-primary);
}

.modal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form.hidden {
    display: none;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.input-group label i {
    color: var(--gold-primary);
    margin-right: 5px;
}

.input-group input {
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-group input {
    accent-color: var(--gold-primary);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.form-submit-btn {
    margin-top: 10px;
}

/* --- Baner Cookies --- */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 800px;
    background: rgba(22, 22, 28, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-icon {
    font-size: 1.8rem;
    color: var(--gold-primary);
}

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

.cookie-btn {
    width: auto !important;
    margin-top: 0 !important;
    padding: 10px 25px;
    white-space: nowrap;
}

/* --- Responsywność --- */
@media (max-width: 600px) {
    .auth-nav {
        top: 10px;
        left: 10px;
        right: 10px;
        justify-content: center;
    }
    
    .main-container {
        padding-top: 90px;
    }

    .glitch-text {
        font-size: 2.2rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-btn {
        width: 100% !important;
    }
}
