/*
Theme Name: CMSetup
Theme URI:
Description: قالب اختصاصی CMSetup برای پشتیبانی وردپرس
Author: CMSetup Team
Version: 1.0.0
Text Domain: cmsetup
Tags: rtl-language, business
*/

/* CMSetup — design system */
:root {
    --brand-bg: #fdfcfb;
    --brand-primary: #164e63;
    --brand-accent: #0d9488;
    --bg: #fafafa;
    --white: #fff;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --mint: #f0fdf4;
    --mint-2: #d1fae5;
    --blue: #f0f9ff;
    --blue-2: #e0f2fe;
    --rose: #fff1f2;
    --rose-2: #ffe4e6;
    --amber: #fffbeb;
    --amber-2: #fef3c7;
    --violet: #f5f3ff;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --violet-600: #7c3aed;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --ring: 1px solid rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: "Vazirmatn", -apple-system, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--zinc-900);
    line-height: 1.6;
    direction: rtl;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* Layout */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-md {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    font-weight: 600;
}

.logo-mark {
    width: 2rem;
    height: 2rem;
    background: var(--brand-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark::after {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    background: white;
    border-radius: 50%;
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--zinc-600);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--zinc-900);
}

.nav-links a.active {
    color: var(--brand-primary);
}

.nav-cta {
    background: var(--brand-primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-cta:hover {
    background: rgba(22, 78, 99, 0.9);
    color: white !important;
}

.menu-btn {
    display: block;
    padding: 0.5rem;
    color: var(--zinc-700);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--zinc-100);
    background: white;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zinc-700);
}

.mobile-nav .nav-cta {
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .menu-btn {
        display: none;
    }

    .mobile-nav.open {
        display: none;
    }
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--zinc-100);
    padding: 3rem 0;
}

.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.8125rem;
    color: var(--zinc-500);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-main .logo {
    flex-shrink: 0;
}

.footer-links a:hover {
    color: var(--zinc-800);
}

.footer-trust__badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.trust-badge-box {
    width: 88px;
    height: 88px;
    border-radius: 0.875rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.25rem;
    flex: 0 0 88px;
    position: relative;
    isolation: isolate;
}

.trust-badge-box--footer {
    background: white;
}

.trust-badge-box iframe,
.trust-badge-box img,
.trust-badge-box a {
    max-width: 100%;
    max-height: 100%;
}

.trust-badge-box iframe,
.trust-badge-box img {
    display: block;
}

.trust-badge-fallback {
    font-size: 0.6875rem;
    color: var(--zinc-400);
    text-align: center;
    line-height: 1.6;
}

.promise--trust {
    padding: 1.25rem 1.5rem;
}

.promise--trust h3 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--zinc-700);
}

.promise--trust-caption {
    font-size: 0.75rem;
    color: var(--zinc-500);
    margin: -0.25rem 0 0.5rem;
}

.submit-trust-card {
    padding: 1.25rem 1.5rem;
}

.submit-trust-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.submit-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.submit-trust-item iframe,
.submit-trust-item img {
    display: block;
    max-height: 4.5rem;
    width: auto;
    max-width: 100%;
}

.trust-badge-box--sidebar {
    width: 100%;
    height: auto;
    min-height: 4.5rem;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.72);
}

.trust-badge-box--sidebar iframe,
.trust-badge-box--sidebar img {
    max-height: 4rem;
}

