/* ──────────────────────────────────────────────────────────────
   چاپار — شیوه‌نامهٔ راست‌چین
   رنگ‌ها از کاشی‌کاری ایرانی وام گرفته شده‌اند:
   فیروزه‌ای، لاجوردی، زعفرانی و سفیدِ گچ.
   ────────────────────────────────────────────────────────────── */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    /* توکن‌های design system (ui-ux-pro-max + هویت ایرانی) */
    --color-primary: #0f9b8e;
    --color-primary-dark: #0b6f66;
    --color-on-primary: #ffffff;
    --color-secondary: #143a5a;
    --color-accent: #dc2626;
    --color-background: #f2f6f6;
    --color-surface: #ffffff;
    --color-foreground: #10202a;
    --color-muted-fg: #6b7f8a;
    --color-border: #e3ebeb;
    --color-ring: #0f9b8e;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --transition: 180ms ease;

    --firoozeh: var(--color-primary);
    --firoozeh-dark: var(--color-primary-dark);
    --firoozeh-soft: #e6f5f3;
    --lajvard: var(--color-secondary);
    --lajvard-deep: #0c2033;
    --gold: #c79a2e;
    --gold-soft: #f7edd6;
    --zaferan: #e08a2b;
    --anar: var(--color-accent);
    --ink: var(--color-foreground);
    --muted: var(--color-muted-fg);
    --line: var(--color-border);
    --paper: var(--color-background);
    --white: var(--color-surface);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 32, 42, .05);
    --font: 'Vazirmatn', 'IRANSans', Tahoma, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    direction: rtl;
    line-height: 1.9;
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--firoozeh-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin: 0 0 .6rem;
    line-height: 1.7;
    font-weight: 700;
}

p {
    margin: 0 0 .8rem;
}

code, pre, .ltr {
    direction: ltr;
    text-align: left;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.container {
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
}

/* ── نقش کاشی برای بخش‌های تیره ───────────────────────────── */
.tiles {
    background-color: var(--lajvard-deep);
    background-image:
        radial-gradient(circle at 50% 0, rgba(15, 155, 142, .35), transparent 45%),
        repeating-conic-gradient(from 45deg, rgba(255, 255, 255, .035) 0deg 90deg, transparent 90deg 180deg);
    background-size: auto, 34px 34px;
}

/* ── نوار بالا ─────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
    background: rgba(12, 32, 51, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

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

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--firoozeh), var(--lajvard));
    color: #fff;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

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

.nav a {
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
}

.nav a:hover {
    color: #fff;
    text-decoration: none;
}

/* ── دکمه‌ها ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .58rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--firoozeh);
    color: #fff;
    font-family: var(--font);
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover {
    background: var(--firoozeh-dark);
    text-decoration: none;
    opacity: .92;
}

.btn:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
}

.btn--outline {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.btn--outline:hover {
    background: var(--firoozeh-soft);
    border-color: var(--firoozeh);
}

.btn--gold {
    background: var(--gold);
}

.btn--gold:hover {
    background: #ad8420;
}

.btn--danger {
    background: transparent;
    color: var(--anar);
    border-color: #f0d4d3;
}

.btn--danger:hover {
    background: #fdf1f1;
}

.btn--sm {
    padding: .34rem .8rem;
    font-size: .82rem;
}

.btn--block {
    width: 100%;
}

/* ── لندینگ ───────────────────────────────────────────────── */
.hero {
    padding: 4.5rem 0 5.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.05rem);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--gold);
}

.hero p.lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, .82);
    max-width: 48ch;
    margin-bottom: 1.8rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 2rem;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.fact strong {
    display: block;
    font-size: 1.5rem;
    color: #fff;
}

.fact span {
    font-size: .82rem;
    color: rgba(255, 255, 255, .6);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .9rem;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: .82rem;
    color: rgba(255, 255, 255, .85);
}

