/* ============================================================
   8PM LOTTERY SAMBAD — লটারি সংবাদ
   Design System & Styles · v2.0 · 2025
   Domain: 8pmlotterysambad.com
   All class names prefixed with 'sambad-' for uniqueness
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Hind:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    --sambad-primary: #1A3C6B;
    --sambad-primary-light: #2A5298;
    --sambad-primary-dark: #0F2847;
    --sambad-accent: #2E7D32;
    --sambad-accent-hover: #388E3C;
    --sambad-secondary: #00695C;
    --sambad-secondary-hover: #00897B;
    --sambad-amber: #F57F17;
    --sambad-amber-bg: #FFF8E1;
    --sambad-blue: #0277BD;
    --sambad-blue-bg: #E1F5FE;
    --sambad-red: #C62828;
    --sambad-red-bg: #FFEBEE;
    --sambad-success-bg: #E8F5E9;

    --sambad-bg: #FAF8F5;
    --sambad-surface: #FFFFFF;
    --sambad-text: #333333;
    --sambad-text-muted: #757575;
    --sambad-text-inverse: #FFFFFF;
    --sambad-border: #E0E0E0;
    --sambad-divider: #F0F0F0;
    --sambad-shadow: rgba(26, 60, 107, 0.08);
    --sambad-overlay: rgba(0, 0, 0, 0.55);

    --sambad-ff: 'Hind Siliguri', 'Hind', sans-serif;
    --sambad-fs-xs: 0.75rem;
    --sambad-fs-sm: 0.875rem;
    --sambad-fs-base: 1rem;
    --sambad-fs-md: 1.125rem;
    --sambad-fs-lg: 1.25rem;
    --sambad-fs-xl: 1.5rem;
    --sambad-fs-2xl: 2rem;
    --sambad-fs-timer: 3rem;

    --sambad-sp-1: 0.25rem;
    --sambad-sp-2: 0.5rem;
    --sambad-sp-3: 0.75rem;
    --sambad-sp-4: 1rem;
    --sambad-sp-5: 1.25rem;
    --sambad-sp-6: 1.5rem;
    --sambad-sp-8: 2rem;
    --sambad-sp-10: 2.5rem;
    --sambad-sp-12: 3rem;
    --sambad-sp-16: 4rem;

    --sambad-radius-sm: 6px;
    --sambad-radius-md: 10px;
    --sambad-radius-lg: 16px;
    --sambad-radius-xl: 24px;
    --sambad-radius-full: 9999px;

    --sambad-tr-fast: 150ms ease;
    --sambad-tr-base: 250ms ease;
    --sambad-tr-slow: 400ms ease;

    --sambad-shadow-sm: 0 1px 3px var(--sambad-shadow);
    --sambad-shadow-md: 0 4px 12px var(--sambad-shadow);
    --sambad-shadow-lg: 0 8px 24px var(--sambad-shadow);
    --sambad-shadow-xl: 0 16px 48px var(--sambad-shadow);
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
    --sambad-bg: #121212;
    --sambad-surface: #1E1E1E;
    --sambad-text: #E0E0E0;
    --sambad-text-muted: #9E9E9E;
    --sambad-border: #333333;
    --sambad-divider: #2A2A2A;
    --sambad-shadow: rgba(0, 0, 0, 0.3);
    --sambad-overlay: rgba(0, 0, 0, 0.75);
    --sambad-primary: #3B6FB6;
    --sambad-primary-light: #5B8FD6;
    --sambad-primary-dark: #1A3C6B;
    --sambad-amber-bg: #332B00;
    --sambad-blue-bg: #002233;
    --sambad-red-bg: #330000;
    --sambad-success-bg: #0D2A0D;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sambad-ff);
    font-size: var(--sambad-fs-base);
    line-height: 1.6;
    color: var(--sambad-text);
    background-color: var(--sambad-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sambad-primary);
    text-decoration: none;
    transition: color var(--sambad-tr-fast);
}

a:hover {
    color: var(--sambad-primary-light);
    text-decoration: underline;
}

button {
    cursor: pointer;
    font-family: var(--sambad-ff);
    border: none;
    outline: none;
    background: none;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--sambad-primary-light);
    outline-offset: 2px;
}

.sambad-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sambad-layout {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ============================================================
   HEADER
   ============================================================ */
.sambad-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1A3C6B;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sambad-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
}

.sambad-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.sambad-brand-link:hover {
    text-decoration: none;
    color: var(--sambad-text-inverse);
}

