:root {
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --bg-light: #e9eef2;
    --text-light: #1c2a38;
    --container-light: rgba(255, 255, 255, 0.8);
    --border-light: rgba(0, 191, 255, 0.5);
    --glow-light: rgba(0, 191, 255, 0.7);
    --header-light: #0077b6;
    --accent-light: #00b4d8;
    --offer-light: #ff6a00;
    
    --bg-dark: #000428;
    --bg-dark-end: #004e92;
    --text-dark: #d0d8e0;
    --container-dark: rgba(16, 26, 53, 0.6);
    --border-dark: rgba(137, 207, 240, 0.4);
    --glow-dark: rgba(0, 255, 255, 0.8);
    --header-dark: #90e0ef;
    --accent-dark: #00b4d8;
    --offer-dark: #ff8c00;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(45deg, var(--bg-light), #d1d9e2);
    color: var(--text-light);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    flex-direction: column; 
}

.container {
    background-color: var(--container-light);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 950px;
    position: relative;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

main {
    flex-grow: 1; 
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;     
    padding: 40px 20px;
}

header { text-align: center; margin-bottom: 25px; }
header h1, header h2, .raffle-details h3, .countdown-section h3, .numbers-section h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--header-light);
    text-shadow: 0 0 5px var(--glow-light), 0 0 10px var(--glow-light);
    transition: color 0.5s ease, text-shadow 0.5s ease;
}
header h1 { font-size: 3em; margin-bottom: 0; }
header h2 { font-size: 1.2em; color: var(--accent-light); margin-top: 5px; letter-spacing: 2px;}

.theme-toggle { position: absolute; top: 20px; right: 20px; cursor: pointer; padding: 10px; background-color: rgba(255,255,255,0.2); border-radius: 50%; display: flex; z-index: 10; border: 1px solid var(--border-light); }
.theme-toggle svg { color: var(--header-light); transition: color 0.5s ease, transform 0.3s ease; }
.theme-toggle:hover svg { transform: scale(1.1) rotate(15deg); }