.footer .copyright {
    font-size: 0.6875rem;
    color: var(--zinc-400);
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .footer-main {
        display: grid;
        align-items: center;
        column-gap: 1.25rem;
        grid-template-columns: auto 1fr auto;
    }

    .footer-main--has-trust {
        grid-template-columns: auto minmax(4rem, 1fr) minmax(16rem, 1.75fr) auto;
    }

    .footer-trust-zone {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-width: 0;
    }

    .footer-trust__badges {
        margin: 0;
    }

    .footer-links {
        justify-content: center;
        gap: 2.5rem;
        min-width: 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(22, 78, 99, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 12px 24px rgba(22, 78, 99, 0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--zinc-700);
    box-shadow: var(--ring);
}

.btn-secondary:hover {
    background: var(--zinc-50);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    background: var(--white);
}

.section-sm {
    padding: 3.5rem 0;
}

.section-bg {
    background: var(--brand-bg);
}

.section-alt {
    background: var(--zinc-100);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-dark {
    background: var(--brand-primary);
    color: white;
}

/* Typography */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-accent);
    letter-spacing: 0.1em;
}

h1,
h2,
h3 {
    color: var(--brand-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.h1 {
    font-size: 2.5rem;
}

.h2 {
    font-size: 2rem;
}

.h3 {
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .h1 {
        font-size: 3.75rem;
        line-height: 1.05;
    }

    .h2 {
        font-size: 2.25rem;
    }
}

.lead {
    font-size: 1.125rem;
    color: var(--zinc-600);
}

.muted {
    color: var(--zinc-500);
    font-size: 0.875rem;
}

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

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 0 6rem;
}

.hero h1 {
    max-width: 22ch;
    margin: 1.5rem auto 0;
}

.hero p {
    max-width: 58ch;
    margin: 1.5rem auto 0;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* Pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.pill-mint {
    background: var(--mint);
    color: var(--emerald-700);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pill-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--emerald-600);
    position: relative;
}

.pill-dot.pulse::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--emerald-600);
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Grids */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.grid-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.stat-label {
    color: var(--zinc-500);
    font-size: 0.875rem;
}

.stat-divider {
    width: 1px;
    height: 2.5rem;
    background: var(--zinc-200);
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.two-col {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 5fr 7fr;
    }
}

/* Cards */
.card {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-bg-mint {
    background: var(--mint);
}

.card-bg-blue {
    background: var(--blue);
}

.card-bg-rose {
    background: var(--rose);
}

.card-bg-amber {
    background: var(--amber);
}

.card-bg-violet {
    background: var(--violet);
}

.card-bg-zinc {
    background: var(--zinc-50);
}

.card-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.875rem;
    color: var(--zinc-600);
}

/* Issues list */
.issue {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--zinc-50);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    color: var(--zinc-700);
}

.issue-check {
    color: var(--brand-accent);
    flex-shrink: 0;
}

/* Includes list */
.includes {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--zinc-700);
    flex: 1;
}

.includes li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.includes li::before {
    content: "✓";
    color: var(--brand-accent);
    flex-shrink: 0;
    font-weight: 600;
}

/* Status badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
}

.badge-progress {
    background: var(--blue);
    color: var(--sky-700);
}

.badge-progress .badge-dot {
    background: var(--sky-600);
    animation: pulse 2s infinite;
}

.badge-resolved {
    background: var(--mint);
    color: var(--emerald-700);
}

.badge-resolved .badge-dot {
    background: var(--emerald-600);
}

.badge-waiting {
    background: var(--rose);
    color: var(--rose-700);
}

.badge-waiting .badge-dot {
    background: var(--rose-600);
}

.badge-review {
    background: var(--amber);
    color: var(--amber-800);
}

.badge-review .badge-dot {
    background: var(--amber-700);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Form */
.form-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.field {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.field .hint {
    color: var(--zinc-400);
    font-weight: 400;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--zinc-50);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    resize: none;
    outline: none;
    transition: box-shadow 0.2s;
}

.field input[dir="ltr"],
.field textarea[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.field input:focus,
.field textarea:focus {
    box-shadow: 0 0 0 2px var(--brand-accent);
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--zinc-50);
    border: 1px dashed var(--zinc-300);
    font-size: 0.875rem;
    color: var(--zinc-600);
    cursor: pointer;
}

.upload-box:hover {
    background: var(--zinc-100);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--brand-primary);
    color: white;
    border-radius: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s;
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.btn-submit:hover {
    box-shadow: var(--shadow-lg);
}

.form-foot {
    text-align: center;
    font-size: 0.75rem;
    color: var(--zinc-500);
    margin-top: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: 3fr 2fr;
    }
}

