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

:root {
    --primary: #ff3366;
    --primary-glow: rgba(255, 51, 102, 0.4);
    --secondary: #6c3aff;
    --secondary-glow: rgba(108, 58, 255, 0.4);
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.4);
    --success: #00e676;
    --success-glow: rgba(0, 230, 118, 0.3);
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(18, 18, 42, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 51, 102, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(108, 58, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 51, 102, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header / Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo-badge {
    font-size: 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-text-fill-color: white;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

nav a {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Nav */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 0.8rem 1rem;
    }

    .hamburger {
        display: flex;
    }
}

/* Hero */
.hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    position: relative;
}

.hero-badge {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Marquee */
.marquee {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 0.7rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    padding: 0 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section */
.section {
    margin: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.section-link:hover {
    color: var(--secondary);
}

/* Table */
.table-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.table-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--primary-glow), transparent, var(--secondary-glow));
    z-index: -1;
    opacity: 0.5;
}

.ank-table {
    width: 100%;
    border-collapse: collapse;
}

.ank-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.ank-table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    text-align: center;
    transition: background 0.3s;
}

.ank-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.ank-table tr:last-child td {
    border-bottom: none;
}

.market-name {
    color: var(--accent);
    font-weight: 700;
    text-align: left !important;
    font-size: 0.95rem !important;
}

.result-num {
    color: var(--success);
    font-weight: 700;
    font-size: 1rem !important;
    text-shadow: 0 0 20px var(--success-glow);
}

.final-ank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: all 0.3s ease;
}

tr:hover .final-ank {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary-glow);
}

@media (max-width: 600px) {
    .ank-table th,
    .ank-table td {
        padding: 0.7rem 0.4rem;
        font-size: 0.8rem;
    }
    .market-name { font-size: 0.85rem !important; }
    .result-num { font-size: 0.9rem !important; }
    .final-ank { width: 32px; height: 32px; font-size: 0.95rem; }
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(255, 51, 102, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.card strong {
    color: var(--accent);
}

/* Result Cards */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-card:hover {
    border-color: var(--primary);
    background: rgba(255, 51, 102, 0.05);
}

.result-info .market {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.result-info .time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.result-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: 0 0 20px var(--success-glow);
}

.result-ank {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

@media (max-width: 600px) {
    .result-card {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .result-info { flex: 1; min-width: 120px; }
    .result-number { font-size: 1.1rem; }
    .result-ank { width: 36px; height: 36px; font-size: 1rem; }
}

/* Charts */
.chart-wrap {
    overflow-x: auto;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.chart-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 0.6rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
}

.chart-table td {
    padding: 0.6rem;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.chart-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.chart-table .date-cell {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}

/* Jodi Grid */
.jodi-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.3rem;
    padding: 1rem;
}

.jodi-cell {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jodi-cell:hover {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    border-color: var(--primary);
    transform: scale(1.1);
}

.jodi-cell.header {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary);
    font-weight: 700;
    color: var(--accent);
    cursor: default;
}

.jodi-cell.header:hover {
    transform: none;
}

.jodi-cell.label {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary);
    font-weight: 700;
    color: var(--accent);
    cursor: default;
}

.jodi-cell.label:hover {
    transform: none;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: color 0.3s;
    user-select: none;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.2rem;
}

/* Disclaimer */
.disclaimer {
    background: rgba(255, 51, 102, 0.05);
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.disclaimer strong {
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.6);
}

/* Content Page */
.content-page .hero {
    padding: 7rem 1.5rem 3rem;
}

.content-section {
    margin: 2rem 0;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.content-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.content-card ul {
    list-style: none;
    padding: 0;
}

.content-card ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.content-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
}

.content-card ul li strong {
    color: var(--text-primary);
}

/* Form */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.4);
}

.btn-block {
    width: 100%;
}

/* Keyword Tags */
.keyword-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.keyword-tag {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    border-color: var(--secondary);
    background: rgba(108, 58, 255, 0.1);
    color: var(--text-primary);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Live indicator */
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--success-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

/* Count up animation */
.count-up {
    display: inline-block;
    animation: countUp 0.5s ease forwards;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Enhanced accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
