* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a5276;
    --secondary: #e74c3c;
    --accent: #f1c40f;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --success: #2ecc71;
}

body {
    background: linear-gradient(135deg, var(--primary), #2980b9);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(to right, var(--secondary), #c0392b);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-links a:hover, .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Page Styles */
.page {
    display: none;
    padding: 60px 0;
    min-height: 70vh;
}

.page.active {
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent);
    font-size: 2.2rem;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1579546929662-711aa81148cf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 82, 118, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 🟡 Lottery Winner Breaking News Bar */
.lottery-news-wrapper {
    background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12);
    color: #2c3e50;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    position: relative;
    z-index: 999;
}

.news-flash {
    background: #c0392b;
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    animation: flash-glow 1.5s infinite alternate;
}

.news-flash i {
    color: #f1c40f;
    font-size: 1.2rem;
}

.news-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-track {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 25s linear infinite;
    font-size: 1.05rem;
    font-weight: 600;
}

.highlight {
    color: #27ae60;
    text-shadow: 0 0 8px rgba(46,204,113,0.6);
    font-weight: 700;
}

@keyframes scroll-text {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes flash-glow {
    0% { box-shadow: 0 0 5px #f1c40f; }
    100% { box-shadow: 0 0 20px #f1c40f; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .news-flash {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .news-track {
        font-size: 0.9rem;
    }
}

.lottery-news-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-25deg);
    animation: shimmer 6s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 150%; }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, var(--accent), #f39c12);
    color: var(--dark);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Check Results Section */
.check-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.5);
}

.check-btn {
    background: linear-gradient(to right, var(--success), #27ae60);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.check-btn:hover {
    background: linear-gradient(to right, #27ae60, #219653);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Winner Display Styles */
.winner-display {
    display: none;
    margin-top: 40px;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
    border: 2px solid var(--accent);
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.winner-header {
    text-align: center;
    margin-bottom: 25px;
    color: var(--accent);
    font-size: 1.8rem;
}

.winner-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.winner-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.winner-item {
    margin-bottom: 15px;
}

.winner-label {
    font-weight: bold;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}

.winner-ticket {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    margin: 20px 0;
    text-align: center;
}

.winner-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

.winner-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--success);
    margin: 20px 0;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.draw-date {
    text-align: center;
    margin: 10px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.helpline {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    color: var(--accent);
}

.no-results {
    text-align: center;
    padding: 30px;
    font-size: 1.2rem;
    color: var(--accent);
    display: none;
}

/* Ticket Results Section */
.ticket-results {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
}

.ticket-section {
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ticket-title {
    background: linear-gradient(to right, var(--accent), #f39c12);
    color: var(--dark);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.ticket-number {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-number.winner {
    background-color: rgba(46, 204, 113, 0.3);
    border: 2px solid var(--success);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.ticket-number:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.9);
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-links a {
    display: block;
    color: var(--light);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .ticket-numbers {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Admin Panel Styles */
.admin-panel {
    display: none;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.admin-content {
    background: linear-gradient(135deg, var(--primary), #2980b9);
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.close-admin {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light);
    transition: all 0.3s ease;
}

.close-admin:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.admin-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-tab {
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.admin-tab.active {
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    flex: 1;
    min-width: 200px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, var(--success), #27ae60);
    color: white;
}

.btn-secondary {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
}

.btn-danger {
    background: linear-gradient(to right, var(--secondary), #c0392b);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.winners-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.winners-table th, .winners-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.winners-table th {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: bold;
    color: var(--accent);
}

.winners-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.edit-btn {
    background-color: #f39c12;
    color: white;
}

.delete-btn {
    background-color: var(--secondary);
    color: white;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-claimed {
    background-color: var(--success);
    color: white;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.no-results {
    text-align: center;
    padding: 30px;
    font-size: 1.2rem;
    color: var(--accent);
}

/* Admin Login */
.admin-login {
    max-width: 400px;
    margin: 100px auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.admin-login h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent);
}

/* Ticket Management Styles */
.ticket-management {
    margin-top: 30px;
}

.ticket-category {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.ticket-category h5 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ticket-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.ticket-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-actions {
    display: flex;
    gap: 5px;
}

.ticket-action-btn {
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    font-size: 0.8rem;
}

.ticket-action-btn:hover {
    color: var(--accent);
}

.add-ticket-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.add-ticket-form input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
}

.add-ticket-btn {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Triple Click Indicator */
.triple-click-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--dark);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}