/* Esa°Downloader 1.6.0 — premium dashboard interface */
:root {
    --dashboard-page: #071224;
    --dashboard-page-2: #0b172b;
    --dashboard-card: #101e34;
    --dashboard-card-2: #14243d;
    --dashboard-card-soft: #0d1a2e;
    --dashboard-line: rgba(126, 153, 205, .27);
    --dashboard-line-strong: rgba(133, 112, 255, .58);
    --dashboard-text: #edf4ff;
    --dashboard-muted: #97a8c3;
    --dashboard-purple: #8b78ff;
    --dashboard-purple-2: #b29cff;
    --dashboard-cyan: #42c3de;
    --dashboard-blue: #4b92e8;
    --dashboard-green: #5bd2a9;
    --dashboard-danger: #ff758d;
    --dashboard-shadow: 0 24px 72px rgba(0, 6, 18, .32);
    --dashboard-shadow-soft: 0 12px 36px rgba(0, 7, 20, .24);
    --dashboard-radius: 18px;
    --container: 1380px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    background: var(--dashboard-page);
}

html[data-theme="dark"] body.dashboard-body {
    color: var(--dashboard-text);
    background:
        radial-gradient(circle at 18% 5%, rgba(85, 98, 205, .12), transparent 31rem),
        radial-gradient(circle at 88% 23%, rgba(37, 141, 184, .09), transparent 30rem),
        linear-gradient(180deg, #071224 0%, #0a1629 58%, #0b1728 100%);
}

.dashboard-body {
    min-width: 0;
    overflow-x: clip;
}

.dashboard-background {
    position: fixed;
    z-index: -4;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.dashboard-grid-lines {
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(126, 151, 194, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 151, 194, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.dashboard-glow {
    position: absolute;
    width: 620px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .12;
}

.dashboard-glow-one {
    top: -330px;
    inset-inline-start: -240px;
    background: #705cff;
}

.dashboard-glow-two {
    top: 260px;
    inset-inline-end: -330px;
    background: #2a9dbf;
}

.dashboard-body .container {
    width: min(calc(100% - 38px), var(--container));
}

/* Header */
.dashboard-header.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(115, 139, 181, .19);
    background: rgba(6, 16, 33, .97);
    box-shadow: 0 10px 35px rgba(0, 5, 15, .2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.dashboard-header .nav-wrap {
    min-height: 70px;
    gap: clamp(20px, 3vw, 46px);
}

.dashboard-header .brand {
    flex: 0 0 auto;
    margin-inline-end: 0;
}

.dashboard-header .brand img {
    width: 220px;
    height: auto;
}

html[data-theme="dark"] .dashboard-header .brand img,
html[data-theme="dark"] .dashboard-footer .footer-logo {
    content: url('/assets/img/logo-dark.svg');
}

.dashboard-header .main-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(18px, 2.6vw, 38px);
    margin-inline: auto;
}

.dashboard-header .main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 70px;
    padding: 0;
    color: #aab8cd;
    font-size: .91rem;
    font-weight: 720;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-header .main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 50%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dashboard-purple), var(--dashboard-cyan));
    box-shadow: 0 -6px 20px rgba(128, 107, 255, .55);
    transition: inset .2s ease;
}

.dashboard-header .main-nav a:hover,
.dashboard-header .main-nav a.active {
    color: #f3f6ff;
}

.dashboard-header .main-nav a:hover::after,
.dashboard-header .main-nav a.active::after {
    inset-inline: 0;
}

.dashboard-header .nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.dashboard-header .language-switch {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(125, 147, 184, .24);
    border-radius: 10px;
    color: #c6d1e3;
    background: #0d1a2e;
    text-decoration: none;
    box-shadow: none;
}

.dashboard-header .language-switch span,
.dashboard-header .language-switch small {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding-inline: 13px;
    font-size: .76rem;
    font-weight: 780;
}

.dashboard-header .language-switch small {
    color: #95a4bb;
    background: rgba(139, 120, 255, .09);
    border-inline-start: 1px solid rgba(125, 147, 184, .17);
}

.dashboard-header .theme-toggle,
.dashboard-header .header-help {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid rgba(125, 147, 184, .22);
    border-radius: 50%;
    color: #cbd5e5;
    background: #0d1a2e;
    text-decoration: none;
    box-shadow: none;
}

.dashboard-header .theme-toggle:hover,
.dashboard-header .header-help:hover,
.dashboard-header .language-switch:hover {
    border-color: rgba(139, 120, 255, .64);
    color: #fff;
}

.dashboard-header .theme-icon {
    font-size: 1rem;
}

/* Shared dashboard surfaces */
.dashboard-home {
    padding: 22px 0 4px;
}

.dashboard-card,
.dashboard-body .panel,
.experience-banner,
.below-input-ad,
.service-ribbon-grid {
    border: 1px solid var(--dashboard-line);
    border-radius: var(--dashboard-radius);
    background:
        linear-gradient(145deg, rgba(22, 38, 64, .95), rgba(13, 27, 47, .98));
    box-shadow: var(--dashboard-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .025);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.dashboard-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(139, 120, 255, .035), transparent 34%, rgba(66, 195, 222, .025));
}

