/* 4business.ir v2.1 — home intro, کاریار (Business Aid) pages, VIP / Agent forms, tickets, account. */

/* ── Visual intro (home + about) ── */
.hero21 {
    position: relative;
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: 1.6rem 1.25rem;
    margin: 0.5rem 0 1.75rem;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
}
.hero21::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 65%);
    z-index: -1;
}
.hero21::after {
    content: "";
    position: absolute;
    inset: auto auto -45% -15%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.32), transparent 65%);
    z-index: -1;
}
.hero21__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--gold);
    border: 1px solid var(--gold-soft);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    width: fit-content;
}
.hero21 h1 { margin: 0.6rem 0 0.4rem; font-size: clamp(1.5rem, 5vw, 2.3rem); line-height: 1.5; }
.hero21 h1 .en { font-family: var(--font-en, inherit); letter-spacing: 0.01em; }
.hero21 p { margin: 0; color: var(--text-muted); line-height: 2; font-size: 0.92rem; max-width: 46ch; }
.hero21__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.hero21__orbit {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 1;
    margin: 0 auto;
}
.hero21__orbit .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    animation: orbit-spin 60s linear infinite;
}
.hero21__orbit .ring--2 { inset: 16%; border-style: solid; border-color: rgba(212, 175, 55, 0.22); animation-duration: 90s; animation-direction: reverse; }
.hero21__orbit .core {
    position: absolute;
    inset: 33%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-gradient);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.45);
    color: #fff;
}
.hero21__orbit .core .brand-mark svg { width: 46%; height: auto; }
.hero21__orbit .core .brand-mark { display: grid; place-items: center; width: 100%; height: 100%; }
.orbit-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    background: var(--glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.orbit-chip img { width: 18px; height: 18px; }
.orbit-chip--1 { top: 2%; right: 50%; transform: translateX(50%); }
.orbit-chip--2 { top: 46%; right: -4%; }
.orbit-chip--3 { bottom: 3%; right: 50%; transform: translateX(50%); }
.orbit-chip--4 { top: 46%; left: -4%; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero21__orbit .ring { animation: none; } }
@media (min-width: 860px) {
    .hero21 { grid-template-columns: 1.2fr 1fr; padding: 2.4rem; }
}

/* ── Section heads + quick links ── */
.sec-head { text-align: center; margin: 0 auto 1rem; max-width: 640px; }
.sec-head h2 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.sec-head p { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.9; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 1.5rem; }
.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    transition: border-color 0.2s, transform 0.2s;
}
.quick-links a:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.quick-links i { font-size: 1.1rem; color: var(--gold); }
@media (min-width: 760px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }
.soon-tag {
    display: inline-block;
    font-size: 0.62rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold);
    border: 1px solid var(--gold-soft);
    vertical-align: middle;
}
.cyber-card .soon-tag { margin-inline-start: 0.3rem; }

/* ── کاریار product grid ── */
.aid-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .aid-grid { grid-template-columns: repeat(3, 1fr); } }
.aid-tile {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.25s, border-color 0.25s;
}
.aid-tile:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.aid-tile h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.aid-tile p { margin: 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.9; }
.aid-tile .pip { margin-top: 0.2rem; }
.aid-tile__go { margin-top: auto; font-size: 0.8rem; color: var(--gold); }

