:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --gold-primary: #fbbf24;
    --gold-secondary: #f59e0b;
    --gold-accent: #d97706;
    --purple-accent: #8b5cf6;
    --blue-accent: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: rgba(251, 191, 36, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.3);
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(251, 191, 36, 0.01) 2px, rgba(251, 191, 36, 0.01) 4px);
    pointer-events: none;
    z-index: 0;
}

body>* {
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 1200px;
    width: 100%;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-primary) 30%, var(--purple-accent) 60%, var(--gold-primary) 90%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.3));
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    border-radius: 2px;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin: 24px 0 0 0;
    letter-spacing: 0.02em;
}

.description {
    max-width: 700px;
    margin: 32px auto 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.8), rgba(18, 18, 26, 0.6));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-primary), var(--purple-accent));
}

.description::after {
    content: '🎁';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.15;
}

.notification-text {
    max-width: 700px;
    margin: 20px auto 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    max-width: 1100px;
    width: 95%;
    margin: 0 auto 80px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.6), rgba(18, 18, 26, 0.4));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
    .calendar-container {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

.day-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26, 26, 36, 0.8) 100%);
    aspect-ratio: 1;
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.day-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    height: 65%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.day-card span {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    font-weight: 800;
}

.day-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-md), 0 0 16px rgba(251, 191, 36, 0.2);
}

.day-card:hover::before {
    opacity: 0.4;
}

/* Locked State */
.day-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.6), rgba(10, 10, 15, 0.8));
    border-color: rgba(156, 163, 175, 0.1);
}

.day-card.locked::before {
    background-image: url('../img/gifts/locked.png');
    opacity: 0.15;
}

.day-card.locked::after {
    content: '🔒';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1rem;
    opacity: 0.4;
    z-index: 3;
}

.day-card.locked:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Active State */
.day-card.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--gold-primary);
    box-shadow:
        var(--shadow-md),
        0 0 24px rgba(251, 191, 36, 0.4),
        inset 0 0 20px rgba(251, 191, 36, 0.05);
    color: var(--gold-primary);
}

.day-card.active::before {
    background-image: url('../img/gifts/active.png');
    opacity: 0.5;
}

.day-card.active span {
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

/* Expired State */
.day-card.expired {
    opacity: 0.4;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.6), rgba(10, 10, 15, 0.8));
    border-color: rgba(75, 85, 99, 0.2);
    color: var(--text-muted);
    filter: grayscale(0.6);
}

.day-card.expired::before {
    background-image: url('../img/gifts/opened.png');
    opacity: 0.1;
}

.day-card.expired::after {
    content: 'Sona Erdi';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 0.85rem;
    font-weight: 900;
    color: #ef4444;
    background: rgba(0, 0, 0, 0.85);
    padding: 6px 14px;
    border-radius: 6px;
    border: 2px solid #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.day-card.expired:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}



/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-title {
    color: var(--gold-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.bonus-code {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    border: 2px dashed var(--gold-secondary);
    border-radius: var(--radius-sm);
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bonus-code:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--gold-primary);
    transform: scale(1.02);
}

.bonus-code:active {
    transform: scale(0.98);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Admin Styles */
.admin-container {
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
    /* Gradient background */
    color: #0d0d0d;
    /* Dark text for contrast */
    border: none;
    border-radius: 6px;
    /* Slightly smoother corners */
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
    /* Glowing shadow */
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 149, 63, 0.5);
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(191, 149, 63, 0.3);
}

.bonus-editor {
    background: #222;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #444;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--gold-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}