/* Generated from css/style.css by tools/rtl/gen.js (rtlcss) — do not edit */
:root {
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --day-fill: #ffcc00;
    --night-fill: #8a2be2;
    --accent-blue: #00b4d8;
}

/* Visually hidden but accessible to screen readers and search engines */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100dvh;
    background-color: #050510;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Smooth entry animations after load */
.app-loaded #app-container {
    animation: fadeIn 0.6s ease;
}
.app-loaded .layout-block {
    animation: slideInUp 0.8s ease both;
}
.app-loaded #block-prayers {
    animation-delay: 0.1s;
}
.app-loaded #block-circle {
    animation-delay: 0.2s;
}
.app-loaded #block-player {
    animation-delay: 0.3s;
}
.app-loaded .prayer-card {
    animation: slideInUp 0.6s ease both;
}
.app-loaded .prayer-card:nth-child(1) { animation-delay: 0.15s; }
.app-loaded .prayer-card:nth-child(2) { animation-delay: 0.2s; }
.app-loaded .prayer-card:nth-child(3) { animation-delay: 0.25s; }
.app-loaded .prayer-card:nth-child(4) { animation-delay: 0.3s; }
.app-loaded .prayer-card:nth-child(5) { animation-delay: 0.35s; }
.app-loaded .prayer-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(-360deg); }
}
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.bg-layer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    will-change: opacity;
    pointer-events: none;
    transition: opacity 1.5s ease;
}

#bg-night { background: linear-gradient(to bottom, #020205 0%, #0d0d26 100%); }
#starsCanvas { width: 100%; height: 100%; display: block; }
#bg-dawn { background: linear-gradient(to bottom, #0d1236 0%, #3d204a 50%, #d46b57 100%); }
#bg-day { background: linear-gradient(to bottom, #0b2e59 0%, #2e74b5 100%); }
#bg-dusk { background: linear-gradient(to bottom, #0f1533 0%, #3a1a3b 40%, #b34233 80%, #e68a45 100%); }

#app-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    z-index: 10;
    box-sizing: border-box;
}

/* ===== SIDEBAR MENI ===== */
#menu-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 48px;
    height: 48px;
    background: rgb(10 10 25 / 0%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: background 0.3s, border-color 0.3s;
}
#menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}
#menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #ffffff !important;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
}
#menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(-45deg);
}
#menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(45deg);
}

#sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 10, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
#sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 85vw;
    height: 100dvh;
    background: rgb(8 8 22 / 88%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 180;
    display: flex;
    flex-direction: column;
    padding: 90px 36px 36px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
#sidebar::-webkit-scrollbar {
    width: 5px;
}
#sidebar::-webkit-scrollbar-track {
    background: transparent;
}
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}
#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}
#sidebar.open {
    transform: translateX(0);
}

#sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
#sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
}
#sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
#sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.5;
}
#sidebar-nav a .nav-icon-file {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--icon-url);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--icon-url);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    opacity: 0.5;
}
#sidebar-nav a:hover svg {
    opacity: 0.9;
}
#sidebar-nav a:hover .nav-icon-file {
    opacity: 0.9;
}

/* Active page */
#sidebar-nav a.nav-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
}
#sidebar-nav a.nav-active svg {
    opacity: 1;
}
#sidebar-nav a.nav-active .nav-icon-file {
    opacity: 1;
}

#sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 12px 0;
}

#sidebar-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
#sidebar-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#sidebar-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
#sidebar-social a svg {
    width: 18px;
    height: 18px;
}

/* Cast dugme */
#cast-btn, #fullscreen-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#cast-btn:hover, #fullscreen-btn:hover {
    background: rgba(140, 220, 160, 0.1);
    border-color: rgba(140, 220, 160, 0.3);
    color: rgba(140, 220, 160, 0.9);
}
#cast-btn svg, #fullscreen-btn svg {
    width: 20px;
    height: 20px;
}
#cast-btn.casting {
    background: rgba(140, 220, 160, 0.15);
    border-color: rgba(140, 220, 160, 0.4);
    color: rgba(140, 220, 160, 0.95);
    animation: castPulse 2s ease infinite;
}
@keyframes castPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(140, 220, 160, 0.2); }
    50% { box-shadow: 0 0 12px 4px rgba(140, 220, 160, 0.15); }
}
.cast-status {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: rgba(140, 220, 160, 0.6);
    min-height: 14px;
    transition: opacity 0.3s;
}

#sidebar-footer-text {
    margin-top: 16px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* SIDEBAR SETTINGS */
#sidebar-settings {
    padding-top: 20px;
    margin-top: auto;
    margin-bottom: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-settings-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.setting-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.setting-label-main {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}
.setting-label-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.toggle-knob {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
    pointer-events: none;
}
.toggle-switch input:checked ~ .toggle-track {
    background: rgba(140, 220, 160, 0.2);
    border-color: rgba(140, 220, 160, 0.4);
}
.toggle-switch input:checked ~ .toggle-knob {
    transform: translateX(-20px);
    background: rgba(140, 220, 160, 0.95);
}

/* Minutes input */
.setting-minutes-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -8px;
}
.setting-minutes-row.visible {
    opacity: 1;
    max-height: 60px;
    padding: 10px 12px;
    margin-top: 0;
}
.setting-minutes-row label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.minutes-input {
    width: 56px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 6px 8px;
    font-variant-numeric: tabular-nums;
    outline: none;
    transition: border-color 0.25s;
    -moz-appearance: textfield;
    appearance: textfield;
}
.minutes-input:focus {
    border-color: rgba(140, 220, 160, 0.5);
}
.minutes-input::-webkit-inner-spin-button,
.minutes-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.minutes-unit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* HEADER & FOOTER */

/* ═══════════════════════════════════════════
   MINI SIDEBAR (collapsed icon rail)
   Non-homepage pages: icons visible when closed
   ═══════════════════════════════════════════ */

body.sidebar-mini #menu-toggle {
    display: none;
}

/* Rail hamburger toggle – hidden by default, shown only in mini mode */
#rail-toggle {
    display: none;
}
body.sidebar-mini #rail-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 64px;
    margin: 0 0 12px;
    padding: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s;
}
body.sidebar-mini #rail-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
body.sidebar-mini #rail-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
}
body.sidebar-mini #rail-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(-45deg);
}
body.sidebar-mini #rail-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
body.sidebar-mini #rail-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(45deg);
}

