:root {
    --primary-color: #ff6b35;
    --primary-dark: #bf360c;
    --primary-light: #ff9e7d;
    --accent-color: #f7c59f;
    --text-color: #f8f8f8;
    --text-secondary: #b8b8b8;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-gradient: linear-gradient(135deg, #1a0024 0%, #000 100%);
    --card-bg: rgba(30, 30, 30, 0.5);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    user-select: none;
    line-height: 1.6;
    font-weight: 300;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.app-loader {
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); */
    background: -webkit-linear-gradient(135deg, #1a0024 0%, #1a0024e6 100%);
    background: -moz-linear-gradient(135deg, #1a0024 0%, #1a0024e6 100%);
    background: -ms-linear-gradient(135deg, #1a0024 0%, #1a0024e6 100%);
    background: linear-gradient(135deg, #1a0024 0%, #1a0024e6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
    backdrop-filter: blur(8px) brightness(1.05);
    -webkit-backdrop-filter: blur(8px) brightness(1.05);
}

.loader-spinner {
    width: 54px;
    height: 54px;
    border: 6px solid #ffddb2;
    border-top: 6px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.14em;
    color: #b23c00;
    letter-spacing: 1px;
    margin-top: 8px;
}

.app-loader.hide {
    opacity: 0;
    pointer-events: none;
}

.app-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.header {
    background: #3d1423;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0px;
}

.header p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.tab-bar {
    display: flex;
    width: 100%;
    background-color: rgb(34 18 24);
    position: relative;
}

.tab-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 53, 0.5) 50%, transparent 100%);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    background: transparent;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.tab.active {
    color: var(--text-color);
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.tab:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    position: relative;
    padding-bottom: 120px;
}

.tab-settings {
    max-height: calc(100vh - 160px);
}

.tab-jaap {
    overflow: hidden;
}

.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
}

.tab-history {
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none;
}

.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    margin-bottom: 20px;
    position: relative;
}

.counter-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 8px;
    text-align: center;
}

.counter-value {
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    line-height: 1;
    margin: 10px 0;
    transition: var(--transition);
    position: relative;
}

.counter-value::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
}

.last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 10px 0 30px;
    font-weight: 300;
}

/* Animated mantra display */
.mantra-animated {
    text-align: center;
    font-size: 1.2em;
    font-family: 'Merriweather', serif;
    color: #ff6b35;
    margin-bottom: 8px;
    letter-spacing: 1px;
    animation: mantraFade 2.5s infinite alternate;
    user-select: text;
}