/* Promise sidebar card */
.promise {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.promise-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.promise h3 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.promise p {
    font-size: 0.875rem;
    color: var(--zinc-600);
}

/* Portal */
.portal-page {
    min-height: 100vh;
    background: var(--zinc-50);
}

.portal-list-wrap {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .portal-list-wrap {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.portal-list-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 900px) {
    .portal-list-layout {
        grid-template-columns: 1fr 17rem;
        gap: 2rem;
    }
}

.portal-list-main {
    min-width: 0;
}

.portal-list-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

@media (min-width: 768px) {
    .portal-list-head {
        margin-bottom: 2rem;
    }
}

.portal-list-head .btn {
    flex-shrink: 0;
}

.portal-list-sidebar {
    position: static;
    padding: 0;
    overflow: hidden;
}

@media (min-width: 900px) {
    .portal-list-sidebar {
        position: sticky;
        top: 1.5rem;
    }
}

.portal-list-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--zinc-400);
}

.portal-list-empty p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .portal-list-empty {
        padding: 4rem 1rem;
    }
}

.portal-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.portal-item {
    display: block;
    padding: 1.5rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.portal-item:hover {
    box-shadow: var(--shadow-lg);
}

.portal-item-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portal-item-head--between {
    justify-content: space-between;
    width: 100%;
}

.portal-item-head__tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.portal-item-head__time {
    font-size: 0.6875rem;
    color: var(--zinc-400);
    flex-shrink: 0;
}

.portal-item-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--sky-700);
    background: var(--blue);
    border: 1px solid var(--blue-2);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.portal-item-badge-new__dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--sky-600);
    display: inline-block;
    flex-shrink: 0;
}

.portal-id {
    font-family: ui-monospace, monospace;
    font-size: 0.6875rem;
    color: var(--zinc-500);
}

.portal-item h2 {
    font-size: 1.125rem;
    color: var(--brand-primary);
    margin-top: 0.5rem;
    line-height: 1.4;
    word-break: break-word;
}

.portal-meta {
    font-size: 0.875rem;
    color: var(--zinc-500);
    margin-top: 0.25rem;
    word-break: break-word;
}

@media (max-width: 767px) {
    .portal-list-wrap.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .portal-item {
        padding: 1rem 1.125rem;
        border-radius: 0.875rem;
    }

    .portal-item h2 {
        font-size: 1rem;
        margin-top: 0.375rem;
    }

    .portal-meta {
        font-size: 0.8125rem;
    }

    .portal-item-head--between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .portal-item-head__time {
        align-self: flex-start;
    }

    .portal-list-head .h2 {
        font-size: 1.375rem;
    }
}

/* Thread */
.thread-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .thread-grid {
        grid-template-columns: 3fr 6fr 3fr;
        gap: 1.5rem;
        padding: 2rem 0;
        align-items: start;
    }
}

.thread-aside {
    display: none;
}

@media (min-width: 768px) {
    .thread-aside {
        display: block;
    }
}