/* Collapsed rail — always visible */
body.sidebar-mini #sidebar {
    transform: translateX(calc(-1*(100% - 80px)));
}
body.sidebar-mini #sidebar.open {
    transform: translateX(0);
}

/* Icon rail styling when collapsed */
body.sidebar-mini #sidebar-nav a {
    position: relative;
    white-space: nowrap;
}

/* When collapsed: shrink to icon rail, HIDE labels completely */
body.sidebar-mini:not(.sidebar-open) #sidebar {
    padding: 0 0 36px;
    width: 80px;
    overflow-x: hidden;
    overflow-y: auto;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    gap: 0;
    border-radius: 0;
    overflow: visible;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a span.nav-label {
    display: none;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a svg {
    opacity: 0.65;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a .nav-icon-file {
    opacity: 0.65;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a:hover svg {
    opacity: 1;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a:hover .nav-icon-file {
    opacity: 1;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a.nav-active svg {
    opacity: 1;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a.nav-active .nav-icon-file {
    opacity: 1;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a.nav-active {
    background: rgba(255, 255, 255, 0.11);
}

/* Hide settings, social, footer text when collapsed */
body.sidebar-mini:not(.sidebar-open) #sidebar-settings,
body.sidebar-mini:not(.sidebar-open) #sidebar-social,
body.sidebar-mini:not(.sidebar-open) #sidebar-footer-text {
    display: none;
}

/* Restore full width when open */
body.sidebar-mini.sidebar-open #sidebar {
    width: 420px;
    max-width: 85vw;
    padding: 90px 36px 36px;
}
body.sidebar-mini.sidebar-open #sidebar-nav a span.nav-label {
    display: inline;
}

/* Close button inside sidebar (for mini mode) */
#sidebar-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
#sidebar-close-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
#sidebar-close-btn svg {
    width: 18px;
    height: 18px;
}
body.sidebar-mini.sidebar-open #sidebar-close-btn {
    display: none;
}

/* Rail toggle repositioned when sidebar is open */
body.sidebar-mini.sidebar-open #rail-toggle {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 64px;
    margin: 0;
    align-items: flex-end;
    padding-left: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


/* HEADER & FOOTER */
#site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-sizing: border-box;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#site-header.header-hidden {
    transform: translateY(-100%);
}

/* Homepage header: transparent over dark background */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.header-logo {
    width: 32px;
    height: 32px;
    display: block;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    transition: color 0.25s;
}

.header-logo-mark {
    background-color: currentColor;
    -webkit-mask: url('../../assets/icon/mosque-moon.svg') center / contain no-repeat;
    mask: url('../../assets/icon/mosque-moon.svg') center / contain no-repeat;
}

.header-brand:hover .header-logo {
    color: rgba(255, 255, 255, 0.95);
}

#site-header.header-hidden {
    transform: translateY(-100%);
}
/* Homepage header: transparent over dark background */
body.sidebar-mini #site-header {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.sidebar-mini .header-logo {
    color: #1e293b;
}
body.sidebar-mini .header-brand:hover .header-logo {
    color: #0f172a;
}
/* On desktop, header right edge stops before the 80px sidebar icon rail */
@media (min-width: 769px) {
    body.sidebar-mini #site-header {
        left: 80px;
    }
}
body.sidebar-mini.sidebar-open #site-header {
    transform: translateY(-100%);
}

/* Footer — layout handled by footer.css */
#site-footer {
    flex-shrink: 0;
    width: 100%;
}

/* GLAVNI LAYOUT — tri bloka po 33% */
#main-layout {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 0;
}
.layout-block {
    flex: 1 1 33.333%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}
#block-circle { overflow: hidden; }

#controls {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.35;
    transition: opacity 0.3s;
}
#controls:hover { opacity: 0.8; }

#method-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
#method-select option {
    background: #050510;
    color: #fff;
}
#hour12-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.75);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
#hour12-toggle:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}


#canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    container-type: size;
    container-name: clock-wrapper;
}

canvas#clockCanvas {
    display: block;
    pointer-events: all;
}

/* HTML CENTRALNI SAT */
#html-clock-center {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    width: calc(var(--cs, 600px) * 0.5);
    z-index: 30;
}

#clock-icon-container {
    width: calc(var(--cs, 600px) * 0.05);
    height: calc(var(--cs, 600px) * 0.05);
    margin-bottom: calc(var(--cs, 600px) * 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(var(--cs, 600px) * 0.06);
}
#clock-icon-container svg {
    width: 100%;
    height: 100%;
}

#clock-phase {
    font-weight: 700;
    font-size: clamp(8px, calc(var(--cs, 600px) * 0.014), 16px);
    letter-spacing: 4px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

#clock-time {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(48px, calc(var(--cs, 600px) * 0.14), 160px);
    line-height: 1;
    margin: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    white-space: nowrap;
}

#next-prayer-countdown {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, calc(var(--cs, 600px) * 0.047), 53px);
    letter-spacing: 2px;
    margin-top: clamp(6px, calc(var(--cs, 600px) * 0.015), 18px);
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    line-height: 1;
}

#clock-date {
    font-weight: 400;
    font-size: clamp(11px, calc(var(--cs, 600px) * 0.017), 21px);
    letter-spacing: 2px;
    opacity: 0.35;
    margin-top: clamp(3px, calc(var(--cs, 600px) * 0.005), 7px);
    text-transform: uppercase;
}

#prayer-tooltip {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 14px;
    pointer-events: none;
    z-index: 50;
    transform: translate(50%, -120%);
}
#prayer-tooltip.visible { display: flex; }
#tooltip-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
#tooltip-time {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

#clock-weekday {
    font-weight: 600;
    font-size: clamp(9px, calc(var(--cs, 600px) * 0.012), 15px);
    letter-spacing: 4px;
    opacity: 0.5;
    text-transform: uppercase;
    margin-bottom: calc(var(--cs, 600px) * 0.01);
}