.car-raffle { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; }
.car-image { flex-basis: 55%; }
.car-image img { 
    width: 100%; 
    border-radius: 15px; 
    box-shadow: 0 0 15px var(--glow-light), 0 0 30px var(--glow-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.car-image:hover img { transform: scale(1.03); }
.raffle-details { flex-basis: 45%; }
.raffle-details h3 { font-size: 2.2em; margin-bottom: 15px; }
.description { font-size: 1.1em; line-height: 1.7; }


.countdown-section { text-align: center; margin-bottom: 40px; padding: 25px; border-radius: 15px; background: rgba(0,0,0,0.05); }
.countdown { display: flex; gap: 15px; justify-content: center; margin-bottom: 25px; }
.time-box { background-color: rgba(255,255,255,0.5); padding: 15px; border-radius: 10px; text-align: center; min-width: 70px; border: 1px solid var(--border-light); transition: background-color 0.5s ease, border-color 0.5s ease; }
.time-box span { font-family: var(--font-heading); font-size: 2.5em; font-weight: bold; color: var(--header-light); transition: color 0.5s ease; }
.time-label { font-size: 0.8em; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-light); transition: color 0.5s ease; }
.progress-bar-container { width: 100%; max-width: 450px; margin: 0 auto; background-color: rgba(0,0,0,0.1); border-radius: 25px; overflow: hidden; border: 1px solid var(--border-light); }
.progress-bar { height: 15px; width: 100%; background: linear-gradient(90deg, #90e0ef, #00b4d8, #0077b6, #ff8c00, #ff6a00); background-size: 400% 400%; animation: gradient-flow 10s ease infinite; border-radius: 25px; }


.numbers-section h3 { margin-bottom: 20px; font-size: 1.5em; }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); gap: 10px; max-height: 400px; overflow-y: auto; padding: 15px; border: 1px solid var(--border-light); border-radius: 10px; }
.number-box {
    background-color: rgba(0, 180, 216, 0.7);
    color: white;
    padding: 15px 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0; 
}
.number-box:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--accent-light); border-color: var(--accent-light); }
.number-box.sold { background-color: #5a6a7a; color: #a0a0a0; cursor: not-allowed; opacity: 0.6; }
.number-box.selected { background-color: var(--offer-light); transform: scale(1.1); box-shadow: 0 0 20px var(--offer-light); border-color: #fff; }

.purchase-section { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.purchase-section p { font-size: 1.2em; margin: 10px 0; }
#total-price { font-weight: bold; color: var(--offer-light); font-size: 1.3em; }
.buy-button {
    font-family: var(--font-heading);
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.2em;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}
.buy-button:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }
.buy-button:disabled { background: #999; cursor: not-allowed; box-shadow: none; }

body.dark-mode { background: linear-gradient(45deg, var(--bg-dark), var(--bg-dark-end)); color: var(--text-dark); }
body.dark-mode .container { background-color: var(--container-dark); border-color: var(--border-dark); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
body.dark-mode header h1, body.dark-mode .raffle-details h3, body.dark-mode .countdown-section h3, body.dark-mode .numbers-section h3 { color: var(--header-dark); text-shadow: 0 0 8px var(--glow-dark), 0 0 15px var(--glow-dark); }
body.dark-mode header h2 { color: var(--accent-dark); }
body.dark-mode .car-image img { box-shadow: 0 0 20px var(--glow-dark), 0 0 40px var(--glow-dark); }
body.dark-mode .time-box { background-color: rgba(16, 26, 53, 0.7); border-color: var(--border-dark); }
body.dark-mode .time-box span { color: var(--header-dark); }
body.dark-mode .time-label, body.dark-mode .theme-toggle svg { color: var(--accent-dark); }
body.dark-mode .number-box.selected { background-color: var(--offer-dark); box-shadow: 0 0 20px var(--offer-dark); }
body.dark-mode #total-price { color: var(--offer-dark); }
body.dark-mode .theme-toggle { background-color: rgba(0,0,0,0.2); border-color: var(--border-dark); }
body.dark-mode .description .offer-title { color: var(--accent-dark); }
body.dark-mode .description .price-old { color: #888; }

.description .offer-title { color: var(--accent-light); display: block; margin-bottom: 8px; font-weight: bold; text-transform: uppercase; }
.description .offer-highlight { color: var(--offer-light); font-weight: bold; }
.description .price-new { color: #28a745; font-weight: bold; font-size: 1.2em; }
.description .price-old { color: #999; text-decoration: line-through; margin-left: 5px; }

@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes tick-tock { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .car-raffle { flex-direction: column; text-align: center; }
    header h1 { font-size: 2.2em; }
    .countdown { gap: 10px; }
    .time-box { padding: 10px; min-width: 55px; }
    .time-box span { font-size: 1.8em; }
}

.site-header {
    width: 100%;
    padding: 15px 5%;
    background-color: var(--container-light);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    position: sticky; 
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.5s ease, border-color 0.5s ease;
    flex-shrink: 0; 
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--header-light);
    text-shadow: 0 0 5px var(--glow-light), 0 0 10px var(--glow-light);
    margin: 0;
    text-decoration: none;
    transition: color 0.5s, text-shadow 0.5s;
}

.logo-link {
    text-decoration: none;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    color: var(--text-light);
    padding: 10px 5px;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-light);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-light);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.site-header .theme-toggle {
    position: static;
    margin-left: 20px;
}

.container {
    background-color: var(--container-light);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 950px;
    position: relative;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.page-specific-header { text-align: center; margin-bottom: 25px; }
.page-specific-header h1, .page-specific-header h2, .raffle-details h3, .countdown-section h3, .numbers-section h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--header-light);
    text-shadow: 0 0 5px var(--glow-light), 0 0 10px var(--glow-light);
    transition: color 0.5s ease, text-shadow 0.5s ease;
}
.page-specific-header h1 { font-size: 3em; margin-bottom: 0; }
.page-specific-header h2 { font-size: 1.2em; color: var(--accent-light); margin-top: 5px; letter-spacing: 2px;}

.car-raffle { display: flex; align-items: flex-start; gap: 30px; margin-bottom: 30px; }
.car-image { flex-basis: 55%; }
.car-image img { 
    width: 100%; 
    border-radius: 15px; 
    box-shadow: 0 0 15px var(--glow-light), 0 0 30px var(--glow-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.car-image:hover img { transform: scale(1.03); }
.raffle-details { flex-basis: 45%; }
.raffle-details h3 { font-size: 2.2em; margin-bottom: 15px; }
.description { font-size: 1.1em; line-height: 1.7; }
.description .offer-title { color: var(--accent-light); display: block; margin-bottom: 8px; font-weight: bold; text-transform: uppercase; }
.description .offer-highlight { color: var(--offer-light); font-weight: bold; }
.description .price-new { color: #28a745; font-weight: bold; font-size: 1.2em; }
.description .price-old { color: #999; text-decoration: line-through; margin-left: 5px; }

.countdown-section { text-align: center; margin-bottom: 40px; padding: 25px; border-radius: 15px; background: rgba(0,0,0,0.05); }
.countdown { display: flex; gap: 15px; justify-content: center; margin-bottom: 25px; }
.time-box { background-color: rgba(255,255,255,0.5); padding: 15px; border-radius: 10px; text-align: center; min-width: 70px; border: 1px solid var(--border-light); transition: background-color 0.5s ease, border-color 0.5s ease; }
.time-box span { font-family: var(--font-heading); font-size: 2.5em; font-weight: bold; color: var(--header-light); transition: color 0.5s ease; }
.time-label { font-size: 0.8em; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-light); transition: color 0.5s ease; }
.progress-bar-container { width: 100%; max-width: 450px; margin: 0 auto; background-color: rgba(0,0,0,0.1); border-radius: 25px; overflow: hidden; border: 1px solid var(--border-light); }
.progress-bar { height: 15px; width: 100%; background: linear-gradient(90deg, #90e0ef, #00b4d8, #0077b6, #ff8c00, #ff6a00); background-size: 400% 400%; animation: gradient-flow 10s ease infinite; border-radius: 25px; }

.numbers-section h3 { margin-bottom: 20px; font-size: 1.5em; }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); gap: 10px; max-height: 550px; overflow-y: auto; padding: 15px; border: 1px solid var(--border-light); border-radius: 10px; }
.number-box {
    background-color: rgba(0, 180, 216, 0.7); color: white; padding: 15px 10px; text-align: center; border-radius: 8px; cursor: pointer;
    font-weight: bold; border: 1px solid transparent; transition: all 0.3s ease; animation: fadeIn 0.5s ease forwards; opacity: 0;
}
.number-box:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--accent-light); border-color: var(--accent-light); }
.number-box.sold { background-color: #5a6a7a; color: #a0a0a0; cursor: not-allowed; opacity: 0.6; }
.number-box.selected { background-color: var(--offer-light); transform: scale(1.1); box-shadow: 0 0 20px var(--offer-light); border-color: #fff; }

.purchase-section { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.purchase-section p { font-size: 1.2em; margin: 10px 0; }
#total-price { font-weight: bold; color: var(--offer-light); font-size: 1.3em; }
.buy-button {
    font-family: var(--font-heading); background: linear-gradient(45deg, #25d366, #128c7e); color: white; border: none; padding: 15px 35px;
    font-size: 1.2em; letter-spacing: 1px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}
.buy-button:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }
.buy-button:disabled { background: #999; cursor: not-allowed; box-shadow: none; }

.site-footer {
    width: 100%;
    background-color: var(--container-dark);
    color: var(--text-dark);
    padding: 40px 5%;
    border-top: 2px solid var(--border-dark);
    transition: background-color 0.5s, color 0.5s, border-color 0.5s;
    flex-shrink: 0; 
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.footer-column h4 { font-family: var(--font-heading); color: var(--header-dark); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; text-shadow: 0 0 8px var(--glow-dark); }
.footer-column p, .footer-column li { font-size: 0.95em; line-height: 1.6; color: var(--text-dark); }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: var(--text-dark); text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-column a:hover { color: var(--accent-dark); padding-left: 5px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    color: var(--header-dark); border: 1px solid var(--border-dark); border-radius: 50%; width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center; transition: color 0.3s, background-color 0.3s, transform 0.3s;
}
.social-icons a:hover { background-color: var(--accent-dark); color: var(--bg-dark); transform: translateY(-3px) scale(1.1); box-shadow: 0 0 15px var(--accent-dark); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-dark); padding-top: 20px; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { margin: 0; font-size: 0.9em; color: #aaa; }

body.dark-mode { background: linear-gradient(45deg, var(--bg-dark), var(--bg-dark-end)); color: var(--text-dark); }
body.dark-mode .site-header, body.dark-mode .container { background-color: var(--container-dark); border-color: var(--border-dark); }
body.dark-mode .container { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
body.dark-mode .site-logo, body.dark-mode .page-specific-header h1, body.dark-mode .raffle-details h3, body.dark-mode .countdown-section h3, body.dark-mode .numbers-section h3 { color: var(--header-dark); text-shadow: 0 0 8px var(--glow-dark), 0 0 15px var(--glow-dark); }
body.dark-mode .main-nav a { color: var(--text-dark); }
body.dark-mode .main-nav a:hover, body.dark-mode .main-nav a.active { color: var(--accent-dark); }
body.dark-mode .main-nav a::after { background-color: var(--accent-dark); }
body.dark-mode .page-specific-header h2 { color: var(--accent-dark); }
body.dark-mode .car-image img { box-shadow: 0 0 20px var(--glow-dark), 0 0 40px var(--glow-dark); }
body.dark-mode .time-box { background-color: rgba(16, 26, 53, 0.7); border-color: var(--border-dark); }
body.dark-mode .time-box span { color: var(--header-dark); }
body.dark-mode .time-label { color: var(--accent-dark); }
body.dark-mode .number-box.selected { background-color: var(--offer-dark); box-shadow: 0 0 20px var(--offer-dark); }
body.dark-mode #total-price { color: var(--offer-dark); }
body.dark-mode .description .offer-title { color: var(--accent-dark); }
body.dark-mode .description .price-old { color: #888; }
body.dark-mode .theme-toggle { background-color: rgba(0,0,0,0.2); border-color: var(--border-dark); }
body.dark-mode .theme-toggle svg { color: var(--accent-dark); }

body:not(.dark-mode) .site-footer {
    background-color: #f7f1f5; 
    color: var(--text-light);  
    border-top: 2px solid var(--border-light); 
}

body:not(.dark-mode) .footer-column h4 {
    color: var(--header-light); 
    text-shadow: 0 0 8px var(--glow-light); 
}
body:not(.dark-mode) .footer-column a {
    color: var(--text-light); 
}

body:not(.dark-mode) .footer-column a:hover {
    color: var(--header-light); 
}
body:not(.dark-mode) .social-icons a {
    color: var(--header-light); 
    border: 1px solid var(--border-light);
}
body:not(.dark-mode) .social-icons a:hover {
    background-color: var(--header-light); 
    color: #fff; 
    box-shadow: 0 0 15px var(--header-light);
}
body:not(.dark-mode) .footer-bottom {
    border-top-color: #e9e1e5; 
}

body:not(.dark-mode) .footer-bottom p {
    color: #796c7f; /
}


body:not(.dark-mode) .footer-column p {
    color: var(--text-light); 
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--header-light);
    border-radius: 5px;
    transition: all 0.3s linear;
}

@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes tick-tock { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes fadeIn { to { opacity: 1; } }

@media (max-width: 768px) {
    .car-raffle { flex-direction: column; text-align: center; }
    .page-specific-header h1 { font-size: 2.2em; }
    .countdown { gap: 10px; }
    .time-box { padding: 10px; min-width: 55px; }
    .time-box span { font-size: 1.8em; }


    .menu-toggle {
        display: flex; 
    }

    .main-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--container-light);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block; 
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        gap: 0;
    }

    .main-nav li {
        text-align: center;
    }
    
    .main-nav a {
        padding: 15px;
        display: block;
        width: 100%;
    }
    
    body.dark-mode .main-nav {
        background-color: var(--container-dark);
    }
}


.logo-link {
    display: flex;
    align-items: center; 
    gap: 15px; 
    text-decoration: none; 
}

.site-logo {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .site-logo {
    transform: scale(1.05);
}


.site-title {
    color: #333; 
    margin: 0;  
}

.dark-mode-logo {
    display: none;
}


body.dark-mode .light-mode-logo {
    display: none; 
}

body.dark-mode .dark-mode-logo {
    display: block; 
}

body.dark-mode .site-title {
    color: #FFF; 
}

.legal-note-container {
    text-align: center;
    margin-top: 25px;
    padding: 0 20px;
}

.legal-note {
    font-size: 0.8em;
    font-style: italic;
    color: #6c757d; 
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    transition: color 0.5s ease;
}



.ticket-checker-section {
  text-align: center;
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--border-light);
}

.ticket-checker-section h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap; 
}

#search-input {
    font-family: var(--font-body);
    width: auto; 
    flex-grow: 1; 
    max-width: 300px;
    min-width: 200px; 
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-light);
    font-size: 1em;
    transition: all 0.3s ease;
}

#search-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 15px var(--accent-light);
}

#search-btn {
    font-family: var(--font-heading);
    background: linear-gradient(45deg, var(--accent-light), var(--header-light));
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}

#search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.6);
}

#ticket-result-container {
    margin-top: 20px;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

.ticket-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(230, 240, 255, 0.9));
    border: 1px solid var(--accent-light);
    border-radius: 15px;
    padding: 25px 30px;
    max-width: 450px;
    width: 100%;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.ticket-card h4 {
    font-family: var(--font-heading);
    color: var(--header-light);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.ticket-card p {
    margin: 10px 0;
    font-size: 1.1em;
    color: var(--text-light);
    line-height: 1.6;
}

.ticket-card p strong {
    color: var(--header-light);
    display: inline-block;
    min-width: 100px;
}

.ticket-verified {
    position: absolute;
    top: 18px;
    right: -50px;
    background-color: #28a745;
    color: white;
    padding: 5px 50px;
    transform: rotate(45deg);
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.ticket-not-found, .ticket-error {
    color: var(--offer-light);
    font-weight: bold;
    font-size: 1.1em;
    padding: 20px;
    background-color: rgba(255, 106, 0, 0.1);
    border-radius: 10px;
    border: 1px solid var(--offer-light);
}

.loader {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


body.dark-mode .ticket-checker-section {
    border-top-color: var(--border-dark);
}

body.dark-mode #search-input {
    background-color: rgba(16, 26, 53, 0.7);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

body.dark-mode #search-input::placeholder {
    color: var(--text-dark);
    opacity: 0.6;
}

body.dark-mode #search-input:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 15px var(--accent-dark);
}

body.dark-mode #search-btn {
    background: linear-gradient(45deg, var(--accent-dark), var(--header-dark));
    box-shadow: 0 5px 15px rgba(144, 224, 239, 0.3);
}

body.dark-mode #search-btn:hover {
    box-shadow: 0 8px 25px rgba(144, 224, 239, 0.5);
}

body.dark-mode .ticket-card {
    background: linear-gradient(135deg, rgba(16, 26, 53, 0.9), rgba(0, 78, 146, 0.8));
    border-color: var(--border-dark);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .ticket-card h4 {
    border-bottom-color: var(--border-dark);
}

body.dark-mode .ticket-card h4, body.dark-mode .ticket-card p strong {
    color: var(--header-dark);
}

body.dark-mode .ticket-card p {
    color: var(--text-dark);
}

body.dark-mode .ticket-not-found, body.dark-mode .ticket-error {
    color: var(--offer-dark);
    background-color: rgba(255, 140, 0, 0.1);
    border-color: var(--offer-dark);
}

body.dark-mode .loader {
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-dark);
}

.animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; 
}

.particle {
    position: absolute;
    display: block;
    bottom: -200px; 
    background-size: contain;
    background-repeat: no-repeat;
    
    animation-name: drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

    transition: filter 0.5s ease;
}

.particle.ticket {
    background-image: url('../images/ticket.svg');
}
.particle.car {
    background-image: url('../images/car.svg');
}

@keyframes drift {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15; 
    }
    90% {
        opacity: 0.15; 
    }
    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}


.particle:nth-child(1) { left: 15%; width: 80px; height: 80px; animation-duration: 25s; animation-delay: -5s; }
.particle:nth-child(2) { left: 35%; width: 120px; height: 120px; animation-duration: 20s; animation-delay: -2s; }
.particle:nth-child(3) { left: 80%; width: 60px; height: 60px; animation-duration: 35s; animation-delay: -10s; }
.particle:nth-child(4) { left: 5%; width: 150px; height: 150px; animation-duration: 18s; animation-delay: -15s; }
.particle:nth-child(5) { left: 90%; width: 70px; height: 70px; animation-duration: 30s; animation-delay: -1s; }
.particle:nth-child(6) { left: 50%; width: 90px; height: 90px; animation-duration: 22s; animation-delay: -8s; }
.particle:nth-child(7) { left: 65%; width: 130px; height: 130px; animation-duration: 19s; animation-delay: -4s; }
.particle:nth-child(8) { left: 25%; width: 50px; height: 50px; animation-duration: 40s; animation-delay: -20s; }
.particle:nth-child(9) { left: 75%; width: 100px; height: 100px; animation-duration: 24s; animation-delay: -12s; }
.particle:nth-child(10) { left: 45%; width: 85px; height: 85px; animation-duration: 28s; animation-delay: -18s; }
.particle:nth-child(11) { left: 0%; width: 110px; height: 110px; animation-duration: 21s; animation-delay: -9s; }
.particle:nth-child(12) { left: 95%; width: 95px; height: 95px; animation-duration: 26s; animation-delay: -3s; }



body.dark-mode .particle {
    filter: invert(1) sepia(1) hue-rotate(195deg) saturate(5) brightness(0.9);
}



.dark-mode-logo {

  mask-image: url('../images/logo2.svg');
  -webkit-mask-image: url('../images/logo2.svg'); 

  mask-mode: luminance;
  -webkit-mask-mode: luminance;

  mask-size: cover;
  -webkit-mask-size: cover;
}

.title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
}
.site-title {
    margin: 0 0 2px 0;
}

