.dash-page {
    --dash-ink: #03072a;
    --dash-lime: #daf431;
    --dash-muted: #64748b;
    --dash-border: rgba(3, 7, 42, 0.08);
    --dash-shadow: 0 4px 24px rgba(3, 7, 42, 0.06);
    --dash-shadow-hover: 0 12px 40px rgba(3, 7, 42, 0.12);
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.dash-hero--video {
    background: #03072a;
    min-height: clamp(380px, 42vh, 520px);
    align-items: flex-end;
    padding-bottom: 3.25rem;
}

.dash-hero--video::before,
.dash-hero--video::after {
    display: none;
}

.dash-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

.dash-hero__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(3, 7, 42, 0.88) 0%,
        rgba(3, 7, 42, 0.5) 40%,
        rgba(3, 7, 42, 0.18) 70%,
        rgba(3, 7, 42, 0.32) 100%
    );
}

.dash-hero--video .dash-hero__main,
.dash-hero--video .dash-hero__stats {
    position: relative;
    z-index: 1;
}

.dash-hero__quote {
    min-height: 116px;
    position: absolute;
    left: 2.25rem;
    bottom: 1.5rem;
    z-index: 2;
    max-width: min(34rem, calc(100% - 4.5rem));
    pointer-events: none;
    opacity: 0;
    transform: translateY(32px) scale(0.96);
    filter: blur(8px);
    padding: 0.9rem 1.2rem 0.95rem 1.05rem;
    border-left: 3px solid var(--dash-lime);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(
        90deg,
        rgba(218, 244, 49, 0.12) 0%,
        rgba(3, 7, 42, 0.55) 55%,
        rgba(3, 7, 42, 0.35) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: dashHeroQuoteIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

@keyframes dashHeroQuoteIn {
    0% {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
        filter: blur(8px);
    }
    55% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.dash-hero__quote.dash-hero__quote--ready {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    animation: none;
}

.dash-hero__quote.dash-hero__quote--ready.dash-hero__quote--pulse {
    animation: dashHeroQuotePulse 0.7s cubic-bezier(0.34, 1.45, 0.64, 1);
}

@keyframes dashHeroQuotePulse {
    0% {
        box-shadow:
            0 10px 36px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.08);
        border-left-color: var(--dash-lime);
    }
    45% {
        box-shadow:
            0 14px 44px rgba(0, 0, 0, 0.48),
            0 0 28px rgba(218, 244, 49, 0.42),
            0 0 0 1px rgba(218, 244, 49, 0.28);
        border-left-color: #eeff7a;
    }
    100% {
        box-shadow:
            0 10px 36px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.08);
        border-left-color: var(--dash-lime);
    }
}

.dash-hero__quote-mark {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
    color: var(--dash-lime);
    text-shadow: 0 0 20px rgba(218, 244, 49, 0.45);
    opacity: 0.95;
}

.dash-hero__quote-text {
    margin: 0;
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
    line-height: 1.45;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.01em;
    min-height: 2.6em;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.dash-hero__quote-text.is-changing {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(5px);
}

@media (min-width: 640px) {
    .dash-hero__quote-text {
        font-size: clamp(1rem, 1.35vw, 1.2rem);
    }
}

@media (max-width: 767px) {
    .dash-hero--video {
        min-height: 0;
        align-items: stretch;
        padding-bottom: 1.5rem;
    }

    .dash-hero__main {
        order: 1;
        width: 100%;
    }

    .dash-hero__quote {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 1;
        order: 2;
        width: 100%;
        max-width: none;
        margin-top: 1rem;
        padding: 0.75rem 1rem 0.8rem 0.9rem;
        min-height: 94px;
    }

    .dash-hero__stats {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        margin-top: 0.85rem;
    }

    .dash-hero__quote-text {
        font-size: 0.875rem;
        min-height: 0;
    }

    .dash-hero__quote-mark {
        font-size: 1.4rem;
    }
}

.dash-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    color: #fff;
    transition: background 0.8s ease;
}

.dash-hero::before,
.dash-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: background 0.8s ease, top 0.8s ease, right 0.8s ease, left 0.8s ease, bottom 0.8s ease, width 0.8s ease, height 0.8s ease;
}

.dash-hero::before {
    top: -40%;
    right: -5%;
    width: 360px;
    height: 360px;
}

.dash-hero::after {
    bottom: -35%;
    left: -8%;
    width: 280px;
    height: 280px;
}