.dashboard-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #74cfea;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .025em;
}

.dashboard-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dashboard-purple), var(--dashboard-cyan));
    box-shadow: 0 0 13px rgba(80, 196, 224, .8);
}

.dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-card-head h2 {
    margin: 5px 0 0;
    color: #eaf1fc;
    font-size: 1.05rem;
    line-height: 1.3;
}

.compact-head {
    align-items: center;
}

/* Top banner */
.experience-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    width: min(1120px, 100%);
    min-height: 84px;
    margin: 0 auto 16px;
    padding: 13px 30px 13px 16px;
    border-color: rgba(139, 120, 255, .7);
    background:
        radial-gradient(circle at 42% 0%, rgba(139, 120, 255, .16), transparent 48%),
        linear-gradient(90deg, #111e39, #14213d 55%, #121d35);
}

.experience-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 2px solid #c2b4ff;
    border-radius: 18px;
    color: #fff;
    font-size: 1.8rem;
    background: linear-gradient(145deg, #8875f7, #9d8fff);
    box-shadow: 0 0 0 5px rgba(139, 120, 255, .12), 0 13px 28px rgba(79, 60, 178, .32);
}

.experience-copy {
    display: grid;
    gap: 3px;
}

.experience-copy strong {
    color: #a99aff;
    font-size: 1.02rem;
}

.experience-copy span {
    color: #aab7ca;
    font-size: .8rem;
}

.experience-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 43px;
    padding-inline: 24px;
    border-radius: 12px;
    color: #17162e;
    background: linear-gradient(135deg, #d8ceff, #9d89ff);
    text-decoration: none;
    font-weight: 820;
    box-shadow: 0 12px 28px rgba(96, 70, 208, .23);
}

.dashboard-top-ad {
    width: min(1120px, 100%);
    margin: 0 auto 16px;
}

.dashboard-top-ad .ad-shell {
    min-height: 84px;
    border-color: rgba(139, 120, 255, .65);
    border-radius: 18px;
    background: linear-gradient(90deg, #111e39, #172240);
}

/* Main analyzer area */
.dashboard-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.analyzer-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 302px;
    padding: clamp(27px, 3vw, 42px) clamp(22px, 4vw, 70px);
}

.analyzer-panel::after {
    content: "";
    position: absolute;
    inset-inline-start: 9%;
    bottom: -100px;
    width: 310px;
    height: 170px;
    border-radius: 50%;
    background: rgba(91, 106, 230, .08);
    filter: blur(50px);
}

.analyzer-heading {
    text-align: center;
}

.analyzer-heading h1 {
    max-width: 760px;
    margin: 8px auto 5px;
    color: #dcecff;
    font-size: clamp(1.75rem, 2.7vw, 2.45rem);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.analyzer-heading h1 em {
    color: #9c88ff;
    font-style: normal;
    white-space: nowrap;
}

.analyzer-heading p {
    margin: 0 0 18px;
    color: #9aaac1;
    font-size: .93rem;
}

.dashboard-url-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding-inline: 15px;
    border: 1px solid rgba(125, 151, 204, .52);
    border-radius: 12px;
    background: rgba(17, 30, 52, .8);
    box-shadow: inset 0 0 0 1px rgba(139, 120, 255, .05);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dashboard-url-field:focus-within {
    border-color: rgba(139, 120, 255, .9);
    background: rgba(20, 34, 59, .96);
    box-shadow: 0 0 0 3px rgba(139, 120, 255, .1);
}

.dashboard-url-field input {
    min-width: 0;
    width: 100%;
    height: 56px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #e9f1fc;
    background: transparent;
    text-align: start;
}

.dashboard-url-field input::placeholder {
    color: #7789a5;
}

.url-leading-icon,
.url-trailing-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #92a9ca;
    background: rgba(118, 144, 191, .09);
}

