.prayer-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.prayer-tabs {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.dash-prayer-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.location-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.location-field__label {
    font-family: "DM Mono", monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

.location-select {
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(243, 235, 224, 0.12);
    background: rgba(12, 11, 16, 0.6);
    color: var(--cream);
    width: 100%;
}

.location-select:disabled {
    opacity: 0.5;
}

.prayer-hero {
    text-align: left;
}

.prayer-hero__location {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 0.25rem;
}

.prayer-hero__date {
    font-family: "DM Mono", monospace;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--cream);
}

.prayer-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin-top: 0.35rem;
}

.prayer-hero__weekday {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--violet);
}

.prayer-hero__hijri {
    font-family: "DM Mono", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: var(--cream-dim);
}

.next-prayer {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 92, 77, 0.25);
    background: rgba(255, 92, 77, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.next-prayer__label {
    font-family: "DM Mono", monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    width: 100%;
}

.next-prayer__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--coral);
}

.next-prayer__countdown {
    font-family: "DM Mono", monospace;
    font-size: 0.85rem;
    color: var(--cream);
}

.prayer-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (min-width: 520px) {
    .prayer-times {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.prayer-times.is-loading {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.prayer-slot {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.5rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(243, 235, 224, 0.08);
    background: rgba(243, 235, 224, 0.02);
    text-align: center;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.prayer-slot.is-active {
    border-color: rgba(255, 92, 77, 0.45);
    background: rgba(255, 92, 77, 0.08);
    transform: scale(1.02);
}

.prayer-slot.is-current {
    border-color: rgba(157, 122, 255, 0.35);
    background: rgba(157, 122, 255, 0.06);
}

.prayer-slot.is-past {
    opacity: 0.55;
}

.prayer-slot__label {
    font-family: "DM Mono", monospace;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

.prayer-slot__time {
    font-family: "DM Mono", monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
}

.prayer-slot.is-active .prayer-slot__time {
    color: var(--coral);
}

.prayer-slot.is-current .prayer-slot__time {
    color: var(--violet);
}

.weekly-panel {
    overflow-x: auto;
}

.weekly-panel.hidden {
    display: none;
}

.weekly-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
}

.weekly-table th,
.weekly-table td {
    padding: 0.4rem 0.35rem;
    text-align: center;
    border-bottom: 1px solid rgba(243, 235, 224, 0.06);
}

.weekly-table th {
    color: var(--cream-dim);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.5rem;
}

.weekly-table td:first-child {
    text-align: left;
    color: var(--mint);
    white-space: nowrap;
}

.weekly-table tr.is-today td {
    background: rgba(157, 122, 255, 0.06);
}

.weekly-table tr.is-today td:first-child {
    color: var(--violet);
}

.hidden {
    display: none !important;
}

.attribution a {
    color: var(--violet);
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

.ui-toast {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(0.5rem);
    z-index: 20;
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(22, 20, 31, 0.92);
    border: 1px solid rgba(94, 228, 199, 0.35);
    color: var(--mint);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

.ui-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.attribution {
    font-size: 0.62rem;
    color: var(--cream-dim);
    line-height: 1.45;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .location-row {
        grid-template-columns: 1fr;
    }
}