/* Утро — 5:00–11:59 */
.dash-hero--morning {
    background: linear-gradient(152deg, #1e4468 0%, #356888 26%, #5a8cad 46%, #89b4cc 62%, #c9956a 84%, #e4b878 100%);
}

.dash-hero--morning::before {
    top: auto;
    bottom: -32%;
    right: -4%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 210, 120, 0.58) 0%, rgba(255, 168, 76, 0.3) 36%, rgba(255, 130, 60, 0.1) 58%, transparent 74%);
}

.dash-hero--morning::after {
    top: -36%;
    left: -8%;
    bottom: auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(186, 230, 253, 0.28) 0%, rgba(125, 211, 252, 0.12) 42%, transparent 70%);
}

/* День — 12:00–17:59 */
.dash-hero--day {
    background: linear-gradient(135deg, var(--dash-ink) 0%, #1a3a5c 48%, #1e4976 78%, #1e293b 100%);
}

.dash-hero--day::before {
    top: -42%;
    right: -8%;
    background: radial-gradient(circle, rgba(218, 244, 49, 0.3) 0%, rgba(56, 189, 248, 0.1) 45%, transparent 72%);
}

.dash-hero--day::after {
    left: -10%;
    bottom: -38%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, transparent 72%);
}

/* Вечер — 18:00–22:59 */
.dash-hero--evening {
    background: linear-gradient(140deg, #0a0614 0%, #1a1230 42%, #2a1a3d 72%, #3d2848 100%);
}

.dash-hero--evening::before {
    top: -32%;
    right: 2%;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.32) 0%, rgba(251, 146, 60, 0.2) 40%, transparent 72%);
}

.dash-hero--evening::after {
    left: 45%;
    bottom: -45%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.14) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 72%);
}

/* Ночь — 23:00–4:59 */
.dash-hero--night {
    background: linear-gradient(160deg, #010205 0%, #03072a 38%, #0c0a2e 72%, #1e1b4b 100%);
}

.dash-hero--night::before {
    top: -28%;
    right: 10%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.34) 0%, rgba(99, 102, 241, 0.16) 48%, transparent 72%);
}

.dash-hero--night::after {
    left: 52%;
    bottom: -44%;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.12) 0%, rgba(79, 70, 229, 0.06) 50%, transparent 72%);
}

.dash-hero__main {
    position: relative;
    z-index: 1;
    flex: 1 1 260px;
    min-width: 0;
}

.dash-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.dash-hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 0.65rem;
    flex: 0 1 420px;
    min-width: min(100%, 280px);
}

@media (min-width: 992px) {
    .dash-hero__stats {
        grid-template-columns: repeat(4, minmax(88px, 1fr));
        flex-basis: 520px;
    }
}

.dash-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

button.dash-hero-stat {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
}