/* پنجرهٔ کد */
.window {
    background: #0a1722;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.window__bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem .9rem;
    background: rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.window__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2b3d4c;
}

.window__title {
    margin-right: auto;
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
}

.window pre {
    margin: 0;
    padding: 1.1rem 1.2rem;
    font-size: .82rem;
    line-height: 2;
    color: #cfe6e3;
    overflow-x: auto;
}

.window pre .k { color: #7fd3c6; }
.window pre .s { color: #e6c67a; }
.window pre .c { color: #56707f; }

/* ── بخش‌ها ───────────────────────────────────────────────── */
.section {
    padding: 4.2rem 0;
}

.section--soft {
    background: var(--white);
}

.section__head {
    max-width: 62ch;
    margin: 0 auto 2.6rem;
    text-align: center;
}

.section__head h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

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

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: .95rem;
}

.ornament::before,
.ornament::after {
    content: '';
    width: 52px;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--gold));
}

.grid {
    display: grid;
    gap: 1.1rem;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card--flat {
    box-shadow: none;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--firoozeh-soft);
    color: var(--firoozeh-dark);
    margin-bottom: .85rem;
}

.card__icon .icon {
    width: 22px;
    height: 22px;
}

.card h3 {
    font-size: 1.03rem;
    margin-bottom: .35rem;
}

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

/* جریان کار */
.flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: step;
}

.flow__item {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem 1.2rem;
}

.flow__item::before {
    counter-increment: step;
    content: counter(step, persian);
    position: absolute;
    top: -14px;
    right: 1.2rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--lajvard);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

.flow__item h4 {
    margin-bottom: .3rem;
    font-size: .98rem;
}

.flow__item p {
    color: var(--muted);
    font-size: .88rem;
    margin: 0;
}

/* ── فوتر ─────────────────────────────────────────────────── */
.footer {
    padding: 2.6rem 0;
    color: rgba(255, 255, 255, .6);
    font-size: .88rem;
}

.footer a {
    color: rgba(255, 255, 255, .8);
}

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

/* ── پنل ──────────────────────────────────────────────────── */
.shell {
    display: grid;
    grid-template-columns: 246px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--lajvard-deep);
    color: rgba(255, 255, 255, .78);
    padding: 1.2rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .brand {
    margin-bottom: 1.4rem;
    padding-inline-start: .3rem;
}

.sidebar__group {
    margin-bottom: 1.2rem;
}

.sidebar__label {
    font-size: .72rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .38);
    padding-inline-start: .75rem;
    margin-bottom: .35rem;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    border-radius: 11px;
    color: rgba(255, 255, 255, .74);
    font-size: .92rem;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}

.sidebar a.is-active {
    background: linear-gradient(90deg, rgba(15, 155, 142, .95), rgba(15, 155, 142, .55));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.sidebar__foot {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
}

.main {
    padding: 1.4rem 1.8rem 3rem;
    min-width: 0;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.page-head h1 {
    font-size: 1.35rem;
    margin: 0;
}

.page-head .muted {
    color: var(--muted);
    font-size: .85rem;
}

/* آمار */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .9rem;
    margin-bottom: 1.3rem;
}

.stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}

.stat__label {
    color: var(--muted);
    font-size: .82rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.stat__value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.6;
}

.stat__hint {
    font-size: .78rem;
    color: var(--muted);
}

.stat--accent {
    background: linear-gradient(135deg, var(--firoozeh), var(--firoozeh-dark));
    color: #fff;
    border-color: transparent;
}

.stat--accent .stat__label,
.stat--accent .stat__hint {
    color: rgba(255, 255, 255, .82);
}

/* جدول */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.panel:has(> table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: #fbfdfd;
}

.panel__head h2 {
    font-size: 1rem;
    margin: 0;
}

.panel__body {
    padding: 1.1rem;
}

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