.sambad-brand-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.sambad-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sambad-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sambad-brand-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sambad-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Language Dropdown */
.sambad-lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.sambad-lang-selected {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: inherit;
}

.sambad-lang-selected:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sambad-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 140px;
    z-index: 9999;
}

.sambad-lang-menu.sambad-lang-menu-open {
    display: block;
}

@keyframes sambadDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sambad-lang-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
    white-space: nowrap;
}

.sambad-lang-menu li a:hover {
    background: #f0f5ff;
    color: #1A3C6B;
    text-decoration: none;
}

.sambad-lang-menu li a.sambad-lang-current {
    color: #1A3C6B;
    font-weight: 700;
    background: #f0f5ff;
}

[data-theme="dark"] .sambad-lang-menu {
    background: var(--sambad-surface);
}

[data-theme="dark"] .sambad-lang-menu li a {
    color: var(--sambad-text);
}

[data-theme="dark"] .sambad-lang-menu li a:hover {
    background: var(--sambad-divider);
    color: var(--sambad-primary-light);
}

[data-theme="dark"] .sambad-lang-menu li a.sambad-lang-current {
    color: var(--sambad-primary-light);
    background: var(--sambad-blue-bg);
}

/* Dark Mode Toggle */
.sambad-theme-switch {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.sambad-theme-switch:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
    .sambad-brand-icon {
        font-size: 34px;
    }

    .sambad-brand-name {
        font-size: 18px;
    }

    .sambad-brand-tagline {
        font-size: 12px;
    }

    .sambad-header-row {
        padding: 0 24px;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.sambad-hero-section {
    text-align: center;
    padding: var(--sambad-sp-6) 0 var(--sambad-sp-4);
}

.sambad-hero-section h1 {
    font-size: var(--sambad-fs-xl);
    font-weight: 700;
    color: var(--sambad-primary);
    margin-bottom: var(--sambad-sp-1);
}

[data-theme="dark"] .sambad-hero-section h1 {
    color: var(--sambad-primary-light);
}

.sambad-hero-section p {
    font-size: var(--sambad-fs-md);
    color: var(--sambad-text-muted);
}

/* ============================================================
   SLOT TRIGGERS (Result Buttons)
   ============================================================ */
.sambad-draws-section,
.sambad-result-panel,
.sambad-hero-section,
.sambad-articles-section {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.sambad-draws-section {
    padding: 0 0 var(--sambad-sp-4);
}

.sambad-section-label {
    font-size: var(--sambad-fs-lg);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--sambad-sp-4);
    color: var(--sambad-text);
    position: relative;
}

.sambad-section-label::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--sambad-accent);
    border-radius: var(--sambad-radius-full);
    margin: var(--sambad-sp-2) auto 0;
}

.sambad-slot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 4px;
    max-width: 720px;
    margin: 12px auto 0;
    width: 100%;
    box-sizing: border-box;
}