.url-trailing-icon {
    background: transparent;
    color: #aac2e0;
    font-size: 1.1rem;
}

.analyzer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(540px, 100%);
    margin: 15px auto 0;
}

.dashboard-primary,
.secondary-dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    font-weight: 830;
    text-decoration: none;
}

.dashboard-primary {
    color: #fff;
    background: linear-gradient(135deg, #725be8, #a57cef);
    box-shadow: 0 12px 28px rgba(89, 68, 197, .25);
}

.dashboard-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.secondary-dashboard-button {
    border: 1px solid rgba(69, 183, 216, .24);
    color: #80d5ee;
    background: linear-gradient(135deg, rgba(32, 92, 122, .46), rgba(28, 79, 109, .68));
}

.secondary-dashboard-button:hover {
    border-color: rgba(69, 183, 216, .55);
    color: #c0effb;
}

.button-spark {
    font-size: 1.2rem;
}

.analyzer-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 11px;
    color: #7f8da4;
    font-size: .78rem;
}

.dashboard-body .form-message,
.dashboard-body .processing-message {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 117, 141, .42);
    border-radius: 10px;
    color: #ffc4cf;
    background: rgba(133, 38, 59, .18);
    text-align: center;
}

/* Platforms */
.platform-panel {
    min-height: 302px;
    padding: 24px 24px 18px;
}

.platform-count,
.status-chip,
.secure-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 3px 10px;
    border: 1px solid rgba(107, 177, 219, .27);
    border-radius: 999px;
    color: #b5cce4;
    background: rgba(53, 100, 137, .18);
    font-size: .7rem;
    font-weight: 780;
}

.platform-icon-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 10px;
    margin-top: 18px;
}

.platform-icon-item {
    min-width: 0;
    text-align: center;
}

.platform-icon-item > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    margin: 0 auto 5px;
    border: 1px solid rgba(128, 151, 190, .21);
    border-radius: 9px;
    background: #0c1728;
    box-shadow: 0 8px 18px rgba(0, 6, 18, .18);
}

.platform-icon-item img {
    width: 27px;
    height: 27px;
}

.platform-icon-item small {
    display: block;
    overflow: hidden;
    color: #aebbd0;
    font-size: .63rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-more-item > span {
    color: #cad4e6;
    letter-spacing: .12em;
}

.platform-panel-note {
    margin: 13px 0 0;
    color: #697c98;
    font-size: .67rem;
    text-align: center;
}

/* Ad strip and service row */
.below-input-ad {
    min-height: 48px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(24, 39, 70, .96), rgba(22, 30, 67, .98));
}

.below-input-ad .ad-shell {
    min-height: 48px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ad-placeholder-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 8px 18px;
    color: #8e9db5;
    font-size: .75rem;
}

.ad-placeholder-line strong {
    color: #bbc5d8;
}

.ad-orbit {
    width: 22px;
    height: 22px;
    border: 3px dotted #8b78ff;
    border-radius: 50%;
    animation: dashboardSpin 5s linear infinite;
}

.dashboard-home .service-ribbon {
    padding: 10px 0 0;
}

.dashboard-home .service-ribbon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--dashboard-line);
}

.dashboard-home .service-ribbon-grid > div {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 11px;
    padding: 13px 18px;
    background: #0f1c31;
}

.dashboard-home .ribbon-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    color: #9c8cff;
    background: rgba(139, 120, 255, .1);
}

.dashboard-home .service-ribbon-grid strong {
    color: #c9d5e6;
    font-size: .77rem;
}

