/* Oqat Shari v2 */
.oqat-wrapper {
    width: 100%;
    max-width: 980px;
    margin: 30px auto;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
}

.oqat-wrapper *,
.oqat-wrapper *::before,
.oqat-wrapper *::after {
    box-sizing: border-box;
}

.oqat-header {
    text-align: center;
    margin-bottom: 20px;
}

.oqat-header h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    line-height: 1.7;
}

.oqat-date {
    color: #64748b;
    font-size: .9rem;
}

.oqat-date span {
    margin: 0 5px;
}

.oqat-next {
    background: #0f172a;
    color: #fff;
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.oqat-next-label {
    opacity: .75;
    font-size: .85rem;
    margin-bottom: 5px;
}

.oqat-next-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.oqat-next-time {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 5px 0;
    direction: ltr;
}

.oqat-countdown {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    font-size: 1.1rem;
    opacity: .9;
}

.oqat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.oqat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
}

.oqat-card.is-next {
    border-color: #94a3b8;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
}

.card-name {
    color: #64748b;
    font-size: .86rem;
    margin-bottom: 5px;
}

.card-time {
    direction: ltr;
    font-size: 1.35rem;
    font-weight: 800;
}

.oqat-extra,
.oqat-cities {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.oqat-extra h2,
.oqat-cities h2 {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.extra-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    text-align: center;
}

.extra-row div {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 8px;
}

.extra-row span {
    display: block;
    font-size: .8rem;
    color: #64748b;
    margin-bottom: 4px;
}

.extra-row strong {
    font-size: 1.05rem;
    direction: ltr;
    display: block;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.cities-grid a {
    display: block;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: .9rem;
    text-align: center;
    transition: background-color .15s ease;
}

.cities-grid a:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.oqat-footer-note {
    text-align: center;
    font-size: .78rem;
    color: #94a3b8;
    padding: 5px 0 20px;
}

.oqat-error {
    max-width: 700px;
    margin: 25px auto;
    padding: 15px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 640px) {
    .oqat-wrapper {
        margin: 20px auto;
    }

    .oqat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .extra-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oqat-header h1 {
        font-size: 1.3rem;
    }

    .oqat-next-time {
        font-size: 2.2rem;
    }
}