.sambad-slot-trigger {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    color: #ffffff;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.sambad-slot-trigger:active,
.sambad-slot-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sambad-slot-trigger--1pm {
    background: #2C5F8A;
    border-left: 5px solid #F5A623;
}

.sambad-slot-trigger--6pm {
    background: #1A7A5E;
    border-left: 5px solid #7ED321;
}

.sambad-slot-trigger--8pm {
    background: #2C5F8A;
    opacity: 0.9;
    border-left: 5px solid #9B59B6;
}

.sambad-slot-trigger--archive {
    background: #5A4A7A;
    border-left: 5px solid #E67E22;
}

.sambad-slot-trigger.sambad-slot-active {
    box-shadow: var(--sambad-shadow-lg), 0 0 0 3px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.sambad-slot-trigger.sambad-slot-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #FFFFFF;
    border-radius: var(--sambad-radius-full) var(--sambad-radius-full) 0 0;
}

.sambad-slot-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.sambad-slot-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sambad-slot-label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.sambad-slot-sublabel {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.88;
    margin-top: 2px;
    display: block;
}

/* ============================================================
   RESULT PANEL
   ============================================================ */
.sambad-result-panel {
    max-width: 720px;
    margin: 24px auto;
    padding: 20px 16px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    animation: sambadSlideDown 0.4s ease;
    display: none;
}

[data-theme="dark"] .sambad-result-panel {
    background: var(--sambad-surface);
}

.sambad-result-panel.sambad-panel-visible {
    display: block;
}

@keyframes sambadSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sambad-draw-header {
    text-align: center;
    margin-bottom: 16px;
    padding: var(--sambad-sp-4);
    border-bottom: 1px solid var(--sambad-border);
}

.sambad-draw-date {
    font-size: 18px;
    font-weight: 700;
    color: #1A3C6B;
    text-align: center;
}

[data-theme="dark"] .sambad-draw-date {
    color: var(--sambad-primary-light);
}

.sambad-yesterday-tag {
    display: inline-block;
    padding: var(--sambad-sp-1) var(--sambad-sp-3);
    border-radius: var(--sambad-radius-full);
    font-size: var(--sambad-fs-xs);
    font-weight: 600;
    margin-top: var(--sambad-sp-2);
    background: var(--sambad-amber-bg);
    color: var(--sambad-amber);
    border: 1px solid var(--sambad-amber);
}

.sambad-draw-body {
    padding: var(--sambad-sp-4);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* State: Countdown */
.sambad-countdown-zone {
    text-align: center;
    padding: var(--sambad-sp-8) var(--sambad-sp-4);
}

.sambad-countdown-zone.sambad-tone-amber {
    background: var(--sambad-amber-bg);
}

.sambad-countdown-zone.sambad-tone-blue {
    background: var(--sambad-blue-bg);
}

.sambad-countdown-zone.sambad-tone-red {
    background: var(--sambad-red-bg);
}

.sambad-countdown-zone.sambad-tone-green {
    background: var(--sambad-success-bg);
}

.sambad-countdown-icon {
    font-size: 3rem;
    margin-bottom: var(--sambad-sp-3);
    animation: sambadPulse 2s infinite;
}

@keyframes sambadPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.sambad-countdown-message {
    font-size: var(--sambad-fs-md);
    font-weight: 500;
    color: var(--sambad-text);
    margin-bottom: var(--sambad-sp-4);
}

.sambad-countdown-ring {
    font-size: var(--sambad-fs-timer);
    font-weight: 700;
    color: var(--sambad-primary);
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    margin-bottom: var(--sambad-sp-3);
}

[data-theme="dark"] .sambad-countdown-ring {
    color: var(--sambad-primary-light);
}

.sambad-countdown-detail {
    font-size: var(--sambad-fs-sm);
    color: var(--sambad-text-muted);
}

/* State: Info (too early) */
.sambad-info-zone {
    text-align: center;
    padding: var(--sambad-sp-8) var(--sambad-sp-4);
}

.sambad-info-icon {
    font-size: 3rem;
    margin-bottom: var(--sambad-sp-3);
}

.sambad-info-title {
    font-size: var(--sambad-fs-lg);
    font-weight: 600;
    margin-bottom: var(--sambad-sp-2);
}

.sambad-info-detail {
    font-size: var(--sambad-fs-md);
    color: var(--sambad-text-muted);
}

/* State: Result Image */
.sambad-result-image-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sambad-result-image-zone img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    cursor: zoom-in;
}

.sambad-result-image-zone img:hover {
    box-shadow: var(--sambad-shadow-lg);
}

.sambad-result-pdf-zone {
    width: 100%;
}

.sambad-result-pdf-zone iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    border-radius: var(--sambad-radius-sm);
}

.sambad-result-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    padding: var(--sambad-sp-4);
    border-top: 1px solid var(--sambad-border);
}

.sambad-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sambad-sp-2);
    padding: var(--sambad-sp-2) var(--sambad-sp-5);
    font-size: var(--sambad-fs-sm);
    font-weight: 600;
    border-radius: var(--sambad-radius-full);
    min-height: 44px;
    transition: all var(--sambad-tr-fast);
}

.sambad-action-btn--filled {
    background: var(--sambad-accent);
    color: var(--sambad-text-inverse);
}

.sambad-action-btn--filled:hover {
    background: var(--sambad-accent-hover);
    text-decoration: none;
    color: var(--sambad-text-inverse);
}

.sambad-action-btn--bordered {
    background: transparent;
    color: var(--sambad-primary);
    border: 2px solid var(--sambad-primary);
}

.sambad-action-btn--bordered:hover {
    background: var(--sambad-primary);
    color: var(--sambad-text-inverse);
    text-decoration: none;
}

.sambad-action-btn--teal {
    background: var(--sambad-secondary);
    color: var(--sambad-text-inverse);
}

.sambad-action-btn--teal:hover {
    background: var(--sambad-secondary-hover);
    text-decoration: none;
    color: var(--sambad-text-inverse);
}

.sambad-result-meta {
    text-align: center;
    padding: 0 var(--sambad-sp-4) var(--sambad-sp-4);
    font-size: var(--sambad-fs-xs);
    color: var(--sambad-text-muted);
}