.dash-hero-stat--link {
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.dash-hero-stat--link:hover {
    background: rgba(218, 244, 49, 0.12);
    border-color: rgba(218, 244, 49, 0.35);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.dash-hero-stat__value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.dash-hero-stat__subvalue {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
}

.dash-hero-stat__label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.25;
}

.dash-hero__company {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 500;
}

.dash-hero__telegram {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.dash-hero__telegram--on {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.dash-hero__telegram--off {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.dash-hero__telegram--off:hover {
    background: rgba(218, 244, 49, 0.12);
    border-color: rgba(218, 244, 49, 0.35);
    color: var(--dash-lime);
    text-decoration: none;
}

.dash-hero-stat--warn {
    background: rgba(234, 179, 8, 0.14);
    border-color: rgba(234, 179, 8, 0.38);
}

.dash-hero-stat--warn .dash-hero-stat__value {
    color: #fde68a;
}

.dash-hero-stat--link.dash-hero-stat--warn:hover {
    background: rgba(234, 179, 8, 0.22);
    border-color: rgba(234, 179, 8, 0.5);
}

.dash-hero__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #fff;
}

.dash-hero__title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.dash-hero__period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--dash-lime);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.dash-hero--morning .dash-hero__period {
    color: #fbbf24;
    background: rgba(255, 200, 100, 0.14);
    border-color: rgba(255, 200, 100, 0.28);
}

.dash-hero--day .dash-hero__period {
    color: var(--dash-lime);
}

.dash-hero--evening .dash-hero__period {
    color: #fdba74;
}

.dash-hero--night .dash-hero__period {
    color: #c7d2fe;
}

.dash-hero__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.45;
}

.dash-hero__subtitle--link {
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

button.dash-hero__subtitle--link {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.dash-hero__subtitle--link:hover {
    text-decoration: none;
    transform: translateX(2px);
}

.dash-hero__subtitle--warn {
    color: #fde68a;
}

.dash-hero__subtitle--warn.dash-hero__subtitle--link:hover {
    color: #fef3c7;
}

.dash-hero__subtitle--accent {
    color: #bbf7d0;
}

.dash-hero__subtitle--accent.dash-hero__subtitle--link:hover {
    color: #dcfce7;
}

.dash-hero__favorites {
    margin-top: 1.1rem;
}

.dash-hero__favorites-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.dash-hero__favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dash-hero-fav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem 0.35rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.dash-hero-fav:hover {
    background: rgba(218, 244, 49, 0.12);
    border-color: rgba(218, 244, 49, 0.35);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.dash-hero-fav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
}

.dash-hero-fav__icon--img {
    width: auto;
    min-width: 1.35rem;
    max-width: 2.5rem;
    padding: 0 0.2rem;
    background: rgba(255, 255, 255, 0.92);
}

.dash-hero-fav__icon--img img {
    display: block;
    height: 0.65rem;
    width: auto;
}

.dash-hero-fav__title {
    white-space: nowrap;
}

.dash-hero-fav--yandex .dash-hero-fav__icon { color: #fc3f1d; }
.dash-hero-fav--google .dash-hero-fav__icon,
.dash-hero-fav--amp .dash-hero-fav__icon { color: #4285f4; }
.dash-hero-fav--multigeo .dash-hero-fav__icon { color: #0ea5e9; }
.dash-hero-fav--topvisor .dash-hero-fav__icon,
.dash-hero-fav--topvisor-keys .dash-hero-fav__icon,
.dash-hero-fav--topvisor-analytics .dash-hero-fav__icon,
.dash-hero-fav--topvisor-daily .dash-hero-fav__icon { color: #a5b4fc; }
.dash-hero-fav--finance .dash-hero-fav__icon,
.dash-hero-fav--gname .dash-hero-fav__icon,
.dash-hero-fav--expired .dash-hero-fav__icon { color: #fde68a; }

.dash-hero__favorites-hint {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.dash-hero__favorites-hint i {
    color: rgba(218, 244, 49, 0.75);
    font-size: 0.85rem;
    vertical-align: -1px;
}

.dash-hero__role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(218, 244, 49, 0.15);
    color: var(--dash-lime);
    font-size: 0.8rem;
    font-weight: 500;
}

.dash-news {
    margin-bottom: 1.75rem;
    padding: 1.15rem 1.35rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
}

.dash-news__head {
    margin-bottom: 1rem;
}

.dash-news__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dash-muted);
}

.dash-news__title i {
    font-size: 1rem;
    color: var(--dash-ink);
}

.dash-news__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-news__item {
    margin: 0;
    padding: 0;
    border: none;
}

.dash-news__card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    background: linear-gradient(135deg, var(--dash-news-bg-start) 0%, #fff 58%);
    box-shadow: 0 1px 0 rgba(3, 7, 42, 0.03);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dash-news__card:hover {
    box-shadow: 0 8px 24px rgba(3, 7, 42, 0.07);
}

.dash-news__item--lime {
    --dash-news-accent: #b8cf1f;
    --dash-news-bg-start: rgba(218, 244, 49, 0.14);
    --dash-news-icon-bg: rgba(218, 244, 49, 0.28);
}

.dash-news__item--sky {
    --dash-news-accent: #0ea5e9;
    --dash-news-bg-start: rgba(14, 165, 233, 0.1);
    --dash-news-icon-bg: rgba(14, 165, 233, 0.18);
}

.dash-news__item--violet {
    --dash-news-accent: #8b5cf6;
    --dash-news-bg-start: rgba(139, 92, 246, 0.1);
    --dash-news-icon-bg: rgba(139, 92, 246, 0.18);
}

.dash-news__item--amber {
    --dash-news-accent: #f59e0b;
    --dash-news-bg-start: rgba(245, 158, 11, 0.12);
    --dash-news-icon-bg: rgba(245, 158, 11, 0.2);
}

.dash-news__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: var(--dash-news-icon-bg);
    color: var(--dash-news-accent);
    flex-shrink: 0;
    align-self: start;
}

.dash-news__icon i {
    font-size: 1.15rem;
    line-height: 1;
}

.dash-news__content {
    min-width: 0;
}

.dash-news__item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.dash-news__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
}

.dash-news__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: var(--dash-news-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.dash-news__dismiss {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: 28px;
    padding: 0 0.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--dash-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dash-news__dismiss:hover {
    background: rgba(3, 7, 42, 0.06);
    color: var(--dash-ink);
}

.dash-news__dismiss:disabled {
    opacity: 0.5;
    cursor: default;
}

.dash-news__dismiss i {
    font-size: 0.9rem;
    line-height: 1;
}

.dash-news__dismiss-text {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
}

.dash-news__date {
    display: block;
    margin-bottom: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dash-muted);
    font-variant-numeric: tabular-nums;
}

.dash-news__heading {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dash-ink);
}

.dash-news__body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--dash-ink);
}

.dash-news__paragraph {
    margin: 0 0 0.45rem;
}

.dash-news__paragraph:last-child {
    margin-bottom: 0;
}

.dash-news__bullets {
    margin: 0.15rem 0 0;
    padding: 0;
    list-style: none;
}

.dash-news__bullets li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.3rem;
}

.dash-news__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--dash-news-accent);
    transform: translateY(-50%);
}