.site-logo {
    transition: transform 0.3s ease, filter 0.5s ease;
    filter: drop-shadow(0 0 5px var(--glow-light));
}

body.dark-mode .site-logo {
    filter: drop-shadow(0 0 8px var(--glow-dark));
}

.logo-link:hover .site-logo {
    filter: drop-shadow(0 0 10px var(--glow-light));
}

body.dark-mode .logo-link:hover .site-logo {
    filter: drop-shadow(0 0 14px var(--glow-dark));
}

.site-slogan {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    font-size: 0.9em;
    color: var(--accent-light);
    letter-spacing: 0.5px;
    
    border-right: .15em solid var(--accent-light);

    animation: 
        typing 3.5s steps(40, end) forwards,
        blink-caret .75s step-end 3.5s 3 forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}


@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-light); }
}

body.dark-mode .site-slogan {
    color: var(--accent-dark);
    border-right-color: var(--accent-dark);
    
    animation: 
        typing 3.5s steps(40, end) forwards,
        dark-blink-caret .75s step-end 3.5s 3 forwards;
}

@keyframes dark-blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-dark); }
}

@media (max-width: 768px) {

    .particle:nth-child(n+7) {
        display: none;
    }

    .particle:nth-child(1) { width: 50px; height: 50px; }
    .particle:nth-child(2) { width: 70px; height: 70px; }
    .particle:nth-child(3) { width: 40px; height: 40px; }
    .particle:nth-child(4) { width: 80px; height: 80px; }
    .particle:nth-child(5) { width: 45px; height: 45px; }
    .particle:nth-child(6) { width: 60px; height: 60px; }

    @media (prefers-reduced-motion: reduce) {
        .particle {
            animation: none;
        }
    }

    .header-container {
        gap: 15px; 
    }

    .site-logo {
        height: 45px; 
    }

    .title-container {
        justify-content: center;
    }

    .site-title {
        font-size: 1.2em; 
        margin: 0;
    }

    .site-slogan {
        display: none; 
    }

    .menu-toggle {
        display: flex; 
    }
    
    .site-header .theme-toggle {
        margin-left: auto; 
    }
    
   
    .main-nav {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--container-light);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none; 
    }

    .main-nav.active {
        display: block; 
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        gap: 0;
    }

    .main-nav li {
        text-align: center;
    }

    .main-nav a {
        padding: 15px;
        display: block;
        width: 100%;
    }

    body.dark-mode .main-nav {
        background-color: var(--container-dark);
    }
    .countdown-section {
        padding: 15px 10px; 
        margin-bottom: 20px;
    }

    .countdown-section h3 {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .countdown {
        flex-direction: column; 
        align-items: center; 
        gap: 10px;
    }

    .time-box {
        min-width: unset; 
        width: 80%;
        max-width: 150px; 
        padding: 8px 12px;
    }

    .time-box span {
        font-size: 1.8em; 
    }

    .time-label {
        font-size: 0.65em; 
        letter-spacing: 0px;
    }

    .progress-bar-container {
        width: 80%; 
        margin: 20px auto 0; 
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1em; 
    }

    .logo-link {
        gap: 10px; 
    }
}