#hijri-date {
    font-weight: 500;
    font-size: clamp(13px, calc(var(--cs, 600px) * 0.02), 26px);
    letter-spacing: 2px;
    margin-top: calc(var(--cs, 600px) * 0.06);
    text-transform: uppercase;
    color: rgba(140, 220, 160, 0.65);
    font-family: 'Inter', sans-serif;
}

#clock-location {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: opacity 0.3s;
}
#clock-location:hover { opacity: 0.8; }
#clock-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #a8b2bd;
}
#clock-location #location-name {
    font-variant-numeric: tabular-nums;
}
#clock-location #locateBtn {
    cursor: pointer;
    opacity: 0.55;
    margin-right: 4px;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.4s ease, opacity 0.2s;
    display: inline-block;
}
#clock-location #locateBtn:hover {
    opacity: 1;
    transform: rotate(-180deg);
}

/* Light-page footer overrides (all non-homepage pages) */
body.sidebar-mini #clock-location {
    color: rgba(30, 41, 59, 0.85);
    opacity: 0.5;
}
body.sidebar-mini #clock-location:hover { opacity: 0.85; }
body.sidebar-mini #clock-location svg {
    color: #475569;
}
body.sidebar-mini #controls {
    opacity: 0.45;
}
body.sidebar-mini #controls:hover { opacity: 0.85; }
body.sidebar-mini #method-select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: #334155;
}
body.sidebar-mini #method-select option {
    background: #fff;
    color: #1e293b;
}

/* QUR'AN PLAYER */
#quran-player {
    position: relative;
    width: 100%;
    max-width: 260px;
    background: rgba(10, 10, 25, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px 20px 18px;
    z-index: 35;
    color: #fff;
    pointer-events: all;
    opacity: 0.7;
    transition: opacity 0.35s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
#quran-player:hover { opacity: 1; }

.qp-info {
    text-align: center;
    margin-bottom: 18px;
    min-height: 70px;
}
.qp-surah-ar {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255,255,255,0.95);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}
.qp-surah-en {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(140, 220, 160, 0.75);
    margin-bottom: 3px;
}
.qp-surah-num {
    font-size: 9px;
    letter-spacing: 2px;
    opacity: 0.4;
    font-family: 'Space Grotesk', sans-serif;
    font-variant-numeric: tabular-nums;
}

.qp-progress-wrap {
    margin-bottom: 14px;
}
.qp-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.qp-progress-fill {
    height: 100%;
    background: rgba(140, 220, 160, 0.75);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}
.qp-time {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 9px;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
    font-variant-numeric: tabular-nums;
    opacity: 0.5;
}

.qp-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.qp-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
    transition: 0.2s;
    padding: 0;
}
.qp-btn svg {
    width: 16px;
    height: 16px;
}
.qp-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.08);
}
.qp-play {
    width: 46px;
    height: 46px;
    background: rgba(140, 220, 160, 0.12);
    border: 1px solid rgba(140, 220, 160, 0.28);
    color: rgba(140, 220, 160, 0.95);
    opacity: 1;
    margin: 0 4px;
}
.qp-play svg {
    width: 18px;
    height: 18px;
}
.qp-play:hover {
    background: rgba(140, 220, 160, 0.2);
}
.qp-expand {
    margin-right: 4px;
}
.qp-expand svg {
    width: 13px;
    height: 13px;
}
.qp-popout {
    margin-right: 2px;
}
.qp-popout svg {
    width: 13px;
    height: 13px;
}
.qp-repeat svg {
    width: 14px;
    height: 14px;
}
.qp-repeat.active {
    opacity: 1;
    color: rgba(140, 220, 160, 0.95);
    background: rgba(140, 220, 160, 0.12);
}

/* QURAN PLAYER SETTINGS MODAL */
.qp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.qp-modal.open {
    opacity: 1;
    pointer-events: all;
}
.qp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 2, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.qp-modal-content {
    position: relative;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    background: rgba(12, 12, 30, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.qp-modal.open .qp-modal-content {
    transform: scale(1);
}
.qp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.qp-modal-header h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}
.qp-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.qp-modal-close:hover {
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.3);
    color: rgba(255, 100, 100, 0.9);
}
.qp-modal-close svg {
    width: 18px;
    height: 18px;
}
.qp-modal-body {
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1;
}

/* Firefox scrollbar */
.qp-modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
}

/* Webkit scrollbar */
.qp-modal-body::-webkit-scrollbar {
    width: 10px;
}
.qp-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}
.qp-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
}
.qp-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

.qp-settings-section {
    margin-bottom: 32px;
}
.qp-settings-section:last-child {
    margin-bottom: 0;
}
.qp-settings-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 16px;
}

/* RECITER GRID */
.qp-reciter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.qp-reciter-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
}
.qp-reciter-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.qp-reciter-card.active {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.12));
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.35));
}
.qp-reciter-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}
.qp-reciter-lang {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* SURAH SEARCH & LIST */
.qp-search-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.qp-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.4));
}
.qp-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.qp-surah-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

/* Firefox scrollbar */
.qp-surah-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
.qp-surah-list::-webkit-scrollbar {
    width: 8px;
}
.qp-surah-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.qp-surah-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    transition: background 0.2s;
}
.qp-surah-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
.qp-surah-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
    gap: 12px;
}
.qp-surah-item:last-child {
    border-bottom: none;
}
.qp-surah-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.qp-surah-item.active {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.1));
}
.qp-surah-item.playing {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.15));
}
.qp-surah-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.qp-surah-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Grotesk', sans-serif;
}
.qp-surah-item.active .qp-surah-number {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.2));
    color: var(--qp-accent, rgba(140, 220, 160, 0.95));
}
.qp-surah-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qp-surah-name-en {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
.qp-surah-name-ar {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}
.qp-surah-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    opacity: 0;
}
.qp-surah-item:hover .qp-surah-play-btn,
.qp-surah-item.playing .qp-surah-play-btn {
    opacity: 1;
}
.qp-surah-item.playing .qp-surah-play-btn {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.15));
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.3));
}
.qp-surah-play-btn:hover {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.2));
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.4));
}
.qp-surah-play-btn svg {
    width: 12px;
    height: 12px;
    fill: var(--qp-accent, rgba(140, 220, 160, 0.9));
}
.qp-surah-playing-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0;
}
.qp-surah-item.playing .qp-surah-playing-indicator {
    opacity: 1;
}
.qp-playing-bar {
    width: 2px;
    height: 12px;
    background: var(--qp-accent, rgba(140, 220, 160, 0.8));
    border-radius: 2px;
    animation: audioWave 0.8s ease-in-out infinite;
}
.qp-playing-bar:nth-child(1) { animation-delay: 0s; height: 8px; }
.qp-playing-bar:nth-child(2) { animation-delay: 0.2s; height: 14px; }
.qp-playing-bar:nth-child(3) { animation-delay: 0.4s; height: 10px; }
@keyframes audioWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* COLOR THEMES */
.qp-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.qp-theme-card {
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
}
.qp-theme-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}
.qp-theme-card.active {
    border-color: var(--qp-accent, rgba(140, 220, 160, 0.6));
    box-shadow: 0 0 0 1px var(--qp-accent, rgba(140, 220, 160, 0.3));
}
.qp-theme-preview {
    height: 60px;
    width: 100%;
}
.qp-theme-name {
    padding: 10px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

/* PLAYBACK OPTIONS */
.qp-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.qp-option-row:last-child {
    border-bottom: none;
}
.qp-option-row label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.qp-option-desc {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}
.qp-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}
.qp-select:hover {
    background: rgba(255, 255, 255, 0.08);
}
.qp-select option {
    background: #0c0c1e;
    color: #fff;
}

