.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hero-bg {
    background:
        /* soft golden glow top */
        radial-gradient(circle at 50% 25%, rgba(255, 215, 120, 0.25), transparent 55%),

        /* blue glow bottom-right */
        radial-gradient(circle at 85% 70%, rgba(30, 90, 200, 0.3), transparent 60%),

        /* side glows */
        radial-gradient(circle at 20% 50%, rgba(212, 160, 23, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 0, 0.10), transparent 50%),

        /* vignette */
        radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%),

        /* subtle divine rays */
        repeating-conic-gradient(from 0deg at 50% 50%,
            rgba(212, 160, 23, 0.03) 0deg 10deg,
            transparent 10deg 20deg),

        /* base gradient */
        linear-gradient(180deg, #0b1d3a, #123c6f, #1e293b);

    position: relative;
    overflow: hidden;
}

.chalisa-lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.chalisa-lang-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.chalisa-lang-btn.active {
    background: #ea580c;
    color: white;
    border-color: #ea580c;
}

.sidebar-fixed {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (min-width: 769px) {
    .sidebar-fixed {
        margin-bottom: 27px;
    }
}

/* Tab Panel Styles */
.benefits-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.benefits-tabs::-webkit-scrollbar {
    height: 4px;
}

.benefits-tabs::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.benefits-tabs::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.benefit-tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-tab:hover {
    color: #374151;
    background: #f9fafb;
}

.benefit-tab.active {
    color: #ea580c;
    border-bottom-color: #ea580c;
    background: #fff7ed;
}

.benefit-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.benefit-tab-panel.active {
    display: block;
}

/* Sloka list: mobile-friendly cards and touch targets */
.sloka-list-view .sloka-card {
    min-height: 1px;
}

.sloka-list-view .sloka-meaning-btn,
.sloka-list-view .sloka-audio-btn {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .sloka-list-view .sloka-card {
        border-radius: 0.75rem;
    }

    .sloka-list-view .sloka-card p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Learning modal: full screen on mobile, card on desktop */
.chalisa-learning-modal.active {
    display: block;
}

.chalisa-learning-modal .chalisa-learning-container {
    padding: 0;
}

@media (min-width: 769px) {
    .chalisa-learning-modal .chalisa-learning-container {
        padding: 2rem 1rem;
    }
}

.chalisa-learning-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.chalisa-learning-slide-label {
    font-family: inherit;
}

.chalisa-learning-lang-btn {
    color: #6b7280;
    background: transparent;
    border: 2px solid transparent;
}

.chalisa-learning-lang-btn:hover {
    background: #fff;
    color: #ea580c;
}

.chalisa-learning-lang-btn.active {
    background: #ea580c;
    color: white;
    border-color: #ea580c;
}

.chalisa-learnt-toast {
    transform: translateY(-8px);
}

.chalisa-learnt-toast.opacity-100 {
    transform: translateY(0);
}

.chalisa-learning-slide-wrap {
    overflow-x: hidden;
}

.chalisa-slide-content {
    min-height: 1px;
}

.chalisa-slide-content.chalisa-slide-in-from-right {
    animation: chalisaSlideInFromRight 0.4s ease-out forwards;
}

.chalisa-slide-content.chalisa-slide-in-from-left {
    animation: chalisaSlideInFromLeft 0.4s ease-out forwards;
}

@keyframes chalisaSlideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0.5;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes chalisaSlideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0.5;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile dropdown for tabs */
@media (max-width: 768px) {
    .benefits-tabs {
        display: none;
    }

    .benefits-tabs-mobile {
        display: block;
        margin-bottom: 1rem;
    }

    .benefits-tabs-mobile select {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.875rem;
        font-weight: 600;
        border: 2px solid #e5e7eb;
        border-radius: 0.5rem;
        background: white;
        color: #374151;
        cursor: pointer;
    }

    .benefits-tabs-mobile select:focus {
        outline: none;
        border-color: #ea580c; /* orange-600 */
        box-shadow: 0 0 0 2px #fed7aa; /* light orange ring effect */
    }
}

@media (min-width: 769px) {
    .benefits-tabs-mobile {
        display: none;
    }
}

/* Certificate modal - same pattern as login/telegram popup */
.certificate-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.certificate-modal-backdrop.show {
    display: flex !important;
}

.certificate-modal-content {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 900px;
    margin: auto;
}


.chalisa-lang-btn {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.chalisa-lang-btn:hover {
    background: #ffedd5;
    transform: translateY(-1px);
}

.chalisa-lang-btn.active {
    background: #ea580c;
    color: white;
    border-color: #ea580c;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.25);
}

/* Start Learning button - lower z-index to stay behind modals */
#chalisaStartLearningBtn {
    position: relative;
    z-index: 1;
}

/* Chalisa welcome modal - centered like login/telegram popup */
.chalisa-welcome-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.chalisa-welcome-modal-backdrop.show {
    display: flex !important;
}

.chalisa-welcome-modal-content {
    position: relative;
    background: linear-gradient(to bottom right, #fffbeb, #fff7ed, #fefce8);
    border-radius: 1rem;
    border: 2px solid #fcd34d;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== Chalisa Devotional Tour Guide ===== */

/* Backdrop overlay - blocks clicks outside tooltip and prevents scroll */
.chalisa-tour-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 19999;
    pointer-events: auto;
    cursor: not-allowed;
}

.chalisa-tour-backdrop.active {
    display: block;
}

/* Body state when tour is active */
body.chalisa-tour-active {
    overflow: hidden !important;
    touch-action: none;
}

/* Spotlight - highlights the target element with subtle border */
.chalisa-tour-spotlight {
    display: none;
    position: fixed;
    z-index: 20001;
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.9),
        0 0 0 4px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: top 0.15s ease-out, left 0.15s ease-out, width 0.15s ease-out, height 0.15s ease-out;
}

.chalisa-tour-spotlight.active {
    display: block;
}

/* Tooltip - the popover with step content */
.chalisa-tour-tooltip {
    display: none;
    position: fixed;
    z-index: 20002;
    width: calc(100% - 24px);
    max-width: 360px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, top 0.15s ease-out, left 0.15s ease-out;
    /* Hide off-screen initially */
    top: -9999px;
    left: -9999px;
    pointer-events: auto;
}

.chalisa-tour-tooltip.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chalisa-tour-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e5e7eb;
    transition: left 0.15s ease-out;
}

.chalisa-tour-tooltip.arrow-top .chalisa-tour-tooltip-arrow {
    top: -10px;
}

.chalisa-tour-tooltip.arrow-bottom .chalisa-tour-tooltip-arrow {
    bottom: -10px;
    border-bottom: none;
    border-top: 10px solid #e5e7eb;
}

.chalisa-tour-progress-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.chalisa-tour-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chalisa-tour-progress-dot.active {
    background: #ea580c;
    transform: scale(1.2);
}

.chalisa-tour-tooltip-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease;
}

.chalisa-tour-tooltip-content.chalisa-tour-fade {
    opacity: 0.6;
}

.chalisa-tour-step-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ea580c;
    margin-bottom: 4px;
}

.chalisa-tour-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.chalisa-tour-body {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    margin: 0 0 16px 0;
}

.chalisa-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chalisa-tour-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chalisa-tour-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

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

.chalisa-tour-btn-primary {
    background: #ea580c;
    color: white;
}

.chalisa-tour-btn-primary:hover:not(:disabled) {
    background: #c2410c;
}

.chalisa-tour-btn-secondary {
    background: white;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.chalisa-tour-btn-secondary:hover:not(:disabled) {
    background: #fef3c7;
}

/* Highlighted element during tour */
.chalisa-tour-highlight {
    position: relative !important;
    z-index: 20000 !important;
    pointer-events: auto !important;
}

/* ── Certificate image panel ─────────────────────────────── */
.chalisa-cert-wrap {
    width: 100%;
    flex-shrink: 0;
}

.chalisa-cert-img-btn {
    display: block;
    width: 100%;
    height: 190px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #fed7aa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.chalisa-cert-img-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .chalisa-cert-wrap {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }

    .chalisa-cert-img-btn {
        height: 200px;
    }
}