.raffle-date {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}
.raffle-date svg {
    color: var(--accent-light);
    flex-shrink: 0; 
}
.raffle-date strong {
    color: var(--header-light);
}

.prize-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px; 
}


.prize-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    border-radius: 10px;
    border-left: 4px solid var(--accent-light);
    transition: all 0.3s ease;
}
.prize-card:hover {
    transform: translateX(5px);
    box-shadow: 5px 5px 20px rgba(0,0,0,0.05);
}

.prize-icon svg {
    width: 35px;
    height: 35px;
    color: var(--accent-light);
    filter: drop-shadow(0 0 5px var(--glow-light));
    transition: all 0.3s ease;
}
.prize-card:hover .prize-icon svg {
    transform: scale(1.1);
    color: var(--header-light);
}

.prize-info {
    display: flex;
    flex-direction: column;
}
.prize-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1em;
    color: var(--header-light);
    margin-bottom: 2px;
}
.prize-details {
    font-size: 0.95em;
    color: var(--text-light);
    opacity: 0.9;
}

.raffle-offer {
    margin-top: 25px;
    padding: 15px;
    border: 2px dashed var(--offer-light);
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 106, 0, 0.05);
}
.raffle-offer .offer-title {
    margin-bottom: 5px;
    font-size: 1.2em;
}
.raffle-offer span {
    font-size: 1.1em;
}