.thread-aside .panel {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.panel h3 {
    font-size: 0.75rem;
    color: var(--zinc-500);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.thread-main {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    overflow: hidden;
}

.thread-header {
    padding: 1rem;
    border-bottom: 1px solid var(--zinc-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.thread-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.thread-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.thread-sub {
    font-size: 0.75rem;
    color: var(--zinc-500);
}

.thread-body {
    flex: 1;
    min-height: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    background: rgba(250, 250, 250, 0.4);
    -webkit-overflow-scrolling: touch;
}

.thread-foot {
    padding: 1rem;
    border-top: 1px solid var(--zinc-100);
}

.composer {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    padding: 0.375rem;
    padding-left: 0.75rem;
    direction: ltr;
    border-radius: 1rem;
    background: var(--zinc-50);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.composer textarea {
    flex: 1;
    direction: rtl;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 0.875rem;
    padding: 0.5rem;
    max-height: 8rem;
}

.composer-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zinc-500);
}

.composer-btn.send {
    background: var(--brand-primary);
    color: white;
}

.bubble-row {
    display: flex;
    gap: 0.625rem;
}

.bubble-row.me {
    flex-direction: row-reverse;
}

.bubble-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

.bubble-row .bubble-avatar {
    background: rgba(13, 148, 136, 0.1);
    color: var(--brand-accent);
}

.bubble-row.me .bubble-avatar {
    background: var(--brand-primary);
    color: white;
}

.bubble-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 80%;
}

.bubble-row.me .bubble-col {
    align-items: flex-end;
}

.bubble {
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    background: white;
    border: 1px solid var(--zinc-200);
    color: var(--zinc-800);
    border-top-right-radius: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.bubble-row.me .bubble {
    background: var(--brand-primary);
    color: white;
    border-color: transparent;
    border-top-right-radius: 1rem;
    border-top-left-radius: 0.25rem;
}

.bubble-meta {
    font-size: 0.625rem;
    color: var(--zinc-400);
    padding: 0 0.25rem;
}

/* Day separator */
.day-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.day-separator span {
    font-size: 0.6875rem;
    color: var(--zinc-400);
    white-space: nowrap;
}

.day-separator::before,
.day-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--zinc-200);
}

.attachment {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: var(--mint);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.timeline-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.timeline-dot.done {
    background: var(--mint);
    color: var(--emerald-700);
    border: 1px solid var(--mint-2);
}

.timeline-dot.pending {
    background: var(--zinc-50);
    color: var(--zinc-400);
    border: 1px solid var(--zinc-200);
}

.timeline-label {
    font-size: 0.875rem;
    color: var(--zinc-500);
}

.timeline-label.done {
    color: var(--brand-primary);
    font-weight: 500;
}

.timeline-time {
    font-size: 0.6875rem;
    color: var(--zinc-400);
}

/* Files */
.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border-radius: 0.75rem;
    background: var(--zinc-50);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}

.file-icon {
    width: 2rem;
    height: 2rem;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Invoice */
.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.invoice-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.invoice-panel-summary {
    flex: 1;
    min-width: 0;
}

.invoice-panel-top .invoice-pay {
    flex-shrink: 0;
    align-self: center;
    text-decoration: none;
    white-space: nowrap;
}

.invoice-amount {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.3;
    word-break: break-word;
}

.invoice-row .invoice-amount {
    font-size: 1.5rem;
}

.panel .invoice-amount {
    font-size: 1.5rem;
}

.invoice-paid {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: var(--mint);
    color: var(--emerald-700);
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid var(--mint-2);
}

.invoice-pay {
    background: var(--brand-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.cmsetup-coupon-box {
    margin-top: 0.75rem;
}

.cmsetup-coupon-box--sidebar {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--zinc-100);
    width: 100%;
}

.cmsetup-coupon-form {
    display: flex;
    gap: 0.375rem;
    align-items: stretch;
    width: 100%;
}

.cmsetup-coupon-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    background: var(--zinc-50);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
}

.cmsetup-coupon-box--sidebar .cmsetup-coupon-input {
    font-size: 0.75rem;
}

.cmsetup-coupon-apply {
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    background: white;
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--blue-2);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.cmsetup-coupon-apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cmsetup-coupon-msg {
    font-size: 0.75rem;
    margin-top: 0.375rem;
    min-height: 1rem;
    line-height: 1.5;
}

.cmsetup-coupon-msg.is-error {
    color: var(--rose-600);
}

.cmsetup-coupon-msg.is-success {
    color: var(--emerald-700);
}

.inv-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inv-empty {
    font-size: 0.8125rem;
    color: var(--zinc-400);
    padding: 0.25rem 0;
}

.inv-card {
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid var(--zinc-100);
}

.inv-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.625rem;
}

.inv-card-title {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zinc-800);
    line-height: 1.45;
}

.inv-card-amount {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
}

.inv-card .inv-share-chips {
    margin-top: 0.625rem;
}

.inv-share-chips {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.inv-share-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.5625rem;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    transition: background 0.15s ease;
}

.inv-share-chip__icon {
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 0.4375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    line-height: 1;
}