.dashboard-home .service-ribbon-grid small {
    color: #75849a;
    font-size: .67rem;
}

/* Result and processing workspaces */
.dashboard-workspace-section {
    padding: 13px 0 0;
}

.dashboard-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 12px;
}

.dashboard-result-grid .dashboard-card,
.dashboard-processing-grid .dashboard-card {
    padding: 22px;
}

.media-preview-body {
    display: grid;
    grid-template-columns: minmax(170px, .72fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 18px;
}

.dashboard-body .preview-image-wrap {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid rgba(122, 148, 190, .23);
    border-radius: 13px;
    background: linear-gradient(135deg, #22344e, #101b30);
}

.dashboard-body .preview-image-wrap > img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.dashboard-body .preview-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 180px;
}

.dashboard-body .preview-placeholder img {
    width: 70px;
    opacity: .45;
}

.preview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    color: #fff;
    background: rgba(8, 18, 35, .52);
    transform: translate(-50%, -50%);
}

.dashboard-body .source-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    color: #77d5ee;
    background: rgba(60, 177, 209, .1);
    font-size: .69rem;
    font-weight: 800;
}

.dashboard-body .preview-copy h2 {
    margin: 10px 0 12px;
    color: #e9f1fc;
    font-size: 1.15rem;
    line-height: 1.45;
}

.dashboard-body .media-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-body .media-meta > span {
    padding: 6px 9px;
    border: 1px solid rgba(124, 149, 190, .19);
    border-radius: 8px;
    color: #aab8cc;
    background: rgba(10, 23, 40, .44);
    font-size: .7rem;
}

.dashboard-body .format-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 17px;
    padding: 4px;
    border-radius: 10px;
    background: #0b1729;
}

.dashboard-body .format-tab {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    color: #8998af;
    background: transparent;
    font-weight: 800;
}

.dashboard-body .format-tab.active {
    color: #e7e0ff;
    background: linear-gradient(135deg, rgba(111, 88, 224, .55), rgba(141, 108, 223, .4));
    box-shadow: none;
}

.dashboard-body .quality-options {
    display: grid;
    gap: 7px;
    margin: 10px 0 13px;
}

.dashboard-body .quality-choice {
    position: relative;
}

.dashboard-body .quality-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-body .quality-choice label {
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 8px 12px 8px 42px;
    border: 1px solid rgba(122, 146, 186, .2);
    border-radius: 8px;
    color: #aebbd0;
    background: #0c182b;
    font-size: .75rem;
    cursor: pointer;
}

html[dir="rtl"] .dashboard-body .quality-choice label {
    padding: 8px 42px 8px 12px;
}

.dashboard-body .quality-choice label::before {
    content: "";
    position: absolute;
    inset-inline-start: 13px;
    width: 14px;
    height: 14px;
    border: 1px solid #7586a2;
    border-radius: 50%;
}

.dashboard-body .quality-choice input:checked + label {
    border-color: rgba(139, 120, 255, .65);
    color: #e8e2ff;
    background: linear-gradient(90deg, rgba(111, 88, 224, .46), rgba(85, 67, 175, .25));
}

.dashboard-body .quality-choice input:checked + label::before {
    border: 4px solid #a693ff;
    background: #fff;
}

.dashboard-processing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .65fr);
    gap: 12px;
}

.progress-dashboard-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.progress-dashboard-head h2 {
    margin: 6px 0 4px;
    color: #e9f1fc;
    font-size: 1.2rem;
}

.progress-dashboard-head p {
    margin: 0;
    color: #8999b1;
    font-size: .77rem;
}

.progress-ring {
    --progress-value: 0;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, #112039 79%, transparent 80% 100%),
        conic-gradient(
            var(--dashboard-cyan) calc(var(--progress-value) * 1%),
            rgba(72, 108, 142, .25) 0
        );
    box-shadow: 0 0 28px rgba(66, 195, 222, .12);
}

.progress-ring span {
    color: #9ce7f6;
    font-size: 1.2rem;
    font-weight: 850;
}

.dashboard-body .progress-track {
    height: 7px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #081326;
}

.dashboard-body .progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #765be5, #3fc4df);
    box-shadow: 0 0 14px rgba(63, 196, 223, .35);
}