/* PLAYER COLOR THEMES (CSS Variables) */
#quran-player.theme-default {
    --qp-accent: rgba(140, 220, 160, 0.95);
    --qp-accent-bg: rgba(140, 220, 160, 0.12);
    --qp-accent-border: rgba(140, 220, 160, 0.28);
    /* Default ostaje proziran */
}

#quran-player.theme-blue {
    --qp-accent: #5eb3ff;
    --qp-accent-bg: rgba(94, 179, 255, 0.2);
    --qp-accent-border: rgba(94, 179, 255, 0.4);
    background: linear-gradient(-135deg, #1a4d7a, #2563a8) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(94, 179, 255, 0.3) !important;
}

#quran-player.theme-purple {
    --qp-accent: #b888ff;
    --qp-accent-bg: rgba(184, 136, 255, 0.2);
    --qp-accent-border: rgba(184, 136, 255, 0.4);
    background: linear-gradient(-135deg, #4a2873, #6b3ba8) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(184, 136, 255, 0.3) !important;
}

#quran-player.theme-gold {
    --qp-accent: #ffc857;
    --qp-accent-bg: rgba(255, 200, 87, 0.2);
    --qp-accent-border: rgba(255, 200, 87, 0.4);
    background: linear-gradient(-135deg, #8b6914, #b8951a) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(255, 200, 87, 0.3) !important;
}

#quran-player.theme-rose {
    --qp-accent: #ff7b9c;
    --qp-accent-bg: rgba(255, 123, 156, 0.2);
    --qp-accent-border: rgba(255, 123, 156, 0.4);
    background: linear-gradient(-135deg, #8b2e4a, #b83d63) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(255, 123, 156, 0.3) !important;
}

#quran-player.theme-teal {
    --qp-accent: #4dd4ac;
    --qp-accent-bg: rgba(77, 212, 172, 0.2);
    --qp-accent-border: rgba(77, 212, 172, 0.4);
    background: linear-gradient(-135deg, #1a6b5a, #248c73) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(77, 212, 172, 0.3) !important;
}

/* Dodatna stilizacija za obojene teme */
#quran-player.theme-blue .qp-surah-ar,
#quran-player.theme-purple .qp-surah-ar,
#quran-player.theme-gold .qp-surah-ar,
#quran-player.theme-rose .qp-surah-ar,
#quran-player.theme-teal .qp-surah-ar {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

#quran-player.theme-blue .qp-btn,
#quran-player.theme-purple .qp-btn,
#quran-player.theme-gold .qp-btn,
#quran-player.theme-rose .qp-btn,
#quran-player.theme-teal .qp-btn {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

#quran-player.theme-blue .qp-btn:hover,
#quran-player.theme-purple .qp-btn:hover,
#quran-player.theme-gold .qp-btn:hover,
#quran-player.theme-rose .qp-btn:hover,
#quran-player.theme-teal .qp-btn:hover {
    background: var(--qp-accent-bg);
    color: var(--qp-accent);
}

/* Apply theme colors to player elements */
#quran-player .qp-surah-en,
#quran-player .qp-progress-fill,
#quran-player .qp-play,
#quran-player .qp-repeat.active {
    color: var(--qp-accent, rgba(140, 220, 160, 0.95));
}
#quran-player .qp-progress-fill {
    background: var(--qp-accent, rgba(140, 220, 160, 0.75));
}
#quran-player .qp-play {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.12));
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.28));
    color: var(--qp-accent, rgba(140, 220, 160, 0.95));
}
#quran-player .qp-play:hover {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.2));
}
#quran-player .qp-repeat.active {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.12));
}


/* DONJI BAR — samo namazna vremena */
#bottom-dashboard {
    position: relative;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: all;
    opacity: 0.85;
    transition: opacity 0.35s ease;
}
#bottom-dashboard:hover { opacity: 1; }

/* PRAYER CARDS */
.prayer-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 16px 16px;
    border-radius: 14px;
    background: transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s, border-color 0.3s, opacity 0.3s;
    position: relative;
    border: none;
}

.prayer-dot { display: none !important; }