.inv-share-chip__body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.inv-share-chip__label {
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.3;
}

.inv-share-chip__value {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.inv-share-chip__value .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

.inv-share-chip--support {
    background: linear-gradient(135deg, var(--mint) 0%, #ecfdf5 100%);
    border-color: var(--mint-2);
    box-shadow: 0 1px 0 rgba(16, 185, 129, 0.08);
}

.inv-share-chip--support .inv-share-chip__icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-700);
    font-weight: 800;
}

.inv-share-chip--support .inv-share-chip__label {
    color: var(--emerald-700);
    font-weight: 700;
}

.inv-share-chip--support .inv-share-chip__value {
    color: #047857;
    font-size: 0.8125rem;
    font-weight: 800;
}

.inv-share-chip--muted {
    background: var(--zinc-50);
    border-color: var(--zinc-100);
}

.inv-share-chip--muted .inv-share-chip__icon {
    background: white;
    color: var(--zinc-400);
    border: 1px solid var(--zinc-200);
    font-size: 0.625rem;
}

.inv-share-chip--muted .inv-share-chip__label {
    color: var(--zinc-400);
    font-weight: 500;
}

.inv-share-chip--muted .inv-share-chip__value {
    color: var(--zinc-500);
    font-weight: 600;
    font-size: 0.6875rem;
}

.invoice-panel--support .inv-totals-shares .inv-share-chips {
    gap: 0.3125rem;
}

.invoice-panel--support .inv-card {
    padding: 0.75rem;
    border-color: var(--zinc-100);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.invoice-panel--support .inv-totals-shares .inv-share-chip {
    padding: 0.375rem 0.5rem;
}

.invoice-panel--support .inv-totals-shares .inv-share-chip__icon {
    width: 1.375rem;
    height: 1.375rem;
    font-size: 0.625rem;
}

.inv-totals {
    margin-top: 0.625rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-100);
}

.inv-totals-shares {
    margin-bottom: 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px dashed var(--zinc-200);
}

.inv-totals-shares::before {
    content: 'تفکیک سهم‌ها';
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--zinc-400);
    letter-spacing: 0.04em;
    margin-bottom: 0.4375rem;
}

.inv-totals-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--zinc-600);
    padding: 0.1875rem 0;
}

.inv-totals-line--discount {
    color: var(--emerald-700);
}

.inv-totals-line--final {
    margin-top: 0.375rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--zinc-200);
    font-weight: 600;
    color: var(--zinc-800);
}

.inv-totals-final {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.inv-totals-line--due {
    color: #92400e;
    font-weight: 600;
    margin-top: 0.25rem;
}

.inv-totals-line--paid {
    color: var(--emerald-700);
}

.inv-totals-line--paid .invoice-paid-inline {
    font-weight: 600;
}

.inv-add-form {
    display: flex;
    gap: 0.375rem;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.inv-add-input {
    padding: 0.4375rem 0.625rem;
    border-radius: 0.625rem;
    background: var(--zinc-50);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
}

.inv-add-input--title {
    flex: 1;
    min-width: 5rem;
}

.inv-add-input--amount {
    width: 7.5rem;
    flex-shrink: 0;
    direction: ltr;
    text-align: left;
}

.inv-add-btn {
    padding: 0.4375rem 0.75rem;
    border-radius: 0.625rem;
    background: var(--brand-primary);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.inv-actions {
    margin-top: 0.75rem;
}

.inv-actions--status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.inv-pay-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 0.5625rem 1rem;
    border-radius: 0.75rem;
    box-sizing: border-box;
}

.inv-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.inv-status-badge--pending {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.inv-status-badge--due {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.invoice-panel .panel h3,
.invoice-panel>h3 {
    margin-bottom: 0.75rem;
}

.invoice-panel .invoice-amount {
    font-size: 1rem;
}

.cmsetup-discount-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--emerald-700);
    flex-wrap: wrap;
}

.supplement-charge-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border: 1px solid #fcd34d;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.supplement-charge-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.supplement-charge-card__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.supplement-charge-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #92400e;
}

.supplement-charge-card__sub {
    font-size: 0.75rem;
    color: var(--zinc-500);
    margin-top: 0.125rem;
    line-height: 1.5;
}

.supplement-charge-card__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
}

