:root {
    --brand-primary: #5c6ac4;
    --brand-secondary: #ff896b;
    --bg: #f6f7fb;
    --text: #101828;
    --muted: #475467;
    --border: #e4e7ec;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-bottom: 3rem;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0f1c4d;
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
}

.site-header__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.25), transparent 60%);
    pointer-events: none;
}

.header-core {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.brand-stack {
    display: flex;
    align-items: center;
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: none;
    box-shadow: none;
}

.logo-chip.solo {
    gap: 0;
    padding: 0.4rem;
}

.logo-chip.solo .logo-symbol {
    margin: 0;
}

.logo-symbol {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    animation: brandGlow 6s ease-in-out infinite;
}

.logo-symbol img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.nav-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.nav-wrap--inline {
    flex: 1;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    white-space: nowrap;
    flex-wrap: wrap;
}

.tool-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    width: 100%;
    max-width: 210px;
}

.tool-search input {
    background: transparent;
    border: none;
    color: #fff;
    font: inherit;
    width: 130px;
}

.tool-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.tool-search button {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 700px) {
    .primary-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .primary-nav::-webkit-scrollbar {
        display: none;
    }
    .primary-nav a {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .user-bundle {
        flex-direction: column;
        align-items: stretch;
    }
    .user-bundle > a {
        width: 100%;
        justify-content: center;
    }
    .brand-stack {
        width: 100%;
        justify-content: center;
    }
    .brand-stack .logo-chip {
        margin: 0 auto;
    }
    .auth-shell {
        margin: 1rem 0;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nav-link--highlight {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.user-bundle {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.site-ads-rail {
    position: fixed;
    inset-inline-start: 1rem;
    top: 120px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
    pointer-events: none;
}

[dir="rtl"] .site-ads-rail {
    inset-inline-start: auto;
    inset-inline-end: 1rem;
}

@media (max-width: 1200px) {
    .site-ads-rail {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem 0;
        pointer-events: auto;
    }
}

.live-visitors {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.05rem 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(15, 23, 42, 0.35);
    text-decoration: none;
    white-space: nowrap;
}

.live-visitors strong {
    font-size: 0.78rem;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    min-width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(12px);
    flex: 1 1 260px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.user-name {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.user-pill small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 0.1rem;
}

.brand-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.brand-cta.secondary {
    border-color: var(--border);
    color: var(--muted);
    background: transparent;
    box-shadow: none;
}

.brand-cta.gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border: none;
}

.site-header .brand-cta {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.site-header .brand-cta.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.site-header .brand-cta.gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(92, 106, 196, 0.25);
}

.brand-cta--logout {
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    background: transparent !important;
    backdrop-filter: blur(6px);
}

.brand-cta--logout:hover,
.brand-cta--logout:focus-visible {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff;
}

.partner-ribbon {
    position: relative;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 1rem 0 1.5rem;
}

.partner-chip {
    flex: 1 1 240px;
    min-width: 220px;
    background: #fff;
    border-radius: 0.9rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(92, 106, 196, 0.2);
}

.partner-chip span {
    color: var(--muted);
}

.partner-chip strong {
    font-weight: 700;
    color: var(--brand-primary);
}


.hero {
    margin-top: -2rem;
    padding: 4rem 0 2rem;
}

.hero__shell {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--text);
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
    gap: 2rem;
    align-items: stretch;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

@media (max-width: 860px) {
    .hero__shell {
        grid-template-columns: 1fr;
    }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--brand-primary);
    border-color: rgba(92, 106, 196, 0.4);
}

.hero__content h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
}

.hero__content p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero__bullets {
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.6rem;
    padding: 0;
    list-style: none;
}

.hero__bullets li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.hero__bullets li::before {
    content: '•';
    color: var(--brand-secondary);
    font-size: 1.5rem;
}

.hero__trust {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-group {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero__panel {
    position: relative;
    background: linear-gradient(160deg, #1d4ed8, #9333ea);
    border-radius: 1.5rem;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #fff;
    overflow: hidden;
}

.hero__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 55%);
    pointer-events: none;
}

.hero__panel > * {
    position: relative;
}

.hero-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-metric span {
    color: rgba(255, 255, 255, 0.85);
}

.hero-metric strong {
    font-size: 2.4rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.hero__stats div {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 0.9rem;
    text-align: center;
    color: #fff;
}

.hero__stats span {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
}

.hero__stats small {
    display: block;
    color: rgba(255, 255, 255, 0.8);
}

.hero__panel .small-note {
    color: rgba(255, 255, 255, 0.85);
}

.hero-visual {
    margin-top: auto;
}

.hero-visual__box {
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.3rem;
    padding: 1.2rem;
    overflow: hidden;
    animation: floatBox 4s ease-in-out infinite;
}

.hero-visual__label {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-visual__dots {
    display: flex;
    gap: 0.35rem;
    margin: 0.8rem 0;
}

.hero-visual__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: pulseDot 1.6s ease infinite;
}

.hero-visual__dots span:nth-child(2) { animation-delay: 0.2s; }
.hero-visual__dots span:nth-child(3) { animation-delay: 0.4s; }

.hero-visual__progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.hero-visual__progress span {
    display: block;
    height: 100%;
    width: 80%;
    background: linear-gradient(135deg, #facc15, #f97316);
    animation: sweep 2.4s ease infinite;
}

.hero-visual__lights {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.hero-visual__lights span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 60%);
    animation: blink 3s ease-in-out infinite;
}

.hero-visual__lights span:last-child {
    align-self: flex-end;
    animation-delay: 1.4s;
}

.hero-visual__caption {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero__trust {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
}

.text-suite {
    margin-top: 3rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.text-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.text-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tool-card.compact {
    padding: 1.1rem;
}

.tool-metrics {
    margin: 1.5rem 0;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: #fff;
    display: inline-flex;
    gap: 1.5rem;
}

.tool-metrics__label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.tool-metrics strong {
    font-size: 1.3rem;
}

.seo-suite {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(15, 28, 77, 0.05), rgba(92, 106, 196, 0.08));
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.seo-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.seo-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.media-suite {
    margin-top: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.media-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.media-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dev-suite {
    margin-top: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.dev-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dev-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.design-suite {
    margin-top: 2rem;
    background: linear-gradient(120deg, rgba(92, 106, 196, 0.08), rgba(15, 28, 77, 0.2));
    border-radius: 1.5rem;
    border: 1px solid rgba(92, 106, 196, 0.3);
    padding: 2rem;
    color: #fff;
}

.design-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.design-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.design-suite h2 {
    color: #fff;
}

.design-suite p {
    color: rgba(255, 255, 255, 0.8);
}

.design-suite .badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.file-suite {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(15, 28, 77, 0.02), rgba(255, 137, 107, 0.08));
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.file-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.file-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.calc-suite {
    margin-top: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.calc-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.calc-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.business-suite {
    margin-top: 2rem;
    background: #fefefe;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.business-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.business-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.cyber-suite {
    margin-top: 2rem;
    background: #f8f9ff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.cyber-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cyber-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.random-suite {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.08));
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.random-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.random-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-suite {
    margin-top: 2rem;
    background: #0f1c4d;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.premium-suite::after {
    content: '';
    position: absolute;
    inset: 10% 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
    pointer-events: none;
}

.premium-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.premium-suite__grid {
    position: relative;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-card {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.premium-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.premium-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.premium-card .brand-cta.secondary {
    margin-top: auto;
    align-self: flex-start;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

.premium-card strong {
    font-size: 1.2rem;
}

.premium-category-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-category-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1.2rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.premium-category-card header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.premium-category-card header span {
    font-size: 1.8rem;
}

.premium-category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.premium-category-card .brand-cta.secondary {
    width: fit-content;
}

.premium-hero {
    margin: 2rem 0;
    border-radius: 1.8rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #0f1c4d, #2d1b69);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
}

.premium-hero__actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.premium-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.premium-hero__stats div {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.premium-perks {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-perk-card {
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.2rem;
    background: #fff;
    animation: floatyCard 8s ease-in-out infinite;
}

.premium-suite-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.premium-suite-card {
    border-radius: 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f4f6ff);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 22px 35px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
}

.premium-suite-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(92, 106, 196, 0.1), transparent 55%);
    pointer-events: none;
}

.premium-suite-card header {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    position: relative;
}

.premium-suite-card header span {
    font-size: 1.6rem;
}

.premium-suite-card ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.premium-suite-card li::marker {
    color: var(--brand-secondary);
}

.premium-live {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.live-card {
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(92, 106, 196, 0.8));
    color: #fff;
    padding: 1.4rem;
    box-shadow: 0 22px 35px rgba(15, 23, 42, 0.25);
}

.live-card small {
    display: block;
    opacity: 0.8;
}

.premium-toolboard {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.toolboard-card {
    border-radius: 1.3rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.3rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.06);
}

.toolboard-card ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: var(--muted);
}

.toolboard-card .brand-cta {
    align-self: flex-start;
}

.premium-chat-highlight {
    margin-top: 2rem;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8f9ff;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.premium-chat-highlight ul {
    margin: 0.5rem 0 0;
    padding-inline-start: 1.2rem;
}

.premium-chat-highlight__cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.premium-featured {
    margin-top: 2rem;
}

.premium-featured__grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-featured-card {
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.2rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: space-between;
}

.premium-upgrade-panel {
    margin-top: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.8rem;
    background: #fff;
}

.premium-upgrade-panel form {
    margin-top: 1rem;
}

.premium-upgrade-panel button {
    width: 100%;
    max-width: 260px;
}

.brand-cta.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.results--inline {
    margin-top: 1rem;
}

.premium-lux-hero {
    position: relative;
    border-radius: 2rem;
    padding: clamp(2rem, 5vw, 3rem);
    overflow: hidden;
    margin: 2rem 0 3rem;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 60%), linear-gradient(135deg, #0f1c4d, #211357 55%, #412a8b);
    color: #fff;
}

.premium-lux-hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 40%);
    pointer-events: none;
}

.premium-lux-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    align-items: stretch;
}

.premium-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--brand-primary);
    display: inline-block;
    margin-bottom: 1rem;
}

.premium-lux-hero .premium-eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.premium-hero-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.premium-hero-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.premium-hero-list li::before {
    content: '—';
    color: rgba(255, 255, 255, 0.65);
}

.premium-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.premium-plan-card {
    border-radius: 1.6rem;
    background: rgba(7, 9, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.premium-plan-card__header strong {
    font-size: 1.5rem;
    display: block;
}

.premium-plan-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.premium-plan-card__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

.premium-plan-card small {
    color: rgba(255, 255, 255, 0.75);
}

.premium-lux-statrail {
    display: grid;
    gap: 0.8rem;
}

.statrail-card {
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.statrail-card strong {
    font-size: 1.5rem;
}

.premium-pillars {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.premium-pillars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-pillars__card {
    border-radius: 1.4rem;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.premium-pillars__icon {
    font-size: 1.8rem;
}

.premium-stack-hub header,
.premium-suite-gallery header,
.premium-compare header,
.premium-journey header,
.premium-support header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.premium-stack-hub__grid,
.premium-suite-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.stack-card,
.suite-card,
.support-card {
    border-radius: 1.4rem;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stack-card ul,
.suite-card ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.suite-card__icon {
    font-size: 2rem;
}

.suite-card header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.suite-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.suite-card__cta::after {
    content: '↗';
}

.premium-compare__table {
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.premium-compare__head,
.premium-compare__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    align-items: center;
}

.premium-compare__head {
    background: #f3f4fd;
    font-weight: 700;
}

.premium-compare__row:nth-child(even) {
    background: rgba(15, 23, 42, 0.02);
}

.premium-journey__timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.journey-card {
    border-radius: 1.3rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #0f1c4d, #2b1d77);
    color: #fff;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.journey-card__badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

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

.support-card {
    background: #f9fafc;
}

.premium-upgrade-panel.luxe {
    margin-top: 3rem;
    border-radius: 1.8rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    background: linear-gradient(135deg, #0f1c4d, #1f2761);
    color: #fff;
    border: none;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.3);
}

.premium-upgrade-panel__form form,
.premium-upgrade-panel__form p {
    margin: 0;
}

@media (max-width: 720px) {
    .premium-lux-hero__grid {
        grid-template-columns: 1fr;
    }
    .premium-plan-card__list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .premium-compare__head,
    .premium-compare__row {
        grid-template-columns: 1.3fr 1fr 1fr;
    }
}

.ai-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ai-image-grid figure {
    margin: 0;
    background: #fff;
    border-radius: 1rem;
    padding: 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-image-grid img {
    width: 100%;
    border-radius: 0.8rem;
    object-fit: cover;
}

.ai-image-grid figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    word-break: break-word;
}

.dashboard {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard__hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(15, 28, 77, 0.9), rgba(92, 106, 196, 0.65));
    border-radius: 1.8rem;
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.dashboard__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.dashboard__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.dashboard__workbench {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.workbench-card {
    border-radius: 1.2rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 180px;
    box-shadow: 0 15px 28px rgba(15, 23, 42, 0.07);
}

.workbench-card h3 {
    margin: 0;
}

.workbench-card--chat {
    background: linear-gradient(135deg, #0f1c4d, #3b1c82);
    color: #fff;
}

.workbench-card--chat .brand-cta {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.premium-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.premium-tool-grid--compact {
    gap: 0.6rem;
}

.premium-tool-grid--compact .premium-tool-pill {
    border-radius: 1rem;
    padding: 0.5rem 0.9rem;
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
}

.premium-tool-pill {
    border-radius: 999px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    text-decoration: none;
    color: inherit;
    gap: 0.6rem;
}

.premium-tool-pill small {
    color: var(--muted);
    font-size: 0.85rem;
    display: block;
}

.stat-card {
    border-radius: 1.2rem;
    padding: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-card strong {
    font-size: 1.6rem;
}

.dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.dashboard__panel {
    border-radius: 1.3rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.6rem;
    background: #fff;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    animation: floatyCard 10s ease-in-out infinite;
}

.dashboard__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(92, 106, 196, 0.08), transparent 55%);
    pointer-events: none;
}

.dashboard__panel header {
    margin-bottom: 1rem;
}

.credit-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.credit-package {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.credit-package button {
    margin-top: auto;
    width: 100%;
}
.credit-package .brand-cta {
    width: 100%;
    justify-content: center;
}

.admin-ads form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.ad-slot-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    background: #f8f9ff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ad-slot-card label {
    font-size: 0.85rem;
    color: var(--muted);
}

.ad-slot-card textarea {
    min-height: 90px;
}

.ad-slot-card .inline-checkbox {
    align-items: center;
    color: var(--muted);
}

.ad-slot-card__size {
    font-size: 0.85rem;
    color: var(--muted);
}

.chat-shell {
    border-radius: 1.8rem;
    border: 1px solid rgba(92, 106, 196, 0.35);
    background: linear-gradient(135deg, rgba(15, 28, 77, 0.88), rgba(30, 64, 175, 0.72));
    box-shadow: 0 35px 60px rgba(15, 23, 42, 0.28);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.chat-shell > * {
    position: relative;
    z-index: 1;
}

.chat-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.15), transparent 55%);
    pointer-events: none;
}

@media (max-width: 1100px) {
    .chat-shell {
        padding: 1rem;
    }
}

.chat-history__header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.chat-log {
    padding: 1.2rem;
    max-height: 560px;
    min-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.45);
}

.chat-message {
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.35);
    color: #e2e8f0;
    backdrop-filter: blur(8px);
    position: relative;
}

.chat-message::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.4);
    opacity: 0;
    animation: glowPulse 6s ease-in-out infinite;
    pointer-events: none;
}

.chat-message--user {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(129, 140, 248, 0.6);
    align-self: flex-end;
}

.chat-message--assistant {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.35);
}

.chat-message--loading {
    opacity: 0.7;
    font-style: italic;
}

.chat-message__role {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 0.2rem;
}

.chat-message__content p {
    margin: 0 0 0.6rem;
}

.chat-message__content img {
    max-width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.8rem;
}

.chat-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    text-decoration: none;
}

.chat-attachment-chip:hover {
    background: rgba(255, 255, 255, 0.18);
}

.chat-attachment-chip__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 0.8rem;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 700;
}

.chat-attachment-chip small {
    color: rgba(226, 232, 240, 0.8);
    display: block;
    font-size: 0.78rem;
}

.chat-attachment-chip strong {
    display: block;
}

.chat-attachment-chip--preview {
    border-style: dashed;
    background: rgba(15, 23, 42, 0.3);
    width: 100%;
    justify-content: space-between;
}

.chat-attachment-chip--preview button {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-inline-start: auto;
}

.chat-placeholder {
    color: rgba(226, 232, 240, 0.8);
    text-align: center;
    margin: 0;
}

.chat-composer {
    padding: 1.5rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: #fff;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.2rem 1.2rem;
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.9rem;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.8);
    display: inline-block;
    animation: blink 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-form textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.9rem;
    font: inherit;
    min-height: 140px;
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
}

.chat-form textarea::placeholder {
    color: rgba(226, 232, 240, 0.7);
}

.chat-form__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.chat-form button {
    margin-top: 0;
}

.chat-form button[type="submit"] {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(92, 106, 196, 0.4);
}

.chat-form button[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.chat-attachment-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-attachment-button span {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.chat-attachment-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-attachment-preview {
    display: none;
    align-items: center;
    margin: 0.4rem 0;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.chat-attachment-preview:not([hidden]) {
    display: flex;
}

.chat-attachment-badge {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    width: 130px;
    height: 90px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(15, 23, 42, 0.6);
}

.chat-attachment-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-attachment-remove {
    position: absolute;
    top: 6px;
    left: 6px;
    border: none;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
}

.chat-attachment-thumb {
    margin: 0.4rem 0 0;
}

.chat-attachment-thumb img {
    width: 160px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-attachment-thumb figcaption {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.85);
}

.chat-typing[hidden],
.chat-attachment-preview[hidden] {
    display: none !important;
}

.chat-message__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.75);
}

.chat-message__meta time {
    font-family: 'Fira Code', 'Courier New', monospace;
}

.chat-copy {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.75rem;
}

.chat-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

.design-workbench {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
    gap: 1.5rem;
}

.design-panel {
    border-radius: 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.design-panel header h2 {
    margin: 0 0 0.2rem;
}

.design-panel header p {
    margin: 0;
    color: var(--muted);
}

.design-panel.design-preview {
    background: linear-gradient(135deg, #0f172a, #1d2a5c);
    color: #fff;
}

.design-panel.design-preview header p {
    color: rgba(255, 255, 255, 0.75);
}

.style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.style-chips button {
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 999px;
    background: #f4f6ff;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font: inherit;
    color: var(--text);
}

.element-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.4rem;
    border: 1px dashed rgba(15, 23, 42, 0.2);
    border-radius: 1rem;
    padding: 0.8rem;
}

.element-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.design-placeholder,
.design-loader {
    border-radius: 1.2rem;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    padding: 1.2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.design-loader {
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes glowPulse {
    0% { opacity: 0; }
    50% { opacity: 0.45; }
    100% { opacity: 0; }
}

@keyframes brandGlow {
    0% {
        box-shadow: 0 8px 25px rgba(15, 23, 42, 0.35), 0 0 12px rgba(92, 106, 196, 0.2);
    }
    50% {
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45), 0 0 28px rgba(92, 106, 196, 0.5);
    }
    100% {
        box-shadow: 0 8px 25px rgba(15, 23, 42, 0.35), 0 0 12px rgba(92, 106, 196, 0.2);
    }
}

.design-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 0.8rem;
}

.design-main {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-main img {
    max-width: 100%;
    border-radius: 1rem;
}

.design-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.design-thumbs img {
    border-radius: 0.8rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.design-meta {
    margin-top: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(15, 23, 42, 0.35);
}

.design-meta span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

.design-meta code {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.6rem;
    border-radius: 0.6rem;
    color: #fffcf2;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

.design-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.design-print-preview {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.print-preview-card,
.print-preview-sign,
.print-preview-note {
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(15, 23, 42, 0.4);
    padding: 1rem;
    color: #fff;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.print-preview-card {
    background-size: cover;
    background-position: center;
}

.print-preview-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), transparent);
    border-radius: inherit;
}

.print-preview-card span,
.print-preview-sign span {
    position: relative;
    font-weight: 600;
}

.print-preview-sign img {
    width: 100%;
    border-radius: 0.8rem;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.print-preview-note h4 {
    margin: 0 0 0.4rem;
}

.print-preview-note ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1100px) {
    .design-workbench {
        grid-template-columns: 1fr;
    }
    .design-stage {
        grid-template-columns: 1fr;
    }
}
.data-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.data-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
    padding-bottom: 0.4rem;
}

.analytics-metrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}

.analytics-metrics li {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: #f8fafc;
}

.analytics-metrics strong {
    font-size: 1.4rem;
}

.analytics-metrics span {
    color: var(--muted);
    font-size: 0.85rem;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.quick-actions button,
.quick-actions a {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
    padding: 0.45rem 0.9rem;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quick-actions a {
    text-decoration: none;
}

.quick-actions button:hover,
.quick-actions a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.timeline li span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 6px rgba(92, 106, 196, 0.15);
}

.glow-panel {
    background: linear-gradient(135deg, rgba(92, 106, 196, 0.08), rgba(15, 23, 42, 0.04));
    border-radius: 1.5rem;
    border: 1px solid rgba(92, 106, 196, 0.12);
    padding: 1.5rem;
}

.table-scroll {
    overflow-x: auto;
}

.table-scroll table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table-scroll th,
.table-scroll td {
    padding: 0.55rem;
    text-align: right;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-dashboard .dashboard__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-actions form {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.admin-actions button {
    padding: 0.4rem 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(92, 106, 196, 0.4);
    background: rgba(92, 106, 196, 0.1);
    color: #0f1c4d;
    font-size: 0.8rem;
    cursor: pointer;
}

.admin-actions input,
.admin-actions select {
    border-radius: 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.color-swatch {
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.color-swatch__code {
    font-weight: 700;
    font-size: 1.1rem;
}

.color-swatch__meta {
    font-size: 0.9rem;
}

.random-output-list {
    display: grid;
    gap: 0.5rem;
}

.random-output-list li {
    list-style: none;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.15);
}

.random-picker-result {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fef9c3;
    border: 1px solid rgba(250, 204, 21, 0.4);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.tool-card {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card h3 {
    margin: 0;
    font-size: 1rem;
}

.tool-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.tool-card a {
    margin-top: auto;
    color: #fff;
    background: var(--brand-primary);
    text-align: center;
    padding: 0.45rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
}

.section-title__text h2 {
    margin: 0;
}

.section-title__text p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.insight-card {
    background: #fff;
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: inset 0 0 0 1px rgba(92, 106, 196, 0.05);
}

.insight-card h3 {
    margin: 0;
}

.insight-card p {
    color: var(--muted);
}

.seo-strip {
    background: #fff;
    border-radius: 1.2rem;
    border: 1px solid rgba(92, 106, 196, 0.2);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.seo-strip h3 {
    margin: 0 0 0.6rem;
}

.seo-strip p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.tool-layout {
    background: linear-gradient(135deg, #ffffff, #f4f6ff);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 1.8rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.09);
    position: relative;
    overflow: hidden;
}

.tool-layout::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(92, 106, 196, 0.12), transparent 45%);
    pointer-events: none;
}

.tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 960px) {
    .tool-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: start;
    }
}

.tool-panel {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.tool-layout form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.html-viewer-panel,
.html-viewer-preview {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.html-viewer-preview {
    position: relative;
}

.html-viewer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.html-viewer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.html-viewer-outline {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.html-viewer-meta {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.html-viewer-outline ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.html-viewer-outline li {
    background: white;
    border-radius: 0.6rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
}

.html-viewer-preview iframe {
    width: 100%;
    min-height: 420px;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: #0f172a;
}

.html-viewer-code-block {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 1rem;
    padding: 1rem;
    color: white;
    position: relative;
}

.html-viewer-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.html-viewer-code-block pre {
    max-height: 280px;
    overflow: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

.html-viewer-toast {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.html-viewer-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.html-viewer-explainer,
.html-viewer-faq {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 1.2rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    margin-top: 2rem;
}

.html-viewer-faq article + article {
    margin-top: 1rem;
}

.tool-form fieldset {
    border: 1px dashed var(--border);
    border-radius: 0.8rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-form legend {
    font-weight: 700;
    padding: 0 0.25rem;
}

.preview-stage,
.radius-preview,
.typography-preview,
.glass-preview {
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.animation-stage {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(92, 106, 196, 0.08), rgba(15, 23, 42, 0.04));
}

.animation-box {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: var(--brand-secondary);
}

.radius-preview {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radius-preview__box {
    width: 220px;
    height: 140px;
    background: linear-gradient(135deg, #5c6ac4, #a5b4fc);
}

.radius-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}

.radius-values span {
    display: inline-flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.6rem;
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.08);
}

.typography-preview {
    background: #0f172a;
    color: #fff;
    display: grid;
    gap: 1rem;
}

.typography-sample h2,
.typography-sample p {
    margin: 0;
}

.typography-scale {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.typography-scale li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 0.3rem;
}

.typography-scale span {
    color: rgba(255, 255, 255, 0.85);
}

.gradient-output {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gradient-card {
    border-radius: 1.1rem;
    padding: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #fff;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.gradient-card code {
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.glass-preview {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    position: relative;
    padding: 3rem 2rem;
    overflow: hidden;
}

.glass-preview::after {
    content: '';
    position: absolute;
    inset: 20% 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 60%);
    filter: blur(30px);
    pointer-events: none;
}

.glass-card {
    width: 260px;
    padding: 1.5rem;
    border-radius: 1.2rem;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    position: relative;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.glass-card.neumorphic {
    background: #f9fafb;
    color: var(--text);
    border: none;
    box-shadow: 15px 15px 30px rgba(15, 23, 42, 0.1), -15px -15px 30px #fff;
}

.code-snippet {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 1rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-output {
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-output h2,
.ai-output h3 {
    margin: 0.4rem 0;
}

.ai-output ul {
    margin: 0;
    padding-inline-start: 1.2rem;
}

.tool-layout label {
    font-weight: 600;
}

.tool-layout input,
.tool-layout textarea,
.tool-layout button,
.tool-layout select {
    font: inherit;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.tool-layout button {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 18px 35px rgba(92, 106, 196, 0.3);
}

.tool-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-results-grid {
    display: grid;
    gap: 2rem;
}

.profile-result {
    border-radius: 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
}

.profile-result__header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(92, 106, 196, 0.12);
    color: #0f172a;
    font-weight: 700;
}

.profile-url {
    font-size: 0.85rem;
    color: var(--muted);
    direction: ltr;
    text-align: left;
    overflow-wrap: anywhere;
}

.speedtest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.5rem;
}

.speedtest-panel {
    border-radius: 1.4rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.09);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.speedtest-panel.primary {
    background: linear-gradient(140deg, #ffffff, #eff2ff);
}

.speedtest-panel.secondary {
    background: rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(6px);
}

.speedtest-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.speedtest-eyebrow {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-dot {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text);
    font-weight: 600;
}

.status-dot[data-state="running"] {
    background: rgba(234, 179, 8, 0.2);
    color: #a16207;
}

.status-dot[data-state="error"] {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.status-dot[data-state="complete"] {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.speed-meters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.speed-meter {
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.speed-meter small {
    display: block;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.speed-meter strong {
    font-size: 2.1rem;
    display: block;
}

.speed-meter .unit {
    color: var(--muted);
}

.speedtest-trigger {
    border: none;
    border-radius: 1rem;
    padding: 0.95rem 1.2rem;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(130deg, var(--brand-primary), var(--brand-secondary));
    box-shadow: 0 25px 35px rgba(92, 106, 196, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.speedtest-trigger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.speedtest-trigger:not(:disabled):hover {
    transform: translateY(-1px);
}

.speedtest-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.speedtest-export {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.speedtest-export[hidden] {
    display: none !important;
}

.speedtest-controls label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.speedtest-controls select {
    margin-top: 0.25rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.65rem 0.8rem;
    font: inherit;
    background: #fff;
    min-width: 220px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.faq-card {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem;
    background: rgba(248, 249, 255, 0.8);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.05);
}

.faq-card h4 {
    margin: 0 0 0.4rem;
}

.faq-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.speedtest-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.speed-hints {
    margin: 0;
    padding-inline-start: 1.4rem;
    color: var(--muted);
    line-height: 1.7;
}

.speed-history {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    min-height: 120px;
    border: 1px dashed rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.history-entry {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    gap: 0.5rem;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
    padding-bottom: 0.35rem;
}

.history-entry strong {
    font-family: 'Fira Code', 'Courier New', monospace;
}

.history-entry small {
    color: var(--muted);
}

.speed-share-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.share-card,
.trend-card {
    background: #fff;
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.2rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.share-card header,
.trend-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.share-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.share-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.share-badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.share-field {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.share-field input {
    flex: 1;
    border-radius: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 0.55rem 0.8rem;
    font: inherit;
    background: rgba(15, 23, 42, 0.03);
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}

.trend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.sparkline {
    width: 100%;
    height: 50px;
    color: var(--brand-primary);
}

.speed-recent ul {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--muted);
}

.speed-recent li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .speedtest-grid {
        grid-template-columns: 1fr;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        margin: 1.5rem auto;
        max-width: 640px;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        margin: 1rem auto;
        padding: 0;
    }
}

.auth-shell {
    margin: 2rem auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.5rem;
    position: relative;
    padding: 0 1rem;
    max-width: 1080px;
}

.auth-shell::after {
    content: '';
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle at 20% 20%, rgba(92, 106, 196, 0.15), transparent 45%);
    filter: blur(30px);
    pointer-events: none;
}

.hero-auth {
    align-items: stretch;
}

.auth-panel {
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, #ffffff, #f4f6ff);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.auth-panel--promo {
    background: linear-gradient(160deg, rgba(15, 28, 77, 0.95), rgba(92, 106, 196, 0.7));
    color: #fff;
}

.auth-panel--promo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 50%);
    mix-blend-mode: screen;
}

.auth-panel--form {
    background: linear-gradient(145deg, #ffffff, #fdf7ff);
}

.auth-panel--promo h3 {
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.auth-form input {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
    border-color: rgba(92, 106, 196, 0.6);
    box-shadow: 0 0 0 3px rgba(92, 106, 196, 0.15);
    outline: none;
}

.auth-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    align-items: center;
}

.auth-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.auth-stat-row div {
    background: rgba(92, 106, 196, 0.08);
    border-radius: 1rem;
    padding: 0.9rem;
    text-align: center;
    border: 1px solid rgba(92, 106, 196, 0.15);
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.auth-feature-list li {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 0.7rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-feature-list li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-feature-list li:hover::after {
    opacity: 1;
}

.auth-feature-list span {
    font-size: 1.2rem;
}

.auth-side__cta {
    margin-top: auto;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.15);
}

.tool-hero {
    background: linear-gradient(135deg, rgba(92, 106, 196, 0.1), rgba(255, 137, 107, 0.15));
    border-radius: 1.2rem;
    padding: 1.5rem;
    border: 1px solid rgba(92, 106, 196, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}

.tool-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(92, 106, 196, 0.4);
    font-weight: 600;
}

.tool-hero__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.tool-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tool-form.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.tool-form.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    animation: fadePulse 1.5s ease infinite;
}

.tool-form.is-loading::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(92, 106, 196, 0.3);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.9s linear infinite;
    z-index: 2;
}

.tool-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.progress-block {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.9rem;
    padding: 1rem;
    background: #fdfdff;
}

.progress-block strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.progress-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(92, 106, 196, 0.2);
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    width: var(--percent, 50%);
    transform-origin: left;
    transform: scaleX(0);
    animation: fillBar 0.9s ease forwards;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.badge-status.fast {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.badge-status.average {
    background: rgba(251, 191, 36, 0.25);
    color: #92400e;
}

.badge-status.slow {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

.meta-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.serp-preview {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem;
    background: #fff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.serp-preview .serp-url {
    color: #0b5b44;
    font-size: 0.9rem;
    margin: 0 0 0.4rem;
}

.serp-preview h4 {
    margin: 0 0 0.3rem;
    color: #1a0dab;
    font-weight: 600;
}

.serp-preview p {
    margin: 0;
    color: #4a4d58;
    line-height: 1.5;
}

.meta-insights {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem;
    background: #fbfbff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.meta-insights ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.meta-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

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

.seo-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.seo-card {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem;
    background: #fff;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.seo-card h4 {
    margin: 0 0 0.4rem;
}

 .results {
     background: linear-gradient(135deg, #ffffff, #f0f4ff);
     border-radius: 1.2rem;
     padding: 1.4rem;
     margin-top: 1.2rem;
     border: 1px solid rgba(15, 23, 42, 0.08);
     box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
     position: relative;
     overflow: hidden;
 }

 .results::before {
     content: '';
     position: absolute;
     inset: 0;
     background: radial-gradient(circle at 20% 0%, rgba(92, 106, 196, 0.15), transparent 55%);
     pointer-events: none;
 }

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

 .results h3 {
     margin-top: 0;
     margin-bottom: 0.8rem;
     font-size: 1.15rem;
 }

.results table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.results table th,
.results table td {
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.4rem 0.6rem;
    text-align: right;
}

.results table th {
    background: #f5f6fb;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.results-card {
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem;
    background: #fff;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.results-card h4 {
    margin: 0 0 0.2rem;
}

.results-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.domain-metric-bar {
    margin: 1rem 0;
}

.domain-metric-bar__label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.domain-metric-bar__track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    position: relative;
}

.domain-metric-bar__track span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-inline-end: 0.6rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.keyword-metric-pill {
    margin-top: 0.6rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.9rem;
    background: rgba(92, 106, 196, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.metric-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.metric-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
    padding-bottom: 0.3rem;
    font-size: 0.95rem;
}

.results--error {
    background: #fef2f2;
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: #991b1b;
}

.results--loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.results--placeholder {
    background: rgba(15, 23, 42, 0.03);
    border: 1px dashed rgba(15, 23, 42, 0.1);
    color: var(--muted);
}

.encode-shell {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.encode-tabs {
    display: inline-flex;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.encode-tabs button {
    border: none;
    background: transparent;
    padding: 0.4rem 1rem;
    font: inherit;
    cursor: pointer;
    color: var(--muted);
}

.encode-tabs button.is-active {
    background: var(--brand-primary);
    color: #fff;
}

.results-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.6rem;
}

.query-builder {
    margin-top: 2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.2rem;
    background: #fff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.qb-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.qb-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 0.6rem;
    align-items: center;
}

.qb-row input {
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 0.6rem;
    padding: 0.5rem 0.6rem;
    font: inherit;
}

.qb-remove {
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-radius: 0.6rem;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.qb-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.grammar-results {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.score-chip {
    align-self: flex-start;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
    font-weight: 600;
}

.quick-fix textarea {
    width: 100%;
}

.insight-list {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

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

.paraphrase-results {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.paraphrase-preview {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.8rem;
    padding: 0.8rem;
    background: rgba(15, 23, 42, 0.015);
    line-height: 1.7;
}

.paraphrase-preview mark {
    background: rgba(255, 213, 128, 0.6);
    padding: 0 0.1rem;
}

.summary-results {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.takeaway-list {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.keyword-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.keyword-chips span {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
}
.case-results {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.case-variants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
}

.case-variants article {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.8rem;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #fff;
}

.case-variants code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 0.6rem;
    padding: 0.3rem 0.4rem;
    word-break: break-all;
}

.case-variants button {
    align-self: flex-start;
    border: none;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 0.6rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

.lorem-results p {
    line-height: 1.7;
}

.reverse-results,
.emoji-results,
.binary-results,
.duplicate-results,
.random-sentence-results,
.density-results,
.plagiarism-results,
.rng-results,
.username-results {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.reverse-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
}

.reverse-columns pre {
    background: rgba(15, 23, 42, 0.05);
    border-radius: 0.6rem;
    padding: 0.6rem;
    min-height: 100px;
    overflow-x: auto;
}

.emoji-map {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.emoji-map th,
.emoji-map td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.4rem;
    text-align: right;
}

.binary-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}

.binary-results textarea {
    min-height: 140px;
}

.duplicate-results details {
    margin-top: 0.5rem;
}

.history-panel {
    margin-top: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.history-panel ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    line-height: 1.7;
    color: var(--muted);
}

.density-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.density-list article {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.8rem;
    padding: 0.7rem;
    background: #fff;
}

.density-list header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.ad-slot {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    padding: 0.8rem;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    pointer-events: auto;
}

.ad-slot__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.ad-slot__body {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot__body img {
    max-width: 100%;
    border-radius: 0.6rem;
}

.ad-slot__placeholder {
    font-size: 0.85rem;
    color: var(--muted);
}

.plagiarism-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
}

.rng-results ul li strong {
    font-weight: 700;
}

.username-results ul li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.8rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
}

.download-btn {
    margin-top: 0.8rem;
    display: inline-flex;
}

.file-drop-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-drop-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    border: 1px dashed rgba(15, 23, 42, 0.4);
    border-radius: 0.8rem;
    padding: 0.45rem 0.75rem;
}

.file-drop-container.dragover .file-drop-hint {
    border-color: var(--brand-primary);
    background: rgba(92, 106, 196, 0.08);
}

.file-drop-hint .brand-cta {
    padding: 0.35rem 0.9rem;
}

.file-upload {
    position: relative;
    border: 1px dashed rgba(15, 23, 42, 0.4);
    border-radius: 0.9rem;
    padding: 0.8rem;
    text-align: center;
    color: var(--muted);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.file-upload.dragover {
    border-color: var(--brand-primary);
    background: rgba(92, 106, 196, 0.08);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-list {
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.file-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
}

.serp-preview {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.serp-url {
    color: #0f9d58;
    font-size: 0.9rem;
}

.serp-title {
    color: #1a0dab;
    font-size: 1.1rem;
    margin: 0.2rem 0;
}

.serp-description {
    color: #4b5563;
    margin: 0.3rem 0 0;
}

.speed-tool .speed-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.speed-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.score-panel {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #fff;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 10px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.score-panel.grade-fast .score-circle {
    border-color: #22c55e;
}

.score-panel.grade-average .score-circle {
    border-color: #fbbf24;
}

.score-panel.grade-slow .score-circle {
    border-color: #ef4444;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card {
    background: #fff;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    padding: 1rem;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.recommendations ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    direction: rtl;
}

.recommendations li {
    margin-bottom: 0.4rem;
}

.diff-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.diff-item {
    padding: 0.6rem 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.diff-item.diff-add {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}

.diff-item.diff-remove {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.diff-item.diff-same {
    opacity: 0.6;
}

.badge {
    display: inline-block;
    background: rgba(92, 106, 196, 0.12);
    color: var(--brand-primary);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.badge.premium {
    background: rgba(255, 137, 107, 0.18);
    color: var(--brand-secondary);
    font-weight: 700;
}

.badge.live {
    background: rgba(34, 197, 94, 0.18);
    color: #065f46;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.badge.live .badge-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.badge.live .badge-live-count {
    color: #fff;
    font-weight: 800;
}

.site-footer {
    background: #0f1c4d;
    color: #fff;
    margin-top: 3rem;
    padding: 4rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -25px 45px rgba(15, 23, 42, 0.35);
}

.site-footer__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25), transparent 55%);
    pointer-events: none;
}

.footer-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.footer-brand .logo-chip {
    background: rgba(255, 255, 255, 0.15);
}

.footer-brand .tagline,
.footer-brand .small-note {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.6rem;
}

.footer-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-metrics div {
    min-width: 120px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.25);
}

.footer-metrics small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.footer-metrics strong {
    font-size: 1.4rem;
}

.footer-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-footer .brand-cta {
    box-shadow: none;
}

.site-footer .brand-cta.secondary {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer-nav strong {
    display: block;
    margin-bottom: 0.8rem;
    color: #fff;
}

.footer-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-seo {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.1rem;
    line-height: 1.7;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-seo strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #fff;
}

.footer-ribbon {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.76);
}

.footer-legal a {
    color: #fff;
}

.small-note {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .header-core {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    .nav-wrap {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .header-core {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .primary-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-link {
        width: auto;
        background: rgba(255, 255, 255, 0.12);
    }
    .user-bundle {
        width: 100%;
        justify-content: space-between;
    }
    .user-pill {
        flex: 1;
    }
    .partner-chip {
        flex: 1 1 100%;
    }
    .footer-hero {
        grid-template-columns: 1fr;
    }
    .footer-actions {
        justify-content: flex-start;
    }
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .tool-search {
        width: 100%;
        max-width: 100%;
    }
    .tool-search input {
        width: 100%;
    }
    .dashboard__hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .premium-hero {
        grid-template-columns: 1fr;
    }
    .premium-chat-highlight {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-core {
        grid-template-columns: 1fr auto;
    }
    .brand-stack {
        align-items: flex-start;
    }
    .tagline {
        font-size: 0.9rem;
    }
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

@keyframes fillBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes floatBox {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes sweep {
    0% { transform: translateX(-80%); }
    100% { transform: translateX(20%); }
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes floatyCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes shimmerLine {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
.ai-chat {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-chat__header {
    background: linear-gradient(135deg, rgba(15, 28, 77, 0.92), rgba(99, 102, 241, 0.65));
    border-radius: 1.8rem;
    padding: 2rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.ai-chat__header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.ai-chat__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
}

.ai-chat__header h1 {
    margin: 0.4rem 0 0.4rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.ai-chat__header p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
}

.ai-chat__header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ai-chat__header-actions .brand-cta.secondary {
    background: #fff;
    color: #0f1c4d;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.ai-chat__header-actions .brand-cta.secondary:hover,
.ai-chat__header-actions .brand-cta.secondary:focus-visible {
    background: #f4f6ff;
    color: #0b1338;
}

.ai-chat__limit {
    background: rgba(15, 23, 42, 0.35);
    border-radius: 1rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.ai-chat__limit small {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.ai-chat__limit strong {
    font-size: 2rem;
    line-height: 1.1;
}

.ai-chat__limit span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.ai-chat__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .ai-chat__grid {
        grid-template-columns: 1fr;
    }
}

.ai-chat__panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-chat__card {
    background: #fff;
    border-radius: 1.4rem;
    padding: 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
}

.ai-chat__card h3 {
    margin-top: 0;
}

.ai-chat__card p {
    margin-bottom: 0.8rem;
    color: var(--muted);
}

.ai-chat__card ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.ai-chat__card dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.6rem;
    font-size: 0.95rem;
}

.ai-chat__card dt {
    font-weight: 600;
}

.ai-chat__card dd {
    margin: 0;
    color: var(--muted);
}

.ai-chat__suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ai-chat__suggestions button {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.9rem 1rem;
    background: #f8fafc;
    text-align: right;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ai-chat__suggestions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.ai-chat__meta-note {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0.6rem 0 0;
}
.live-visitors-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.live-visitors-table th,
.live-visitors-table td {
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.4rem 0.6rem;
    text-align: right;
}

.live-visitors-table th {
    background: #f5f6fb;
}
