@font-face {
    font-family: "iranyekan";
    src: local("IRANYekan Regular"), local("IRANYekan"), url("/assets/fonts/iranyekanwebregular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "iranyekan";
    src: local("IRANYekan Light"), url("/assets/fonts/iranyekanweblight.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "iranyekan";
    src: local("IRANYekan Medium"), url("/assets/fonts/iranyekanwebmedium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "iranyekan";
    src: local("IRANYekan Bold"), url("/assets/fonts/iranyekanwebbold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f9f9ff;
    --bg-soft: #eef3fb;
    --surface: #ffffff;
    --surface-soft: #f4f7fd;
    --text: #172033;
    --muted: #5d6a82;
    --line: #d5deee;
    --primary: #335f98;
    --primary-strong: #284f80;
    --primary-soft: #dde9f7;
    --ring: rgba(51, 95, 152, 0.28);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body.main-site {
    margin: 0;
    min-height: 100vh;
    font-family: "iranyekan", Tahoma, sans-serif;
    background:
        radial-gradient(1100px 620px at 100% 0%, rgba(51, 95, 152, 0.16), transparent 65%),
        radial-gradient(820px 460px at 0% 100%, rgba(51, 95, 152, 0.1), transparent 62%),
        linear-gradient(150deg, var(--bg) 0%, var(--bg-soft) 100%);
    color: var(--text);
    position: relative;
}

html.lite-ui body.main-site {
    background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
}

html.lite-ui body.main-site::before {
    display: none;
}

html.lite-ui .site-head-inner,
html.lite-ui .head-drawer,
html.lite-ui .filter-card,
html.lite-ui .weather-page-card,
html.lite-ui .hero-card,
html.lite-ui .hero-list,
html.lite-ui .news-card,
html.lite-ui .channel-panel,
html.lite-ui .player-panel {
    backdrop-filter: none !important;
    box-shadow: 0 6px 16px rgba(27, 44, 77, 0.06) !important;
    background: #fff !important;
}

html.lite-ui .filter-card::after,
html.lite-ui .weather-page-card::after,
html.lite-ui .hero-card::after,
html.lite-ui .hero-list::after,
html.lite-ui .news-card::after,
html.lite-ui .channel-panel::after,
html.lite-ui .player-panel::after {
    display: none !important;
}

html.lite-ui *,
html.lite-ui *::before,
html.lite-ui *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

body.main-site::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(51, 95, 152, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 95, 152, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at 50% 35%, #000 34%, transparent 85%);
    z-index: 0;
}

.container {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.site-head {
    padding: 18px 0 10px;
}

.site-head-inner {
    width: 100%;
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(27, 44, 77, 0.08);
}

.site-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: "iranyekan", Tahoma, sans-serif;
    color: var(--primary);
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-title-home {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 180ms ease;
}

.site-title-home:hover {
    opacity: 0.82;
}

.site-title-sep {
    color: rgba(51, 95, 152, 0.45);
    font-weight: 400;
}

.head-menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(51, 95, 152, 0.25);
    border-radius: var(--radius);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-head-action {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(51, 95, 152, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.site-head-action:hover,
.site-head-action.is-active {
    border-color: rgba(51, 95, 152, 0.42);
    box-shadow: 0 8px 18px rgba(51, 95, 152, 0.16);
    transform: translateY(-1px);
}

.site-head-action svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.head-menu-toggle:hover {
    border-color: rgba(51, 95, 152, 0.45);
    box-shadow: 0 8px 18px rgba(51, 95, 152, 0.18);
    transform: translateY(-1px);
}

.head-menu-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring);
}

.head-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform 180ms ease, opacity 180ms ease;
}

.head-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.head-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.head-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.head-drawer {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 28px rgba(30, 47, 80, 0.14);
}

.head-drawer[hidden] {
    display: none !important;
}

.head-drawer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.head-drawer-nav a {
    text-decoration: none;
    font-size: 0.84rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 180ms ease;
}

.head-drawer-nav a:hover {
    color: var(--primary);
    border-color: rgba(51, 95, 152, 0.45);
    background: #fff;
}

.head-drawer-nav a.active {
    color: #fff;
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #406eaa);
    box-shadow: 0 10px 24px rgba(51, 95, 152, 0.22);
}

.head-drawer-nav a.head-drawer-nav__social {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #23466f;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin-inline-start: auto;
}

.head-drawer-nav a.head-drawer-nav__social:hover {
    color: var(--primary);
    border: 0;
    background: transparent;
    box-shadow: none;
}

.head-drawer-nav__social svg {
    width: 30px;
    height: 30px;
    display: block;
    fill: currentColor;
    flex: 0 0 auto;
}

.head-drawer-search {
    margin-top: 10px;
}

.main-layout {
    padding-bottom: 24px;
}

.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;
}

.dashboard-toolbar {
    margin-top: 10px;
    display: block;
}

.dashboard-ui-shell {
    transition: opacity 220ms ease, transform 220ms ease;
}

.dashboard-ui-shell.is-dashboard-ui-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.dashboard-toolbar-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(51, 95, 152, 0.14), transparent 72%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.99), rgba(241, 246, 255, 0.98));
    box-shadow: 0 12px 30px rgba(27, 44, 77, 0.08);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.dashboard-toolbar-card--combined {
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(38, 116, 91, 0.1), transparent 72%),
        radial-gradient(220px 120px at 0% 100%, rgba(51, 95, 152, 0.1), transparent 72%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.99), rgba(241, 246, 255, 0.98));
}

.dashboard-toolbar-copy--combined {
    max-width: 780px;
    padding-inline: 2px;
}

.dashboard-toolbar-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-toolbar-copy h2,
.dashboard-customize-panel__head h2 {
    margin: 0;
    font-size: 1rem;
}

.dashboard-toolbar-copy h3,
.dashboard-customize-panel__head h3 {
    margin: 0;
    font-size: 0.96rem;
}

.dashboard-toolbar-copy p,
.dashboard-customize-panel__head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.85;
}