.dashboard-body .progress-details {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 9px;
    color: #8596ad;
    font-size: .7rem;
}

.dashboard-body .progress-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.dashboard-body .progress-steps li {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid rgba(124, 149, 190, .18);
    border-radius: 8px;
    color: #8392a8;
    background: #0c182a;
    font-size: .68rem;
}

.dashboard-body .progress-steps li > span {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: #9eacc0;
    background: #14243c;
    font-size: .64rem;
}

.dashboard-body .progress-steps li.active {
    border-color: rgba(139, 120, 255, .55);
    color: #d7d0ff;
    background: rgba(100, 76, 200, .18);
}

.dashboard-body .progress-steps li.done {
    border-color: rgba(91, 210, 169, .32);
    color: #a7e8d1;
    background: rgba(33, 135, 103, .14);
}

.processing-ad-card {
    display: grid;
    place-items: stretch;
    min-height: 245px;
    padding: 12px;
}

.processing-ad-card .ad-shell,
.processing-ad-placeholder {
    display: grid;
    place-items: center;
    min-height: 100%;
    border-radius: 12px;
}

.processing-ad-placeholder {
    align-content: center;
    gap: 9px;
    border: 1px dashed rgba(139, 120, 255, .34);
    color: #aebbd0;
    text-align: center;
}

.processing-ad-placeholder small {
    max-width: 250px;
    color: #7788a1;
}

.dashboard-body .ready-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(260px, .75fr);
    align-items: center;
    gap: 20px;
    padding: 23px;
}

.dashboard-body .ready-orbit {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(91, 210, 169, .42);
    border-radius: 50%;
    background: rgba(37, 151, 115, .12);
}

.dashboard-body .ready-icon {
    color: #7ae0ba;
    font-size: 1.7rem;
}

.ready-copy h2 {
    margin: 5px 0 0;
    color: #eaf2fd;
    font-size: 1.1rem;
}

.ready-copy p {
    margin: 2px 0 0;
    color: #899ab1;
}

.dashboard-body .ready-card .before-download-ad {
    grid-column: 1 / -1;
}

.dashboard-body .ready-card .download-final,
.dashboard-body .ready-card .secondary-dashboard-button {
    grid-column: auto;
}

/* Content sections */
.dashboard-content-section {
    padding: 58px 0 0;
}

.dashboard-content-section .section-heading {
    max-width: 720px;
    margin: 0 auto 23px;
    text-align: center;
}

.dashboard-content-section .section-heading h2 {
    margin: 8px 0 5px;
    color: #e8f0fc;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.dashboard-content-section .section-heading p {
    margin: 0;
    color: #8999b0;
}

.dashboard-body .platform-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-body .platform-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 66px;
    padding: 10px 13px;
    border: 1px solid rgba(124, 149, 190, .2);
    border-radius: 12px;
    color: #b8c4d5;
    background: linear-gradient(145deg, #13223a, #0e1b2f);
    box-shadow: var(--dashboard-shadow-soft);
}

.dashboard-body .platform-logo {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(123, 147, 186, .18);
    border-radius: 9px;
    background: #091529;
}

.dashboard-body .platform-logo img {
    width: 30px;
    height: 30px;
}

.dashboard-body .platform-chip strong {
    overflow: hidden;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-body .more-dots {
    color: #aab6c8;
    font-size: .8rem;
}

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

.dashboard-body .how-card {
    min-height: 210px;
    padding: 24px;
}

.dashboard-body .how-number {
    position: absolute;
    top: 16px;
    inset-inline-end: 18px;
    color: rgba(158, 143, 255, .35);
    font-size: 1.35rem;
    font-weight: 900;
}

.dashboard-body .how-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 13px;
    color: #b3a7ff;
    background: rgba(139, 120, 255, .12);
}

.dashboard-body .how-card h3 {
    margin: 20px 0 6px;
    color: #e1ebf8;
}

.dashboard-body .how-card p {
    margin: 0;
    color: #8999b0;
    font-size: .84rem;
}

/* Ads */
.dashboard-body .ad-shell {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(127, 151, 191, .22);
    color: #8494aa;
    background: #101d31;
}