.dash-news__bullets li:last-child {
    margin-bottom: 0;
}

.dash-news__footer {
    margin-top: 0.55rem;
}

.dash-news__author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--dash-muted);
}

.dash-news__author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(3, 7, 42, 0.07);
    color: var(--dash-ink);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dash-news__empty {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--dash-muted);
}

.dash-news__form-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dash-border);
}

.dash-news__field {
    margin-bottom: 0.65rem;
}

.dash-news__textarea {
    resize: vertical;
    min-height: 88px;
    border-radius: 10px;
    border-color: var(--dash-border);
    font-size: 0.9rem;
}

.dash-news__textarea:focus {
    border-color: rgba(3, 7, 42, 0.25);
    box-shadow: 0 0 0 3px rgba(218, 244, 49, 0.35);
}

.dash-news__form-actions {
    display: flex;
    justify-content: flex-end;
}

.dash-news__submit {
    border-radius: 8px;
    font-weight: 600;
}

.dash-search-wrap {
    margin-bottom: 1.75rem;
}

.dash-search {
    position: relative;
    max-width: 420px;
}

.dash-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dash-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.dash-search__input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    font-size: 0.92rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-search__input:focus {
    outline: none;
    border-color: rgba(3, 7, 42, 0.25);
    box-shadow: 0 0 0 3px rgba(218, 244, 49, 0.35);
}

.dash-section {
    margin-bottom: 2rem;
}

.dash-section__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
    padding-left: 0.25rem;
}

.dash-section__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dash-muted);
    margin: 0;
}

.dash-restricted-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.3;
    white-space: nowrap;
    background: rgba(234, 179, 8, 0.14);
    color: #92400e;
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.dash-restricted-badge i {
    font-size: 0.72rem;
    opacity: 0.85;
}

.dash-restricted-badge--section {
    font-size: 0.72rem;
    padding: 0.22rem 0.65rem;
}

.dash-restricted-badge--card {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 1;
    max-width: calc(100% - 1.3rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.dash-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.2rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 130px;
}

.dash-card__head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    --dash-card-icon-size: 38px;
}

.dash-card__favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--dash-card-icon-size);
    height: var(--dash-card-icon-size);
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(3, 7, 42, 0.06);
    color: var(--dash-muted);
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.dash-card:hover .dash-card__favorite,
.dash-card__favorite--on,
.dash-card__favorite:focus-visible {
    opacity: 1;
}

.dash-card__favorite:hover {
    background: rgba(234, 179, 8, 0.14);
    color: #ca8a04;
    transform: scale(1.05);
}

.dash-card__favorite--on {
    opacity: 1;
    background: rgba(234, 179, 8, 0.16);
    color: #eab308;
}

.dash-card__favorite:disabled {
    opacity: 0.6;
    cursor: wait;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dash-shadow-hover);
    border-color: rgba(3, 7, 42, 0.14);
    color: inherit;
    text-decoration: none;
}

.dash-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    background: var(--dash-ink);
}

