@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #004e92;
    --primary-light: #0072ff;
    --secondary: #28a745;
    --secondary-hover: #218838;
    --accent: #00c6ff;
    --dark: #1a1a2e;
    --text-color: #333333;
    --text-light: #6c757d;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --danger: #dc3545;
    --border-radius: 12px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 78, 146, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(to right, var(--dark), #2c3e50);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    background: -webkit-linear-gradient(var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
}

main {
    flex: 1;
    padding-bottom: 60px;
}

.hero {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%),
        url('../img/hero.png') center center/cover no-repeat;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    border-radius: 0 0 50% 50% / 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 150%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(45deg, var(--secondary), var(--secondary-hover));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.card-icon {
    font-size: 3rem;
    background: -webkit-linear-gradient(var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.4rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.lotto-logo {
    height: 70px;
    margin-bottom: 25px;
    object-fit: contain;
    transition: transform 0.3s;
}

.card:hover .lotto-logo {
    transform: scale(1.05);
} 

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e1e5eb;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 78, 146, 0.1);
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.game-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.game-tab {
    padding: 12px 28px;
    background: var(--white);
    border: 1px solid #e1e5eb;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-light);
    transition: var(--transition);
    font-size: 1rem;
}

.game-tab:hover {
    background: #f8fafc;
    color: var(--primary);
}

.game-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 78, 146, 0.2);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.num-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: inherit;
    font-size: 1rem;

    background: radial-gradient(circle at 30% 30%, #ffffff, #e6e9ef);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(0, 0, 0, 0.05);
    color: var(--dark);
}

.num-btn:hover {
    transform: scale(1.1);
}

.num-btn.selected {
    background: radial-gradient(circle at 30% 30%, #4facfe, #00f2fe);
    background: radial-gradient(circle at 30% 30%, #5cdb5c, #28a745);
    color: var(--white);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5), inset -2px -2px 5px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.special-grid {
    border-top: 1px solid #e1e5eb;
    padding-top: 25px;
    margin-top: 25px;
    position: relative;
}

.special-grid::before {
    content: 'Grand Number';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-panel {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-top: 0;
    position: sticky;
    top: 100px;
}

.cart-panel h3 {
    border-bottom: 2px solid #f4f7f6;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--primary);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--secondary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    color: var(--dark);
    padding: 25px;
    z-index: 1500;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    border-left: 6px solid var(--primary);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.age-gate {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .number-grid {
        gap: 8px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: left;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-outline {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}

.nb-footer {
    background:#020617;
    color:#e5e7eb;
    padding:32px 16px;
    font-size:14px;
    text-align: center;
}

.nb-footer a {
    color:#93c5fd;
    text-decoration:none;
}

.nb-footer a:hover {
    text-decoration:underline;
}

.nb-footer-top {
    max-width:960px;
    margin:0 auto 24px auto;
    line-height:1.5;
}

.nb-footer-licence {
    font-weight:600;
    margin-bottom:8px;
}

.nb-footer-extra,
.nb-footer-responsible {
    margin-bottom:6px;
}

.nb-footer-logos {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
    flex-wrap:wrap;
    max-width:960px;
    margin:0 auto 24px auto;
}

.nb-footer-logo img {
    height:80px;
    display:block;
    padding: 10px;
    border-radius: 10px;
    background: white;
}

.nb-footer-bottom {
    border-top:1px solid #1f2933;
    padding-top:16px;
    max-width:960px;
    margin:0 auto;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    align-items:center;
}

.nb-footer-links {
    display:flex;
    align-items: center;
    justify-content: center;
    flex-wrap:wrap;
    margin-bottom: 16px;
    gap:12px;
}

.page {
    margin-top: 50px;
}