@keyframes mantraFade {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Animated mantra display end */

.button-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.main-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    background: radial-gradient(circle, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 5px 20px rgba(191, 54, 12, 0.5),
        0 0 0 4px rgba(255, 107, 53, 0.2);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.main-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(191, 54, 12, 0.6),
        0 0 0 4px rgba(255, 107, 53, 0.3);
}

.main-button:active {
    transform: translateY(1px) scale(0.98);
}

.reset-button {
    position: fixed;
    bottom: 85px;
    right: 16px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0px;
    padding-bottom: 2px;
    border-radius: 50%;
    font-size: 1.4rem;
    background: var(--primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(191, 54, 12, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
}

.reset-button:hover {
    background: #8c2a06;
    transform: rotate(90deg);
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.history-list li {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.history-list li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-date {
    color: var(--text-secondary);
    font-weight: 300;
}

.history-count {
    color: var(--primary-color);
    font-weight: 500;
}

.no-history {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.95rem;
    justify-content: center !important;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    height: 200px;
    margin-bottom: 20px;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.action-button {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
    max-width: 170px;
    margin: 8px auto 2px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(0);
}

.action-button.warning {
    background: rgba(191, 54, 12, 0.2);
    color: var(--primary-light);
}

.action-button.warning:hover {
    background: rgba(191, 54, 12, 0.3);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 107, 53, 0.3);
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 700px) {
    .app-container {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: none;
        border: none;
        border-radius: 0;
    }

    .tab-bar {
        border-radius: 0;
    }

    .header {
        width: 100%;
        padding: 8px 16px;
        height: 80px;
    }

    .counter-value {
        font-size: 4rem;
    }

    .main-button {
        width: 75px;
        height: 75px;
        font-size: 2rem;
    }

    .bottom-nav {
        height: 70px;
    }
}

/* Fancy decorative elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: -150px;
    right: -150px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    bottom: -100px;
    left: -100px;
}

.music-toggle {
    position: absolute;
    top: 16px;
    left: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--accent-color);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.music-toggle.muted {
    opacity: 0.6;
    color: var(--text-secondary);
}

/*css for install webview app*/
#installContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

#installBtn {
    background: #bf360c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

#installBtn::before {
    content: "⬇";
    font-size: 18px;
}

/************/
/* Enhanced Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100%;
    background: rgba(34, 34, 34, 0.98);
    color: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    z-index: 1200;
    transition: left 0.35s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    display: flex;
    flex-direction: column;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 18px 18px 22px;
    font-size: 1.25em;
    font-weight: 600;
    border-bottom: 1px solid #333;
    letter-spacing: 1px;
}

.close-sidebar {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 2.2em;
    cursor: pointer;
    transition: color 0.2s;
    margin-left: 10px;
}

.close-sidebar:hover {
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar ul li {
    border-bottom: 1px solid #292929;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    padding: 16px 28px;
    font-size: 1.08em;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    border-left: 3px solid transparent;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: rgba(255, 107, 53, 0.08);
    color: #ff6b35;
    border-left: 3px solid #ff6b35;
}

.sidebar ul li a .menu-icon {
    font-size: 1.2em;
    width: 22px;
    text-align: center;
    opacity: 0.85;
}

/* Hamburger animation */
.hamburger {
    position: absolute;
    top: 25px;
    left: 16px;
    width: 32px;
    height: 28px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1101;
    cursor: pointer;
    transition: filter 0.2s;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #ff6b35;
    border-radius: 2px;
    transition: 0.3s;
}

/* .hamburger.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
} */

/* Overlay with fade-in */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.sidebar.open~.sidebar-overlay,
.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

/* Responsive: hide sidebar on desktop */
@media (min-width: 700px) {
    .hamburger {
        display: none;
    }

    .sidebar {
        left: -260px !important;
    }

    .sidebar.open {
        left: 0 !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* settings Popup: css */
#settingsPopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.settings-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
}

.settings-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #232323;
    color: #fff;
    padding: 32px 28px;
    border-radius: 14px;
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.settings-popup-content label {
    display: block;
    margin: 18px 0 10px;
}

.settings-popup-content input,
.settings-popup-content select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 6px;
    border: none;
    margin-top: 4px;
    background: #181818;
    color: #fff;
    font-size: 1em;
}

.settings-popup-content button {
    margin-top: 18px;
    margin-right: 10px;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.settings-popup-content button#closeSettingsBtn {
    background: #444;
}

.tab-settings {
    padding: 1.5em 1em;
}

.settings-section label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    font-size: 1em;
}

.settings-section label>span {
    flex: 1;
}

.settings-section input,
.settings-section select {
    margin-left: 1em;
    font-size: 1em;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* fullscreen and exit css */
.fullscreen-btn {
    position: absolute;
    top: -36px;
    right: -16px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

.fullscreen-btn:hover {
    background: #ffe0b2;
}

.fullscreen-btn svg {
    color: #ff6b35;
    width: 22px;
    height: 22px;
    stroke-width: 2.2px;
}

.counter-container.fullscreen {
    margin: 0 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background: -webkit-linear-gradient(135deg, #1a0024f2 0%, #000000b5 100%);
    background: -moz-linear-gradient(135deg, #1a0024f2 0%, #000000b5 100%);
    background: -ms-linear-gradient(135deg, #1a0024f2 0%, #000000b5 100%);
    background: linear-gradient(135deg, #1a0024f2 0%, #000000b5 100%);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(8px) brightness(1.05);
    -webkit-backdrop-filter: blur(8px) brightness(1.05);
    transition: background 0.4s, box-shadow 0.4s;
}

.exit-fullscreen-counter {
    position: absolute;
    top: 8px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2.2em;
    color: #ff6b35;
    cursor: pointer;
    z-index: 10;
    display: block;
}

.counter-container.fullscreen .last-updated {
    color: #696969;
}

.counter-container.fullscreen .fullscreen-btn {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Improved Bottom Navigation Bar for Mobile App Look */
/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: #1a0d0d;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2001;
    border-top: 1.5px solid #2a1a1a;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.13);
    padding: 0 18px;
    transition: background 0.2s;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Side nav buttons */
.nav-btn {
    flex: 1 1 0;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0 0 0;
    cursor: pointer;
    transition: color 0.18s, background 0.18s;
    outline: none;
    min-width: 0;
    min-height: 0;
    position: relative;
    height: 100%;
    z-index: 1;
}

.nav-btn .nav-icon {
    font-size: 1.7em;
    margin-bottom: 6px;
    line-height: 1;
    display: block;
}

.nav-btn .nav-label {
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-top: 1px;
    line-height: 1.1;
}

.nav-btn.active,
.nav-btn:focus {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.10);
}

.nav-btn:active {
    background: rgba(255, 107, 53, 0.18);
}

/* Center floating Counter button */
.nav-btn-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-38%);
    bottom: 14px;
    background: linear-gradient(135deg, #ff6b35 60%, #ff9e7d 100%);
    color: #fff !important;
    border-radius: 50%;
    width: 74px;
    height: 74px;
    min-width: 74px;
    min-height: 74px;
    box-shadow:
        0 8px 24px 0 rgba(255, 107, 53, 0.25),
        0 2px 8px 0 rgba(0, 0, 0, 0.13),
        0 0 0 8px rgba(255, 107, 53, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.18em;
    border: 4px solid #fff;
    transition: box-shadow 0.18s, background 0.18s, color 0.18s, border 0.18s;
    outline: none;
    cursor: pointer;
    animation: floatUp 0.7s cubic-bezier(.23, 1.02, .53, .97);
}

/* Only show icon in the center button */
.nav-btn-center .nav-label {
    display: none;
}

.nav-btn-center .nav-icon {
    font-size: 1.6em;
    margin-bottom: 0;
    line-height: 1;
}

.nav-btn-center.active,
.nav-btn-center:focus {
    background: #fff;
    color: #ff6b35 !important;
    border: 4px solid #ff6b35;
    box-shadow: 0 10px 32px rgba(255, 107, 53, 0.32);
}

.nav-btn-center:active {
    background: #ff9e7d;
    color: #fff !important;
    border: 4px solid #fff;
}

@keyframes floatUp {
    0% {
        transform: translateX(-50%) translateY(40%);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(-38%);
        opacity: 1;
    }
}

/* Responsive: ensure floating button looks good on mobile */
@media (max-width: 700px) {
    .bottom-nav {
        height: 70px;
        padding: 0 8px;
    }

    .nav-btn-center {
        width: 62px;
        height: 62px;
        min-width: 62px;
        min-height: 62px;
        border-width: 3px;
        font-size: 1em;
    }

    .nav-btn .nav-icon {
        font-size: 1.4em;
    }
}

#saveSettingsBtn {
    margin-top: 18px;
    width: 100%;
    font-size: 1.05em;
    font-weight: 600;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #ff6b35;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff6b35;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.volume-value {
    min-width: 30px;
    font-size: 0.9em;
    color: #c4c4c4;
}

/* Toastr-like Spiritual Popup */
.spiritual-popup {
    position: fixed;
    left: 50%;
    top: 126px;
    transform: translateX(-50%) translateY(-60px);
    min-width: 200px;
    max-width: 95vw;
    background: linear-gradient(135deg, #f4f3f3cc 60%, #fda77dcc 100%);
    color: #98380a;
    border-radius: 16px;
    border: 1px solid #ffe0d1;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    padding: 12px 32px 12px 16px;
    font-size: 1.2em;
    font-family: 'Merriweather', serif;
    z-index: 3000;
    text-align: left;
    /* opacity: 0; */
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.4, 2, .6, 1), transform 0.35s cubic-bezier(.4, 2, .6, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.spiritual-popup.toast-show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.spiritual-popup.toast-hide {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-60px);
}

.spiritual-popup-close {
    position: absolute;
    top: -16px;
    right: -10px;
    font-size: 1.4em;
    color: #ff6b35;
    cursor: pointer;
    font-weight: lighter;
    line-height: 1;
    z-index: 1;
    background: #fff;
    border: none;
    padding: 0;
    transition: color 0.2s, background 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spiritual-popup-close:hover {
    color: #fff;
    background: #ff6b35;
}

@media (max-width: 500px) {
    .spiritual-popup {
        font-size: 0.92em;
        padding: 10px 32px 10px 12px;
        min-width: 120px;
        border-radius: 12px;
    }

    .spiritual-popup-close {
        font-size: 1em;
        right: 0px;
        width: 28px;
        height: 28px;
    }
}