.sambad-refresh-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--sambad-sp-2);
    padding: var(--sambad-sp-3) var(--sambad-sp-8);
    font-size: var(--sambad-fs-md);
    font-weight: 600;
    color: var(--sambad-text-inverse);
    background: var(--sambad-red);
    border-radius: var(--sambad-radius-full);
    min-height: 48px;
    transition: all var(--sambad-tr-fast);
    margin-top: var(--sambad-sp-4);
}

.sambad-refresh-trigger:hover {
    background: #D32F2F;
    transform: translateY(-1px);
    box-shadow: var(--sambad-shadow-md);
}

/* ============================================================
   FULLSCREEN VIEWER
   ============================================================ */
.sambad-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.sambad-fullscreen-overlay.sambad-fs-open {
    display: flex;
}

.sambad-fullscreen-close {
    position: absolute;
    top: var(--sambad-sp-4);
    right: var(--sambad-sp-4);
    width: 44px;
    height: 44px;
    border-radius: var(--sambad-radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: var(--sambad-fs-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: background var(--sambad-tr-fast);
}

.sambad-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sambad-fullscreen-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    touch-action: pinch-zoom;
    user-select: none;
}

/* ============================================================
   ARCHIVE PICKER MODAL
   ============================================================ */
.sambad-archive-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--sambad-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--sambad-sp-4);
    animation: sambadFadeIn 0.25s ease;
}

.sambad-archive-overlay.sambad-archive-open {
    display: flex;
}

@keyframes sambadFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sambad-archive-dialog {
    background: var(--sambad-surface);
    border-radius: var(--sambad-radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--sambad-shadow-xl);
    animation: sambadModalUp 0.3s ease;
}

@keyframes sambadModalUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sambad-archive-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sambad-sp-4);
    border-bottom: 1px solid var(--sambad-border);
}

.sambad-archive-title {
    font-size: var(--sambad-fs-lg);
    font-weight: 600;
}

.sambad-archive-dismiss {
    width: 36px;
    height: 36px;
    border-radius: var(--sambad-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sambad-fs-lg);
    color: var(--sambad-text-muted);
    transition: all var(--sambad-tr-fast);
}

.sambad-archive-dismiss:hover {
    background: var(--sambad-divider);
    color: var(--sambad-text);
}

.sambad-archive-content {
    padding: var(--sambad-sp-4);
}

/* Calendar */
.sambad-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sambad-sp-4);
}

.sambad-calendar-arrow {
    width: 40px;
    height: 40px;
    border-radius: var(--sambad-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sambad-fs-lg);
    color: var(--sambad-text);
    transition: all var(--sambad-tr-fast);
}

.sambad-calendar-arrow:hover {
    background: var(--sambad-divider);
}

.sambad-calendar-month {
    font-size: var(--sambad-fs-md);
    font-weight: 600;
}

.sambad-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.sambad-calendar-dayname {
    text-align: center;
    font-size: var(--sambad-fs-xs);
    font-weight: 600;
    color: var(--sambad-text-muted);
    padding: var(--sambad-sp-2) 0;
}

.sambad-calendar-cell {
    text-align: center;
    padding: var(--sambad-sp-2);
    border-radius: var(--sambad-radius-sm);
    font-size: var(--sambad-fs-sm);
    font-weight: 500;
    cursor: pointer;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--sambad-tr-fast);
}

.sambad-calendar-cell:hover:not(.sambad-day-disabled):not(.sambad-day-picked) {
    background: var(--sambad-divider);
}

.sambad-calendar-cell.sambad-day-today {
    border: 2px solid var(--sambad-primary);
    font-weight: 700;
}

.sambad-calendar-cell.sambad-day-picked {
    background: var(--sambad-primary);
    color: var(--sambad-text-inverse);
}

.sambad-calendar-cell.sambad-day-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sambad-calendar-cell.sambad-day-empty {
    cursor: default;
}

/* Time Slot Picker */
.sambad-timeslot-picker {
    display: none;
    flex-direction: column;
    gap: var(--sambad-sp-3);
    margin-top: var(--sambad-sp-4);
    padding-top: var(--sambad-sp-4);
    border-top: 1px solid var(--sambad-border);
    animation: sambadSlideDown 0.3s ease;
}

.sambad-timeslot-picker.sambad-picker-visible {
    display: flex;
}