.supplement-charge-card__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zinc-800);
}

.supplement-charge-card__amount {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brand-primary);
    white-space: nowrap;
}

.supplement-charge-card__pay {
    display: inline-block;
    text-decoration: none;
}

.supplement-charge-card__hint {
    font-size: 0.8125rem;
    color: var(--amber-700);
    padding: 0.5rem 0.75rem;
    background: #fffbeb;
    border-radius: 0.625rem;
    border: 1px solid #fcd34d;
    line-height: 1.6;
}

.supplement-charge-card__time {
    font-size: 0.6875rem;
    color: var(--zinc-400);
    margin-top: 0.5rem;
}

/* Resolution */
.resolution li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--zinc-700);
    margin-bottom: 0.5rem;
}

.resolution li::before {
    content: "✓";
    color: var(--emerald-600);
    font-weight: 700;
}

/* Blog */
.blog-hero__title {
    margin-top: 0.75rem;
}

.blog-hero__lead {
    margin-top: 1.25rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    overflow: hidden;
    padding: 0;
}

.blog-cover {
    height: 12.5rem;
    overflow: hidden;
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--brand-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.blog-card h2 {
    font-size: 1.125rem;
    color: var(--brand-primary);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.875rem;
    color: var(--zinc-600);
    flex: 1;
}

.blog-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--zinc-500);
}

.blog-foot a {
    color: var(--brand-accent);
    font-weight: 500;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination .page-numbers li {
    margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zinc-600);
    background: white;
    border: 1px solid var(--zinc-200);
    text-decoration: none;
}

.blog-pagination .page-numbers a:hover {
    border-color: var(--brand-accent);
    color: var(--brand-primary);
}

.blog-pagination .page-numbers .current {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

/* Single post */
.post-hero .blog-tag {
    display: inline-block;
}

.post-title {
    margin: 0.75rem 0 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
}

@media (min-width: 768px) {
    .post-title {
        font-size: 1.875rem;
    }
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-top: 1rem;
}

.post-meta__sep {
    color: var(--zinc-300);
    user-select: none;
}

.post-featured {
    max-width: 34rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.post-featured__img {
    display: block;
    width: 100%;
    max-height: 14rem;
    object-fit: cover;
    border-radius: 0.875rem;
}

.post-cta {
    padding: 3rem 0;
}

.post-content {
    color: var(--zinc-700);
    line-height: 1.9;
    text-align: justify;
    text-justify: inter-word;
}

.post-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.post-content h2 {
    font-size: 1.375rem;
    margin: 2rem 0 1rem;
    text-align: right;
}

.post-content h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
    text-align: right;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 1.5rem;
    list-style: revert;
    text-align: right;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--brand-accent);
    text-decoration: underline;
}

.post-content pre {
    background: var(--zinc-100);
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.875rem;
    text-align: left;
    direction: ltr;
}

.post-content code {
    background: var(--zinc-100);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.post-content img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-right: 3px solid var(--brand-accent);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--zinc-50);
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--zinc-600);
    font-style: italic;
    text-align: right;
}

/* Service price tag */
.service-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 0.75rem;
    color: rgba(22, 78, 99, 0.7);
}

.service-price strong {
    color: var(--brand-primary);
    font-weight: 600;
}

/* CTA Dark */
.cta-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(209, 250, 229, 0.95);
}

.section-dark h2 {
    color: white;
}

.section-dark .lead {
    color: rgba(209, 250, 229, 0.7);
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}

.btn-on-dark {
    background: white;
    color: var(--brand-primary);
    margin-top: 2.5rem;
}

/* Channel cards */
.channel-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 0.25rem;
}

.channel-hint {
    font-size: 0.75rem;
    color: var(--zinc-600);
    margin-top: 0.25rem;
}