.dashboard-body .ad-label {
    position: absolute;
    z-index: 2;
    top: 6px;
    inset-inline-start: 7px;
    padding: 2px 6px;
    border: 1px solid rgba(128, 151, 190, .22);
    border-radius: 5px;
    color: #7f8fa6;
    background: #132239;
    font-size: .54rem;
    text-transform: uppercase;
}

.dashboard-body .ad-frame {
    width: 100%;
    min-height: 90px;
    border: 0;
}

.dashboard-body .direct-link-ad {
    color: #e8f0fb;
    background: linear-gradient(135deg, rgba(27, 54, 88, .78), rgba(15, 31, 53, .92));
}

.dashboard-body .direct-link-ad span,
.dashboard-body .download-ad-heading {
    color: #91a2b9;
}

.dashboard-body .footer-ad-zone {
    position: relative;
    z-index: 2;
}


.dashboard-body .global-header-ad-zone,
.dashboard-body .article-ad-zone,
.dashboard-body .home-after-features-ad,
.dashboard-body .ready-top-ad,
.dashboard-body .result-grid-ad,
.dashboard-body .processing-grid-ad {
    position: relative;
    z-index: 2;
}

.dashboard-body .desktop-ad-rail .ad-shell,
.dashboard-body .desktop-sticky-ad-shell .ad-shell {
    border-color: rgba(127, 151, 191, .3);
    background: #0d192b;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

/* Footer */
.dashboard-footer.site-footer {
    margin-top: 62px;
    padding: 34px 0 16px;
    border-top: 1px solid rgba(125, 148, 187, .19);
    color: #8999af;
    background: linear-gradient(180deg, rgba(13, 26, 45, .98), rgba(8, 18, 32, .98));
}

.dashboard-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .72fr .72fr 1.2fr;
    gap: 36px;
}

.dashboard-footer .footer-logo {
    width: 190px;
}

.dashboard-footer .footer-brand-block p,
.dashboard-footer .footer-legal-block p {
    margin: 8px 0 0;
    color: #8393a9;
    font-size: .77rem;
}

.footer-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.footer-trust-chips span {
    padding: 5px 8px;
    border: 1px solid rgba(120, 147, 188, .2);
    border-radius: 7px;
    color: #8396b2;
    background: #111f35;
    font-size: .58rem;
    font-weight: 800;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 7px;
}

.footer-column strong {
    margin-bottom: 4px;
    color: #cbd6e6;
    font-size: .8rem;
}

.footer-column a {
    color: #8f9fb5;
    font-size: .72rem;
    text-decoration: none;
}

.footer-column a:hover {
    color: #a899ff;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(122, 146, 183, .13);
    color: #667790;
    font-size: .66rem;
}

/* Legal and secondary pages */
.dashboard-body .page-section {
    padding: 42px 0;
}