.sambad-timeslot-label {
    font-size: var(--sambad-fs-sm);
    font-weight: 600;
    color: var(--sambad-text-muted);
    text-align: center;
}

.sambad-timeslot-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sambad-sp-2);
    width: 100%;
    min-height: 48px;
    padding: var(--sambad-sp-3);
    font-size: var(--sambad-fs-md);
    font-weight: 600;
    border-radius: var(--sambad-radius-md);
    color: var(--sambad-text);
    background: var(--sambad-divider);
    border: 2px solid transparent;
    transition: all var(--sambad-tr-fast);
}

.sambad-timeslot-option:hover {
    border-color: var(--sambad-primary);
    background: var(--sambad-surface);
}

.sambad-timeslot-option.sambad-timeslot-chosen {
    border-color: var(--sambad-primary);
    background: var(--sambad-primary);
    color: var(--sambad-text-inverse);
}

.sambad-archive-download-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--sambad-sp-2);
    width: 100%;
    min-height: 52px;
    padding: var(--sambad-sp-3);
    font-size: var(--sambad-fs-md);
    font-weight: 700;
    border-radius: var(--sambad-radius-md);
    color: var(--sambad-text-inverse);
    background: linear-gradient(135deg, var(--sambad-accent), #43A047);
    margin-top: var(--sambad-sp-3);
    transition: all var(--sambad-tr-fast);
}

.sambad-archive-download-trigger.sambad-download-visible {
    display: flex;
}

.sambad-archive-download-trigger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--sambad-shadow-md);
}

.sambad-archive-error {
    display: none;
    text-align: center;
    padding: var(--sambad-sp-3);
    margin-top: var(--sambad-sp-3);
    border-radius: var(--sambad-radius-md);
    background: var(--sambad-red-bg);
    color: var(--sambad-red);
    font-size: var(--sambad-fs-sm);
    font-weight: 500;
}

.sambad-archive-error.sambad-error-visible {
    display: block;
}

/* ============================================================
   CONTENT SECTION
   ============================================================ */
.sambad-content-section {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

.sambad-content-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1A3C6B;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E0E0E0;
    line-height: 1.3;
}

.sambad-content-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2C5F8A;
    margin-top: 24px;
    margin-bottom: 8px;
}

.sambad-content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 16px;
}

.sambad-content-section ul,
.sambad-content-section ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.sambad-content-section li {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 6px;
}

.sambad-content-section strong {
    color: #1A3C6B;
    font-weight: 600;
}

/* FAQ Structure */
.sambad-faq-block {
    margin-top: 12px;
    margin-bottom: 12px;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    overflow: hidden;
}

.sambad-faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1A3C6B;
    background: #F7F9FF;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.sambad-faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #1A3C6B;
    flex-shrink: 0;
}

.sambad-faq-question.sambad-faq-open::after {
    content: '−';
}

.sambad-faq-answer {
    display: none;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
    background: #FFFFFF;
    border-top: 1px solid #E8E8E8;
}

.sambad-faq-answer.sambad-faq-visible {
    display: block;
}

/* Prize table */
.sambad-prize-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.sambad-prize-table th {
    background: #1A3C6B;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.sambad-prize-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #F0F0F0;
    color: #333333;
}

.sambad-prize-table tr:nth-child(even) td {
    background: #F7F9FF;
}

.sambad-prize-table tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.sambad-site-footer {
    background: var(--sambad-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--sambad-sp-8) 0 var(--sambad-sp-4);
    margin-top: var(--sambad-sp-8);
}

.sambad-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sambad-sp-4);
    text-align: center;
}

.sambad-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--sambad-sp-2);
    font-size: var(--sambad-fs-lg);
    font-weight: 700;
    color: #FFFFFF;
}

.sambad-footer-brand-icon {
    font-size: 1.5rem;
}

.sambad-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sambad-sp-3);
}

.sambad-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--sambad-fs-sm);
    font-weight: 500;
    transition: color var(--sambad-tr-fast);
}

.sambad-footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.sambad-footer-note {
    font-size: var(--sambad-fs-xs);
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    line-height: 1.5;
}

.sambad-footer-copy {
    font-size: var(--sambad-fs-xs);
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--sambad-sp-4);
    width: 100%;
    text-align: center;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */
.sambad-page-body {
    padding: var(--sambad-sp-8) 0;
}

.sambad-page-body h2 {
    font-size: var(--sambad-fs-xl);
    font-weight: 700;
    color: var(--sambad-primary);
    margin-bottom: var(--sambad-sp-4);
}

