:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg-soft: #eef3fa;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --surface-3: #f1f5fb;
    --surface-soft: #f6f9fe;
    --text: #0f172a;
    --muted: #64748b;
    --muted-strong: #475569;
    --line: #dde6f2;
    --line-strong: #c9d6e7;
    --accent: #4f6df5;
    --accent-strong: #3552d4;
    --accent-soft: #e9efff;
    --accent-soft-2: #f3f7ff;
    --success: #15803d;
    --warning: #b45309;
    --danger: #b91c1c;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
    --radius: 20px;
    --radius-lg: 24px;
    --radius-sm: 12px;
    --container: 1120px;
}

* { box-sizing: border-box; }

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(79, 109, 245, 0.06), transparent 26%),
        linear-gradient(180deg, #fafcff 0%, var(--bg) 38%, #f7f9fd 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(84px);
    opacity: .55;
}

body::before {
    width: 18rem;
    height: 18rem;
    top: -4rem;
    left: -4rem;
    background: rgba(79, 109, 245, 0.10);
}

body::after {
    width: 15rem;
    height: 15rem;
    bottom: 4rem;
    right: 0;
    background: rgba(14, 165, 233, 0.08);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -.035em;
}

p {
    margin: 0;
    line-height: 1.65;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img { max-width: 100%; }

code {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: .42rem .62rem;
    border-radius: 10px;
    background: var(--surface-3);
    color: var(--text);
    border: 1px solid var(--line);
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(250, 252, 255, 0.88);
    border-bottom: 1px solid rgba(221, 230, 242, 0.85);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 74px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    min-width: fit-content;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
    width: 44px;
    height: 44px;
    display: block;
    flex: 0 0 auto;
}

.brand-name {
    display: inline-block;
    font-size: 1.42rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.brand-logo {
    width: auto;
    height: 28px;
    display: block;
}

.brand-mini {
    width: 28px;
    height: 28px;
    display: block;
    flex: 0 0 auto;
}

.menu-toggle {
    margin-inline-start: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    color: var(--text);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .22s ease, opacity .22s ease;
}

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

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

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

.nav-panel {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
}

.nav-panel.is-static {
    margin-inline-start: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .3rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted-strong);
    padding: .62rem .88rem;
    border-radius: 12px;
    font-weight: 600;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.current {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
}

.nav-links .nav-cta {
    margin-inline-start: .2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .26rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.lang-switcher a {
    padding: .46rem .82rem;
    border-radius: 999px;
    color: var(--muted-strong);
    font-weight: 600;
    font-size: .92rem;
    transition: background .18s ease, color .18s ease;
}

.lang-switcher a:hover {
    color: var(--text);
}

.lang-switcher a.active {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.page {
    padding-block: 1.6rem 4rem;
}

.page > * + * {
    margin-top: 1rem;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 30%);
    pointer-events: none;
}

.hero {
    padding: 0;
    background:
        radial-gradient(circle at top right, rgba(79, 109, 245, 0.10), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr);
    gap: 1rem;
    padding: 1.5rem;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: .9rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .38rem .78rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(79, 109, 245, 0.12);
    color: var(--accent-strong);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.hero h1 {
    font-size: clamp(2.15rem, 4vw, 3.55rem);
    max-width: 10.5ch;
}

.lead {
    max-width: 58ch;
    color: var(--muted-strong);
    font-size: 1.02rem;
}

.hero-actions,
.table-actions,
.inline-form,
.footer-row,
.section-heading,
.plan-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: .15rem;
}

.hero-actions .button {
    min-width: 148px;
}

.muted-list {
    display: grid;
    gap: .55rem;
    margin-top: .25rem;
}

.muted-list span {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .7rem .82rem;
    color: var(--muted-strong);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.muted-list strong {
    color: var(--text);
}

.hero-meta {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .55rem .75rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-size: .92rem;
}

.hero-meta strong {
    color: var(--text);
}

.compact-list {
    gap: .4rem;
}

.compact-list span {
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    color: var(--muted);
}

.preview-brand-line {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.preview-mark {
    width: 26px;
    height: 26px;
    display: block;
    border-radius: 9px;
}

.feature-head,
.legal-callout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #f2fbff 100%);
    border: 1px solid rgba(79, 109, 245, 0.14);
    box-shadow: 0 10px 24px rgba(79, 109, 245, 0.08);
}

.feature-icon {
    width: 28px;
    height: 28px;
    display: block;
}


.hero-preview {
    position: relative;
    display: grid;
    align-items: stretch;
}

.preview-window {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .85rem;
    height: 100%;
    padding: 1rem;
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.preview-window::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(79, 109, 245, 0.06);
    pointer-events: none;
}

.preview-bar {
    display: flex;
    gap: .35rem;
}

.preview-bar span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #d5deec;
}

.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    flex-wrap: wrap;
}

.preview-pill {
    display: inline-flex;
    align-items: center;
    padding: .34rem .66rem;
    border-radius: 999px;
    background: #eef7ff;
    border: 1px solid #dbeafd;
    color: #0f5f8e;
    font-size: .82rem;
    font-weight: 700;
}

.preview-link-row {
    display: flex;
    gap: .65rem;
    align-items: center;
    flex-wrap: wrap;
}

.preview-link {
    flex: 1 1 220px;
    padding: .72rem .82rem;
    border-radius: 12px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    font-size: .96rem;
}

.preview-target {
    display: grid;
    gap: .32rem;
    padding: .9rem;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.preview-target span {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.preview-target strong {
    font-size: .95rem;
    overflow-wrap: anywhere;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.preview-stat {
    display: grid;
    gap: .35rem;
    padding: .85rem .9rem;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.preview-stat span {
    color: var(--muted);
    font-size: .8rem;
}

.preview-stat strong {
    font-size: 1.08rem;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: .75rem;
}

.section-heading.compact { margin-bottom: .65rem; }
.section-heading h1,
.section-heading h2 {
    margin-bottom: .25rem;
}

.section-heading p,
.home-section-heading p {
    color: var(--muted-strong);
}

.grid {
    display: grid;
    gap: .9rem;
    margin: 1rem 0;
}

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two-layout { grid-template-columns: 1.1fr .9fr; }

.home-feature-grid {
    margin-top: 1rem;
}

.feature-card,
.pricing-card,
.stat-card {
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.feature-card:hover,
.pricing-card:hover,
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.card-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 46px;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.feature-card {
    display: grid;
    gap: .75rem;
    min-height: 100%;
}

.feature-card h3 {
    font-size: 1.3rem;
}

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

.legal-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .68fr);
    gap: 1rem;
    align-items: center;
}

.notice {
    color: #7c4a03;
    background: #fff8eb;
    border: 1px solid #f6dfb3;
    padding: .9rem 1rem;
    border-radius: 14px;
}

.pricing-wrap {
    display: grid;
    gap: .9rem;
}

.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    min-height: 100%;
}

.pricing-card.featured,
.pricing-card.selected {
    border-color: rgba(79, 109, 245, 0.28);
    box-shadow: 0 16px 36px rgba(79, 109, 245, 0.10);
    background: linear-gradient(180deg, #fbfdff 0%, #f4f7ff 100%);
}

.plan-head {
    justify-content: space-between;
}

.plan-head h2,
.plan-head h3 {
    font-size: 1.35rem;
}

.price {
    font-size: clamp(1.95rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.feature-list {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding-inline-start: 1.1rem;
    color: var(--muted-strong);
}

.feature-list li strong {
    color: var(--text);
}

.pricing-card .feature-list {
    margin-bottom: auto;
}

.button,
button,
input[type=submit],
.ghost-button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
}

.button,
button,
input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .78rem 1rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(180deg, #5e7af7 0%, var(--accent) 100%);
    box-shadow: 0 10px 20px rgba(79, 109, 245, 0.16);
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.button:hover,
button:hover,
input[type=submit]:hover,
.ghost-button:hover {
    filter: brightness(1.01);
    transform: translateY(-1px);
}

.button.secondary,
.link-button {
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--line);
}

.button.small {
    min-height: 40px;
    padding: .56rem .82rem;
    border-radius: 11px;
}

.button.block,
button.block {
    width: 100%;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .52rem .72rem;
    min-height: auto;
}

.ghost-button,
.copy-button {
    padding: .65rem .8rem;
    min-height: auto;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
}

.copy-button {
    padding: .4rem .62rem;
    font-size: .88rem;
    color: var(--muted-strong);
}

.stack {
    display: grid;
    gap: .9rem;
}

label {
    display: grid;
    gap: .42rem;
    color: var(--muted-strong);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 48px;
    padding: .82rem .88rem;
    font: inherit;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

input::placeholder,
textarea::placeholder {
    color: #8b99ad;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(79, 109, 245, 0.42);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 109, 245, 0.12);
}

small,
.muted,
.empty-state,
.footer-note {
    color: var(--muted);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 600;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    min-height: auto;
    padding: 0;
}

.alert {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.alert.success {
    background: #ecfdf3;
    border-color: #b7ebca;
    color: #116133;
}

.alert.danger {
    background: #fef2f2;
    border-color: #f5c2c7;
    color: #991b1b;
}

.stat-card {
    padding: 1rem 1.05rem;
}

.stat-label {
    display: block;
    margin-bottom: .45rem;
    color: var(--muted);
    font-size: .9rem;
}

.stat-value {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.stat-value.small { font-size: 1rem; }

.table-wrap {
    overflow: auto;
    scrollbar-width: thin;
}

.table-wrap::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: #d5ddea;
    border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

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

th,
td {
    text-align: start;
    padding: .9rem .65rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .74rem;
}

tbody tr:hover td {
    background: #fafcff;
}

.truncate-cell {
    max-width: 340px;
    overflow-wrap: anywhere;
}

.sub-row {
    background: #fbfcff;
    color: var(--muted-strong);
    font-size: .9rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .32rem .64rem;
    font-size: .76rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.badge-success {
    background: #edfdf3;
    color: #166534;
    border-color: #b7ebca;
}

.badge-warning {
    background: #fff8eb;
    color: #92400e;
    border-color: #f3d6a0;
}

.badge-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #f5c2c7;
}

.badge-neutral {
    background: var(--surface-3);
    color: var(--muted-strong);
    border-color: var(--line);
}

.stat-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
}

.stat-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .68rem 0;
    border-bottom: 1px solid var(--line);
}

.empty-state {
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px dashed var(--line-strong);
    background: var(--surface-2);
}

.narrow {
    width: min(680px, 100%);
    margin-inline: auto;
}

.center { text-align: center; }

.legal-card {
    display: grid;
    gap: 1.1rem;
}

.legal-section {
    display: grid;
    gap: .5rem;
    padding-bottom: .95rem;
    border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.danger-text { color: var(--danger); }

.inline-form input[type=text],
.inline-form input[type=url],
.inline-form select {
    width: auto;
    min-width: 170px;
}

.footer-row {
    justify-content: space-between;
    align-items: flex-start;
    padding-block: 1.25rem 2rem;
    border-top: 1px solid var(--line);
}

.footer-brand-line {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.footer-branding {
    display: grid;
    gap: .3rem;
}

.footer-links {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted-strong);
}

.footer-links a:hover {
    color: var(--accent-strong);
}

.rtl body,
body.rtl {
    font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

body.page-login .page,
body.page-register .page,
body.page-install .page {
    min-height: calc(100vh - 180px);
    display: grid;
    align-items: center;
}

body.page-login .narrow.card,
body.page-register .narrow.card,
body.page-install .narrow.card,
body.page-report_abuse .narrow.card {
    padding: 1.45rem;
}

@media (max-width: 1100px) {
    .hero-grid,
    .grid.two-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .legal-callout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + .55rem);
        left: 0;
        right: 0;
        margin-inline-start: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: .9rem;
        padding: .95rem;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-links,
    .nav-right {
        width: 100%;
        margin: 0;
    }

    .nav-links {
        display: grid;
        gap: .3rem;
    }

    .nav-links a,
    .nav-links .button {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links .nav-cta {
        margin-inline-start: 0;
        justify-content: center;
    }

    .lang-switcher {
        width: 100%;
        justify-content: space-between;
    }

    .lang-switcher a {
        flex: 1 1 0;
        text-align: center;
    }

    .grid.three,
    .grid.four,
    .grid.two {
        grid-template-columns: 1fr;
    }

    .inline-form {
        display: grid;
        width: 100%;
    }

    .inline-form input[type=text],
    .inline-form input[type=url],
    .inline-form select,
    .inline-form button {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 1rem));
    }

    .nav-shell {
        min-height: 70px;
    }

    .page {
        padding-block: 1.1rem 3rem;
    }

    .card {
        padding: 1rem;
        border-radius: 18px;
    }

    .hero-grid {
        padding: 1rem;
        gap: .9rem;
    }

    .hero h1 {
        font-size: clamp(1.95rem, 9vw, 2.65rem);
        max-width: 100%;
    }

    .lead {
        font-size: .98rem;
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .muted-list span {
        padding: .72rem .8rem;
    }

    .hero-preview {
        display: none;
    }

    .feature-card h3,
    .plan-head h2,
    .plan-head h3 {
        font-size: 1.25rem;
    }

    .table-wrap {
        overflow: visible;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: .8rem;
    }

    tbody tr {
        display: grid;
        gap: .6rem;
        padding: .95rem;
        border-radius: 16px;
        border: 1px solid var(--line);
        background: var(--surface);
    }

    tbody tr:hover td {
        background: transparent;
    }

    td {
        padding: 0;
        border: 0;
        display: grid;
        gap: .28rem;
        align-items: start;
    }

    td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    td[colspan]::before,
    td[data-label=""]::before {
        display: none;
    }

    td .table-actions,
    td .inline-form {
        width: 100%;
    }

    td .table-actions > *,
    td .inline-form > * {
        width: 100%;
    }

    .truncate-cell {
        max-width: 100%;
    }

    .footer-row {
        display: grid;
        gap: .95rem;
    }
}

@media (max-width: 520px) {
    .brand-name {
        font-size: 1.26rem;
    }

    .brand-logo {
        height: 24px;
    }

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

    .preview-link-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ghost-button,
    .copy-button {
        width: 100%;
    }
}


/* Urlivo polish: compact spacing, calmer palette, cleaner buttons */
:root {
    --bg: #f7f8fc;
    --bg-soft: #f1f3f9;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --surface-3: #f3f5fa;
    --surface-soft: #f7f8fc;
    --text: #111827;
    --muted: #6b7280;
    --muted-strong: #4b5563;
    --line: #e5e7ef;
    --line-strong: #d8dce8;
    --accent: #5b62f6;
    --accent-strong: #4b51da;
    --accent-soft: #eef0ff;
    --accent-soft-2: #f6f7ff;
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.045);
    --shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --radius-lg: 22px;
    --radius-sm: 12px;
}

body {
    background:
        radial-gradient(circle at top center, rgba(91, 98, 246, 0.045), transparent 28%),
        linear-gradient(180deg, #fcfcfe 0%, #f7f8fc 42%, #f5f6fa 100%);
}

body::before,
body::after {
    opacity: .34;
    filter: blur(92px);
}

body::before {
    background: rgba(91, 98, 246, 0.08);
}

body::after {
    background: rgba(56, 189, 248, 0.06);
}

.site-header {
    background: rgba(252, 252, 254, 0.92);
    border-bottom-color: rgba(229, 231, 239, 0.92);
}

.nav-shell {
    min-height: 68px;
    gap: .85rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
}

.brand-logo {
    height: 27px;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.nav-links {
    gap: .18rem;
}

.nav-links a {
    padding: .56rem .82rem;
    border-radius: 11px;
    font-weight: 650;
}

.nav-links a:hover,
.nav-links a.current {
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-links .nav-cta {
    margin-inline-start: .1rem;
}

.lang-switcher {
    padding: .22rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.lang-switcher a {
    padding: .42rem .76rem;
    font-size: .9rem;
}

.lang-switcher a.active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.page {
    padding-block: 1.2rem 3rem;
}

.page > * + * {
    margin-top: .85rem;
}

.card {
    padding: 1.08rem;
    border-radius: 18px;
}

.card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 22%);
}

.hero {
    background: linear-gradient(180deg, #fbfbfe 0%, #f5f7ff 100%);
}

.hero-grid {
    padding: 1.2rem;
    gap: .9rem;
}

.hero-copy {
    gap: .8rem;
}

.eyebrow {
    padding: .34rem .72rem;
    font-size: .78rem;
    letter-spacing: 0;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    max-width: 11ch;
}

.lead {
    max-width: 52ch;
    font-size: 1rem;
}

.hero-actions,
.table-actions,
.inline-form,
.footer-row,
.section-heading,
.plan-head {
    gap: .6rem;
}

.hero-actions .button {
    min-width: 142px;
}

.hero-meta {
    gap: .45rem;
}

.hero-meta span {
    padding: .48rem .68rem;
    font-size: .88rem;
}

.muted-list {
    gap: .45rem;
}

.muted-list span {
    padding: .62rem .72rem;
    border-radius: 13px;
}

.preview-window {
    padding: .95rem;
    gap: .78rem;
}

.preview-pill,
.preview-link,
.preview-target,
.preview-stat,
.notice,
.empty-state,
.alert,
.badge,
.button,
button,
input[type=submit],
.ghost-button,
.copy-button,
input,
select,
textarea {
    border-radius: 12px;
}

.preview-link {
    padding: .68rem .78rem;
}

.preview-target,
.preview-stat {
    padding: .84rem;
}

.feature-head,
.legal-callout-head {
    gap: .65rem;
}

.feature-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #f5f6ff;
    border-color: rgba(91, 98, 246, 0.12);
    box-shadow: none;
}

.feature-icon {
    width: 24px;
    height: 24px;
}

.feature-card,
.pricing-card,
.stat-card {
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.feature-card:hover,
.pricing-card:hover,
.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.card-kicker {
    min-width: 40px;
    padding: .24rem .48rem;
    font-size: .72rem;
}

.feature-card {
    gap: .65rem;
}

.feature-card h3 {
    font-size: 1.16rem;
}

.feature-card p,
.section-heading p,
.home-section-heading p,
.feature-list,
.feature-list li,
.notice,
small,
.muted,
.empty-state,
.footer-note {
    color: var(--muted-strong);
}

.notice {
    padding: .78rem .92rem;
    background: #fffaf0;
    border-color: #f4e1bb;
}

.pricing-wrap {
    gap: .75rem;
}

.pricing-card {
    gap: .72rem;
}

.pricing-card.featured,
.pricing-card.selected {
    border-color: rgba(91, 98, 246, 0.22);
    box-shadow: 0 16px 30px rgba(91, 98, 246, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.plan-head h2,
.plan-head h3 {
    font-size: 1.25rem;
}

.price {
    font-size: clamp(1.85rem, 4vw, 2.4rem);
}

.feature-list {
    gap: .52rem;
    padding-inline-start: 1rem;
}

.button,
button,
input[type=submit] {
    min-height: 42px;
    padding: .72rem .95rem;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(91, 98, 246, 0.18);
}

.button:hover,
button:hover,
input[type=submit]:hover {
    transform: translateY(-1px);
    filter: none;
    box-shadow: 0 12px 22px rgba(91, 98, 246, 0.22);
}

.button:active,
button:active,
input[type=submit]:active,
.ghost-button:active,
.copy-button:active,
.link-button:active {
    transform: translateY(0);
}

.button.secondary,
.link-button {
    background: var(--accent-soft-2);
    color: var(--accent-strong);
    border: 1px solid #dfe3ff;
    box-shadow: none;
}

.button.secondary:hover,
.link-button:hover {
    background: #eef1ff;
    box-shadow: none;
}

.link-button.danger-text {
    background: #fff5f5;
    color: #b42318;
    border-color: #f3c7cc;
}

.link-button.danger-text:hover {
    background: #feecec;
}

.button.small {
    min-height: 38px;
    padding: .5rem .8rem;
    border-radius: 11px;
}

.ghost-button,
.copy-button {
    padding: .58rem .74rem;
    min-height: auto;
    background: #ffffff;
    color: var(--muted-strong);
}

.ghost-button:hover,
.copy-button:hover {
    background: #f8f9fc;
    filter: none;
}

input,
select,
textarea {
    min-height: 46px;
    padding: .76rem .84rem;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
button:focus-visible,
input[type=submit]:focus-visible,
.ghost-button:focus-visible,
.copy-button:focus-visible,
.link-button:focus-visible,
a:focus-visible {
    outline: none;
    border-color: rgba(91, 98, 246, 0.38);
    box-shadow: 0 0 0 4px rgba(91, 98, 246, 0.10);
}

label {
    gap: .38rem;
}

.stack,
.grid {
    gap: .82rem;
}

.alert {
    padding: .82rem .95rem;
}

.stat-card {
    padding: .95rem 1rem;
}

.stat-label {
    margin-bottom: .35rem;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: #d9deea;
}

th,
td {
    padding: .8rem .6rem;
}

tbody tr:hover td {
    background: #fafbff;
}

.badge {
    padding: .3rem .58rem;
}

.empty-state {
    padding: .95rem 1rem;
}

.inline-form input[type=text],
.inline-form input[type=url],
.inline-form select {
    min-width: 160px;
}

.footer-row {
    padding-block: 1rem 1.6rem;
}

.footer-brand-line {
    gap: .65rem;
}

.footer-links {
    gap: .75rem;
}

.footer-links a {
    font-weight: 600;
}

@media (max-width: 980px) {
    .nav-panel {
        top: calc(100% + .45rem);
        gap: .8rem;
        padding: .85rem;
        border-radius: 16px;
    }
}

@media (max-width: 720px) {
    .page {
        padding-block: .95rem 2.5rem;
    }

    .card {
        padding: .96rem;
        border-radius: 16px;
    }

    .hero-grid {
        padding: .95rem;
        gap: .8rem;
    }

    .hero-actions {
        gap: .55rem;
    }

    .hero-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .muted-list span {
        padding: .56rem .66rem;
    }

    .feature-card h3,
    .plan-head h2,
    .plan-head h3 {
        font-size: 1.15rem;
    }

    tbody tr {
        padding: .88rem;
        border-radius: 15px;
    }
}

@media (max-width: 520px) {
    .brand-name {
        font-size: 1.24rem;
    }

    .brand-logo {
        height: 23px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }
}


/* Urlivo full polish: cleaner content, compact utility blocks, admin and auth refinements */
.page-intro {
    max-width: 760px;
}

.hero-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .95rem;
}

.hero-checks span {
    padding: .56rem .82rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted-strong);
    font-weight: 600;
    font-size: .92rem;
}

.subtle-card {
    background: var(--surface-2);
}

.compact-feature-list {
    margin-top: .15rem;
}

.list-steps {
    margin: .2rem 0 0;
    padding-inline-start: 1.15rem;
    display: grid;
    gap: .62rem;
    color: var(--muted-strong);
}

.list-steps li {
    line-height: 1.6;
}

.auth-note {
    margin-top: .55rem;
    margin-bottom: 1rem;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .72rem;
    color: var(--muted-strong);
    line-height: 1.6;
    font-size: .95rem;
}

.checkbox-row input {
    width: 1rem;
    height: 1rem;
    margin-top: .28rem;
    accent-color: var(--accent);
}

.support-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.support-card .notice {
    margin: 0;
}

.table-actions form {
    margin: 0;
}

.table-actions .link-button,
.table-actions a {
    white-space: nowrap;
}

.sub-row {
    color: var(--muted-strong);
    background: var(--surface-2);
}

body.page-admin .card h2,
body.page-domains .card h2,
body.page-billing .card h2,
body.page-links .card h2,
body.page-settings .card h2 {
    margin-bottom: .3rem;
}

.footer-note {
    max-width: 340px;
}


.enterprise-card {
    align-items: center;
}

.support-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 220px;
}

.support-actions .button {
    width: 100%;
    text-align: center;
}

@media (max-width: 720px) {
    .hero-checks {
        display: grid;
        grid-template-columns: 1fr;
    }

    .support-card {
        flex-direction: column;
    }
}


/* Urlivo nav dropdown refresh: language + user menu */
.nav-right {
    gap: .55rem;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 42px;
    padding: .55rem .82rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dropdown-toggle:hover,
.nav-dropdown.is-open .dropdown-toggle {
    border-color: var(--line-strong);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    background: #fff;
}

.dropdown-toggle:focus-visible {
    outline: 2px solid rgba(91, 98, 246, 0.24);
    outline-offset: 2px;
}

.dropdown-toggle-text {
    white-space: nowrap;
}

.dropdown-caret {
    width: 10px;
    height: 10px;
    border-right: 1.75px solid currentColor;
    border-bottom: 1.75px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .18s ease;
    opacity: .68;
    flex: 0 0 auto;
}

.nav-dropdown.is-open .dropdown-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    z-index: 60;
    display: none;
    min-width: 220px;
    padding: .45rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.dropdown-menu-end {
    left: auto;
    right: 0;
}

.nav-dropdown.is-open .dropdown-menu {
    display: block;
}

.dropdown-list {
    display: grid;
    gap: .2rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: .72rem .82rem;
    border-radius: 12px;
    color: var(--muted-strong);
    font-weight: 600;
    line-height: 1.25;
    transition: background .18s ease, color .18s ease;
}

.dropdown-item:hover,
.dropdown-item.current {
    background: var(--accent-soft-2);
    color: var(--text);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: #fef2f2;
    color: #991b1b;
}

.dropdown-check {
    color: var(--accent-strong);
    font-weight: 800;
}

.dropdown-divider {
    height: 1px;
    margin: .35rem 0;
    background: var(--line);
}

.lang-toggle {
    min-width: 138px;
    justify-content: space-between;
}

.user-toggle {
    min-width: 0;
    max-width: min(280px, 42vw);
    padding-inline: .5rem .76rem;
}

.user-chip-avatar,
.user-avatar {
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef0ff 0%, #e6f7ff 100%);
    color: var(--accent-strong);
    font-weight: 800;
    letter-spacing: .01em;
    flex: 0 0 auto;
}

.user-chip-avatar {
    width: 32px;
    height: 32px;
    font-size: .88rem;
}

.user-chip-meta {
    display: grid;
    min-width: 0;
    text-align: start;
    gap: .08rem;
}

.user-chip-meta strong,
.dropdown-user-text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip-meta strong {
    font-size: .92rem;
    color: var(--text);
}

.user-chip-meta small,
.dropdown-user-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.user-chip-meta small {
    font-size: .76rem;
}

.user-menu {
    min-width: 260px;
}

.dropdown-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .55rem .75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    font-size: .98rem;
}

.dropdown-user-text {
    min-width: 0;
    display: grid;
    gap: .16rem;
}

@media (max-width: 980px) {
    .nav-right {
        width: 100%;
        display: grid;
        gap: .65rem;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu,
    .dropdown-menu-end {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        min-width: 100%;
        margin-top: .5rem;
        box-shadow: none;
        backdrop-filter: none;
    }

    .user-toggle {
        max-width: none;
    }

    .user-menu {
        min-width: 100%;
    }
}

@media (max-width: 720px) {
    .user-chip-meta strong {
        font-size: .9rem;
    }

    .dropdown-item {
        padding: .7rem .78rem;
    }
}

@media (max-width: 520px) {
    .lang-toggle {
        min-width: 0;
    }

    .user-chip-meta small {
        display: none;
    }
}

/* Urlivo mobile header refinement: keep language + user dropdowns in header, not inside the menu */
.lang-text-short {
    display: none;
}

.nav-shell > .nav-panel {
    margin-inline-start: clamp(1rem, 2vw, 1.6rem);
}

.site-header .nav-right {
    margin-inline-start: auto;
    flex: 0 0 auto;
    width: auto;
    position: relative;
    z-index: 46;
}

.site-header .menu-toggle {
    margin-inline-start: 0;
    flex: 0 0 auto;
}

.site-header .user-toggle {
    max-width: min(280px, 34vw);
}

@media (max-width: 980px) {
    .site-header .nav-shell {
        gap: .65rem;
        min-height: 76px;
    }

    .site-header .nav-shell > .nav-panel {
        top: calc(100% + .55rem);
        left: 0;
        right: 0;
        z-index: 44;
        margin-inline-start: 0;
    }

    .site-header .nav-shell > .nav-panel .nav-links {
        width: 100%;
    }

    .site-header .nav-right {
        display: flex;
        align-items: center;
        gap: .45rem;
        width: auto;
        position: relative;
        z-index: 47;
    }

    .site-header .nav-dropdown {
        width: auto;
    }

    .site-header .dropdown-toggle {
        width: auto;
        min-height: 44px;
    }

    .site-header .lang-toggle {
        min-width: 0;
        padding: .55rem .68rem;
        gap: .4rem;
    }

    .site-header .lang-text-full {
        display: none;
    }

    .site-header .lang-text-short {
        display: inline;
        font-size: .78rem;
        font-weight: 800;
        letter-spacing: .08em;
    }

    .site-header .user-toggle {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .site-header .user-toggle .user-chip-meta,
    .site-header .user-toggle .dropdown-caret {
        display: none;
    }

    .site-header .user-toggle .user-chip-avatar {
        width: 34px;
        height: 34px;
    }

    .site-header .dropdown-menu,
    .site-header .dropdown-menu-end {
        position: absolute;
        top: calc(100% + .55rem);
        left: auto;
        right: 0;
        min-width: 220px;
        max-width: min(280px, calc(100vw - 1rem));
        margin-top: 0;
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(14px);
    }

    .site-header .lang-dropdown .dropdown-menu,
    .site-header .lang-dropdown .dropdown-menu-end {
        min-width: 190px;
    }

    .site-header .user-menu {
        min-width: min(280px, calc(100vw - 1rem));
    }
}

@media (max-width: 640px) {
    .site-header .brand {
        gap: .55rem;
    }

    .site-header .brand-mark {
        width: 40px;
        height: 40px;
    }

    .site-header .brand-name {
        font-size: 1.18rem;
    }

    .site-header .brand-logo {
        height: 24px;
    }
}

@media (max-width: 420px) {
    .site-header .lang-toggle {
        padding-inline: .6rem;
    }

    .site-header .dropdown-menu,
    .site-header .dropdown-menu-end,
    .site-header .user-menu {
        max-width: calc(100vw - .75rem);
    }
}


/* Paddle billing */
.billing-overview-card,
.setup-card {
    margin-bottom: 20px;
}

.billing-overview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.billing-overview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.billing-meta-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    padding: 14px;
}

.billing-meta-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
    margin-bottom: 8px;
}

.billing-inline-note {
    margin-top: 14px;
    font-size: 14px;
}

.notice.subtle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(90, 84, 255, 0.06);
    border: 1px solid rgba(90, 84, 255, 0.12);
}

.feature-list.compact li {
    margin-bottom: 8px;
}

.paddle-trigger[disabled] {
    opacity: .7;
}

@media (max-width: 980px) {
    .billing-overview-head {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 640px) {
    .billing-meta-grid {
        grid-template-columns: 1fr;
    }
}


/* Priority polish */
.inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mini-stat-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    padding: 14px;
}

.mini-stat-label,
.dns-record-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.5);
    margin-bottom: 8px;
}

.mini-stat-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
}

.filter-form {
    width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.8fr) repeat(2, minmax(160px, .9fr)) auto;
    gap: 12px;
    align-items: end;
    width: 100%;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-field span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.5);
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.result-inline {
    margin-bottom: 14px;
    font-size: 14px;
}

.empty-state-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.data-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wrap-row {
    flex-wrap: wrap;
}

.tiny-text {
    font-size: 12px;
}

.compact-note {
    margin-top: 12px;
    font-size: 14px;
}

.inline-note-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.metrics-grid {
    margin-bottom: 20px;
}

.compact-stat-card .stat-value {
    font-size: 1.95rem;
}

.domain-list-stack {
    gap: 14px;
}

.domain-card-row {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.66);
    border-radius: 16px;
    padding: 16px;
}

.domain-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.domain-card-title {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 1.02rem;
}

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

.dns-record-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.9);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dns-record-item code {
    overflow-wrap: anywhere;
}

.small-copy {
    align-self: flex-start;
}

.analytics-link-card,
.chart-card,
.faq-card {
    margin-bottom: 20px;
}

.analytics-link-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.mini-bars {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    gap: 10px;
    align-items: end;
    padding-top: 10px;
}

.mini-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mini-bar {
    display: block;
    width: 100%;
    border-radius: 999px;
    min-height: 12px;
    background: linear-gradient(180deg, rgba(90, 84, 255, 0.95) 0%, rgba(90, 84, 255, 0.68) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.mini-bar-label,
.mini-bar-value {
    font-size: 11px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.56);
}

.mini-bar-value {
    color: #0f172a;
}

.detail-list li strong {
    max-width: 58%;
    text-align: right;
    overflow-wrap: anywhere;
}

.guide-grid,
.check-grid {
    display: grid;
    gap: 16px;
}

.guide-grid {
    margin-bottom: 20px;
}

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

.check-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.check-item small {
    display: block;
    margin-top: 4px;
}

.compact-steps li + li {
    margin-top: 10px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    padding: 16px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: rgba(15, 23, 42, 0.72);
}

.billing-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toast-stack {
    position: fixed;
    inset-inline-end: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
    pointer-events: none;
}

.toast {
    min-width: 180px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease;
}

.toast.success {
    background: rgba(15, 23, 42, 0.92);
}

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

@media (max-width: 980px) {
    .filter-grid,
    .analytics-link-grid,
    .check-grid,
    .dns-record-grid {
        grid-template-columns: 1fr;
    }

    .domain-card-head,
    .empty-state-card {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .stats-compact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions,
    .inline-actions {
        width: 100%;
    }

    .filter-actions .button,
    .inline-actions .button {
        width: 100%;
        justify-content: center;
    }

    .toast-stack {
        inset-inline: 12px;
        bottom: 12px;
    }
}

/* Email system */
.alert.warning {
    color: #854d0e;
    background: #fff9e8;
    border: 1px solid #f5ddb0;
}

.alert a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.auth-card {
    max-width: 560px;
}

.stack-lg {
    display: grid;
    gap: 1rem;
}

.stack-sm {
    display: grid;
    gap: .5rem;
}

.subtle-panel {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

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

.text-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

.inline-note {
    font-size: .92rem;
}

/* Custom domains + abuse hardening */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.wrap-actions,
.wrap-inline,
.badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.domain-health {
    margin-bottom: 12px;
}

.domain-status-note {
    margin: 8px 0 10px;
}

.compact-inline-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.compact-inline-form select {
    min-width: 128px;
}

@media (max-width: 980px) {
    .wrap-actions,
    .compact-inline-form {
        width: 100%;
    }

    .wrap-actions > *,
    .compact-inline-form > * {
        width: 100%;
    }
}

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

.billing-diagnostics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.billing-event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.billing-event-item {
  border: 1px solid var(--border, rgba(15,23,42,.08));
  background: rgba(255,255,255,.7);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.break-all {
  word-break: break-all;
}

@media (max-width: 720px) {
  .billing-diagnostics-head {
    flex-direction: column;
    align-items: stretch;
  }
}


/* Developers / API */
.api-overview-grid,
.api-management-grid,
.api-example-grid {
    margin-top: 1.25rem;
}

.api-actions-row,
.api-key-create-row,
.api-endpoint-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.api-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.api-plan-note {
    margin-top: 1rem;
}

.api-key-reveal-card {
    border-color: rgba(90, 84, 255, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,251,0.92));
}

.token-box,
.token-inline code,
.api-path code,
.code-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.token-box {
    margin-top: 0.75rem;
    padding: 1rem 1.125rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(90, 84, 255, 0.04);
    overflow-x: auto;
}

.token-box code,
.token-inline code,
.api-path code {
    font-size: 0.94rem;
    color: var(--text, #0f172a);
}

.token-inline {
    margin-top: 0.45rem;
}

.api-key-list {
    display: grid;
    gap: 0.875rem;
}

.api-key-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255,255,255,0.96);
}

.api-key-item-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.api-key-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(15, 23, 42, 0.6);
    font-size: 0.9rem;
    margin: 0.75rem 0 1rem;
}

.code-block {
    margin: 0.75rem 0 0;
    padding: 1rem 1.125rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #0f172a;
    color: #e5e7eb;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.5;
    font-size: 0.92rem;
}

.code-block.small {
    font-size: 0.86rem;
}

.api-code-card .copy-button {
    margin-inline-start: auto;
}

.api-quick-facts {
    margin-top: 1.25rem;
}

.api-endpoint-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.api-endpoint-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255,255,255,0.96);
}

.api-endpoint-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.method-get {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.18);
}

.method-post {
    background: rgba(90, 84, 255, 0.1);
    color: #4338ca;
    border-color: rgba(90, 84, 255, 0.18);
}

.method-patch,
.method-put {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.18);
}

.method-delete {
    background: rgba(225, 29, 72, 0.1);
    color: #be123c;
    border-color: rgba(225, 29, 72, 0.18);
}

.api-path {
    margin-top: 0.75rem;
}

.api-path code {
    display: inline-flex;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.api-inline-note {
    margin-top: 0.75rem;
}

@media (max-width: 980px) {
    .api-endpoint-grid,
    .api-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .api-key-item-head,
    .api-actions-row,
    .api-key-create-row {
        flex-direction: column;
        align-items: stretch;
    }

    .api-key-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .method-badge {
        min-width: 0;
    }
}