.prayer-card-name {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgb(255 255 255 / 85%);
    text-transform: uppercase;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.prayer-card-relative {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
    font-weight: 400;
    color: rgb(255 255 255 / 40%) !important;
    margin: 0;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.1;
}

.prayer-card-time {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: #fff;
    margin: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Aktivna — posljednji prošli namaz */
.prayer-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.prayer-card.active .prayer-card-name {
    color: rgba(255, 255, 255, 0.95) !important;
}
.prayer-card.active .prayer-card-time {
    color: #ffffff !important;
}
.prayer-card.active .prayer-card-relative {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Sljedeći namaz */
.prayer-card.next .prayer-card-name {
    color: rgba(140, 230, 170, 0.95) !important;
}
.prayer-card.next .prayer-card-time {
    color: #8ce6aa !important;
}
.prayer-card.next .prayer-card-relative {
    color: rgba(140, 230, 170, 0.7) !important;
}

/* Prošla / inaktivna molitva — zatamnjena */
.prayer-card.past {
    opacity: 0.55;
}
.prayer-card.past .prayer-card-relative {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* TOAST NOTIFIKACIJE */
.prayer-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgb(12 14 30 / 82%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(140, 220, 160, 0.18);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(140,220,160,0.06);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    max-width: 360px;
    min-width: 260px;
}
.prayer-toast.toast-show {
    transform: translateX(0);
    opacity: 1;
}
.prayer-toast.toast-hide {
    animation: toastSlideOut 0.45s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
@keyframes toastSlideOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}
.prayer-toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(140, 220, 160, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.prayer-toast-body {
    flex: 1;
    min-width: 0;
}
.prayer-toast-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(140, 220, 160, 0.5);
    margin-bottom: 3px;
}
.prayer-toast-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    line-height: 1.2;
}
.prayer-toast-time {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.prayer-toast-close {
    position: absolute;
    top: 8px;
    left: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.2s;
}
.prayer-toast-close:hover {
    color: rgba(255,255,255,0.6);
}
/* NOW varijanta — amber/gold umjesto zelene */
.prayer-toast.now {
    border-color: rgba(255, 190, 60, 0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(255,190,60,0.08);
}
.prayer-toast.now .prayer-toast-icon {
    background: rgba(255, 190, 60, 0.1);
}
.prayer-toast.now .now-label {
    color: rgba(255, 190, 60, 0.6);
}
.prayer-toast.now .prayer-toast-name {
    color: rgba(255, 220, 120, 0.95);
}
.prayer-toast.now .prayer-toast-time {
    color: rgba(255, 190, 60, 0.4);
}

/* TABLET / MANJI DESKTOP — blok-prayers i blok-circle 50%, block-player 100% (ispod) */
@media (max-width: 1024px) {
    #main-layout {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .layout-block {
        flex: 1 1 50%;
        width: 50%;
        padding: 16px;
    }
    #block-prayers { order: 1; }
    #block-circle {
        min-height: min(80vh, 600px);
        order: 2;
    }
    #block-player { 
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }
    #bottom-dashboard {
        max-width: 360px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        opacity: 1;
        margin: 0 auto;
    }
    #quran-player {
        max-width: 360px;
        opacity: 1;
        margin: 0 auto;
    }
}

/* MOBILNI UREĐAJI — blokovi se stackaju u jednu kolonu */
@media (max-width: 768px) {
    #main-layout {
        flex-direction: column;
        align-items: center;
    }
    .layout-block {
        flex: 0 0 auto;
        width: 100%;
    }

    /* ─── Mobile sidebar-mini overrides ─── */

    /* Hide collapsed sidebar icon rail on mobile */
    body.sidebar-mini #sidebar:not(.open) {
        transform: translateX(-100%);
    }
}

/* Desktop and tablet: keep content clear of collapsed right icon rail */
@media (min-width: 768px) {
    body.sidebar-mini:not(.sidebar-open) main {
        padding-left: 96px;
    }
}

/* TELEFON */
@media (max-width: 560px) {
    /* #site-footer height managed by footer.css */
    .layout-block { padding: 12px; }
    #block-circle { min-height: 60vh; }
    #bottom-dashboard {
        max-width: 420px;
    }
    .prayer-card { padding: 10px 14px; }
    .prayer-card-name { font-size: 12px; letter-spacing: 1.2px; }
    .prayer-card-time { font-size: 22px; }
    .prayer-card-relative { font-size: 11px; }
    #quran-player { max-width: 320px; padding: 18px 16px 14px; }
}


/* ═══════════════════════════════════════════════════════════════
   UNIFIED LAYOUT COLUMN
   Every page and the footer share one column: max 1280px wide,
   24px on the left, and room for the right icon rail (96px) on desktop.
   (Same geometry as .home-main, so all pages line up vertically.)
   ═══════════════════════════════════════════════════════════════ */
body main.gr-main,
body .cal-container,
body .ram-container {
    box-sizing: border-box;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
}
body main.info-shell {
    box-sizing: border-box;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}
body main.info-shell .info-container { max-width: none; }

body #footer-rich,
body #footer-bar {
    max-width: 1280px;
    box-sizing: border-box;
    padding-right: 24px;
    padding-left: 24px;
}
@media (min-width: 768px) {
    html body.sidebar-mini:not(.sidebar-open) #footer-rich,
    html body.sidebar-mini:not(.sidebar-open) #footer-bar {
        padding-left: 96px;
    }
}