.channel-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(22, 78, 99, 0.7);
    margin-top: 1rem;
}

.contact-meta-section {
    padding-top: 0;
}

.contact-meta {
    padding: 1.25rem 0 0.25rem;
    border-top: 1px solid var(--zinc-100);
    font-size: 0.8125rem;
    color: var(--zinc-500);
    line-height: 1.75;
}

.contact-meta__info {
    min-width: 0;
}

.contact-meta__line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.contact-meta__line + .contact-meta__line {
    margin-top: 0.5rem;
}

.contact-meta__label {
    color: var(--zinc-400);
    flex-shrink: 0;
}

.contact-meta__label::after {
    content: ":";
}

.contact-meta__value {
    color: var(--zinc-600);
}

.contact-meta__value--tel {
    text-decoration: none;
    letter-spacing: 0.02em;
}

.contact-meta__value--tel:hover {
    color: var(--brand-primary);
}

/* CF7 form styling */
.wpcf7 {
    margin-top: 0 !important;
}

.wpcf7 p {
    margin-bottom: 1.5rem;
}

.wpcf7 label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--zinc-50);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.2s;
    direction: rtl;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    box-shadow: 0 0 0 2px var(--brand-accent);
}

.wpcf7 textarea {
    resize: none;
}

.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--brand-primary);
    color: white;
    border-radius: 1rem;
    font-weight: 500;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s;
}

.wpcf7 input[type="submit"]:hover {
    box-shadow: var(--shadow-lg);
}

.wpcf7-response-output {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.wpcf7-mail-sent-ok {
    background: var(--mint);
    border: 1px solid var(--mint-2) !important;
    color: var(--emerald-700);
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: var(--rose);
    border: 1px solid var(--rose-2) !important;
    color: var(--rose-700);
}

.wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: var(--rose-600);
    margin-top: 0.25rem;
}

/* Support panel status buttons */
.status-btn:hover {
    opacity: 0.8;
}

/* Portal action pending overlay */
#cmsetup-pending-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

#cmsetup-pending-overlay.is-visible {
    display: flex;
}

.cmsetup-pending-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid var(--zinc-200);
    box-shadow: var(--shadow-lg);
    min-width: 12rem;
}

.cmsetup-pending-spinner {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid var(--zinc-200);
    border-top-color: var(--brand-primary);
    animation: cmsetup-spin 0.7s linear infinite;
}

.cmsetup-pending-text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--zinc-600);
    text-align: center;
}

body.cmsetup-action-pending {
    cursor: wait;
}

@keyframes cmsetup-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Profile edit modal */
.cmsetup-notify-sms-row {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--zinc-100);
    display: flex;
    justify-content: center;
}

.cmsetup-notify-sms-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: white;
    color: var(--brand-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--blue-2);
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cmsetup-notify-sms-btn:hover:not(:disabled) {
    background: var(--blue);
    border-color: var(--brand-accent);
}

.cmsetup-notify-sms-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cmsetup-notify-sms-hint {
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: var(--zinc-400);
}

.cmsetup-notify-sms-hint.is-success {
    color: var(--emerald-700);
}

.cmsetup-notify-sms-hint.is-error {
    color: var(--rose-700);
}

.cmsetup-latin-phone-hint {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--rose-600);
}

.cmsetup-profile-edit-btn {
    display: block;
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid var(--blue-2);
    background: #fff;
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cmsetup-profile-edit-btn:hover {
    background: var(--blue);
    border-color: var(--brand-accent);
    color: var(--brand-primary);
}

.cmsetup-modal[hidden] {
    display: none !important;
}

.cmsetup-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: "Vazirmatn", -apple-system, "Segoe UI", system-ui, sans-serif;
}

.cmsetup-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.cmsetup-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 28rem;
    max-height: min(90vh, 44rem);
    overflow: auto;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--zinc-200);
    box-shadow: var(--shadow-lg);
    direction: rtl;
    text-align: right;
}

.cmsetup-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--zinc-100);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.cmsetup-modal__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--zinc-800);
}