.dashboard-body .prose-card {
    border: 1px solid var(--dashboard-line);
    color: #aab8cc;
    background: linear-gradient(145deg, #14243c, #0e1b2f);
    box-shadow: var(--dashboard-shadow);
}

.dashboard-body .prose-card h1,
.dashboard-body .prose-card h2,
.dashboard-body .prose-card h3 {
    color: #e8f0fb;
}

.dashboard-body .prose-card p,
.dashboard-body .prose-card li {
    color: #9aa9be;
}

.dashboard-body .prose-card a {
    color: #9d8aff;
}

/* Popups and sticky ads */
.dashboard-body .mobile-ad-shell {
    border: 1px solid rgba(139, 120, 255, .4);
    border-radius: 12px;
    background: #101d32;
    box-shadow: var(--dashboard-shadow);
}

.dashboard-body .modal-backdrop {
    background: rgba(3, 9, 19, .76);
}

.dashboard-body .modal-card {
    border: 1px solid var(--dashboard-line);
    background: #101e34;
}

.dashboard-body .modal-close,
.dashboard-body .ad-close {
    color: #dce6f4;
    background: #172841;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes dashboardSpin {
    to { transform: rotate(360deg); }
}

/* Light theme */
html[data-theme="light"] {
    --dashboard-page: #eef3fa;
    --dashboard-page-2: #f7f9fc;
    --dashboard-card: #ffffff;
    --dashboard-card-2: #f7f9fd;
    --dashboard-card-soft: #f1f5fa;
    --dashboard-line: rgba(126, 148, 181, .27);
    --dashboard-line-strong: rgba(107, 88, 225, .5);
    --dashboard-text: #17233a;
    --dashboard-muted: #64758e;
    color-scheme: light;
    background: #eef3fa;
}

html[data-theme="light"] body.dashboard-body {
    color: #17233a;
    background:
        radial-gradient(circle at 15% 4%, rgba(108, 89, 232, .1), transparent 30rem),
        radial-gradient(circle at 88% 22%, rgba(45, 150, 183, .09), transparent 28rem),
        linear-gradient(180deg, #f2f6fb, #edf3f9);
}

html[data-theme="light"] .dashboard-header.site-header {
    border-bottom-color: rgba(128, 149, 180, .24);
    background: rgba(247, 250, 254, .98);
}

html[data-theme="light"] .dashboard-header .brand img,
html[data-theme="light"] .dashboard-footer .footer-logo {
    content: url('/assets/img/logo.svg');
}

html[data-theme="light"] .dashboard-header .main-nav a {
    color: #596981;
}

html[data-theme="light"] .dashboard-header .main-nav a:hover,
html[data-theme="light"] .dashboard-header .main-nav a.active {
    color: #654fe0;
}

html[data-theme="light"] .dashboard-header .language-switch,
html[data-theme="light"] .dashboard-header .theme-toggle,
html[data-theme="light"] .dashboard-header .header-help {
    color: #4c5d76;
    background: #fff;
    border-color: rgba(126, 148, 181, .27);
}

html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .dashboard-body .panel,
html[data-theme="light"] .experience-banner,
html[data-theme="light"] .below-input-ad,
html[data-theme="light"] .service-ribbon-grid {
    border-color: rgba(125, 148, 181, .3);
    background: linear-gradient(145deg, #fff, #f7f9fd);
    box-shadow: 0 17px 48px rgba(40, 58, 87, .1);
}

html[data-theme="light"] .experience-banner {
    background: linear-gradient(90deg, #f5f2ff, #eef4ff);
}

html[data-theme="light"] .experience-copy strong,
html[data-theme="light"] .analyzer-heading h1 em {
    color: #654fe0;
}

html[data-theme="light"] .experience-copy span,
html[data-theme="light"] .analyzer-heading p,
html[data-theme="light"] .analyzer-footnote,
html[data-theme="light"] .platform-panel-note,
html[data-theme="light"] .dashboard-content-section .section-heading p,
html[data-theme="light"] .dashboard-body .how-card p {
    color: #687991;
}

html[data-theme="light"] .analyzer-heading h1,
html[data-theme="light"] .dashboard-card-head h2,
html[data-theme="light"] .dashboard-body .preview-copy h2,
html[data-theme="light"] .progress-dashboard-head h2,
html[data-theme="light"] .ready-copy h2,
html[data-theme="light"] .dashboard-content-section .section-heading h2,
html[data-theme="light"] .dashboard-body .how-card h3 {
    color: #1c2941;
}

html[data-theme="light"] .dashboard-url-field,
html[data-theme="light"] .platform-icon-item > span,
html[data-theme="light"] .dashboard-body .format-tabs,
html[data-theme="light"] .dashboard-body .quality-choice label,
html[data-theme="light"] .dashboard-home .service-ribbon-grid > div,
html[data-theme="light"] .dashboard-body .progress-steps li,
html[data-theme="light"] .dashboard-body .platform-logo {
    color: #53647d;
    background: #f2f6fb;
}

html[data-theme="light"] .dashboard-url-field input {
    color: #17233a;
}

html[data-theme="light"] .platform-icon-item small,
html[data-theme="light"] .dashboard-body .platform-chip,
html[data-theme="light"] .dashboard-body .media-meta > span {
    color: #596a82;
}

html[data-theme="light"] .dashboard-body .platform-chip,
html[data-theme="light"] .dashboard-footer.site-footer,
html[data-theme="light"] .dashboard-body .prose-card {
    border-color: rgba(125, 148, 181, .28);
    background: linear-gradient(145deg, #fff, #f5f8fc);
}

html[data-theme="light"] .dashboard-footer.site-footer {
    color: #63748b;
}

html[data-theme="light"] .footer-column strong {
    color: #25344c;
}

html[data-theme="light"] .footer-column a,
html[data-theme="light"] .dashboard-footer .footer-brand-block p,
html[data-theme="light"] .dashboard-footer .footer-legal-block p {
    color: #63748b;
}

/* Responsive */
@media (max-width: 1140px) {
    .dashboard-header .main-nav {
        gap: 18px;
    }

    .dashboard-intro-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    }

    .platform-icon-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-body .platform-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dashboard-header .main-nav {
        display: none;
    }

    .dashboard-header .brand {
        margin-inline-end: auto;
    }

    .dashboard-intro-grid,
    .dashboard-result-grid,
    .dashboard-processing-grid {
        grid-template-columns: 1fr;
    }

    .platform-icon-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .experience-banner {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .experience-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dashboard-home .service-ribbon-grid,
    .dashboard-body .how-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-body .platform-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .media-preview-body {
        grid-template-columns: 1fr;
    }

    .dashboard-body .progress-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-body .ready-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-body .ready-card .download-final,
    .dashboard-body .ready-card .secondary-dashboard-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .dashboard-body .container {
        width: min(calc(100% - 20px), var(--container));
    }

    .dashboard-header .nav-wrap {
        min-height: 62px;
        gap: 7px;
    }

    .dashboard-header .brand img {
        width: 160px;
    }

    .dashboard-header .language-switch span {
        display: none;
    }

    .dashboard-header .language-switch small {
        border-inline-start: 0;
    }

    .dashboard-header .header-help {
        display: none;
    }

    .dashboard-home {
        padding-top: 12px;
    }

    .experience-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 1.4rem;
    }

    .experience-copy strong {
        font-size: .84rem;
    }

    .experience-copy span {
        font-size: .69rem;
    }

    .analyzer-panel {
        min-height: 0;
        padding: 25px 15px;
    }

    .analyzer-heading h1 {
        font-size: 1.62rem;
    }

    .analyzer-heading h1 em {
        white-space: normal;
    }

    .analyzer-actions {
        grid-template-columns: 1fr;
    }

    .platform-panel {
        padding: 20px 14px 16px;
    }

    .platform-icon-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 13px 7px;
    }

    .ad-placeholder-line {
        flex-wrap: wrap;
        gap: 7px;
        text-align: center;
    }

    .ad-placeholder-line span:last-child {
        width: 100%;
    }

    .dashboard-result-grid .dashboard-card,
    .dashboard-processing-grid .dashboard-card {
        padding: 17px 14px;
    }

    .progress-dashboard-head {
        grid-template-columns: 1fr;
    }

    .progress-ring {
        width: 78px;
        height: 78px;
        margin-inline: auto;
    }

    .dashboard-body .progress-steps {
        grid-template-columns: 1fr;
    }

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

    .dashboard-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }
}

@media (max-width: 390px) {
    .dashboard-header .brand img {
        width: 142px;
    }

    .dashboard-header .language-switch,
    .dashboard-header .theme-toggle {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
    }

    .dashboard-header .language-switch small {
        padding-inline: 9px;
    }

    .platform-icon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ad-orbit {
        animation: none;
    }
}

/* Publisher ad integration 2.1: provider-sized output with no fake/empty boxes. */
.dashboard-processing-grid.processing-grid-no-ad {
    grid-template-columns: minmax(0, 1fr);
}

/* dashboard.css loads after app.css, so repeat the strict host safeguards here. */
.dashboard-body .strict-ad-shell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 970px;
    min-width: 0;
    min-height: 0 !important;
    height: auto;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-body .strict-ad-shell .ad-label {
    display: none;
}

.dashboard-body .strict-ad-shell[data-ad-format="native"],
.dashboard-body .strict-ad-shell[data-ad-format="native"] .adsterra-native-banner,
.dashboard-body .strict-ad-shell[data-ad-format="native"] .adsterra-native-banner > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0 !important;
    overflow: visible;
}

.dashboard-body .home-after-features-ad {
    width: 100%;
    max-width: 970px;
    margin: 24px auto 30px;
    overflow: visible;
}