/* ── Picture-in-picture preview: desktop browser frame + phone frame ── */
.pip { position: relative; padding: 0 0 12% 0; }
.pip__browser {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1020;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.pip__bar {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.06);
    direction: ltr;
}
.pip__bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.pip__bar span:nth-child(1) { background: #ef4444; }
.pip__bar span:nth-child(2) { background: #f59e0b; }
.pip__bar span:nth-child(3) { background: #22c55e; }
.pip__bar em {
    flex: 1;
    margin-inline-start: 8px;
    font-style: normal;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    font-family: var(--font-en, sans-serif);
}
.pip__browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pip__phone {
    position: absolute;
    left: 4%;
    bottom: 0;
    width: 24%;
    border-radius: 16px;
    padding: 4px;
    background: #0b0f1a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    animation: pip-float 6s ease-in-out infinite;
}
.pip__phone img { display: block; width: 100%; height: auto; border-radius: 12px; aspect-ratio: 262 / 507; object-fit: cover; object-position: top; }
@keyframes pip-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .pip__phone { animation: none; } }

/* ── Product page ── */
.product21 { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .product21 { grid-template-columns: 1fr 1.1fr; } }
.product21 h1 { margin: 0.4rem 0; font-size: clamp(1.4rem, 4.5vw, 2rem); }
.product21 h1 small { display: block; font-size: 0.85rem; font-weight: 400; color: var(--text-muted); margin-top: 0.2rem; }
.product21 .lead { color: var(--text-muted); line-height: 2; font-size: 0.92rem; margin: 0; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.45rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.84rem; line-height: 1.8; }
.feature-list i { color: var(--success, #22c55e); margin-top: 0.15rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.discount-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}
html[data-theme="light"] .discount-chip { color: #15803d; }
.aid-crumbs { display: flex; gap: 0.35rem; align-items: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; flex-wrap: wrap; }
.aid-crumbs a { color: inherit; }
.aid-switch { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Forms (VIP / Agent / request) ── */
.form21 { display: grid; gap: 0.9rem; }
.form21 fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.form21 legend {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    padding-bottom: 0.35rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.form21 legend i { color: var(--gold); }
.form-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.form21 textarea.auth-field__input { min-height: 7rem; resize: vertical; line-height: 1.9; }
.req { color: #f87171; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--glass-soft);
    font-size: 0.82rem;
    cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(212, 175, 55, 0.12); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand-violet); outline-offset: 2px; }
.file-drop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: var(--glass-soft);
    cursor: pointer;
}
.file-drop i { font-size: 1.4rem; color: var(--gold); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong { display: block; font-size: 0.85rem; }
.file-drop small { color: var(--text-muted); font-size: 0.72rem; }
.file-drop.has-file { border-style: solid; border-color: rgba(34, 197, 94, 0.5); }
.file-drop:focus-within { outline: 2px solid var(--brand-violet); outline-offset: 2px; }
.is-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.form-elegant {
    position: relative;
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid rgba(212, 175, 55, 0.28);
}
.form-elegant::before {
    content: "";
    position: absolute;
    inset: 0 12% auto 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
@media (min-width: 700px) { .form-elegant { padding: 2rem; } }
.page-narrow { max-width: 860px; margin: 0 auto; }
.success-card { text-align: center; padding: 2rem 1rem; }
.success-card .ok-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
    font-size: 2rem;
}
.success-card h2 { margin: 0 0 0.4rem; }
.success-card p { color: var(--text-muted); }
.gate-card { text-align: center; padding: 1.6rem 1rem; }
.gate-card i.bi-shield-lock { font-size: 2rem; color: var(--gold); }
.vip-head { text-align: center; margin-bottom: 1.2rem; }
.vip-head .vip-mark {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-en, inherit);
}
.vip-head h1 { margin: 0.6rem 0 0.2rem; font-size: 1.4rem; }
.vip-head p { margin: 0; color: var(--text-muted); }

/* ── Earn (agents) ── */
.earn-paths { display: grid; gap: 0.8rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 700px) { .earn-paths { grid-template-columns: 1fr 1fr; } }
.earn-path { padding: 1rem; border-radius: var(--radius); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.08); }
.earn-path h3 { margin: 0 0 0.3rem; font-size: 0.95rem; display: flex; gap: 0.4rem; align-items: center; }
.earn-path p { margin: 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.9; }
.badge-row { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; margin-top: 0.6rem; }
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: var(--font-en, inherit);
    direction: ltr;
    color: #fff;
    background: var(--brand-gradient);
}
.role-badge--business { background: linear-gradient(135deg, #b8860b, #d4af37); color: #1a1405; }
.steps21 { counter-reset: s; list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.steps21 li { counter-increment: s; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.84rem; line-height: 1.9; }
.steps21 li::before {
    content: counter(s);
    flex: 0 0 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--glass-strong);
    border: 1px solid var(--gold-soft);
    font-size: 0.75rem;
}

/* ── Panel v2.1 ── */
.agent-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.agent-cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--brand-violet)); }
.agent-cta h2 { margin: 0 0 0.2rem; font-size: 1rem; }
.agent-cta p { margin: 0; color: var(--text-muted); font-size: 0.82rem; }
.mini-form { display: grid; gap: 0.6rem; }
.mini-form .row2 { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mini-form .row2 { grid-template-columns: 1fr 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.8rem; font-size: 0.82rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }

/* ── Tickets (user panel) ── */
.tk-toolbar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.tk-toolbar button { font-size: 0.75rem; }
.tk-toolbar button.is-active { border-color: var(--gold); color: var(--gold); }
.tk-item { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-sm); margin-bottom: 0.55rem; background: var(--glass-soft); }
.tk-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.7rem 0.8rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.6rem;
    align-items: center;
}
.tk-item > summary::-webkit-details-marker { display: none; }
.tk-item > summary strong { font-size: 0.86rem; }
.tk-meta { grid-column: 1 / -1; display: flex; gap: 0.35rem; flex-wrap: wrap; font-size: 0.7rem; color: var(--text-muted); align-items: center; }
.tk-body { padding: 0 0.8rem 0.8rem; }
.tk-msg { padding: 0.6rem 0.75rem; border-radius: 10px; margin: 0.45rem 0; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); }
.tk-msg.is-admin { background: rgba(29, 78, 216, 0.1); border-color: rgba(29, 78, 216, 0.3); }
.tk-msg__meta { font-size: 0.7rem; color: var(--text-muted); display: block; margin-bottom: 0.25rem; }
.tk-msg p { margin: 0; white-space: pre-wrap; font-size: 0.83rem; line-height: 1.9; }
.tk-files { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.4rem; }
.tk-file {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
}
button.tk-file { cursor: pointer; font: inherit; font-size: 0.7rem; }
.tk-reply { display: grid; gap: 0.45rem; margin-top: 0.5rem; }
.tk-reply textarea { min-height: 4rem; }
.tk-reply__row { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tk-reply__row label { font-size: 0.75rem; color: var(--text-muted); cursor: pointer; display: inline-flex; gap: 0.3rem; align-items: center; }
.tk-reply__row input[type=file] { max-width: 200px; font-size: 0.7rem; }
.pill { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.68rem; border: 1px solid rgba(255, 255, 255, 0.14); }
.pill--open { color: #60a5fa; border-color: rgba(96, 165, 250, 0.45); }
.pill--in_progress { color: #a78bfa; border-color: rgba(167, 139, 250, 0.45); }
.pill--waiting { color: #fbbf24; border-color: rgba(251, 191, 36, 0.45); }
.pill--closed { color: var(--text-muted); }
.pill--high { color: #f87171; border-color: rgba(248, 113, 113, 0.45); }
.pill--low { color: var(--text-muted); }
.pill--type { color: var(--gold); border-color: var(--gold-soft); }

/* ── Request modal ── */
.modal-overlay.open { display: flex; }
.req-modal .modal-body { display: grid; gap: 0.7rem; }

/* ── Legal / about ── */
.legal h2 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
.legal p, .legal li { font-size: 0.86rem; line-height: 2.05; color: var(--text); }
.legal ul { padding-inline-start: 1.2rem; }
.legal .updated { color: var(--text-muted); font-size: 0.75rem; }
.company-card { display: grid; gap: 0.4rem; padding: 1rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--gold-soft); margin: 1rem 0; }
.company-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.84rem; }
.company-card dt { color: var(--text-muted); }
.company-card dd { margin: 0; }
.pillars { display: grid; gap: 0.8rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { padding: 1rem; border-radius: var(--radius); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.08); }
.pillar img { width: 40px; height: 40px; }
.pillar h3 { margin: 0.4rem 0 0.3rem; font-size: 0.95rem; }
.pillar p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.9; }

/* ── Login (OTP-first) ── */
.auth-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.6rem; line-height: 1.9; }
.auth-divider { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); font-size: 0.72rem; margin: 0.8rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.1); }

/* ---------- v2.1 additions (panel / login / sso) ---------- */
.quick-links--compact { grid-template-columns: repeat(2, 1fr) !important; margin-top: 0.8rem; }
.tk-list { display: grid; gap: 0.5rem; }
.request-list li .muted { font-size: 0.72rem; }
.sso-wait { text-align: center; padding: 3rem 1rem; }
.sso-wait i { font-size: 2rem; color: var(--gold); }
#newTicket { margin-bottom: 0.9rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.price-line + .steps21 { margin-top: 0.8rem; }