thead th {
    text-align: right;
    font-weight: 600;
    color: var(--muted);
    font-size: .8rem;
    padding: .7rem 1.1rem;
    background: #fbfdfd;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

tbody td {
    padding: .75rem 1.1rem;
    border-bottom: 1px solid #f0f5f5;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #fafcfc;
}

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

.empty__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto .6rem;
    border-radius: 12px;
    background: var(--firoozeh-soft);
    color: var(--firoozeh-dark);
}

.empty__mark .icon {
    width: 24px;
    height: 24px;
}

/* نشان‌ها */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .16rem .6rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    background: #eef3f3;
    color: var(--muted);
    white-space: nowrap;
}

.badge--ok { background: #e4f6ef; color: #10795a; }
.badge--wait { background: #fdf3e0; color: #96650c; }
.badge--err { background: #fdeceb; color: #b03733; }
.badge--info { background: #e8f1fb; color: #1a4f83; }
.badge--gold { background: var(--gold-soft); color: #8a6a14; }

/* فرم */
.field {
    margin-bottom: .9rem;
}

.field label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .3rem;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
select,
textarea {
    width: 100%;
    padding: .58rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .92rem;
    background: #fff;
    color: var(--ink);
    transition: border-color .12s ease, box-shadow .12s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--firoozeh);
    box-shadow: 0 0 0 3px rgba(15, 155, 142, .12);
}

textarea {
    min-height: 130px;
    line-height: 2;
    resize: vertical;
}

textarea.code {
    direction: ltr;
    text-align: left;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .84rem;
    min-height: 320px;
}

.field__hint {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .25rem;
}

.check {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--firoozeh);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}

.form-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .4rem;
}

/* پیام‌ها */
.flash {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: .8rem;
    font-size: .9rem;
    border: 1px solid transparent;
}

.flash--success { background: #e4f6ef; color: #0f6b50; border-color: #c7ead9; }
.flash--error { background: #fdeceb; color: #a3312d; border-color: #f5d3d1; }
.flash--info { background: #e8f1fb; color: #1a4f83; border-color: #d3e3f5; }

.keybox {
    background: var(--lajvard-deep);
    color: #d7ece9;
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.keybox code {
    flex: 1;
    min-width: 240px;
    color: #ffd98a;
    font-size: .88rem;
    word-break: break-all;
}

/* نمودار میله‌ای ساده */
.chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: .4rem;
    height: 150px;
    padding-top: .5rem;
}

.chart__bar {
    flex: 1;
    max-width: 76px;
    background: linear-gradient(180deg, var(--firoozeh), rgba(15, 155, 142, .35));
    border-radius: 6px 6px 3px 3px;
    min-height: 4px;
    position: relative;
}

.chart__bar span {
    position: absolute;
    bottom: -1.6rem;
    inset-inline: 0;
    text-align: center;
    font-size: .68rem;
    color: var(--muted);
    white-space: nowrap;
}

.chart-wrap {
    padding-bottom: 1.8rem;
}

/* متفرقه */
.split {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.1rem;
    align-items: start;
}

.stack > * + * {
    margin-top: .8rem;
}

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mono { direction: ltr; text-align: left; font-family: 'JetBrains Mono', Consolas, monospace; font-size: .84rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.mb0 { margin-bottom: 0; }

.tabs {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tab {
    padding: .35rem .9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: .85rem;
    color: var(--muted);
}

.tab.is-active {
    background: var(--lajvard);
    border-color: var(--lajvard);
    color: #fff;
}

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

.preview-frame {
    width: 100%;
    height: 560px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline li {
    position: relative;
    padding: 0 1.2rem .9rem 0;
    border-inline-start: none;
    border-inline-end: 2px solid var(--line);
    margin-inline-end: .4rem;
}

.timeline li::before {
    content: '';
    position: absolute;
    inset-inline-end: -6px;
    top: .55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--firoozeh);
    box-shadow: 0 0 0 3px #fff;
}

.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth__card {
    width: min(440px, 100%);
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth__head {
    text-align: center;
    margin-bottom: 1.4rem;
}

@media (max-width: 1024px) {
    .hero__grid,
    .split { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats--dns { grid-template-columns: repeat(2, 1fr); }
    .shell {
        grid-template-columns: 1fr;
        display: block;
    }
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        width: min(280px, 88vw);
        height: 100vh;
        height: 100dvh;
        z-index: 50;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -8px 0 32px rgba(12, 32, 51, .25);
    }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(12, 32, 51, .55);
        z-index: 40;
    }
    .sidebar-overlay.is-visible { display: block; }
    .panel-topbar { display: grid; }
    .main { padding: 1rem; min-height: 100vh; width: 100%; }
}

@media (max-width: 640px) {
    .grid--3,
    .grid--4,
    .grid--2,
    .flow,
    .stats,
    .stats--dns,
    .stats--compact,
    .form-row { grid-template-columns: 1fr; }
    .main { padding: .85rem; }
    .nav--desktop { display: none; }
    .topbar__actions { gap: .4rem; }
    .page-head { flex-direction: column; align-items: stretch; }
    .page-head__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
    .domain-card__head { flex-direction: column; align-items: stretch; }
    .domain-card__actions { flex-wrap: wrap; }
    .mailbox-create__row { flex-wrap: wrap; }
}

/* ── ui-ux-pro-max: دسترسی‌پذیری و اجزای جدید ─────────────── */
.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 100;
    padding: .5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.sidebar a .icon {
    width: 18px;
    height: 18px;
    opacity: .85;
}

.sidebar a.is-active .icon { opacity: 1; }

.panel-topbar {
    display: none;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}

.panel-topbar__title {
    font-weight: 700;
    font-size: 1rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.icon-btn:hover { background: var(--firoozeh-soft); border-color: var(--firoozeh); }
.icon-btn:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }

.callout {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    margin-bottom: 1.25rem;
    background: var(--white);
}

.callout--success {
    background: #f3faf8;
    border-color: #cfe9e4;
}

.callout--key {
    background: var(--lajvard-deep);
    color: #d7ece9;
    border-color: rgba(255, 255, 255, .1);
}

.callout--key code { color: #ffd98a; }

.progress {
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
    margin-top: .5rem;
}

.progress__bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: inherit;
    transition: width var(--transition);
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ornament .icon { color: var(--gold); }

.flash .icon { flex-shrink: 0; }

.nav--desktop { display: flex; }

.topbar__actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.topbar__menu-btn { display: none; }

/* ── مرکز دامنه (cPanel-style) ───────────────────────────── */
.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.stats--compact .stat { padding: .85rem 1rem; }
.stats--compact .stat__value { font-size: 1.35rem; }

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

.domain-hub {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.domain-card { padding: 0; overflow: hidden; }
.domain-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbfa, #fff);
}
.domain-card__title { font-size: 1.1rem; margin: 0 0 .35rem; }
.domain-card__title a { color: var(--ink); text-decoration: none; }
.domain-card__title a:hover { color: var(--firoozeh-dark); text-decoration: underline; }
.domain-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.domain-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.domain-card__empty { padding: 1rem 1.1rem; }
.domain-card__foot {
    padding: .85rem 1.1rem;
    border-top: 1px solid var(--line);
    background: #fafcfc;
}

.mailbox-table th,
.mailbox-table td { white-space: nowrap; }
.mailbox-table td:first-child { white-space: normal; min-width: 160px; }

.mailbox-create__row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .35rem;
}
.mailbox-create input {
    width: min(140px, 40vw);
    padding: .45rem .65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.mailbox-create__at { font-size: .85rem; }

.inline-form { display: inline; }

.domain-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.form-row--domain {
    grid-template-columns: minmax(200px, 1fr) auto;
}

@media (max-width: 768px) {
    .topbar__menu-btn { display: inline-flex; }
    .nav--desktop { display: none; }
    .nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        padding: 1rem;
        background: var(--lajvard-deep);
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .topbar__inner { position: relative; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