[data-theme="dark"] .sambad-page-body h2 {
    color: var(--sambad-primary-light);
}

.sambad-page-body h3 {
    font-size: var(--sambad-fs-lg);
    font-weight: 600;
    margin-top: var(--sambad-sp-6);
    margin-bottom: var(--sambad-sp-3);
    color: var(--sambad-text);
}

.sambad-page-body p {
    margin-bottom: var(--sambad-sp-4);
    line-height: 1.7;
}

.sambad-page-body ul,
.sambad-page-body ol {
    margin-bottom: var(--sambad-sp-4);
    padding-left: var(--sambad-sp-6);
}

.sambad-page-body li {
    margin-bottom: var(--sambad-sp-2);
    line-height: 1.6;
}

.sambad-page-panel {
    background: var(--sambad-surface);
    border-radius: var(--sambad-radius-lg);
    box-shadow: var(--sambad-shadow-md);
    padding: var(--sambad-sp-8);
    border: 1px solid var(--sambad-border);
}

/* Contact Form */
.sambad-contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sambad-sp-4);
    margin-top: var(--sambad-sp-4);
}

.sambad-form-field {
    display: flex;
    flex-direction: column;
    gap: var(--sambad-sp-1);
}

.sambad-form-field label {
    font-size: var(--sambad-fs-sm);
    font-weight: 600;
    color: var(--sambad-text);
}

.sambad-form-field input,
.sambad-form-field textarea {
    padding: var(--sambad-sp-3);
    border: 2px solid var(--sambad-border);
    border-radius: var(--sambad-radius-md);
    font-family: var(--sambad-ff);
    font-size: var(--sambad-fs-base);
    color: var(--sambad-text);
    background: var(--sambad-bg);
    transition: border-color var(--sambad-tr-fast);
    min-height: 48px;
}

.sambad-form-field input:focus,
.sambad-form-field textarea:focus {
    outline: none;
    border-color: var(--sambad-primary);
}

.sambad-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.sambad-form-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sambad-sp-2);
    padding: var(--sambad-sp-3) var(--sambad-sp-8);
    font-size: var(--sambad-fs-md);
    font-weight: 600;
    color: var(--sambad-text-inverse);
    background: var(--sambad-primary);
    border-radius: var(--sambad-radius-full);
    min-height: 48px;
    transition: all var(--sambad-tr-fast);
}

.sambad-form-send:hover {
    background: var(--sambad-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--sambad-shadow-md);
}

/* ============================================================
   OFFLINE BAR
   ============================================================ */
.sambad-offline-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--sambad-amber);
    color: #000;
    text-align: center;
    padding: var(--sambad-sp-3) var(--sambad-sp-4);
    font-size: var(--sambad-fs-sm);
    font-weight: 600;
    transform: translateY(100%);
    transition: transform var(--sambad-tr-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sambad-sp-2);
}

.sambad-offline-notice.sambad-offline-show {
    transform: translateY(0);
}

/* Spinner */
.sambad-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--sambad-border);
    border-top-color: var(--sambad-primary);
    border-radius: 50%;
    animation: sambadSpin 0.8s linear infinite;
    margin: var(--sambad-sp-4) auto;
}

@keyframes sambadSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   RESPONSIVE — TABLET (480px+)
   ============================================================ */
@media (min-width: 480px) {
    .sambad-slot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sambad-archive-dialog {
        max-width: 420px;
    }
}

/* ============================================================
   RESPONSIVE — DESKTOP (768px+)
   ============================================================ */
@media (min-width: 768px) {
    :root {
        --sambad-fs-base: 1.0625rem;
        --sambad-fs-timer: 3.5rem;
    }

    .sambad-slot-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sambad-layout {
        padding: 0 32px;
    }

    .sambad-page-panel {
        padding: var(--sambad-sp-12);
    }

    .sambad-result-panel {
        padding: 28px 32px;
    }

    .sambad-result-image-zone img {
        max-width: 680px;
    }
}

/* ============================================================
   RESPONSIVE — LARGE DESKTOP (960px+)
   ============================================================ */
@media (min-width: 960px) {
    :root {
        --sambad-fs-base: 1.125rem;
        --sambad-fs-timer: 4rem;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    .sambad-site-header,
    .sambad-site-footer,
    .sambad-slot-grid,
    .sambad-result-toolbar,
    .sambad-articles-section,
    .sambad-offline-notice,
    .sambad-slot-trigger--archive {
        display: none !important;
    }

    .sambad-result-panel {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }

    body {
        background: white;
        color: black;
    }
}