body.dark-mode .raffle-date {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--border-dark);
}
body.dark-mode .raffle-date svg {
    color: var(--accent-dark);
}
body.dark-mode .raffle-date strong {
    color: var(--header-dark);
}
body.dark-mode .prize-card {
    background: linear-gradient(90deg, rgba(16, 26, 53, 0.9), rgba(0, 78, 146, 0.4));
    border-left-color: var(--accent-dark);
}
body.dark-mode .prize-card:hover {
    box-shadow: 5px 5px 20px rgba(0,0,0,0.2);
}
body.dark-mode .prize-icon svg {
    color: var(--accent-dark);
    filter: drop-shadow(0 0 8px var(--glow-dark));
}
body.dark-mode .prize-card:hover .prize-icon svg {
    color: var(--header-dark);
}
body.dark-mode .prize-title {
    color: var(--header-dark);
}
body.dark-mode .prize-details {
    color: var(--text-dark);
}
body.dark-mode .raffle-offer {
    border-color: var(--offer-dark);
    background-color: rgba(255, 140, 0, 0.1);
}


.special-prizes-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(0,0,0,0.05);
    border-radius: 15px;
    border: 1px solid var(--border-light);
}

.special-prizes-section h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.special-prizes-section h3 svg {
    color: var(--accent-light);
    filter: drop-shadow(0 0 5px var(--glow-light));
}