/* Qur'an page: the footer lives inside #quran-main (which reserves 75px for the rail) — let it span the full width */
body #quran-main > #site-footer { width: auto; margin-left: -75px; }
@media (max-width: 767px) { body #quran-main > #site-footer { margin-left: 0; } }

/* Qur'an surah index on /quran: same column as everything else */
body #quran-main .qs-index {
    box-sizing: border-box;
    max-width: none;
    margin: 48px max(0px, calc((100vw - 1280px) / 2)) 0 max(0px, calc((100vw - 1280px) / 2 - 75px));
    padding: 0 24px 40px 96px;
}
@media (max-width: 767px) { body #quran-main .qs-index { margin: 40px 0 0; padding: 0 20px 32px; } }
@media (max-width: 560px) {
    body #footer-rich,
    body #footer-bar { padding-right: 20px; padding-left: 20px; }
}

/* Collapsed rail: label that slides out of the rail and glides between icons (js/sidebar.js railTips) */
.rail-tip { position: fixed; z-index: 400; pointer-events: none; transform: translateY(-50%); transition: top .32s cubic-bezier(.34, 1.4, .64, 1); }
.rail-tip-in {
    display: flex; align-items: center; gap: 9px; padding: 8px 11px 8px 14px; border-radius: 12px;
    background: color-mix(in srgb, var(--t-text, #1b1b2a) 94%, transparent); color: var(--t-bg, #fff);
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--t-bg, #fff) 10%, transparent) inset;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font: 600 13.5px/1 'Inter', system-ui, sans-serif; letter-spacing: .01em; white-space: nowrap;
    opacity: 0; transform: translateX(-14px) scale(.92); filter: blur(4px);
    transition: opacity .18s ease, transform .32s cubic-bezier(.34, 1.56, .64, 1), filter .2s ease;
}
.rail-tip.is-right .rail-tip-in { transform: translateX(14px) scale(.92); }
.rail-tip.is-on .rail-tip-in { opacity: 1; transform: none; filter: none; }
/* the notch pointing at the icon */
.rail-tip-in::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 2px; background: inherit; transform: rotate(-45deg); }
.rail-tip.is-left .rail-tip-in::after { left: -4px; }
.rail-tip.is-right .rail-tip-in::after { right: -4px; }
.rail-tip-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--t-accent, #c9a96e) 55%, var(--t-bg, #fff)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-accent, #c9a96e) 28%, transparent); animation: rail-pulse 1.8s ease-in-out infinite; }
@keyframes rail-pulse { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-accent, #c9a96e) 10%, transparent); } }
/* the word rolls up or down when moving to the next icon; the pill width follows */
.rail-tip-txt { position: relative; display: inline-block; height: 1.2em; overflow: hidden; transition: width .32s cubic-bezier(.34, 1.2, .64, 1); }
.rail-tip-txt b { position: absolute; right: 0; top: 0; font-weight: inherit; line-height: 1.2em; transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.rail-tip-txt b.from-down { transform: translateY(100%); opacity: 0; }
.rail-tip-txt b.from-up { transform: translateY(-100%); opacity: 0; }
.rail-tip-txt b.to-up { transform: translateY(-100%); opacity: 0; }
.rail-tip-txt b.to-down { transform: translateY(100%); opacity: 0; }
.rail-tip-cur { padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--t-bg, #fff) 16%, transparent); font: 600 10.5px/1 'Inter', system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.rail-tip-cur[hidden] { display: none; }
/* light bar on the rail edge that glides with the label */
.rail-glow { position: fixed; z-index: 190; width: 3px; border-radius: 3px; pointer-events: none; background: var(--t-accent, #c9a96e); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--t-accent, #c9a96e) 60%, transparent); opacity: 0; transform: scaleY(.3); transition: top .32s cubic-bezier(.34, 1.4, .64, 1), opacity .18s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.rail-glow.is-on { opacity: 1; transform: scaleY(.62); }
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a:hover { background: color-mix(in srgb, var(--t-accent, #c9a96e) 10%, transparent); }
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a svg, body.sidebar-mini:not(.sidebar-open) #sidebar-nav a .nav-icon-file { transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a:hover svg, body.sidebar-mini:not(.sidebar-open) #sidebar-nav a:hover .nav-icon-file { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .rail-tip, .rail-tip-in, .rail-glow, .rail-tip-txt, .rail-tip-txt b { transition: none; } .rail-tip-dot { animation: none; } }

/* Facebook card in the sidebar (same card as in the footer) */
#sidebar-social .footer-fb { flex: 1; max-width: none; margin-top: 0; width: auto; height: auto; justify-content: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--t-card, rgba(255, 255, 255, 0.06)); border: 1px solid var(--t-border, rgba(255, 255, 255, 0.10)); color: var(--t-text); }
#sidebar-social .footer-fb:hover { border-color: rgba(24, 119, 242, .45); }
[data-theme] #sidebar-social .footer-fb { opacity: 1; background: var(--t-card); border-color: var(--t-border); color: var(--t-text); }
[data-theme] #sidebar-social .footer-fb:hover { border-color: rgba(24, 119, 242, .45); }

/* ═══════════════════════════════════════════
   HEADER INFO BAR (js/header.js): Hijri date · my location · next prayer · location search
   ═══════════════════════════════════════════ */
#site-header { justify-content: flex-start; }
.hdr-info { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; margin-inline: 18px 64px; flex: 1; }
.hdr-info > a, .hdr-info > button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 12px; border: 0; border-radius: 14px; background: none; color: var(--t-text, #1e293b); font: inherit; text-decoration: none; cursor: pointer; transition: background .2s; }
.hdr-info > a:hover, .hdr-info > button:hover, .hdr-info.is-open .hdr-loc { background: color-mix(in srgb, var(--t-text, #1e293b) 6%, transparent); }
.hdr-info > a + a, .hdr-info > a + button, .hdr-info > button + a { position: relative; }
.hdr-info > .hdr-loc::before, .hdr-info > .hdr-next::before { content: ''; position: absolute; inset-inline-start: -3px; top: 12px; bottom: 12px; width: 1px; background: var(--t-border, rgba(0,0,0,.1)); }
.hdr-info > .hdr-loc, .hdr-info > .hdr-next { position: relative; }
.hdr-info b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-info small { display: block; font-size: 11.5px; line-height: 1.25; color: var(--t-text-secondary, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-date { gap: 10px !important; }
.hdr-dnum { font-family: 'Space Grotesk', sans-serif; font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--t-accent, #0f766e); font-variant-numeric: tabular-nums; }
.hdr-dtxt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hdr-date b { font-family: 'Space Grotesk', sans-serif; font-size: 15px; letter-spacing: -.01em; }
.hdr-loc svg:first-child { flex: none; width: 17px; height: 17px; color: var(--t-accent, #0f766e); }
.hdr-loc-t { min-width: 0; text-align: start; }
.hdr-loc-t b { max-width: 170px; }
.hdr-chev { flex: none; width: 15px; height: 15px; margin-inline-start: 2px; color: var(--t-text-secondary, #64748b); transition: color .2s; }
.hdr-loc:hover .hdr-chev, .hdr-info.is-open .hdr-chev { color: var(--t-accent, #0f766e); }
.hdr-next-t { min-width: 0; }
.hdr-cd { font-family: 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; color: var(--t-accent, #0f766e); }
.hdr-pico { flex: none; width: 22px; height: 22px; background-color: var(--t-accent, #0f766e); -webkit-mask: url('../../assets/icon/fajr.svg') center / contain no-repeat; mask: url('../../assets/icon/fajr.svg') center / contain no-repeat; }
.hdr-next[data-p="fajr"] .hdr-pico, .hdr-next[data-p="isha"] .hdr-pico { background-color: #8d6adf; }
.hdr-next[data-p="dhuhr"] .hdr-pico, .hdr-next[data-p="asr"] .hdr-pico { background-color: #f4c542; }
.hdr-next[data-p="maghrib"] .hdr-pico { background-color: #f28b30; }
.hdr-next[data-p="isha"] .hdr-pico { -webkit-mask-image: url('../../assets/icon/isha.svg'); mask-image: url('../../assets/icon/isha.svg'); }
.hdr-next[data-p="dhuhr"] .hdr-pico { -webkit-mask-image: url('../../assets/icon/dhuhr.svg'); mask-image: url('../../assets/icon/dhuhr.svg'); }
.hdr-next[data-p="asr"] .hdr-pico { -webkit-mask-image: url('../../assets/icon/asr.svg'); mask-image: url('../../assets/icon/asr.svg'); }
.hdr-next[data-p="maghrib"] .hdr-pico { -webkit-mask-image: url('../../assets/icon/sunset.svg'); mask-image: url('../../assets/icon/sunset.svg'); }

.hdr-panel { position: absolute; top: calc(100% + 10px); inset-inline-start: 120px; width: 360px; max-width: calc(100vw - 32px); z-index: 120; padding: 12px; border-radius: 18px; background: var(--t-card, #fff); border: 1px solid var(--t-border, rgba(0,0,0,.08)); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); animation: hdrIn .18s ease-out; }
.hdr-panel[hidden] { display: none; }
@keyframes hdrIn { from { opacity: 0; transform: translateY(-6px); } }
.hdr-panel-date { display: none; margin-bottom: 10px; padding: 4px 4px 10px; border-bottom: 1px solid var(--t-border, rgba(0,0,0,.08)); color: var(--t-text, #1e293b); text-decoration: none; }
.hdr-q { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; padding-inline: 12px 4px; border-radius: 12px; border: 1px solid var(--t-border, rgba(0,0,0,.1)); background: var(--t-bg, #f8fafc); }
.hdr-q:focus-within { border-color: var(--t-accent, #0f766e); }
.hdr-q > svg { flex: none; width: 16px; height: 16px; color: var(--t-text-secondary, #64748b); }
.hdr-q input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; color: var(--t-text, #1e293b); font: 500 14px 'Inter', sans-serif; outline: none; }
.hdr-q input::-webkit-search-cancel-button { display: none; }
.hdr-gps { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--t-accent, #0f766e); color: #fff; cursor: pointer; }
.hdr-gps svg { width: 16px; height: 16px; transform: translate(1px, 1px); }
.hdr-res { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.hdr-res:empty { display: none; }
.hdr-res button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--t-text, #1e293b); font: inherit; text-align: start; cursor: pointer; }
.hdr-res button:hover, .hdr-res button:focus-visible { background: color-mix(in srgb, var(--t-text, #1e293b) 6%, transparent); outline: none; }
.hdr-res button > svg { flex: none; width: 16px; height: 16px; color: var(--t-accent, #0f766e); }
.hdr-res b { display: block; font-size: 14px; }
.hdr-res small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t-text-secondary, #64748b); }
.hdr-res small img { border-radius: 2px; }
.hdr-none { padding: 10px; font-size: 13px; color: var(--t-text-secondary, #64748b); }

@media (max-width: 1100px) { .hdr-date { display: none !important; } .hdr-info > .hdr-loc::before { display: none; } .hdr-panel { inset-inline-start: 0; } .hdr-panel-date { display: block; } }
@media (max-width: 768px) {
    .hdr-info { margin-inline: 8px 112px; gap: 0; }
    .hdr-info > a, .hdr-info > button { padding: 6px 8px; gap: 7px; }
    .hdr-next { order: 1; } .hdr-loc { order: 2; }
    .hdr-info > .hdr-next::before { display: none; }
    .hdr-info > .hdr-loc::before { display: block; inset-inline-start: 0; top: 10px; bottom: 10px; }
    .hdr-next small, .hdr-loc small, .hdr-loc svg:first-child { display: none; }
    .hdr-info b { font-size: 12.5px; }
    .hdr-next-t b { display: flex; flex-direction: column; line-height: 1.15; }
    .hdr-next-t #hdr-pname { font-size: 10.5px; font-weight: 600; opacity: .75; white-space: nowrap; }
    .hdr-next-t .hdr-cd { font-size: 14px; font-variant-numeric: tabular-nums; }
    .hdr-pico { width: 20px; height: 20px; }
    .hdr-info > a, .hdr-info > button { min-width: 0; }
    .hdr-loc-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hdr-loc-t b { max-width: 96px; }
    .hdr-panel { position: fixed; top: 66px; inset-inline: 8px; width: auto; max-width: none; }
}
@media (max-width: 360px) { .hdr-loc-t b { max-width: 64px; } }

/* r108: compact, right-aligned — location + next prayer only (no country, no time, no Hijri date in the bar) */
.hdr-info { justify-content: flex-end; }
.hdr-date, .hdr-loc small, .hdr-next small, .hdr-info > .hdr-loc::before { display: none !important; }
.hdr-info > .hdr-next::before { display: block; }
.hdr-info .hdr-loc-t b, .hdr-info .hdr-next-t b { font-size: 14px; }
.hdr-panel { inset-inline-start: auto; inset-inline-end: 0; }
.hdr-panel-date { display: none !important; }
@media (max-width: 768px) {
    .hdr-next { order: 2; } .hdr-loc { order: 1; }
    .hdr-info > .hdr-next::before { display: block; inset-inline-start: 0; top: 10px; bottom: 10px; }
    .hdr-info .hdr-loc-t b { font-size: 12.5px; }
    .hdr-info .hdr-next-t b { font-size: 12.5px; }
}

/* r109: skeleton (shimmer) until the times are known, instead of --:--:-- */
.hdr-info:not(.has-times) .hdr-next { pointer-events: none; }
.hdr-info:not(.has-times) .hdr-pico, .hdr-info:not(.has-times) .hdr-next-t b { -webkit-mask: none; mask: none; color: transparent; border-radius: 7px;
    background: linear-gradient(-90deg, color-mix(in srgb, var(--t-text, #1e293b) 7%, transparent) 25%, color-mix(in srgb, var(--t-text, #1e293b) 15%, transparent) 50%, color-mix(in srgb, var(--t-text, #1e293b) 7%, transparent) 75%) 0 0 / 200% 100%;
    animation: hdrShimmer 1.3s linear infinite; }
.hdr-info:not(.has-times) .hdr-pico { border-radius: 50%; }
.hdr-info:not(.has-times) .hdr-next-t b { width: 128px; height: 16px; }
@keyframes hdrShimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@media (max-width: 768px) { .hdr-info:not(.has-times) .hdr-next-t b { width: 64px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .hdr-info:not(.has-times) .hdr-pico, .hdr-info:not(.has-times) .hdr-next-t b { animation: none; } }

/* r113: GPS lookup in the location panel — spinning button and a status line */
.hdr-gps.is-busy { cursor: progress; }
.hdr-gps.is-busy svg { animation: hdrSpinPulse 1.1s ease-in-out infinite; }
@keyframes hdrSpinPulse { 50% { opacity: .35; transform: translate(1px, 1px) scale(.8); } }
.hdr-status { display: flex; align-items: center; gap: 10px; padding: 12px 10px; font-size: 13.5px; font-weight: 500; color: var(--t-text, #1e293b); }
.hdr-spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--t-accent, #0f766e) 25%, transparent); border-top-color: var(--t-accent, #0f766e); animation: hdrSpin .8s linear infinite; }
@keyframes hdrSpin { to { transform: rotate(-360deg); } }
.hdr-err { color: #b45309; }

/* r116: account button at the end of the header bar (js/header.js, js/account.js) */
.hdr-info > .hdr-acc { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0 !important; margin-inline-start: 6px; border-radius: 50% !important; color: var(--t-text-secondary, #64748b); border: 1px solid var(--t-border, rgba(0,0,0,.12)) !important; overflow: hidden; }
.hdr-info > .hdr-acc svg { width: 18px; height: 18px; }
.hdr-info > .hdr-acc.is-in { background: var(--t-accent, #0f766e) !important; border-color: transparent !important; color: #fff; font: 700 13px 'Space Grotesk', Inter, sans-serif; letter-spacing: .02em; }
.hdr-info > .hdr-acc img { width: 100%; height: 100%; object-fit: cover; }
.hdr-info > .hdr-acc:hover { border-color: var(--t-accent, #0f766e) !important; color: var(--t-accent, #0f766e); }
.hdr-info > .hdr-acc.is-in:hover { color: #fff; filter: brightness(1.08); }
@media (max-width: 768px) { .hdr-info > .hdr-acc { order: 3; width: 34px; height: 34px; margin-inline-start: 4px; } }
@media (max-width: 768px) { .hdr-info .hdr-chev { display: none; } .hdr-info > .hdr-loc { padding-inline-end: 4px !important; } }

/* r121: no theme switch in the top bar (it is in Settings and in the footer); the bar uses the room */
[class*="topbar-right"] > .q-theme-switcher { display: none !important; }
.hdr-info { margin-inline-end: 8px; }
@media (max-width: 768px) { .hdr-info { margin-inline-end: 60px; } }
.q-topnav-right > .q-theme-switcher { display: none !important; }

/* r197: the location panel — a white search box with a soft shadow, opening with a short motion (as on the home page) */
.hdr-panel { width: 440px; padding: 8px; border: 0; border-radius: 18px; background: #fff; color: #1f2433; box-shadow: 0 24px 60px rgba(10, 20, 50, .22), 0 4px 14px rgba(10, 20, 50, .1);
    animation: none; opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: calc(100% - (100% - 40px)) 0; transition: opacity .18s ease, transform .22s cubic-bezier(.2, .9, .3, 1.2); }
.hdr-panel.is-open { opacity: 1; transform: none; }
[data-theme="midnight"] .hdr-panel, [data-theme="slate"] .hdr-panel { background: var(--t-card); color: var(--t-text); }
.hdr-q { gap: 10px; padding: 4px; padding-inline-start: 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--t-text, #1e293b) 5%, transparent); }
.hdr-q:focus-within { border-color: transparent; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--t-accent, #0f766e) 22%, transparent); }
.hdr-q > svg { width: 18px; height: 18px; }
.hdr-q input { height: 44px; font-size: 16px; color: inherit; }
.hdr-q input::placeholder { color: var(--t-text-secondary, #64748b); opacity: .85; }
.hdr-gps { width: auto; height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 10px; background: #fff; color: var(--t-accent, #0f766e); font: 600 13.5px/1 'Inter', sans-serif; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); transition: background .15s; }
.hdr-gps:hover { background: color-mix(in srgb, var(--t-accent, #0f766e) 8%, #fff); }
.hdr-gps svg { width: 16px; height: 16px; transform: none; }
.hdr-gps.is-busy svg { animation: hdrSpin 1s linear infinite; }
[data-theme="midnight"] .hdr-gps, [data-theme="slate"] .hdr-gps { background: var(--t-bg); }
.hdr-res { margin-top: 6px; max-height: 340px; }
.hdr-res li { animation: hdrItem .2s ease both; }
.hdr-res li:nth-child(2) { animation-delay: .02s; } .hdr-res li:nth-child(3) { animation-delay: .04s; } .hdr-res li:nth-child(4) { animation-delay: .06s; } .hdr-res li:nth-child(n+5) { animation-delay: .08s; }
@keyframes hdrItem { from { opacity: 0; transform: translateY(4px); } }
.hdr-res button { gap: 12px; padding: 10px 12px; border-radius: 12px; color: inherit; }
.hdr-res button:hover, .hdr-res button:focus-visible, .hdr-res button.is-sel { background: color-mix(in srgb, var(--t-accent, #0f766e) 9%, transparent); }
.hdr-res button > svg { width: 18px; height: 18px; }
.hdr-res b { font: 600 15px/1.25 'Inter', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-res b mark { background: none; color: var(--t-accent, #0f766e); }
.hdr-res small { font-size: 12.5px; }
.hdr-none, .hdr-status { padding: 10px 12px; }
@media (max-width: 768px) { .hdr-panel { position: fixed; top: 66px; inset-inline: 8px; width: auto; max-width: none; transform-origin: 50% 0; } .hdr-gps span { display: none; } .hdr-gps { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .hdr-panel, .hdr-res li { transition: none; animation: none; } }