.cmsetup-modal__close {
    border: none;
    background: var(--zinc-100);
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--zinc-600);
}

.cmsetup-modal__body {
    padding: 1.25rem;
}

.cmsetup-modal__foot {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--zinc-100);
}

.cmsetup-profile-form,
.cmsetup-profile-form * {
    font-family: "Vazirmatn", -apple-system, "Segoe UI", system-ui, sans-serif;
}

.cmsetup-field {
    margin-bottom: 1rem;
}

.cmsetup-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.375rem;
}

.cmsetup-profile-input,
.cmsetup-profile-file,
.cmsetup-field input[type="text"],
.cmsetup-field input[type="email"],
.cmsetup-field input[type="tel"],
.cmsetup-field input[type="password"] {
    width: 100%;
    padding: 0.5625rem 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid var(--zinc-200);
    font-family: inherit;
    font-size: 0.875rem;
    background: #fff;
    color: var(--zinc-800);
    box-sizing: border-box;
}

.cmsetup-profile-input {
    direction: rtl;
    text-align: right;
}

.cmsetup-field--ltr .cmsetup-profile-input,
.cmsetup-profile-verify-row .cmsetup-profile-input[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.cmsetup-profile-file {
    direction: rtl;
    text-align: right;
    padding: 0.4375rem 0.5rem;
    font-size: 0.8125rem;
}

.cmsetup-profile-input:focus,
.cmsetup-profile-file:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.cmsetup-field-hint {
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    color: var(--zinc-400);
    line-height: 1.5;
}

.cmsetup-profile-avatar-upload {
    flex: 1;
    min-width: 0;
}

.cmsetup-profile-avatar-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cmsetup-profile-avatar-preview {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--zinc-200);
    flex-shrink: 0;
}

.cmsetup-profile-verify-block {
    margin-bottom: 1rem;
    padding: 0.875rem;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-200);
    border-radius: 0.75rem;
}

.cmsetup-profile-verify-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cmsetup-profile-verify-row .cmsetup-profile-input {
    flex: 1;
    min-width: 0;
}

.cmsetup-profile-verify-block .cmsetup-field-label,
.cmsetup-profile-verify-block .cmsetup-field-hint {
    text-align: right;
}

.otp-channel-wrap {
    margin: 1rem 0 1.5rem;
}

.otp-channel__heading {
    margin: 0 0 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zinc-600);
}

.otp-channel {
    display: grid;
    gap: 0.5rem;
}

.otp-channel--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.otp-channel__option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 4.5rem;
    padding: 0.625rem 0.375rem;
    border: 1.5px solid var(--zinc-200);
    border-radius: 0.625rem;
    background: var(--zinc-50);
    cursor: pointer;
    text-align: center;
    color: var(--zinc-600);
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
}

.otp-channel__option:hover {
    border-color: var(--zinc-300);
    background: white;
}

.otp-channel__option:has(input:checked) {
    border-color: var(--brand-accent);
    background: white;
    color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.otp-channel__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.otp-channel__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.otp-channel__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.0625rem;
    line-height: 1.2;
}

.otp-channel__line {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.cmsetup-profile-verify-block .otp-channel-wrap {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.cmsetup-profile-verify-block .otp-channel__heading {
    font-size: 0.75rem;
}

@media (max-width: 22rem) {
    .otp-channel--count-3 {
        grid-template-columns: 1fr;
    }

    .otp-channel__option {
        flex-direction: row;
        justify-content: flex-start;
        min-height: auto;
        padding: 0.625rem 0.75rem;
        gap: 0.625rem;
    }

    .otp-channel__text {
        flex-direction: row;
        gap: 0.25rem;
    }
}

.cmsetup-profile-alert {
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    background: var(--rose);
    border: 1px solid var(--rose-2);
    color: var(--rose-700);
}

.cmsetup-profile-alert.is-success {
    background: var(--mint);
    border-color: var(--mint-2);
    color: var(--emerald-700);
}

/* Utility */
.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.gap-3 {
    gap: 0.75rem;
}

.hidden {
    display: none;
}