.dash-card--yandex .dash-card__accent { background: #fc3f1d; }
.dash-card--google .dash-card__accent,
.dash-card--amp .dash-card__accent { background: #4285f4; }
.dash-card--multigeo .dash-card__accent { background: #0ea5e9; }
.dash-card--tags .dash-card__accent { background: #8b5cf6; }
.dash-card--cloudflare .dash-card__accent { background: #f6821f; }
.dash-card--cloudns .dash-card__accent { background: #06b6d4; }
.dash-card--html-editor .dash-card__accent { background: var(--dash-lime); }
.dash-card--upload .dash-card__accent { background: #22c55e; }
.dash-card--topvisor .dash-card__accent,
.dash-card--topvisor-keys .dash-card__accent,
.dash-card--topvisor-analytics .dash-card__accent,
.dash-card--topvisor-daily .dash-card__accent { background: #6366f1; }
.dash-card--lb-site .dash-card__accent,
.dash-card--lb-link .dash-card__accent,
.dash-card--lb-site-seo .dash-card__accent,
.dash-card--lb-shell-seo .dash-card__accent,
.dash-card--lb-link-seo .dash-card__accent,
.dash-card--lb-article .dash-card__accent,
.dash-card--lb-request .dash-card__accent,
.dash-card--lb-overview .dash-card__accent,
.dash-card--lb-ref .dash-card__accent { background: #10b981; }
.dash-card--finance .dash-card__accent,
.dash-card--gname .dash-card__accent,
.dash-card--expired .dash-card__accent { background: #eab308; }
.dash-card--ai-articles .dash-card__accent,
.dash-card--ai-gen .dash-card__accent { background: #a855f7; }
.dash-card--bugs .dash-card__accent { background: #ef4444; }
.dash-card--cloaking .dash-card__accent { background: #64748b; }

.dash-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--dash-card-icon-size, 38px);
    height: var(--dash-card-icon-size, 38px);
    border-radius: 10px;
    background: rgba(3, 7, 42, 0.06);
    color: var(--dash-ink);
    font-size: 1.15rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dash-card__icon--img {
    width: auto;
    min-width: 38px;
    max-width: 72px;
    padding: 0 6px;
}

.dash-card__icon--img img {
    display: block;
    height: 16px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.dash-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    color: var(--dash-ink);
}

.dash-card__desc {
    font-size: 0.8rem;
    color: var(--dash-muted);
    margin: 0;
    line-height: 1.45;
    flex-grow: 1;
}

.dash-card__arrow {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--dash-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.dash-card--multi {
    cursor: default;
}

.dash-card--multi:hover {
    transform: none;
    box-shadow: var(--dash-shadow);
    border-color: var(--dash-border);
}

.dash-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.dash-card__link {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dash-ink);
    background: rgba(3, 7, 42, 0.06);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.dash-card__link:hover {
    background: var(--dash-ink);
    color: var(--dash-lime);
    text-decoration: none;
}

.dash-card--multi .dash-card__arrow {
    display: none;
}

.dash-card:hover .dash-card__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--dash-ink);
}

.dash-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dash-muted);
}

.dash-empty i {
    font-size: 2.5rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 0.75rem;
}

.dash-section.dash-section--hidden {
    display: none;
}

.dash-card.dash-card--hidden {
    display: none;
}

#dashExpiringDomainsModal .dash-expiring-modal {
    max-width: min(1280px, calc(100% - 2rem));
}

#dashExpiringDomainsModal .modal-body {
    max-height: min(70vh, calc(100vh - 10rem));
    overflow: auto;
}

.dash-expiring-table {
    width: 100%;
    table-layout: auto;
}

.dash-expiring-table th,
.dash-expiring-table td {
    white-space: nowrap;
}

.dash-expiring-table td:nth-child(4) {
    text-align: center;
}

.dash-expiring-table__block-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.dash-expiring-table__block--yes {
    color: #dc2626;
}

.dash-expiring-table__block-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.dash-expiring-table__block-date {
    font-size: 12px;
    color: #f90000;
    font-weight: 400;
    white-space: nowrap;
}

.dash-expiring-table__days {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dash-expiring-table__days--urgent {
    color: #dc2626;
    font-weight: 600;
}

@media (max-width: 576px) {
    .dash-hero {
        padding: 1.5rem 1.25rem;
    }

    .dash-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex-basis: 100%;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }
}
