.nv-page {
    padding-bottom: 2.5rem;
}

.nv-banner {
    background: linear-gradient(135deg, #0f4c5c 0%, #1fa4be 55%, #0d3d4a 100%);
    color: #fff;
    padding: 2rem 1rem 2.25rem;
    margin-bottom: 1.5rem;
}

.nv-banner-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.nv-banner-ar {
    font-family: var(--font-arabic, inherit);
    font-size: 1.75rem;
    margin: 0 0 0.35rem;
    opacity: 0.95;
}

.nv-banner-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.nv-banner-sub {
    margin: 0.75rem 0 0;
    max-width: 42rem;
    opacity: 0.9;
    line-height: 1.55;
}

.nv-shell {
    max-width: 1140px;
}

.nv-panel {
    background: var(--card-bg, #fff);
    border: 1px solid var(--grey-dark, #e5e7eb);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(15, 76, 92, 0.06);
}

html.dark .nv-panel {
    background: var(--card-bg, #1a1a1a);
}

.nv-field {
    margin-bottom: 0.85rem;
}

.nv-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.35rem;
}

.nv-city-list {
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--grey-dark, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 0.85rem;
}

.nv-city-btn {
    display: block;
    width: 100%;
    text-align: inherit;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--grey-dark, #f0f0f0);
    cursor: pointer;
    color: var(--text-color, #111);
}

.nv-city-btn:last-child {
    border-bottom: 0;
}

.nv-city-btn:hover,
.nv-city-btn.active {
    background: rgba(31, 164, 190, 0.12);
    color: #0f4c5c;
    font-weight: 600;
}

.nv-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nv-view-tabs,
.nv-period-tabs {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nv-tab,
.nv-period {
    border: 1px solid var(--grey-dark, #d1d5db);
    background: transparent;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-color, #111);
}

.nv-tab.active,
.nv-period.active {
    background: #1fa4be;
    border-color: #1fa4be;
    color: #fff;
}

.nv-city-head h2 {
    font-size: 1.6rem;
    margin: 0;
}

.nv-muted {
    color: var(--text-muted, #6b7280);
    margin: 0.25rem 0 0;
}

.nv-loading {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted, #6b7280);
}

.nv-today-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nv-time-card {
    border: 1px solid var(--grey-dark, #e5e7eb);
    border-radius: 12px;
    padding: 0.85rem 0.65rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(31, 164, 190, 0.08), transparent);
}

.nv-time-card span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.35rem;
}

.nv-time-card strong {
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.nv-table th,
.nv-table td {
    font-size: 0.85rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nv-table thead th {
    background: rgba(31, 164, 190, 0.12);
    border-bottom-width: 1px;
}

.nv-qibla-wrap {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.nv-sidebar-qibla {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--grey-dark, #e5e7eb);
    text-align: center;
}

.nv-sidebar-qibla-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.65rem;
}

.nv-compass {
    position: relative;
    margin: 0 auto 0.75rem;
    aspect-ratio: 1;
}

.nv-compass--sm {
    width: min(200px, 100%);
}

.nv-compass--lg {
    width: min(320px, 85vw);
}

.nv-compass-dial {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #1fa4be;
    background:
        radial-gradient(circle at center, rgba(31, 164, 190, 0.1) 0 32%, transparent 33%),
        repeating-conic-gradient(from 0deg, rgba(15, 76, 92, 0.1) 0deg 1.5deg, transparent 1.5deg 9deg),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
    box-shadow:
        inset 0 0 0 6px rgba(31, 164, 190, 0.08),
        0 8px 24px rgba(15, 76, 92, 0.12);
    transform-origin: 50% 50%;
    transition: transform 0.2s ease-out;
}

.nv-compass-pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid #e85d04;
    z-index: 4;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.nv-compass-center {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0f4c5c;
    border: 2px solid #fff;
    z-index: 3;
    box-shadow: 0 0 0 2px rgba(31, 164, 190, 0.35);
}

.nv-compass-n,
.nv-compass-e,
.nv-compass-s,
.nv-compass-w {
    position: absolute;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f4c5c;
    z-index: 2;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.nv-compass-n { top: 7px; left: 50%; transform: translateX(-50%); }
.nv-compass-s { bottom: 7px; left: 50%; transform: translateX(-50%); }
.nv-compass-e { right: 9px; top: 50%; transform: translateY(-50%); }
.nv-compass-w { left: 9px; top: 50%; transform: translateY(-50%); }

.nv-compass-qibla-arm {
    position: absolute;
    inset: 0;
    transform: rotate(calc(var(--nv-qibla, 0) * 1deg));
    pointer-events: none;
    z-index: 2;
    transition: transform 0.25s ease;
}

.nv-compass--live .nv-compass-qibla-arm {
    transition: transform 0.12s linear;
}

.nv-compass-qibla {
    position: absolute;
    top: 9%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.nv-compass--sm .nv-compass-qibla {
    font-size: 1rem;
    top: 10%;
}

.nv-compass--live .nv-compass-dial {
    transition: transform 0.12s linear;
}

.nv-qibla-degree {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.nv-qibla-degree--sm {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.nv-qibla-live {
    font-size: 0.85rem;
    color: #1fa4be !important;
    font-weight: 600;
}

.nv-compass-btn {
    margin-top: 0.35rem;
}

.nv-compass-btn--main {
    margin-top: 0.75rem;
}

.nv-geo-btn {
    margin-top: 0.25rem;
}

@media (max-width: 767px) {
    .nv-today-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv-banner-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 420px) {
    .nv-today-cards {
        grid-template-columns: 1fr;
    }
}