.dashboard-toolbar-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border-radius: 8px;
    background: rgba(51, 95, 152, 0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 9px;
}

.dashboard-toolbar-actions,
.dashboard-smart-alerts__status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-toolbar-btn {
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #4873ac);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(51, 95, 152, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.dashboard-toolbar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(51, 95, 152, 0.24);
}

.dashboard-toolbar-btn--ghost {
    background: rgba(51, 95, 152, 0.08);
    color: var(--primary);
    box-shadow: none;
}

.dashboard-toolbar-btn--ghost:hover {
    box-shadow: none;
}

.dashboard-toolbar-summary {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.dashboard-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 10px;
}

.dashboard-section {
    border: 1px solid rgba(51, 95, 152, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 10px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-section--smart {
    position: relative;
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(38, 116, 91, 0.12), transparent 72%),
        rgba(255, 255, 255, 0.82);
}

.dashboard-smart-alerts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 0;
}

.dashboard-smart-alerts__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: rgba(116, 127, 150, 0.12);
    color: var(--muted);
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 700;
}

.dashboard-smart-alerts__status {
    position: absolute;
    top: 10px;
    left: 10px;
    justify-content: flex-start;
}

.dashboard-smart-alerts .dashboard-toolbar-btn {
    align-self: flex-start;
}

.dashboard-smart-alerts__toggles {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.dashboard-smart-alerts__badge.is-active {
    background: rgba(38, 116, 91, 0.12);
    color: #16704f;
}

.dashboard-smart-alerts__badge.is-blocked {
    background: rgba(160, 87, 27, 0.14);
    color: #9c5c19;
}

.dashboard-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text);
    line-height: 1.7;
}

.dashboard-switch input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.dashboard-customize-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-customize-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-customize-panel__head > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-customize-list {
    display: grid;
    gap: 10px;
}

.dashboard-customize-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    padding: 9px 10px;
}

.dashboard-customize-item[aria-hidden="true"] {
    opacity: 0.62;
}

.dashboard-customize-item__main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dashboard-customize-item__main strong {
    font-size: 0.86rem;
    line-height: 1.7;
}

.dashboard-customize-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-order-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.dashboard-order-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.homepage-dashboard {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.dashboard-module {
    min-width: 0;
}

.dashboard-module--full {
    grid-column: 1 / -1;
}

.dashboard-module.is-user-hidden {
    display: none !important;
}

.main-tabs {
    margin: 10px 0 14px;
    display: flex;
    gap: 8px;
}

.main-tabs a {
    text-decoration: none;
    font-size: 0.84rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 180ms ease;
}

.main-tabs a:hover {
    color: var(--primary);
    border-color: rgba(51, 95, 152, 0.45);
    background: #fff;
}

.main-tabs a.active {
    color: #fff;
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #406eaa);
    box-shadow: 0 10px 24px rgba(51, 95, 152, 0.22);
}

.filter-card,
.weather-page-card,
.hero-card,
.hero-list,
.news-card,
.channel-panel,
.player-panel {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.98));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(27, 44, 77, 0.08);
    position: relative;
    overflow: hidden;
}

.filter-card::after,
.weather-page-card::after,
.hero-card::after,
.hero-list::after,
.news-card::after,
.channel-panel::after,
.player-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(51, 95, 152, 0.16) 0%, rgba(51, 95, 152, 0) 70%);
    pointer-events: none;
}

.filter-card {
    padding: 12px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-row {
    display: flex;
    gap: 8px;
}

.search-row input[type="text"] {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 11px;
    font: inherit;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-row input[type="text"]:focus {
    outline: none;
    border-color: rgba(51, 95, 152, 0.5);
    box-shadow: 0 0 0 4px var(--ring);
}

.search-row button {
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #4873ac);
    color: #fff;
    font: inherit;
    font-size: 0.84rem;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(51, 95, 152, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.search-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(51, 95, 152, 0.34);
}

.select-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.select-row label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--muted);
}

.select-row select {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 10px;
    font: inherit;
    background: #fff;
}

.query-info {
    margin: 10px 2px;
    font-size: 0.82rem;
    color: var(--muted);
}

.query-info a {
    color: var(--primary);
}

.loop-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.loop-card-link:hover {
    transform: translateY(-2px);
}

.loop-card-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring);
}

.is-loop-hidden {
    display: none !important;
}

