:root {
    --primary: #1a4d2e;
    --primary-light: #2d6a4f;
    --primary-dark: #0d2818;
    --accent: #f4a261;
    --accent-light: #f7b876;
    --background: #faf9f6;
    --surface: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --shadow: rgba(26, 77, 46, 0.08);
    --gradient: linear-gradient(135deg, #1a4d2e 0%, #2d6a4f 100%);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly improvements */
button, a, input, select {
    -webkit-tap-highlight-color: rgba(26, 77, 46, 0.1);
    touch-action: manipulation;
}

/* Header Styles */
header {
    background: var(--surface);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 48px;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
    margin-top: 0;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 1;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: rotate(-5deg);
    box-shadow: 0 4px 15px var(--shadow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    order: 2;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
    margin-left: auto;
    order: 3;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Live Results Bar Section */
.live-results-bar-section {
    background: var(--primary-dark);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.live-bar-container {
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    color: white;
    overflow: hidden;
    position: relative;
    height: 48px;
}

.live-bar-label {
    background: linear-gradient(135deg, #ff4757 0%, #ee5a6f 100%);
    padding: 0.75rem 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.live-indicator::before {
    content: '●';
    font-size: 0.7rem;
    animation: blink 1.5s ease-in-out infinite;
}

.live-bar-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.live-bar-scroll {
    display: flex;
    gap: 3rem;
    animation: scrollBar 30s linear infinite;
    white-space: nowrap;
    padding: 0.75rem 0;
}

.live-bar-scroll:hover {
    animation-play-state: paused;
}

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

.live-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0 1rem;
    font-size: 0.95rem;
}

.bar-location {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    min-width: 80px;
}

.bar-results {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.bar-results strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    min-width: 25px;
    text-align: center;
}

.bar-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
}

.bar-timestamp {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    min-width: 120px;
}

.bar-results strong.updated {
    animation: numberFlash 0.6s ease;
    color: var(--accent);
}

@keyframes numberFlash {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Result Tool Section */
.result-tool {
    max-width: 1200px;
    margin: -80px auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.tool-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.tool-form {
    display: grid;
    gap: 2rem;
}

.form-group {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

select, input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    background: var(--surface);
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 77, 46, 0.1);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

button {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Result Display */
.result-display {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border-left: 5px solid var(--accent);
    display: none;
}

.result-display.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.result-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

/* Live Results Section */
.live-results-section {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.live-results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.live-results-section .section-title {
    margin-bottom: 1.5rem;
}

.live-results-section .section-title h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.live-results-section .section-title p {
    font-size: 0.9rem;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.live-banner-container .marquee-container {
    mask-image: none;
    -webkit-mask-image: none;
}

.marquee-wrapper {
    display: flex;
    width: fit-content;
    animation: marqueeLoop 30s linear infinite;
    will-change: transform;
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    align-items: center;
}

/* Perfect seamless infinite loop animation */
@keyframes marqueeLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-wrapper:hover {
    animation-play-state: paused;
}

/* Ensure both content sets are identical for seamless loop */
.marquee-content {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    align-items: center;
}

.live-results-grid {
    display: flex;
    gap: 1.25rem;
}

/* Single Banner Container */
.live-banner-container {
    width: 100%;
    margin-top: 1.5rem;
}

.live-banner-card {
    background: #f8f8f8;
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.live-banner-card:hover {
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.15);
}

.banner-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.banner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-width: 250px;
    flex-shrink: 0;
    padding: 0 1.5rem;
}

.banner-icons-left,
.banner-icons-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.icon-megaphone {
    font-size: 1.5rem;
    opacity: 0.6;
    filter: grayscale(0.3);
}

.icon-bell {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

@keyframes pulseUpdate {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(26, 77, 46, 0.2);
        border-color: var(--accent);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

.banner-round.updated strong {
    animation: numberUpdate 0.6s ease;
    color: var(--accent);
}

.banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.banner-item .banner-title {
    font-size: 1.2rem;
}

.banner-item .banner-results {
    font-size: 1rem;
}

.banner-item .banner-timestamp {
    font-size: 0.8rem;
}

.banner-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.3px;
}

.banner-results {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.banner-round {
    font-weight: 600;
}

.banner-round strong {
    font-size: 1.4rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.banner-separator {
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.5;
}

.banner-timestamp {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Legacy card styles (keeping for compatibility) */
.live-result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(26, 77, 46, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(26, 77, 46, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.live-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid rgba(26, 77, 46, 0.08);
}

.live-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.live-badge {
    background: linear-gradient(135deg, #ff4757 0%, #ee5a6f 100%);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

.live-result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.live-round {
    text-align: center;
    padding: 0.9rem 0.5rem;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.03) 0%, rgba(26, 77, 46, 0.01) 100%);
    border-radius: 10px;
    border: 1.5px solid rgba(26, 77, 46, 0.1);
    transition: all 0.3s ease;
}

.live-round:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.06) 0%, rgba(26, 77, 46, 0.03) 100%);
    transform: scale(1.05);
}

.live-round.updated {
    animation: numberUpdate 0.6s ease;
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.15) 0%, rgba(244, 162, 97, 0.05) 100%);
}

@keyframes numberUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.round-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.round-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.live-timestamp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(26, 77, 46, 0.08);
    font-size: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.update-indicator {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
}

.update-indicator::before {
    content: '●';
    font-size: 0.5rem;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.update-indicator.just-now {
    color: var(--primary);
}

.update-indicator.just-now::before {
    content: '✓';
    animation: none;
    color: var(--primary);
}

.timestamp {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
}

/* Previous Results Section */
.previous-results-section {
    padding: 6rem 2rem;
    background: var(--surface);
}

.results-toggle-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.toggle-buttons {
    display: flex;
    gap: 1rem;
    background: var(--background);
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border);
}

.toggle-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

.toggle-btn:hover {
    background: rgba(26, 77, 46, 0.05);
    color: var(--primary);
}

.toggle-btn.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.3);
}

.results-table-container {
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
    border: 2px solid var(--border);
}

.table-wrapper {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.results-table thead {
    background: var(--gradient);
    color: white;
}

.results-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.results-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.results-table tbody tr:hover {
    background: var(--background);
    transform: scale(1.01);
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

.results-table td {
    padding: 1.2rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.results-table td:first-child {
    font-weight: 600;
    color: var(--primary);
}

.results-table td:nth-child(3),
.results-table td:nth-child(4) {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.results-table td:nth-child(5) {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.table-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.table-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Mobile Card View for Results */
.results-mobile-view {
    display: none;
}

.mobile-result-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border);
}

.mobile-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.mobile-result-date {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.mobile-result-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mobile-result-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mobile-result-number {
    text-align: center;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.mobile-result-number-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.mobile-result-number-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-result-time {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Common Numbers Tool Section */
.common-numbers-section {
    padding: 6rem 2rem;
    background: var(--background);
}

.common-numbers-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
}

.tab-btn:hover {
    border-color: var(--primary);
    background: rgba(26, 77, 46, 0.05);
}

.tab-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.3);
}

.common-numbers-display-container {
    margin-top: 2rem;
}

.common-numbers-tab-content {
    display: none;
}

.common-numbers-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.common-numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.common-number-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    width: 120px;
}

.common-number-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.common-number-item.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.common-number-item.very-hot {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    border-color: #ff4757;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
    animation: pulse-hot 2s ease-in-out infinite;
}

@keyframes pulse-hot {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.common-number-item.warm {
    background: linear-gradient(135deg, #ffa502, #ff6348);
    color: white;
    border-color: #ffa502;
    box-shadow: 0 4px 15px rgba(255, 165, 2, 0.3);
}

.common-number-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.common-number-frequency {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.common-number-accuracy {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

.hot-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.accuracy-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--background);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.accuracy-info h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.accuracy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.accuracy-stat-item {
    background: var(--surface);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.accuracy-stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.accuracy-stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

/* Result History Search Section */
.history-search-section {
    padding: 6rem 2rem;
    background: var(--surface);
}

.history-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.filter-group .btn-primary,
.filter-group .btn-secondary {
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
}

.history-results-container {
    margin-top: 2rem;
}

.history-table-wrapper {
    overflow-x: auto;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.history-table thead {
    background: var(--gradient);
    color: white;
}

.history-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.history-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.history-table tbody tr:hover {
    background: var(--background);
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table td {
    padding: 1.2rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.history-table td:first-child {
    font-weight: 600;
    color: var(--primary);
}

.history-table td:nth-child(3),
.history-table td:nth-child(4) {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.history-table td:nth-child(5) {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(26, 77, 46, 0.05);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 1rem;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--surface);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--background);
    border: 2px solid var(--border);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--accent);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(26, 77, 46, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Stats Section */
.stats {
    padding: 5rem 2rem;
    background: var(--gradient);
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Teer Schedule Section */
.teer-schedule-section {
    padding: 6rem 2rem;
    background: var(--surface);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.schedule-location {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.schedule-times {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.time-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.time-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* How to Play Section */
.how-to-play-section {
    padding: 6rem 2rem;
    background: var(--background);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.guide-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.3);
}

.guide-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.guide-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    background: var(--surface);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.1);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(26, 77, 46, 0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: var(--background);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Legal Pages Styles */
.legal-page {
    padding: 6rem 2rem 4rem;
    background: var(--background);
    min-height: calc(100vh - 200px);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
}

.legal-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

.legal-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.legal-section h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.legal-section li {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-footer {
    text-align: center;
    margin-top: 3rem;
}

.legal-footer .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .tool-card {
        padding: 2rem;
    }

    nav {
        padding: 1rem 1.5rem;
        position: relative;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    nav {
        justify-content: space-between;
    }

    .logo {
        order: 1;
        flex-shrink: 0;
    }

    .nav-links {
        order: 2;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-left: auto;
        position: absolute;
        right: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 48px;
        right: 0;
        width: 100%;
        max-width: 320px;
        background: var(--surface);
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        gap: 0;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .live-results-section {
        padding: 1.5rem 0.5rem;
    }

    .live-results-section .section-title h2 {
        font-size: 1.5rem;
    }

    .live-results-section .section-title p {
        font-size: 0.85rem;
    }

    .live-banner-card {
        padding: 1rem 1rem;
    }

    .live-bar-label {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .live-bar-item {
        gap: 0.75rem;
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }

    .bar-location {
        font-size: 0.9rem;
        min-width: 70px;
    }

    .bar-results strong {
        font-size: 1.1rem;
    }

    .bar-timestamp {
        font-size: 0.7rem;
        min-width: 100px;
    }

    .live-bar-scroll {
        gap: 2rem;
    }

    .banner-item {
        min-width: 200px;
        padding: 0 1rem;
    }

    .banner-item .banner-title {
        font-size: 1rem;
    }

    .banner-item .banner-results {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .banner-item .banner-round strong {
        font-size: 1.1rem;
    }

    .legal-page {
        padding: 4rem 1rem 2rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.95rem;
    }

    .legal-section ul {
        margin-left: 1.5rem;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 3rem 1.5rem;
    }

    /* Result Tool Mobile */
    .result-tool {
        margin: -60px auto 2rem;
        padding: 0 1rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-header h2 {
        font-size: 1.5rem;
    }

    .tool-header p {
        font-size: 0.9rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Previous Results Mobile */
    .previous-results-section {
        padding: 3rem 1rem;
    }

    .results-toggle-container {
        margin-bottom: 1.5rem;
    }

    .toggle-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .toggle-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1;
    }

    .results-table-container {
        overflow-x: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrapper {
        border-radius: 12px;
    }

    .results-table {
        font-size: 0.85rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.75rem 0.5rem;
    }

    .results-table td:nth-child(3),
    .results-table td:nth-child(4) {
        font-size: 1.2rem;
    }

    /* Common Numbers Mobile */
    .common-numbers-section {
        padding: 3rem 1rem;
    }

    .tool-header h2 {
        font-size: 1.3rem;
    }

    /* How to Play Mobile */
    .how-to-play-section {
        padding: 3rem 1rem;
    }

    .guide-card {
        padding: 1.5rem;
    }

    .guide-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: -15px;
        left: 1.5rem;
    }

    /* Schedule Mobile */
    .teer-schedule-section {
        padding: 3rem 1rem;
    }

    .schedule-card {
        padding: 1.5rem;
    }

    .schedule-times {
        gap: 0.75rem;
    }

    .schedule-time {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Features Mobile */
    .features {
        padding: 3rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* Stats Mobile */
    .stats {
        padding: 3rem 1rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .stat-item p {
        font-size: 1rem;
    }

    /* FAQ Mobile */
    .faq-section {
        padding: 3rem 1rem;
    }

    /* About Mobile */
    .about {
        padding: 3rem 1rem;
    }

    .about-content {
        padding: 2rem 1.5rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    /* Footer Mobile */
    footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .tool-card {
        padding: 1.25rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .common-numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.5rem;
    }

    .common-number-item {
        width: 90px;
        padding: 1rem;
    }

    .common-number-value {
        font-size: 1.5rem;
    }

    .live-bar-container {
        height: 44px;
    }

    .live-bar-container {
        height: 44px;
    }

    header {
        top: 44px;
    }

    .nav-links {
        top: 44px;
        max-height: calc(100vh - 44px);
    }

    .live-bar-label {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .live-bar-item {
        gap: 0.5rem;
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .bar-location {
        font-size: 0.85rem;
        min-width: 60px;
    }

    .bar-results strong {
        font-size: 1rem;
    }

    .bar-timestamp {
        font-size: 0.65rem;
        min-width: 80px;
    }

    .schedule-time {
        flex-direction: column;
        gap: 0.5rem;
    }

    .time-value {
        font-size: 1.1rem;
    }

    .banner-item .banner-timestamp {
        font-size: 0.7rem;
    }

    .marquee-content {
        gap: 1rem;
    }

    .marquee-container {
        padding: 1rem 0;
    }

    /* Legacy card styles for mobile */
    .live-result-card {
        min-width: 200px;
        max-width: 200px;
        padding: 1rem 1.25rem;
    }


    .common-numbers-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .common-numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .schedule-card {
        padding: 1.5rem;
    }

    .schedule-location {
        font-size: 1.3rem;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .guide-card {
        padding: 1.5rem;
    }

    .guide-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: -15px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-answer p {
        padding: 0 1rem 1rem;
    }

    .history-filters {
        grid-template-columns: 1fr;
    }

    .pagination-container {
        gap: 0.25rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .toggle-btn {
        width: 100%;
    }

    .results-table {
        display: none;
    }

    .results-mobile-view {
        display: block;
    }

    .results-table-container {
        padding: 1rem;
    }
}