.special-prizes-section > p {
    max-width: 600px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
    font-size: 1em;
}

.special-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sp-card {
    background-color: var(--container-light);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.2);
}

.sp-card-month {
    font-family: var(--font-heading);
    background-color: var(--accent-light);
    color: #fff;
    padding: 10px;
    font-size: 1.1em;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.sp-card-content {
    padding: 20px;
}

.sp-requirement, .sp-reward {
    margin-bottom: 15px;
}
.sp-reward {
    margin-bottom: 0;
}

.sp-requirement span, .sp-reward span {
    font-size: 0.9em;
    color: var(--text-light);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sp-requirement p, .sp-reward p {
    margin: 5px 0 0 0;
    font-size: 1.2em;
}

.sp-requirement strong, .sp-reward strong {
    color: var(--header-light);
}

.sp-reward p {
    font-size: 1.8em;
    font-family: var(--font-heading);
    color: var(--offer-light);
}

.sp-card-footer {
    background-color: rgba(0,0,0,0.05);
    padding: 8px;
    font-size: 0.85em;
    font-style: italic;
    color: var(--text-light);
    opacity: 0.8;
}

body.dark-mode .special-prizes-section {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-dark);
}

body.dark-mode .special-prizes-section h3 svg {
    color: var(--accent-dark);
    filter: drop-shadow(0 0 8px var(--glow-dark));
}

body.dark-mode .sp-card {
    background-color: rgba(16, 26, 53, 0.7);
    border-color: var(--border-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

body.dark-mode .sp-card:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

body.dark-mode .sp-card-month {
    background-color: var(--accent-dark);
    color: var(--bg-dark);
}

body.dark-mode .sp-requirement span, body.dark-mode .sp-reward span {
    color: var(--text-dark);
}

body.dark-mode .sp-requirement strong, body.dark-mode .sp-reward strong {
    color: var(--header-dark);
}

body.dark-mode .sp-reward p {
    color: var(--offer-dark);
}

body.dark-mode .sp-card-footer {
    background-color: rgba(0,0,0,0.2);
    color: var(--text-dark);
}

.countdown-section {
    padding: 25px 30px;
    background: rgba(0,0,0,0.03);
    border-radius: 15px;
    border: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.time-box {
    background-color: rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05), inset 0 0 8px rgba(0, 191, 255, 0.1);
    transition: all 0.4s ease;
    padding: 15px;
    border-radius: 12px;
}
.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--glow-light), inset 0 0 10px rgba(0, 191, 255, 0.3);
}

.time-box span {
    text-shadow: 0 0 8px var(--glow-light);
}

body.dark-mode .countdown-section {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-dark);
}