.alert-loop-card {
    border: 1px solid #e7c1c1;
    border-radius: var(--radius);
    background:
        radial-gradient(260px 140px at 100% 0%, rgba(200, 43, 43, 0.16), transparent 72%),
        linear-gradient(145deg, #fff4f4 0%, #ffe7e7 100%);
    box-shadow: 0 12px 28px rgba(103, 20, 20, 0.12);
    overflow: hidden;
}

.alert-loop-window {
    position: relative;
    min-height: 64px;
    padding: 9px 12px;
}

.alert-loop-item {
    position: absolute;
    inset: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(22px);
    transition: transform 620ms ease, opacity 620ms ease;
    white-space: nowrap;
}

.alert-loop-item.is-current {
    opacity: 1;
    transform: translateY(0);
}

.alert-loop-item.is-next {
    opacity: 0;
    transform: translateY(22px);
}

.alert-loop-item.is-entering {
    opacity: 1;
    transform: translateY(0);
}

.alert-loop-item.is-leaving {
    opacity: 0;
    transform: translateY(-22px);
}

.alert-loop-badge {
    font-weight: 800;
    color: #fff7f7;
    background: #b91c1c;
    border: 1px solid #991b1b;
    border-radius: var(--radius);
    padding: 4px 10px;
}

.alert-loop-title {
    color: #641919;
    font-weight: 800;
    font-size: 0.92rem;
}

.alert-loop-message {
    margin-right: auto;
    color: #7b2f2f;
    font-size: 0.84rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-loop-card {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(200px 120px at 100% 0%, rgba(51, 95, 152, 0.13), transparent 70%),
        linear-gradient(145deg, #ffffff 0%, #f1f6ff 100%);
    box-shadow: 0 10px 24px rgba(27, 44, 77, 0.09);
    overflow: hidden;
}

.weather-loop-window {
    position: relative;
    min-height: 58px;
    padding: 8px 10px;
}

.weather-loop-item {
    position: absolute;
    inset: 8px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    opacity: 0;
    transform: translateY(22px);
    transition: transform 620ms ease, opacity 620ms ease;
    white-space: nowrap;
}

.weather-loop-item.is-current {
    opacity: 1;
    transform: translateY(0);
}

.weather-loop-item.is-next {
    opacity: 0;
    transform: translateY(22px);
}

.weather-loop-item.is-entering {
    opacity: 1;
    transform: translateY(0);
}

.weather-loop-item.is-leaving {
    opacity: 0;
    transform: translateY(-22px);
}

.weather-loop-city {
    font-weight: 700;
    color: #1e365a;
    background: #e7effb;
    border: 1px solid #cfdcf2;
    border-radius: var(--radius);
    padding: 4px 9px;
}

.weather-loop-text {
    color: #2f4d78;
    font-size: 0.84rem;
}

.weather-loop-temp {
    color: #1f3557;
    font-weight: 700;
    font-size: 0.88rem;
}

.weather-loop-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.weather-loop-aqi {
    margin-right: auto;
    font-size: 0.78rem;
    border: 1px solid #d2def2;
    border-radius: var(--radius);
    background: #f6f9ff;
    color: #29466f;
    padding: 4px 8px;
}

.crypto-loop-card {
    margin-top: 10px;
    border: 1px solid #d3e5e5;
    border-radius: var(--radius);
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(23, 135, 108, 0.15), transparent 70%),
        linear-gradient(145deg, #ffffff 0%, #f2fbfa 100%);
    box-shadow: 0 10px 24px rgba(21, 84, 72, 0.08);
    overflow: hidden;
}

.crypto-loop-window {
    position: relative;
    min-height: 58px;
    padding: 8px 10px;
}

.crypto-loop-item {
    position: absolute;
    inset: 8px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    opacity: 0;
    transform: translateY(22px);
    transition: transform 620ms ease, opacity 620ms ease;
    white-space: nowrap;
}

.crypto-loop-item.is-current {
    opacity: 1;
    transform: translateY(0);
}

.crypto-loop-item.is-next {
    opacity: 0;
    transform: translateY(22px);
}

.crypto-loop-item.is-entering {
    opacity: 1;
    transform: translateY(0);
}

.crypto-loop-item.is-leaving {
    opacity: 0;
    transform: translateY(-22px);
}

.crypto-loop-symbol {
    font-weight: 800;
    color: #125247;
    background: #dff6f0;
    border: 1px solid #c3ece2;
    border-radius: var(--radius);
    padding: 4px 9px;
}

.crypto-loop-name {
    color: #456d6b;
    font-size: 0.81rem;
}

.crypto-loop-price {
    color: #13414c;
    font-weight: 700;
    font-size: 0.88rem;
}

.crypto-loop-change {
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: var(--radius);
    padding: 4px 8px;
}

.crypto-loop-change.up {
    color: #0f5132;
    background: #dcfce7;
}

.crypto-loop-change.down {
    color: #991b1b;
    background: #fee2e2;
}

.crypto-loop-range {
    margin-right: auto;
    color: #4d666f;
    font-size: 0.76rem;
}

.world-time-loop-card {
    margin-top: 10px;
    border: 1px solid #ddd7ef;
    border-radius: var(--radius);
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(85, 76, 180, 0.14), transparent 70%),
        linear-gradient(145deg, #ffffff 0%, #f6f4ff 100%);
    box-shadow: 0 10px 24px rgba(52, 44, 99, 0.08);
    overflow: hidden;
}

.world-time-loop-window {
    position: relative;
    min-height: 58px;
    padding: 8px 10px;
}

.world-time-loop-item {
    position: absolute;
    inset: 8px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    opacity: 0;
    transform: translateY(22px);
    transition: transform 620ms ease, opacity 620ms ease;
    white-space: nowrap;
}

.world-time-loop-item.is-current {
    opacity: 1;
    transform: translateY(0);
}

.world-time-loop-item.is-next {
    opacity: 0;
    transform: translateY(22px);
}

.world-time-loop-item.is-entering {
    opacity: 1;
    transform: translateY(0);
}

.world-time-loop-item.is-leaving {
    opacity: 0;
    transform: translateY(-22px);
}

.world-time-loop-city {
    font-weight: 800;
    color: #3b2f73;
    background: #eee9ff;
    border: 1px solid #ddd3ff;
    border-radius: var(--radius);
    padding: 4px 9px;
}

.world-time-loop-country,
.world-time-loop-offset {
    color: #625a8e;
    font-size: 0.8rem;
}

.world-time-loop-time {
    color: #241b51;
    font-weight: 700;
    font-size: 0.92rem;
}

.world-time-loop-zone {
    margin-right: auto;
    color: #655f83;
    font-size: 0.76rem;
}

.disaster-loop-card {
    margin-top: 10px;
    border: 1px solid #e6d2d2;
    border-radius: var(--radius);
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(180, 60, 60, 0.12), transparent 70%),
        linear-gradient(145deg, #ffffff 0%, #fff6f6 100%);
    box-shadow: 0 10px 24px rgba(77, 27, 27, 0.08);
    overflow: hidden;
}

.disaster-loop-window {
    position: relative;
    min-height: 58px;
    padding: 8px 10px;
}

.disaster-loop-item {
    position: absolute;
    inset: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(22px);
    transition: transform 620ms ease, opacity 620ms ease;
    white-space: nowrap;
}

.disaster-loop-item.is-current {
    opacity: 1;
    transform: translateY(0);
}

.disaster-loop-item.is-next {
    opacity: 0;
    transform: translateY(22px);
}

.disaster-loop-item.is-entering {
    opacity: 1;
    transform: translateY(0);
}

.disaster-loop-item.is-leaving {
    opacity: 0;
    transform: translateY(-22px);
}

.disaster-loop-type {
    font-weight: 700;
    color: #5e1818;
    background: #fde8e8;
    border: 1px solid #f7caca;
    border-radius: var(--radius);
    padding: 4px 9px;
}

.disaster-loop-name {
    color: #4f2222;
    font-size: 0.84rem;
}

.disaster-loop-alert {
    color: #7b1f1f;
    font-weight: 700;
    font-size: 0.8rem;
}

.disaster-loop-severity {
    margin-right: auto;
    color: #6f3b3b;
    font-size: 0.77rem;
}

.weather-page-card {
    margin-top: 12px;
    padding: 12px;
}

.disaster-page-card {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(255, 246, 246, 0.98));
    border: 1px solid #edd6d6;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(77, 27, 27, 0.08);
}

.alerts-page-card {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(155deg, rgba(255, 247, 247, 0.99), rgba(255, 237, 237, 0.98));
    border: 1px solid #ebcaca;
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(103, 20, 20, 0.1);
}

.alerts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.alert-card {
    border: 1px solid #efcdcd;
    border-radius: var(--radius);
    background:
        radial-gradient(180px 90px at 100% 0%, rgba(198, 40, 40, 0.1), transparent 72%),
        linear-gradient(165deg, #ffffff 0%, #fff3f3 100%);
    box-shadow: 0 10px 24px rgba(103, 20, 20, 0.08);
    padding: 14px;
}

.alert-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.alert-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 800;
    color: #fff7f7;
    background: #b91c1c;
    border-radius: var(--radius);
    padding: 4px 9px;
}

.alert-card-time {
    color: #8c4b4b;
    font-size: 0.77rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.alert-card h2 {
    margin: 0 0 8px;
    color: #5f1919;
    font-size: 1rem;
}

.alert-card p {
    margin: 0;
    color: #6d2a2a;
    line-height: 1.9;
    font-size: 0.9rem;
}

.alerts-empty {
    padding: 16px;
    border: 1px dashed #e5bcbc;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    color: #7a3535;
    text-align: center;
}

.crypto-page-card {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.98));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(27, 44, 77, 0.08);
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.crypto-page-intro {
    margin: 2px 0 12px;
    color: #4f6475;
    font-size: 0.84rem;
    line-height: 1.85;
}

.world-time-page-card {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(248, 245, 255, 0.98));
    border: 1px solid #ddd7ef;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(48, 37, 92, 0.08);
}

.iran-calendar-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.iran-calendar-panel {
    border: 1px solid #ddd7ef;
    border-radius: var(--radius);
    background:
        radial-gradient(180px 120px at 100% 0%, rgba(91, 73, 179, 0.1), transparent 68%),
        linear-gradient(165deg, #ffffff 0%, #f8f5ff 100%);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(48, 37, 92, 0.08);
    display: flex;
    flex-direction: column;
}

.iran-calendar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.iran-calendar-head h2 {
    margin: 0;
    color: #342765;
    font-size: 1rem;
}

.iran-calendar-head p {
    margin: 4px 0 0;
    color: #6a658d;
    font-size: 0.78rem;
}

.iran-calendar-offset {
    font-size: 0.76rem;
    color: #4d457a;
    background: #efeaff;
    border: 1px solid #ddd3ff;
    border-radius: var(--radius);
    padding: 4px 8px;
}

.iran-calendar-clock {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.iran-calendar-live-time {
    font-size: 1.7rem;
    color: #22184f;
    letter-spacing: 1px;
}

.iran-calendar-live-period {
    color: #61578b;
    font-size: 0.78rem;
    background: #f3efff;
    border: 1px solid #e3dbff;
    border-radius: var(--radius);
    padding: 3px 8px;
}

.iran-calendar-meta {
    margin-top: 9px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #5d5f83;
    font-size: 0.8rem;
}

.iran-calendar-types {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.iran-calendar-convert-results {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.iran-calendar-type-card,
.iran-calendar-result-card {
    border: 1px solid #ddd7ef;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.iran-calendar-type-card strong,
.iran-calendar-result-card strong {
    color: #5f5a84;
    font-size: 0.72rem;
}

.iran-calendar-type-card span,
.iran-calendar-result-card span {
    color: #21174d;
    font-size: 0.9rem;
    font-weight: 700;
}

.iran-calendar-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iran-calendar-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.iran-calendar-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.iran-calendar-form span {
    color: #5f5a84;
    font-size: 0.72rem;
}

.iran-calendar-form input,
.iran-calendar-form select {
    border: 1px solid #ddd7ef;
    border-radius: var(--radius);
    padding: 9px 10px;
    font: inherit;
    background: #fff;
    color: #1d2550;
}

.iran-calendar-submit {
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 9px 13px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #5a49b3, #6e60cf);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(90, 73, 179, 0.2);
}

.iran-calendar-alert {
    margin: 12px 0 0;
    border-radius: var(--radius);
    padding: 9px 10px;
    font-size: 0.78rem;
}

.iran-calendar-alert--error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.world-time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.world-time-card {
    border: 1px solid #ddd7ef;
    border-radius: var(--radius);
    background:
        radial-gradient(160px 120px at 100% 0%, rgba(91, 73, 179, 0.12), transparent 68%),
        linear-gradient(165deg, #ffffff 0%, #f7f5ff 100%);
    padding: 12px;
    box-shadow: 0 10px 24px rgba(48, 37, 92, 0.09);
}

.world-time-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.world-time-top h2 {
    margin: 0;
    font-size: 1.02rem;
    color: #342765;
}

.world-time-country {
    margin: 4px 0 0;
    color: #6a658d;
    font-size: 0.78rem;
}

.world-time-offset {
    font-size: 0.76rem;
    color: #4d457a;
    background: #efeaff;
    border: 1px solid #ddd3ff;
    border-radius: var(--radius);
    padding: 4px 8px;
}

.world-time-clock {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.world-time-clock-meta {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.world-time-live-time {
    font-size: 1.55rem;
    color: #22184f;
    letter-spacing: 1px;
}

.world-time-day-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: color 180ms ease;
}

.world-time-day-state.is-day {
    color: #c77d00;
}

.world-time-day-state.is-night {
    color: #3347a8;
}

.world-time-day-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: none;
}

.world-time-day-state.is-day .world-time-day-icon--sun {
    display: block;
}

.world-time-day-state.is-night .world-time-day-icon--moon {
    display: block;
}

.world-time-live-period {
    color: #61578b;
    font-size: 0.78rem;
    background: #f3efff;
    border: 1px solid #e3dbff;
    border-radius: var(--radius);
    padding: 3px 8px;
}

.world-time-meta {
    margin-top: 9px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #5d5f83;
    font-size: 0.8rem;
}

.world-time-foot {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd7ef;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #706a90;
    font-size: 0.72rem;
}

.weather-city-card,
.disaster-card,
.crypto-card {
    border: 1px solid #cfdcef;
    border-radius: var(--radius);
    background:
        radial-gradient(180px 120px at 100% 0%, rgba(51, 95, 152, 0.14), transparent 70%),
        linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
    padding: 12px;
    box-shadow: 0 10px 24px rgba(27, 44, 77, 0.1);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.weather-city-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.weather-city-card:hover,
.disaster-card:hover,
.crypto-card:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 95, 152, 0.4);
    box-shadow: 0 14px 28px rgba(27, 44, 77, 0.14);
}

.disaster-card[data-share-capturing="true"],
.crypto-card[data-share-capturing="true"],
.weather-city-card[data-share-capturing="true"] {
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.crypto-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.crypto-top h2 {
    margin: 0;
    font-size: 1.06rem;
    color: #1f3557;
    letter-spacing: 0.2px;
}

.crypto-change-chip {
    font-size: 0.73rem;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 4px 8px;
}

.crypto-change-chip.up {
    color: #0f5132;
    background: #dcfce7;
    border-color: #86efac;
}

.crypto-change-chip.down {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.crypto-change-chip.neutral {
    color: #334155;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.crypto-name {
    margin: 3px 0 7px;
    font-size: 0.76rem;
    color: #5a6e8f;
}

.crypto-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.crypto-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #17335b;
}

.crypto-window {
    font-size: 0.72rem;
    color: #5c7092;
    border: 1px solid #d7e2f3;
    border-radius: var(--radius);
    background: #f4f8ff;
    padding: 3px 7px;
}

.crypto-range {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    color: #5f6f8a;
}

.crypto-band {
    margin-top: 6px;
    position: relative;
    height: 10px;
}

.crypto-band-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    height: 2px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #c53030, #dba33a, #148f52);
}

.crypto-band-point {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: var(--radius);
    background: #173b6d;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(23, 59, 109, 0.2);
}

.crypto-chart-wrap {
    margin-top: 8px;
    border: 1px dashed #d0ddee;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 255, 0.88));
    padding: 5px;
}

.crypto-chart {
    width: 100%;
    height: 96px;
    display: block;
}

.crypto-stats {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.crypto-stats > div {
    border: 1px solid #dbe5f3;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crypto-stats strong {
    color: #557086;
    font-size: 0.71rem;
}

.crypto-stats span {
    color: #17335b;
    font-size: 0.8rem;
    font-weight: 700;
}

.crypto-footnote {
    margin-top: 8px;
    color: #607189;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disaster-empty {
    border: 1px dashed #edc8c8;
    border-radius: var(--radius);
    background: #fff8f8;
    color: #7a3a3a;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
}

.disaster-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.disaster-section-title {
    margin: 4px 0 10px;
    color: #5a2323;
    font-size: 0.95rem;
}

.disaster-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.disaster-type {
    font-size: 0.76rem;
    color: #6b2323;
    background: #fdeeee;
    border: 1px solid #f6d4d4;
    border-radius: var(--radius);
    padding: 3px 8px;
}

.disaster-alert {
    font-size: 0.76rem;
    border-radius: var(--radius);
    padding: 3px 8px;
    border: 1px solid transparent;
}

.disaster-alert-green {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
}

.disaster-alert-orange {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fdba74;
}

.disaster-alert-red {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.disaster-alert-unknown {
    color: #334155;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.disaster-card h2 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    color: #3f1f1f;
    line-height: 1.7;
}

.disaster-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.78rem;
    color: #684040;
}

.disaster-severity {
    margin: 8px 0 0;
    border: 1px dashed #f0cfcf;
    border-radius: var(--radius);
    background: #fffdfd;
    color: #4e3030;
    padding: 7px 8px;
    font-size: 0.8rem;
    line-height: 1.8;
}

.disaster-actions {
    margin-top: 9px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.disaster-actions a {
    text-decoration: none;
    color: #6d1f1f;
    font-size: 0.76rem;
    border: 1px solid #f1cdcd;
    border-radius: var(--radius);
    background: #fff;
    padding: 5px 9px;
}

.weather-source {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.weather-source--bottom {
    margin-top: 10px;
}

.weather-overview {
    margin-bottom: 12px;
    border: 1px solid rgba(51, 95, 152, 0.18);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background:
        radial-gradient(380px 180px at 100% 0%, rgba(86, 142, 214, 0.18), transparent 70%),
        radial-gradient(260px 160px at 0% 100%, rgba(20, 120, 196, 0.12), transparent 70%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 255, 0.95));
    box-shadow: 0 18px 44px rgba(27, 44, 77, 0.1);
    overflow: hidden;
}

.weather-overview__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
}

.weather-overview__copy h2 {
    margin: 6px 0 8px;
    font-size: 1.7rem;
    color: #1a3458;
}

.weather-overview__copy p {
    margin: 0;
    max-width: 60ch;
    color: #49627f;
    line-height: 2;
}

.weather-overview__eyebrow {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: var(--radius);
    background: rgba(51, 95, 152, 0.1);
    color: #2c4a73;
    font-size: 0.78rem;
    font-weight: 700;
}

.weather-overview__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.weather-overview__stat {
    border: 1px solid rgba(51, 95, 152, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
}

.weather-overview__stat strong {
    display: block;
    font-size: 1rem;
    color: #193558;
}

.weather-overview__stat span {
    display: block;
    margin-top: 5px;
    color: #516b87;
    font-size: 0.78rem;
    line-height: 1.8;
}

.weather-city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.weather-city-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 46px;
}

.weather-city-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.weather-city-glyph {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    border: 1px solid #c7d8f5;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.weather-city-top h2 {
    margin: 0;
    font-size: 1.02rem;
    color: #203554;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.weather-city-subline {
    margin-top: 4px;
    font-size: 0.74rem;
    color: #59718d;
}

.weather-city-icon {
    font-size: 0.9rem;
}

.weather-aqi {
    font-size: 0.72rem;
    border-radius: var(--radius);
    padding: 6px 10px;
    border: 1px solid transparent;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.weather-aqi em {
    font-style: normal;
    font-weight: 500;
    opacity: 0.86;
}

.weather-aqi.aqi-good {
    color: #0f5132;
    background: #d1fae5;
    border-color: #86efac;
}

.weather-aqi.aqi-moderate {
    color: #854d0e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.weather-aqi.aqi-usg {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fdba74;
}

.weather-aqi.aqi-unhealthy {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.weather-aqi.aqi-very-unhealthy {
    color: #581c87;
    background: #f3e8ff;
    border-color: #d8b4fe;
}

.weather-aqi.aqi-hazardous {
    color: #ffffff;
    background: #7f1d1d;
    border-color: #7f1d1d;
}

.weather-aqi.aqi-unknown {
    color: #334155;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.weather-today-hero {
    border: 1px solid rgba(51, 95, 152, 0.2);
    background:
        radial-gradient(180px 90px at 100% 0%, rgba(97, 162, 239, 0.18), transparent 72%),
        linear-gradient(145deg, rgba(51, 95, 152, 0.14), rgba(51, 95, 152, 0.04));
    border-radius: var(--radius);
    padding: 12px;
    min-height: 168px;
}

.weather-today-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}

.weather-today-main {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.weather-today-label {
    font-size: 0.77rem;
    color: #2f4d77;
}

.weather-today-temp {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.weather-today-status {
    font-size: 0.84rem;
    color: #284268;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(51, 95, 152, 0.14);
    background: rgba(255, 255, 255, 0.74);
    border-radius: var(--radius);
    padding: 6px 10px;
}

.weather-status-icon {
    font-size: 1.08rem;
    line-height: 1;
}

.weather-today-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: auto;
}

.weather-today-metrics > div {
    border: 1px solid rgba(51, 95, 152, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    padding: 7px 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.76rem;
    color: #243d62;
}

.weather-today-metrics strong {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.weather-today-metrics span {
    font-weight: 500;
}

.weather-aqi-panel {
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    text-align: right;
    min-height: 64px;
    box-shadow: 0 10px 24px rgba(27, 44, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.weather-aqi-panel__label {
    font-size: 0.76rem;
    font-weight: 700;
    opacity: 0.84;
    white-space: nowrap;
}

.weather-aqi-panel__value {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.weather-aqi-panel__text {
    margin-top: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-aqi-panel.aqi-good {
    color: #0f5132;
    background: linear-gradient(145deg, #d1fae5, #ecfdf5);
    border-color: #86efac;
}

.weather-aqi-panel.aqi-moderate {
    color: #854d0e;
    background: linear-gradient(145deg, #fef3c7, #fff8dd);
    border-color: #fcd34d;
}

.weather-aqi-panel.aqi-usg {
    color: #9a3412;
    background:
        radial-gradient(140px 80px at 100% 0%, rgba(251, 146, 60, 0.28), transparent 72%),
        linear-gradient(145deg, #ffedd5, #fff6ed);
    border-color: #fb923c;
}

.weather-aqi-panel.aqi-unhealthy {
    color: #991b1b;
    background: linear-gradient(145deg, #fee2e2, #fff1f2);
    border-color: #fca5a5;
}

.weather-aqi-panel.aqi-very-unhealthy {
    color: #581c87;
    background: linear-gradient(145deg, #f3e8ff, #faf5ff);
    border-color: #d8b4fe;
}

.weather-aqi-panel.aqi-hazardous {
    color: #fff;
    background: linear-gradient(145deg, #7f1d1d, #991b1b);
    border-color: #7f1d1d;
}

.weather-aqi-panel.aqi-unknown {
    color: #334155;
    background: linear-gradient(145deg, #e2e8f0, #f8fafc);
    border-color: #cbd5e1;
}

.weather-metric-icon {
    font-size: 0.86rem;
    line-height: 1;
}

.weather-temp-chip,
.weather-forecast-temp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius);
    padding: 6px 9px;
    font-weight: 800;
    line-height: 1;
}

.weather-temp-chip {
    font-size: 1.15rem;
}

.weather-temp-chip--max,
.weather-forecast-temp-chip--max {
    color: #9a3412;
    background: #ffedd5;
}

.weather-temp-chip--min,
.weather-forecast-temp-chip--min {
    color: #1d4ed8;
    background: #dbeafe;
}

.weather-temp-sep {
    color: #6b7f98;
    font-size: 1rem;
}

.weather-forecast-title {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 6px;
    min-height: 18px;
}

.weather-forecast-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.weather-forecast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.74rem;
    border: 1px solid rgba(51, 95, 152, 0.12);
    border-radius: var(--radius);
    padding: 10px;
    background:
        radial-gradient(120px 60px at 100% 0%, rgba(113, 164, 228, 0.14), transparent 72%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.92));
    box-shadow: 0 8px 18px rgba(27, 44, 77, 0.06);
}

.weather-forecast-day {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 112px;
}

.weather-forecast-date {
    color: #27446d;
    font-weight: 700;
    font-size: 0.82rem;
}

.weather-forecast-temp {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
    justify-content: center;
}

.weather-forecast-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2c4a73;
    font-size: 0.76rem;
    line-height: 1.7;
}

.weather-forecast-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.weather-forecast-extras {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.weather-forecast-extra {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 7px 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(51, 95, 152, 0.1);
    color: #36557f;
    font-size: 0.72rem;
    white-space: nowrap;
}

.weather-forecast-extra strong {
    font-weight: 700;
    white-space: nowrap;
}

.hero-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 12px;
}

.hero-card {
    overflow: hidden;
}

.hero-media {
    height: 280px;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-body {
    padding: 14px 14px 12px;
}

.hero-body h2 {
    margin: 0 0 8px;
    font-size: 1.26rem;
    line-height: 1.5;
}

.hero-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.9;
}

.hero-list {
    padding: 12px;
}

.hero-list h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.hero-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hero-list li {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    padding: 7px 8px;
}

.hero-list a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.82rem;
    display: block;
}

.hero-list time {
    font-size: 0.72rem;
    color: var(--muted);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.news-card {
    padding: 13px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(51, 95, 152, 0.35);
    box-shadow: 0 16px 32px rgba(27, 44, 77, 0.12);
}

.news-card[data-share-capturing="true"] {
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.news-card[data-share-capturing="true"]::after {
    display: none;
}

.news-card.is-new {
    animation: newsInsertFlash 1.6s ease;
}

.news-thumb {
    height: 146px;
    border-radius: var(--radius);
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    position: relative;
    padding-right: 12px;
}

.news-card h3::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 0;
    width: 4px;
    height: calc(100% - 12px);
    border-radius: var(--radius);
    background: var(--feed-accent, var(--primary));
}

.news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.85;
}

.meta-row {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-size: 0.77rem;
    padding-top: 8px;
    border-top: 1px dashed rgba(51, 95, 152, 0.22);
}

.meta-row a {
    color: var(--primary);
    text-decoration: none;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.82rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 10px;
    background: #fff;
    transition: all 180ms ease;
}

.back-link:hover {
    border-color: rgba(51, 95, 152, 0.4);
    box-shadow: 0 8px 20px rgba(51, 95, 152, 0.12);
}



.legal-footer {
    margin-top: 18px;
    padding: 12px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(51, 95, 152, 0.2);
}

.legal-footer-note {
    color: #536a87;
    font-size: 0.84rem;
    line-height: 1.9;
}

.legal-footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.82rem;
    border: 1px solid rgba(51, 95, 152, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    padding: 6px 10px;
}

.legal-footer a:hover {
    border-color: rgba(51, 95, 152, 0.4);
}

.smart-refresh {
    position: fixed;
    right: 14px;
    bottom: 16px;
    z-index: 1200;
    border: 1px solid rgba(51, 95, 152, 0.2);
    border-radius: 18px;
    background:
        radial-gradient(120px 60px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 62%),
        linear-gradient(135deg, rgba(31, 68, 118, 0.96), rgba(51, 95, 152, 0.94));
    color: #eff7ff;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px 10px 10px;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(26, 51, 89, 0.24);
    transform: translateX(-8px);
    backdrop-filter: blur(14px);
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease, background 220ms ease, border-color 220ms ease;
}

.smart-refresh:hover,
.smart-refresh:focus {
    transform: translateX(0);
    box-shadow: 0 22px 42px rgba(26, 51, 89, 0.3);
}

.smart-refresh:focus {
    outline: 2px solid rgba(51, 95, 152, 0.55);
    outline-offset: 2px;
}

.smart-refresh__icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.smart-refresh__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.smart-refresh__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.smart-refresh__label {
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.smart-refresh__meta {
    font-size: 0.71rem;
    color: rgba(239, 247, 255, 0.8);
    white-space: nowrap;
}

.smart-refresh__badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.smart-refresh.has-updates {
    background:
        radial-gradient(120px 60px at 100% 0%, rgba(255, 237, 237, 0.22), transparent 62%),
        linear-gradient(135deg, rgba(147, 24, 24, 0.97), rgba(209, 59, 47, 0.96));
    border-color: rgba(255, 212, 212, 0.22);
    box-shadow: 0 20px 38px rgba(127, 29, 29, 0.28);
}

.smart-refresh.has-updates .smart-refresh__badge {
    background: rgba(255, 255, 255, 0.26);
}

.smart-refresh.has-updates .smart-refresh__icon-wrap {
    animation: smartRefreshPulse 1.6s ease-in-out infinite;
}

.smart-refresh.is-loading {
    cursor: progress;
}

.smart-refresh.is-loading .smart-refresh__icon {
    animation: spin360 700ms linear infinite;
}

.smart-refresh.is-loading .smart-refresh__icon-wrap {
    animation: none;
}

@keyframes smartRefreshPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
    }
}

@keyframes spin360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes newsInsertFlash {
    0% {
        transform: translateY(-6px);
        box-shadow: 0 0 0 2px rgba(51, 95, 152, 0.35);
    }
    100% {
        transform: translateY(0);
        box-shadow: none;
    }
}

@media (min-width: 681px) {
    .show-mobile-only {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .weather-overview__hero {
        grid-template-columns: 1fr;
    }

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

    .hero-grid,
    .dashboard-toolbar,
    .homepage-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    .alerts-grid,
    .weather-city-grid,
    .disaster-grid,
    .crypto-grid,
    .world-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iran-calendar-hero {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .weather-loop-item {
        gap: 7px;
    }

    .weather-loop-meta {
        display: none;
    }

    .alert-loop-item {
        gap: 8px;
    }

    .crypto-loop-item {
        gap: 7px;
    }

    .world-time-loop-item {
        gap: 7px;
    }

    .disaster-loop-item {
        gap: 7px;
    }

    .disaster-loop-severity {
        display: none;
    }
}

@media (max-width: 680px) {
    .weather-overview__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .weather-overview__copy h2 {
        font-size: 1.4rem;
    }

    .weather-aqi-panel {
        flex-wrap: wrap;
    }

    .site-title {
        font-size: 1.22rem;
    }

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

    .homepage-dashboard {
        gap: 10px;
    }

    .dashboard-customize-panel__head,
    .dashboard-customize-item {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-customize-item__actions,
    .dashboard-toolbar-actions,
    .dashboard-smart-alerts__status {
        justify-content: space-between;
    }

    .dashboard-smart-alerts__status {
        position: static;
    }

    .dashboard-smart-alerts__toggles {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .dashboard-toolbar-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .head-drawer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .head-drawer-nav__social {
        text-align: center;
        width: 100%;
        margin-inline-start: 0;
    }

    .legal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-footer-links {
        width: 100%;
    }

    .show-desktop-only {
        display: none !important;
    }

    .alerts-grid,
    .weather-city-grid,
    .disaster-grid,
    .crypto-grid,
    .world-time-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .weather-city-top {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .weather-forecast-row {
        align-items: stretch;
        gap: 8px;
    }

    .alert-loop-window {
        min-height: 92px;
        padding: 7px 8px;
    }

    .alert-loop-item {
        inset: 7px 8px;
        display: grid;
        grid-template-columns: auto 1fr;
        row-gap: 4px;
        column-gap: 6px;
        white-space: normal;
        align-items: center;
        align-content: center;
        line-height: 1.45;
    }

    .alert-loop-badge {
        grid-column: 1;
        font-size: 0.72rem;
        padding: 3px 7px;
    }

    .alert-loop-title {
        grid-column: 2;
        font-size: 0.8rem;
    }

    .alert-loop-message {
        grid-column: 1 / -1;
        margin-right: 0;
        font-size: 0.76rem;
    }

    .weather-loop-window {
        min-height: 98px;
        padding: 7px 8px;
    }

    .weather-loop-item {
        inset: 7px 8px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        row-gap: 4px;
        column-gap: 6px;
        white-space: normal;
        align-items: center;
        align-content: center;
        line-height: 1.45;
    }

    .weather-loop-city {
        grid-column: 1;
        font-size: 0.74rem;
        padding: 3px 7px;
    }

    .weather-loop-aqi {
        grid-column: 3;
        justify-self: end;
        font-size: 0.69rem;
        padding: 3px 6px;
        margin-right: 0;
    }

    .weather-loop-text {
        grid-column: 1 / -1;
        font-size: 0.75rem;
        color: #355884;
    }

    .weather-loop-temp {
        grid-column: 1 / 3;
        font-size: 0.76rem;
    }

    .crypto-loop-window {
        min-height: 98px;
        padding: 7px 8px;
    }

    .crypto-loop-item {
        inset: 7px 8px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        row-gap: 4px;
        column-gap: 6px;
        white-space: normal;
        align-items: center;
        align-content: center;
        line-height: 1.45;
    }

    .crypto-loop-symbol {
        grid-column: 1;
        font-size: 0.74rem;
        padding: 3px 7px;
    }

    .crypto-loop-change {
        grid-column: 3;
        justify-self: end;
        font-size: 0.69rem;
        padding: 3px 6px;
    }

    .crypto-loop-name {
        grid-column: 1 / -1;
        font-size: 0.75rem;
    }

    .crypto-loop-price {
        grid-column: 1 / 3;
        font-size: 0.76rem;
    }

    .crypto-loop-range {
        grid-column: 1 / -1;
        margin-right: 0;
        font-size: 0.72rem;
    }

    .world-time-loop-window {
        min-height: 98px;
        padding: 7px 8px;
    }

    .world-time-loop-item {
        inset: 7px 8px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        row-gap: 4px;
        column-gap: 6px;
        white-space: normal;
        align-items: center;
        align-content: center;
        line-height: 1.45;
    }

    .world-time-loop-city {
        grid-column: 1;
        font-size: 0.74rem;
        padding: 3px 7px;
    }

    .world-time-loop-offset {
        grid-column: 3;
        justify-self: end;
        font-size: 0.69rem;
    }

    .world-time-loop-country {
        grid-column: 1 / -1;
        font-size: 0.75rem;
    }

    .world-time-loop-time {
        grid-column: 1 / 3;
        font-size: 0.78rem;
    }

    .world-time-loop-zone {
        grid-column: 1 / -1;
        margin-right: 0;
        font-size: 0.72rem;
    }

    .iran-calendar-clock {
        flex-direction: column;
        align-items: flex-start;
    }

    .iran-calendar-types,
    .iran-calendar-convert-results,
    .iran-calendar-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .iran-calendar-meta {
        flex-direction: column;
    }

    .disaster-loop-window {
        min-height: 94px;
        padding: 7px 8px;
    }

    .disaster-loop-item {
        inset: 7px 8px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        row-gap: 4px;
        column-gap: 6px;
        white-space: normal;
        align-items: center;
        align-content: center;
        line-height: 1.45;
    }

    .disaster-loop-type {
        grid-column: 1;
        font-size: 0.72rem;
        padding: 3px 7px;
    }

    .disaster-loop-alert {
        grid-column: 3;
        justify-self: end;
        font-size: 0.72rem;
    }

    .disaster-loop-name {
        grid-column: 1 / -1;
        width: auto;
        font-size: 0.75rem;
    }

    .disaster-loop-severity {
        grid-column: 1 / -1;
        font-size: 0.7rem;
        margin-right: 0;
    }

    .weather-forecast-row {
        gap: 6px;
    }

    .weather-today-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .weather-today-temp {
        margin-right: 0;
        font-size: 1.45rem;
    }

    .weather-today-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .weather-aqi-panel,
    .weather-today-hero {
        min-height: 0;
    }

    .crypto-range {
        flex-direction: column;
        gap: 3px;
    }

    .smart-refresh {
        right: 10px;
        bottom: 12px;
        transform: translateX(-6px);
        min-height: 52px;
        padding: 9px 11px 9px 9px;
    }

    .smart-refresh__meta {
        display: none;
    }
}
