:root {
    --bg-main: #0b0e14;
    --bg-gradient: radial-gradient(circle at top center, #1a2236 0%, #0b0e14 100%);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-border: rgba(255, 255, 255, 0.1);
    --primary-red: #D42E2E;
    /* Holiday Red */
    --primary-red-hover: #b02323;
    --gold: #FFD700;
    --text-white: #FFFFFF;
    --text-muted: #9CA3AF;
    --border-radius: 12px;
    --danger: #ff4d4f;
    --success: #52c41a;
    --warning: #faad14;
    --pending: #1890ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* --- SNOW EFFECT --- */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(105vh);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.user-info-badge {
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info-badge i {
    color: var(--primary-red);
}

/* Bonus Grid - Scalable Layout */
.bonus-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.bonus-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;

    /* Responsive sizing: Center single, fit 3 in row */
    width: 100%;
    max-width: 360px;
    flex: 0 0 auto;
}

/* Yılbaşı ışıltısı */
.bonus-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }

    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

.bonus-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 48px rgba(212, 46, 46, 0.15);
    /* Hafif kırmızı glow */
}

.card-image {
    width: 100%;
    height: 180px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.card-content {
    padding: 24px;
    text-align: center;
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.badge {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bonus-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a31616 100%);
    color: white;
    padding: 14px 24px;
    font-size: 15px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212, 46, 46, 0.3);
    position: relative;
    z-index: 2;
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(212, 46, 46, 0.5);
    transform: scale(1.02);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* History Table */
.history-section {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.history-section h3 {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 10px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    text-align: left;
    padding: 10px;
    color: #666;
    font-weight: 600;
}

.history-table td {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: #ddd;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
}

.status-completed {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.status-failed {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.status-queued {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.status-processing {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

/* Toast */
/* Toast Notification */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    left: auto;
    /* Override conflicting styles */
    bottom: auto;
    /* Override conflicting styles */
    transform: translateX(120%);
    /* Start off-screen right */
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 18px 26px;
    border-radius: 12px;
    z-index: 10000;
    font-size: 15px;
    font-weight: 600;
    border-left: 6px solid var(--text-muted);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Springy Slide Effect */
    opacity: 1;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.success {
    border-left-color: var(--success);
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .card-image {
        height: 180px;
    }
}

/* Overlay & Modals - Added Fix */
.full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    /* Much more transparent */
    backdrop-filter: blur(20px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.modal-content {
    background: rgba(255, 255, 255, 0.08);
    /* Frosted Ice / Lighter */
    backdrop-filter: blur(24px);
    /* Heavy blur to blur the bg */
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Brighter border */
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modern Jojo-Clone Login Styles (Floating/Seamless) */
.login-card {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px !important;
    text-align: center;
}

.brand-logo img {
    height: 60px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.divider {
    height: 3px;
    background: var(--primary-red);
    margin: 15px auto;
    width: 60px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 46, 46, 0.5);
}

.welcome-title {
    color: white;
    font-size: 22px;
    font-weight: 300;
    /* Thinner elegant font */
    line-height: 1.3;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.welcome-title strong {
    font-weight: 800;
    color: #fff;
}

.login-subtitle {
    display: none;
    /* Hide subtitle to match clean look */
}

/* Input Dashed Container Look */
.input-group-modern {
    position: relative;
    margin-bottom: 20px;
    padding: 5px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: 0.3s;
}

.input-group-modern:focus-within {
    border-color: var(--primary-red);
    background: rgba(212, 46, 46, 0.1);
}

.input-group-modern input {
    width: 100%;
    padding: 15px;
    background: #e5e7eb;
    /* Solid Light Grey/White like reference block */
    border: none;
    border-radius: 4px;
    color: #333;
    /* Dark text on light input */
    font-size: 16px;
    font-weight: 700;
    outline: none;
    text-align: center;
    /* Center text like reference? check.. usually standard left but maybe center */
}

.input-group-modern input::placeholder {
    color: #666;
    text-transform: uppercase;
}

.input-icon {
    display: none;
    /* Remove icon for cleaner block look */
}

/* Button with Arrow */
.login-btn {
    background: linear-gradient(90deg, #d42e2e 0%, #ff4d4d 100%);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px !important;
    /* Blocky button */
    padding: 16px !important;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Text left, arrow right */
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.login-btn::after {
    content: '❯';
    font-size: 20px;
    margin-left: 10px;
}

.login-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 46, 46, 0.6);
}

.copyright-text {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Dashboard Logo */
.dashboard-logo {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.dashboard-logo img {
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s;
}

.dashboard-logo img:hover {
    transform: scale(1.05);
    /* Interactive feel */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

/* Login Page Specifics */
.login-page-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-centering-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Simple History Table (Reverted) */
.history-section {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius);
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-top: 30px;
}

.history-section h3 {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 10px;
}

.table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    text-align: left;
    padding: 10px;
    color: #666;
    font-weight: 600;
}

.history-table td {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: #ddd;
}