body.dark-mode .time-box {
    background-color: rgba(16, 26, 53, 0.8);
    border-color: var(--border-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 0 10px rgba(0, 255, 255, 0.1);
}
body.dark-mode .time-box:hover {
    box-shadow: 0 8px 25px var(--glow-dark), inset 0 0 12px rgba(0, 255, 255, 0.3);
}
body.dark-mode .time-box span {
    text-shadow: 0 0 10px var(--glow-dark);
}

.purchase-card {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--container-light);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.price-details-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 450px;
}

.price-item {
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.price-item:first-child {
    border-right: 1px solid rgba(0, 191, 255, 0.3);
}

.price-item span {
    font-size: 0.95em;
    color: var(--text-light);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-item p {
    margin: 8px 0 0 0;
    font-family: var(--font-heading);
    font-weight: 700;
}

.price-item .base-price {
    font-size: 2.2em;
    color: var(--header-light);
}

.price-item.total #total-price {
    font-size: 2.2em;
    color: var(--offer-light);
    text-shadow: 0 0 10px var(--offer-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

.price-item.total #total-price:hover {
    transform: scale(1.03);
}

.purchase-card .buy-button {
    width: auto;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 1.2em;
}

.purchase-card .buy-button svg {
    height: 20px;
    width: auto;
}

body.dark-mode .purchase-card {
    background-color: rgba(16, 26, 53, 0.7);
    border-color: var(--border-dark);
}
body.dark-mode .price-item span {
    color: var(--text-dark);
}
body.dark-mode .price-item:first-child {
    border-right-color: rgba(137, 207, 240, 0.3);
}
body.dark-mode .price-item .base-price {
    color: var(--header-dark);
}
body.dark-mode .price-item.total #total-price {
    color: var(--offer-dark);
    text-shadow: 0 0 12px var(--offer-dark);
}

.ticket-checker-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0,0,0,0.03);
    border-radius: 15px;
    border: 1px solid var(--border-light);
    text-align: center;
}
.ticket-checker-section h3 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}
.ticket-checker-section h3 svg {
    color: var(--accent-light);
    filter: drop-shadow(0 0 5px var(--glow-light));
}
.ticket-checker-section .description {
    max-width: 600px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
    font-size: 1em;
}

#search-input {
    min-width: 200px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}
#search-input:focus {
    box-shadow: 0 0 15px var(--accent-light), inset 0 2px 4px rgba(0,0,0,0.1);
}

#search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
}
#search-btn svg {
    width: 18px;
    height: 18px;
}

body.dark-mode .ticket-checker-section {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-dark);
}
body.dark-mode .ticket-checker-section h3 svg {
    color: var(--accent-dark);
    filter: drop-shadow(0 0 8px var(--glow-dark));
}
body.dark-mode #search-input {
     box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}
body.dark-mode #search-input:focus {
    box-shadow: 0 0 15px var(--accent-dark), inset 0 2px 4px rgba(0,0,0,0.2);
}

.purchase-section {
   display: none; 
}

