/* =========================================================
   Zhiroom — سیستم طراحی (مرحله ۱)
   Dark Mode پیش‌فرض | RTL-first | آماده Light Mode با تعویض متغیرها
   ========================================================= */

:root {
    --c-bg: #0d0d0d;
    --c-panel: #1a1a1a;
    --c-raised: #222222;
    --c-line: #2a2a2a;
    --c-brand: #BA7802;
    --c-brand-soft: #D4AF37;
    --c-brand-deep: #A56B02;
    --c-fg: #F5F5F5;
    --c-muted: #A6A6AD;
    --c-success: #22C55E;
    --c-danger: #EF4444;
    --c-warning: #F59E0B;
    --c-info: #3B82F6;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 8px 30px -12px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 20px -6px rgba(186, 120, 2, 0.35);
    --font-main: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--c-bg);
    color: var(--c-fg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; }

::selection { background: var(--c-brand); color: #160B02; }

:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
    border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 8px; border: 2px solid var(--c-bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a45; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--c-brand);
    color: #160B02;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.skip-link:focus { inset-inline-start: 8px; }

.container {
    width: 100%;
    max-width: 1152px;
    margin-inline: auto;
    padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 24px; } }

/* =========================================================
   دکمه‌ها
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, filter .15s ease;
    user-select: none;
    padding: 10px 20px;
    font-size: 14px;
    height: 44px;
}
.btn:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.btn:disabled { opacity: .5; pointer-events: none; }

.btn-primary {
    background: var(--c-brand);
    color: #160B02;
    font-weight: 800;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--c-brand-soft); }
.btn-primary:active { background: var(--c-brand-deep); color: #fff; }

.btn-secondary {
    background: var(--c-raised);
    color: var(--c-fg);
    border: 1px solid var(--c-line);
}
.btn-secondary:hover { border-color: rgba(186, 120, 2, .5); }

.btn-ghost { color: var(--c-muted); }
.btn-ghost:hover { background: var(--c-raised); color: var(--c-fg); }

.btn-outline {
    border: 1px solid rgba(186, 120, 2, .6);
    color: var(--c-brand-soft);
}
.btn-outline:hover { background: rgba(186, 120, 2, .1); }

.btn-danger { background: var(--c-danger); color: #fff; font-weight: 800; }
.btn-danger:hover { filter: brightness(1.1); }

.btn-link { color: var(--c-brand-soft); padding: 0; height: auto; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn-sm { height: 36px; padding: 6px 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 16px; height: 16px; }

[dir="ltr"] .icon-flip { transform: scaleX(-1); }

/* =========================================================
   نشان‌ها (Badge)
   ========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    width: fit-content;
}
.badge-neutral { border-color: var(--c-line); background: var(--c-raised); color: var(--c-muted); }
.badge-brand { border-color: rgba(186,120,2,.3); background: rgba(186,120,2,.1); color: var(--c-brand-soft); }
.badge-success { border-color: rgba(34,197,94,.25); background: rgba(34,197,94,.1); color: var(--c-success); }
.badge-warning { border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.1); color: var(--c-warning); }
.badge-danger { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.1); color: var(--c-danger); }
.badge-info { border-color: rgba(59,130,246,.25); background: rgba(59,130,246,.1); color: var(--c-info); }
.badge .icon { width: 14px; height: 14px; }

/* =========================================================
   کارت‌ها و اعلان‌ها
   ========================================================= */
.card {
    background: var(--c-panel);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
}

/* attribute hidden همیشه برنده باشد — کلاس‌هایی با display:flex آن را دور می‌زدند */
[hidden] { display: none !important; }

.notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;    line-height: 1.9;
}
.notice .icon { width: 16px; height: 16px; margin-top: 3px; }
.notice-info { border: 1px solid rgba(59,130,246,.25); background: rgba(59,130,246,.08); color: var(--c-info); }
.notice-warning { border: 1px solid rgba(245,158,11,.25); background: rgba(245,158,11,.08); color: var(--c-warning); }
.notice-success { border: 1px solid rgba(34,197,94,.25); background: rgba(34,197,94,.08); color: var(--c-success); }
.notice-danger { border: 1px solid rgba(239,68,68,.25); background: rgba(239,68,68,.08); color: var(--c-danger); }

/* =========================================================
   فرم‌ها
   ========================================================= */
.form-field { margin-bottom: 16px; }
.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}
.input {
    width: 100%;
    height: 44px;
    background: var(--c-raised);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    color: var(--c-fg);
    padding: 0 14px;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--c-muted); opacity: .7; }
.input:focus {
    outline: none;
    border-color: rgba(186,120,2,.6);
    box-shadow: 0 0 0 3px rgba(186,120,2,.15);
}
.input[aria-invalid="true"] { border-color: var(--c-danger); }
.field-hint { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.field-error {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--c-danger);
    margin-top: 6px;
}
.field-error .icon { width: 14px; height: 14px; }
.tracking-code { letter-spacing: .6em; text-align: center; direction: ltr; }

.chip-disabled {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-line);
    background: var(--c-raised);
    font-size: 12px;
    color: var(--c-muted);
    cursor: not-allowed;
    opacity: .75;
}

.links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
}
.link { color: var(--c-brand-soft); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

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

/* =========================================================
   هدر سایت
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 13, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 43, 51, .6);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--radius-sm); }
.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c-brand-soft), var(--c-brand-deep));
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.logo-dot { color: var(--c-brand); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--c-muted);
    transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--c-fg); background: var(--c-raised); }
.nav-link.active { color: var(--c-fg); background: var(--c-raised); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-line);
    color: var(--c-fg);
    background: var(--c-panel);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.menu-toggle:hover { border-color: rgba(186,120,2,.55); box-shadow: 0 0 0 3px rgba(186,120,2,.12); }

/* همبرگر سه‌خطی انیمیشنی */
.burger { position: relative; width: 20px; height: 14px; display: block; }
.burger span {
    position: absolute;
    right: 0;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease, top .3s cubic-bezier(.4,0,.2,1), width .25s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; width: 75%; }
.burger span:nth-child(3) { top: 12px; }
.menu-toggle:hover .burger span:nth-child(2) { width: 100%; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
    border-top: 1px solid var(--c-line);
    padding: 12px 16px 20px;
    background: var(--c-panel);
    animation: menuDrop .28s ease both;
    transform-origin: top center;
}
@keyframes menuDrop {
    from { opacity: 0; transform: translateY(-10px) scaleY(.96); }
    to   { opacity: 1; transform: none; }
}
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    color: var(--c-muted);
    animation: menuItemIn .35s ease both;
}
.mobile-nav a:nth-child(1) { animation-delay: .03s; }
.mobile-nav a:nth-child(2) { animation-delay: .06s; }
.mobile-nav a:nth-child(3) { animation-delay: .09s; }
.mobile-nav a:nth-child(4) { animation-delay: .12s; }
.mobile-nav a:nth-child(5) { animation-delay: .15s; }
.mobile-nav a:nth-child(6) { animation-delay: .18s; }
.mobile-nav a:nth-child(7) { animation-delay: .21s; }
.mobile-nav a:hover { background: var(--c-raised); color: var(--c-fg); }
@keyframes menuItemIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: none; }
}
.mobile-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.site-main { flex: 1; }

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
    .header-actions { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(130px);
    pointer-events: none;
}
.hero-glow-1 {
    width: 420px; height: 420px;
    background: rgba(186, 120, 2, .15);
    top: -160px;
    inset-inline-start: 22%;
}
.hero-glow-2 {
    width: 280px; height: 280px;
    background: rgba(59, 130, 246, .1);
    bottom: -60px;
    inset-inline-end: 0;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 56px;
    align-items: center;
    padding-block: 64px 80px;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.05fr .95fr; padding-block: 96px 112px; }
}

.hero-title {
    margin-top: 24px;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.45;
}
.text-gradient-brand,
.error-code {
    background-image: linear-gradient(110deg, var(--c-brand), var(--c-brand-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin-top: 20px;
    max-width: 34rem;
    font-size: clamp(14.5px, 1.4vw, 17px);
    line-height: 2.1;
    color: var(--c-muted);
}

.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.trust-list {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 8px;
    font-size: 14px;
    color: var(--c-muted);
}
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list .icon { width: 16px; height: 16px; color: var(--c-success); }

/* ---------- ماکاپ جلسه ---------- */
.hero-visual { position: relative; }
.mockup {
    position: relative;
    margin-inline: auto;
    max-width: 560px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-line);
    background: var(--c-panel);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.mockup-glow {
    position: absolute;
    inset: -24px;
    z-index: -1;
    border-radius: 32px;
    background: rgba(186, 120, 2, .1);
    filter: blur(40px);
}

.mockup-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(43,43,51,.7);
}
.dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.dot-red { background: rgba(239,68,68,.8); }
.dot-yellow { background: rgba(245,158,11,.8); }
.dot-green { background: rgba(34,197,94,.8); }
.dots { display: flex; gap: 6px; }
.room-pill {
    background: var(--c-raised);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 10.5px;
    color: var(--c-muted);
}
.rec-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-danger);
}
.rec-dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--c-danger); }
.rec-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--c-danger);
    animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping {
    0% { transform: scale(1); opacity: .7; }
    80%, 100% { transform: scale(2.2); opacity: 0; }
}

.mockup-body { display: flex; gap: 8px; padding: 8px; }
.mockup-main {
    position: relative;
    flex: 1;
    min-height: 210px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(186,120,2,.4);
    background: var(--c-raised);
    display: grid;
    place-items: center;
}
.avatar-lg {
    width: 64px; height: 64px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--c-brand-soft), var(--c-brand-deep));
    color: #160B02;
    font-weight: 800;
    font-size: 20px;
    outline: 4px solid rgba(186,120,2,.3);
}
.speaker-chip {
    position: absolute;
    bottom: 10px;
    inset-inline-start: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(11,11,13,.85);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 500;
}
.speaker-chip::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--c-success);
}

.mockup-side {
    display: none;
    width: 88px;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
@media (min-width: 640px) { .mockup-side { display: flex; } }
.mini-tile {
    position: relative;
    height: 62px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(43,43,51,.7);
    background: var(--c-raised);
    display: grid;
    place-items: center;
}
.avatar-sm {
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--c-brand-soft), var(--c-brand-deep));
    color: #160B02;
    font-weight: 700;
    font-size: 10.5px;
}
.mic-off-badge {
    position: absolute;
    bottom: 4px;
    inset-inline-end: 4px;
    width: 18px; height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(11,11,13,.85);
}
.mic-off-badge .icon { width: 10px; height: 10px; color: var(--c-danger); }

.mockup-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    border-top: 1px solid rgba(43,43,51,.7);
    padding: 0 12px;
}
.ctrl-btn {
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--c-raised);
    color: var(--c-muted);
}
.ctrl-btn .icon { width: 15px; height: 15px; }
.ctrl-btn-danger { background: rgba(239,68,68,.9); color: #fff; }

.float-chip {
    position: absolute;
    display: none;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-line);
    background: var(--c-panel);
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: var(--shadow-card);
}
.float-chip .icon { width: 16px; height: 16px; }
.fc-users { bottom: -18px; inset-inline-end: -12px; color: var(--c-fg); }
.fc-users .icon { color: var(--c-brand-soft); }
.fc-chat { top: -16px; inset-inline-start: -12px; }
.fc-chat .icon { color: var(--c-info); }
.fc-poll { bottom: -18px; inset-inline-start: 40px; }
.fc-poll .icon { color: var(--c-success); }
@media (min-width: 768px) { .float-chip { display: flex; } }

/* =========================================================
   سکشن‌های عمومی
   ========================================================= */
.section { padding-block: 80px; }
.section-bordered { border-top: 1px solid rgba(43,43,51,.6); }
@media (min-width: 768px) { .section { padding-block: 110px; } }

.section-heading { margin-bottom: 48px; text-align: center; }
@media (min-width: 768px) { .section-heading { margin-bottom: 56px; } }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--c-brand-soft);
}
.eyebrow::before {
    content: "";
    width: 4px; height: 4px;
    border-radius: 999px;
    background: var(--c-brand);
}
.section-title {
    margin-top: 12px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.5;
}
.section-sub {
    margin-top: 12px;
    max-width: 42rem;
    margin-inline: auto;
    font-size: 15px;
    line-height: 2;
    color: var(--c-muted);
}

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.feature-card { padding: 22px; transition: border-color .15s ease, background-color .15s ease; }
.feature-card:hover { border-color: rgba(186,120,2,.4); background: var(--c-raised); }
.feature-card h3 { margin-top: 16px; font-size: 15.5px; font-weight: 700; }
.feature-card p { margin-top: 6px; font-size: 13.5px; line-height: 2; color: var(--c-muted); }

.icon-box {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(186,120,2,.1);
    color: var(--c-brand-soft);
}
.icon-box.soft { width: 40px; height: 40px; background: var(--c-raised); }

.usecase-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    transition: border-color .15s ease;
}
.usecase-card:hover { border-color: rgba(186,120,2,.4); }
.usecase-card h3 { font-size: 15px; font-weight: 700; }
.usecase-card p { margin-top: 4px; font-size: 13.5px; line-height: 1.9; color: var(--c-muted); }

/* =========================================================
   پلن‌ها
   ========================================================= */
.plans-grid { align-items: stretch; }
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
}
.plan-card.featured {
    border-color: rgba(186,120,2,.6);
    box-shadow: var(--shadow-glow);
}
.plan-flag {
    position: absolute;
    top: -13px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
[dir="ltr"] .plan-flag { transform: translateX(50%); }

.plan-name { font-size: 18px; font-weight: 800; }
.plan-desc { margin-top: 4px; font-size: 12.5px; color: var(--c-muted); }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price strong { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.plan-price small { font-size: 12px; color: var(--c-muted); }

.plan-features { margin-top: 22px; margin-bottom: 24px; display: grid; gap: 11px; flex: 1; }
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.9;
}
.plan-features .icon { width: 17px; height: 17px; margin-top: 4px; }
.plan-features li.on { color: var(--c-fg); }
.plan-features li.on .icon { color: var(--c-success); }
.plan-features li.off {
    color: rgba(166,166,173,.55);
    text-decoration: line-through;
    text-decoration-color: rgba(166,166,173,.35);
}
.plan-features li.off .icon { color: rgba(166,166,173,.45); }

.plan-note {
    margin-top: 36px;
    text-align: center;
    font-size: 12.5px;
    line-height: 2;
    color: var(--c-warning);
}

/* =========================================================
   نظرات کاربران
   ========================================================= */
.testimonial-card { display: flex; flex-direction: column; padding: 24px; }
.t-quote-icon { width: 24px; height: 24px; color: rgba(186,120,2,.5); margin-bottom: 16px; }
.t-text { flex: 1; font-size: 14px; line-height: 2.2; }
.t-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--c-line);
}
.t-avatar {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--c-raised);
    color: var(--c-brand-soft);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.t-name { font-size: 14px; font-weight: 700; }
.t-role { font-size: 12px; color: var(--c-muted); }
.testimonials-note { margin-top: 28px; text-align: center; font-size: 12.5px; color: var(--c-muted); }

/* =========================================================
   سوالات متداول
   ========================================================= */
.faq-list { max-width: 720px; margin-inline: auto; }
.faq-item {
    background: var(--c-panel);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: color .15s ease;
}
.faq-q:hover { color: var(--c-brand-soft); }
.faq-q .icon { width: 18px; height: 18px; color: var(--c-muted); transition: transform .2s ease; }
.faq-item[open] .faq-q { color: var(--c-brand-soft); }
.faq-item[open] .faq-q .icon { transform: rotate(180deg); color: var(--c-brand-soft); }
.faq-a { padding: 0 20px 18px; font-size: 14px; line-height: 2.1; color: var(--c-muted); }

/* =========================================================
   CTA
   ========================================================= */
.cta-section { padding-block: 64px; }
@media (min-width: 768px) { .cta-section { padding-block: 96px; } }
.cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(186,120,2,.25);
    background: var(--c-panel);
    padding: 48px 24px;
    box-shadow: var(--shadow-glow);
}
.cta-banner::before {
    content: "";
    position: absolute;
    top: -100px;
    inset-inline-start: 15%;
    width: 70%;
    height: 190px;
    border-radius: 999px;
    background: rgba(186,120,2,.15);
    filter: blur(100px);
    pointer-events: none;
}
.cta-title { position: relative; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; line-height: 1.6; }
.cta-sub { position: relative; margin-top: 12px; font-size: 15px; color: var(--c-muted); }
.cta-actions {
    position: relative;
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* =========================================================
   فوتر
   ========================================================= */
.site-footer {
    border-top: 1px solid var(--c-line);
    background: rgba(18, 18, 22, .4);
    padding-block: 48px 24px;
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(6, 1fr); } }
.footer-brand { grid-column: span 2; }
.footer-tagline { margin-top: 16px; max-width: 20rem; font-size: 14px; line-height: 2; color: var(--c-muted); }
.socials { margin-top: 20px; display: flex; gap: 8px; }
.socials a {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-line);
    color: var(--c-muted);
    transition: color .15s ease, border-color .15s ease;
}
.socials a:hover { color: var(--c-brand-soft); border-color: rgba(186,120,2,.4); }
.socials .icon { width: 16px; height: 16px; }

.site-footer nav h2 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer nav ul a { font-size: 14px; color: var(--c-muted); transition: color .15s ease; }
.site-footer nav ul a:hover { color: var(--c-brand-soft); }

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--c-muted);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { transition: color .15s ease; }
.footer-bottom-links a:hover { color: var(--c-fg); }

/* =========================================================
   صفحات احراز هویت / ورود به جلسه
   ========================================================= */
.auth-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 16px;
}
.auth-box { width: 100%; max-width: 420px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-card { padding: 30px; }
.auth-title { font-size: 21px; font-weight: 800; }
.auth-subtitle { margin-top: 8px; font-size: 14px; line-height: 2; color: var(--c-muted); }
.auth-card form { margin-top: 24px; }
.card .btn-block { margin-top: 4px; }
.card .notice { margin-top: 16px; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--c-muted); }

.steps-card {
    margin-top: 24px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: rgba(27,27,33,.5);
    padding: 16px;
}
.steps-card h2 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.steps-card ol { list-style: persian; padding-inline-start: 20px; display: grid; gap: 6px; }
.steps-card li { font-size: 12.5px; line-height: 1.95; color: var(--c-muted); }

/* =========================================================
   هدر صفحات داخلی + صفحات محتوایی
   ========================================================= */
.page-hero {
    text-align: center;
    padding-block: 56px;
    border-bottom: 1px solid rgba(43,43,51,.6);
}
@media (min-width: 768px) { .page-hero { padding-block: 80px; } }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.5; }
.page-hero p {
    margin: 16px auto 0;
    max-width: 42rem;
    font-size: 15px;
    line-height: 2.1;
    color: var(--c-muted);
}

.page-wrap { max-width: 720px; margin-inline: auto; padding-block: 64px; }
.page-wrap h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.5; }
.page-wrap > .lead { margin-top: 8px; font-size: 15px; color: var(--c-muted); }
.prose p { margin-top: 18px; font-size: 14.5px; line-height: 2.2; color: #d4d4d8; }

.intro-box {
    margin-top: 24px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: rgba(27,27,33,.5);
    padding: 14px 18px;
    font-size: 14px;
    line-height: 2.2;
    color: var(--c-muted);
}
.updated { margin-top: 6px; font-size: 12px; color: var(--c-muted); }
.legal-section { margin-top: 36px; }
.legal-section h2 { font-size: 17.5px; font-weight: 800; color: var(--c-brand-soft); margin-bottom: 10px; }
.legal-section p, .legal-section li {
    font-size: 14px;
    line-height: 2.2;
    color: #d4d4d8;
}
.legal-section ul { display: grid; gap: 8px; }
.legal-section li { padding-inline-start: 14px; position: relative; }
.legal-section li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 13px;
    width: 5px; height: 5px;
    border-radius: 999px;
    background: var(--c-line);
}

.values-grid { margin-top: 20px; display: grid; gap: 16px; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { padding: 20px; }
.value-card h3 { font-size: 15px; font-weight: 700; color: var(--c-brand-soft); margin-bottom: 8px; }
.value-card p { font-size: 13.5px; line-height: 2; color: var(--c-muted); }
.section-sub-title { display: flex; align-items: center; gap: 10px; margin-top: 48px; font-size: 18px; font-weight: 800; }

.channel-card { display: flex; align-items: center; gap: 14px; padding: 20px; }
.channel-label { font-size: 12px; color: var(--c-muted); }
.channel-value { margin-top: 2px; font-size: 14.5px; font-weight: 600; }

.help-cards { margin-top: 36px; }
.help-topic-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.help-topic-head h2 { font-size: 15px; font-weight: 700; }
.help-foot { margin-top: 32px; text-align: center; font-size: 14px; color: var(--c-muted); }

/* وضعیت سرویس */
.status-banner {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-md);
    border: 1px solid;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
}
.status-banner .icon { width: 20px; height: 20px; flex-shrink: 0; }
.status-banner.ok { border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.08); color: var(--c-success); }
.status-banner.warn { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); color: var(--c-warning); }

.service-list { margin-top: 24px; display: grid; gap: 12px; }
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}
.service-name { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.service-state .icon { width: 16px; height: 16px; }
.state-ok .icon { color: var(--c-success); }
.state-warn .icon { color: var(--c-warning); }
.state-down .icon { color: var(--c-danger); }
.muted-note {
    margin-top: 32px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: rgba(27,27,33,.5);
    padding: 12px 16px;
    font-size: 12.5px;
    line-height: 2;
    color: var(--c-muted);
}

.payment-warning { margin-top: 0; }
.compare-note { margin-top: 12px; padding-inline-start: 24px; font-size: 12.5px; line-height: 2; color: var(--c-muted); }

/* =========================================================
   صفحات مستقل (۴۰۴، نگهداری)
   ========================================================= */
body.is-standalone {
    display: grid;
    place-items: center;
}
.standalone-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px;
    text-align: center;
}
.standalone-wrap .logo-mark { width: 48px; height: 48px; border-radius: 16px; }
.error-code { font-size: clamp(64px, 12vw, 104px); font-weight: 900; line-height: 1; }
.standalone-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.standalone-desc { max-width: 24rem; font-size: 14px; line-height: 2.1; color: var(--c-muted); }
.actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.spin { animation: spin 1s linear infinite; color: var(--c-brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   داشبورد و مدیریت اتاق‌ها
   ========================================================= */
.dash-box { width: 100%; max-width: 640px; display: grid; gap: 16px; }
.dash-welcome { display: flex; align-items: center; gap: 14px; }
.dash-welcome .t-avatar { width: 48px; height: 48px; font-size: 15px; background: rgba(186,120,2,.12); color: var(--c-brand-soft); border: 1px solid rgba(186,120,2,.3); }
.dash-section-title { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 800; margin-top: 24px; margin-bottom: 4px; }
.dash-section-title .icon { width: 20px; height: 20px; color: var(--c-brand); }

.rooms-list { display: grid; gap: 12px; margin-top: 16px; }
.room-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; transition: border-color .15s ease; }
.room-row:hover { border-color: rgba(186,120,2,.35); }
.room-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-info h3 { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.room-code {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: rgba(27,27,33,.7);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: .5px;
    color: var(--c-brand-soft);
}
.room-code.big { font-size: 15px; padding: 5px 16px; letter-spacing: 1px; }
.room-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.room-actions form { margin: 0; }

.room-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: rgba(27,27,33,.5); }
.room-detail-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); }
.room-detail-label .icon { width: 16px; height: 16px; }

.share-row { display: flex; gap: 8px; }
.share-row .input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; direction: ltr; text-align: left; }
.share-row .btn { flex-shrink: 0; white-space: nowrap; }

.mockup-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    border: 1px dashed var(--c-line);
    border-radius: var(--radius-md);
    background:
        radial-gradient(ellipse at top, rgba(186,120,2,.08), transparent 65%),
        rgba(11,11,13,.5);
}
.avatar-lg {
    width: 64px; height: 64px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(186,120,2,.12);
    border: 1px solid rgba(186,120,2,.35);
    color: var(--c-brand-soft);
    font-weight: 800;
    font-size: 18px;
}

/* =========================================================
   اتاق جلسه (WebRTC)
   ========================================================= */
body.meeting-body { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }

/* پیش‌ورود */
.prejoin {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background:
        radial-gradient(ellipse at top, rgba(186,120,2,.12), transparent 60%),
        var(--c-bg);
}
.prejoin-card { width: 100%; max-width: 440px; }
.prejoin-head { display: flex; align-items: center; gap: 14px; }
.prejoin-logo { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; }
.prejoin-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; color: var(--c-muted); }
.prejoin-back:hover { color: var(--c-brand-soft); }

/* اسکلت جلسه */
.meeting { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--c-bg); position: relative; }
.meet-topbar {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-inline: 16px;
    border-bottom: 1px solid var(--c-line);
    background: rgba(18,18,22,.6);
}
.meet-topbar-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.meet-logo { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; }
.meet-title { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-topbar-end { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.meet-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 12px; }
.meet-count .icon { width: 15px; height: 15px; }
.meet-timer { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; font-weight: 700; color: var(--c-brand-soft); direction: ltr; }

.meet-main { flex: 1; min-height: 0; display: flex; }

/* شبکه ویدیو */
.video-grid {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 12px;
    align-content: start;
    padding: 16px 16px 84px;
}
.tile {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--c-raised);
    border: 1px solid var(--c-line);
    transition: box-shadow .25s ease, border-color .2s ease;
}
.tile.speaking { border-color: rgba(34,197,94,.7); box-shadow: 0 0 0 2px rgba(34,197,94,.35); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile video.self-mirror { transform: scaleX(-1); }
.tile-avatar {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 40px; font-weight: 800;
    color: var(--c-brand-soft);
    background: radial-gradient(circle at center, rgba(186,120,2,.1), transparent 70%);
}
.tile-name {
    position: absolute;
    bottom: 10px; inset-inline-start: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(11,11,13,.78);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 12.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-flags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.tile-flags .flag {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: rgba(11,11,13,.78);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
}
.tile-connecting {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: rgba(11,11,13,.55);
    backdrop-filter: blur(2px);
    color: var(--c-muted);
    font-style: normal;
}
.tile-connecting em { font-size: 12px; }
.tile-connecting .spin { font-size: 22px; color: var(--c-brand); }
.tile.connected .tile-connecting { display: none !important; }

/* پنل کناری (گفت‌وگو / شرکت‌کنندگان) */
.side-panel {
    width: 272px;
    flex-shrink: 0;
    display: none;
    flex-direction: column;
    border-inline-start: 1px solid var(--c-line);
    background: var(--c-panel);
}
.side-panel.open { display: flex; }
.panel-tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.panel-tab {
    flex: 1;
    height: 36px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 13px; font-weight: 600;
    color: var(--c-muted);
}
.panel-tab:hover { color: var(--c-fg); }
.panel-tab.active { background: rgba(186,120,2,.12); color: var(--c-brand-soft); border-color: rgba(186,120,2,.3); }
.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pane[hidden] { display: none !important; }
.pane-chat .chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; align-self: flex-start; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--c-raised); border: 1px solid var(--c-line); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: rgba(186,120,2,.14); border-color: rgba(186,120,2,.3); }
.msg .who { display: block; font-size: 11px; color: var(--c-brand-soft); margin-bottom: 2px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-line); }
.chat-form .input { flex: 1; min-width: 0; height: 40px; }
.chat-send { width: 40px; height: 40px; padding: 0; flex-shrink: 0; }
.chat-send .icon { width: 17px; height: 17px; }
.people-list { flex: 1; overflow-y: auto; list-style: none; padding: 14px; display: grid; gap: 10px; align-content: start; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--c-line); background: var(--c-raised); }
.person-name { flex: 1; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.person-hand { font-size: 15px; }

/* کنترل‌های میزبان روی شرکت‌کنندگان */
.person-mod { display: flex; gap: 4px; flex-shrink: 0; }
.mod-btn {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-line);
    background: transparent;
    color: var(--c-muted);
    transition: color .15s ease, border-color .15s ease;
}
.mod-btn:hover { color: var(--c-brand-soft); border-color: rgba(186,120,2,.45); }
.mod-btn.done { opacity: .45; }
.mod-btn.danger:hover { color: var(--c-danger); border-color: var(--c-danger); }
.mod-btn svg { width: 14px; height: 14px; }

/* دکمه‌های مجوز میزبان: روشن = مجوز داده شده */
.mod-btn.pm.on {
    color: #fff;
    background: var(--c-brand);
    border-color: var(--c-brand);
}
.mod-btn.pm.on:hover { filter: brightness(1.1); }

/* ردیف اعطای سریع مجوز به همه */
.perm-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px dashed var(--c-line);
    border-radius: var(--radius-md);
}
.perm-all-label { font-size: 12px; color: var(--c-muted); }
.perm-all-btns { display: flex; gap: 4px; }
.pane-empty { padding: 20px; text-align: center; font-size: 13px; color: var(--c-muted); }

/* نوار کنترل */
/* نوار کنترل: شناور روی ناحیه ویدیو */
.meet-controls-wrap {
    position: absolute;
    inset-inline: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 30;
}
.meet-controls {
    pointer-events: auto;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(27,27,33,.92);
    border: 1px solid var(--c-line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 32px rgba(0,0,0,.45);
}
.ctl-btn {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: var(--c-raised);
    color: var(--c-fg);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ctl-btn:hover:not(:disabled) { border-color: rgba(186,120,2,.5); color: var(--c-brand-soft); }
.ctl-btn.off, .ctl-btn.active { background: rgba(186,120,2,.16); border-color: rgba(186,120,2,.45); color: var(--c-brand-soft); }
.ctl-btn:disabled { opacity: .38; cursor: not-allowed; }
.ctl-btn.danger { background: var(--c-danger); border-color: transparent; color: #fff; }
.ctl-btn.danger:hover { filter: brightness(1.12); color: #fff; }
.ctl-btn .icon { width: 19px; height: 19px; }
.ctl-sep { width: 1px; height: 24px; background: var(--c-line); }

/* دکمه ضبط در حالت فعال — کلیک دوباره = پایان ضبط و دانلود */
.ctl-btn.recording {
    background: rgba(220,38,38,.22);
    border-color: rgba(220,38,38,.65);
    color: #f87171;
    animation: zhRecPulse 1.5s ease-in-out infinite;
}
@keyframes zhRecPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); }
    50%      { box-shadow: 0 0 0 7px rgba(220,38,38,0); }
}

/* توست‌ها */
.toasts {
    position: fixed;
    bottom: 88px; inset-inline: 0;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    pointer-events: none;
    z-index: 60;
}
.toast {
    max-width: min(90%, 420px);
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(27,27,33,.95);
    border: 1px solid var(--c-line);
    font-size: 13px;
    animation: toast-in .25s ease;
    overflow-wrap: anywhere;
}
.toast.out { opacity: 0; transition: opacity .4s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
    .side-panel {
        position: fixed;
        inset-block: 56px 84px;
        inset-inline: 12px;
        width: auto;
        z-index: 50;
        border: 1px solid var(--c-line);
        border-radius: var(--radius-md);
        box-shadow: 0 18px 48px rgba(0,0,0,.5);
    }
    .meet-title { max-width: 110px; }
}

/* =========================================================
   کاهش حرکت
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   پنل مالک (admin)
   ========================================================= */
.admin-wrap { padding: 32px 20px 60px; max-width: 1100px; margin: 0 auto; }
.admin-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.admin-wrap > .lead { color: var(--c-muted); margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--c-fg); }
.stat-card strong { display: block; font-size: 22px; line-height: 1.2; }
.stat-card span { font-size: 12.5px; color: var(--c-muted); }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.admin-form h3 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; margin-bottom: 16px; }
.admin-form input[type=text], .admin-form input[type=password], .admin-form input[type=number], .admin-form textarea, .admin-form select {
    width: 100%; padding: 10px 12px; background: var(--c-bg); border: 1px solid var(--c-line);
    border-radius: var(--radius-sm); color: var(--c-fg); font-family: var(--font-main); font-size: 13.5px;
    outline: none; transition: border-color .2s ease; margin-bottom: 12px;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: rgba(186,120,2,.55); }
.f-label { display: block; font-size: 12.5px; color: var(--c-muted); margin: 4px 0 5px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 7px 0; cursor: pointer; }
.chk input { accent-color: var(--c-brand); width: 16px; height: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.inline-form { display: inline-flex; }
.admin-list { padding: 8px; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 10px; border-radius: var(--radius-sm); transition: background .15s ease; }
.admin-row:hover { background: var(--c-raised); }
.admin-row.row-hidden { opacity: .45; }
.admin-row-main strong { display: block; font-size: 13.5px; font-weight: 600; }
.admin-row-main .muted { font-size: 11.5px; }
.admin-row-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.survey-card { padding: 18px; margin-bottom: 14px; }
.survey-head { display: flex; align-items: center; gap: 12px; }
.survey-head .t-avatar { width: 40px; height: 40px; font-size: 14px; background: linear-gradient(135deg, var(--c-brand), var(--c-brand-soft)); color: #160B02; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.survey-head .stars { color: var(--c-brand-soft); margin-inline-start: auto; letter-spacing: 2px; font-size: 13px; }
.survey-text { margin-top: 12px; padding: 12px 14px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: 13.5px; line-height: 2; color: var(--c-muted); }
.msg-unread { border-color: rgba(186,120,2,.45); box-shadow: 0 0 0 1px rgba(186,120,2,.2); }
.test-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--c-line); }
.gold-link { color: var(--c-brand-soft); }
.gold-link:hover { text-decoration: underline; }

/* فرم نظرسنجی صفحه اصلی */
.survey-section { padding: 64px 0 72px; border-top: 1px solid var(--c-line); }
.survey-box { max-width: 720px; margin: 28px auto 0; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 14px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 26px; color: var(--c-line); cursor: pointer; transition: color .15s ease, transform .15s ease; }
.rating-input label:hover { transform: scale(1.15); }
@media (max-width: 900px) {
    .admin-grid, .admin-grid-2 { grid-template-columns: 1fr; }
}
/* ===== دست‌های بالا، ضبط جلسه و نظرسنجی (v0.2) ===== */
.meet-hands {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-brand-soft);
    border: 1px solid var(--c-brand-deep);
    border-radius: 999px;
    padding: 4px 12px;
    cursor: pointer;
    animation: handsPulse 1.6s ease-in-out infinite;
}
.meet-hands b { font-weight: 800; }
@keyframes handsPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.rec-btn .rec-dot-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5484d;
    border: 2px solid currentColor;
}
.rec-btn.recording { color: #ff5b60; border-color: rgba(229, 72, 77, 0.6); }
.rec-btn.recording .rec-dot-icon { animation: recBlink 1.2s ease-in-out infinite; }
@keyframes recBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.poll-area { max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.poll-card {
    background: var(--c-raised, #222222);
    border: 1px solid var(--c-line);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.poll-q { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.7; }
.poll-opt {
    position: relative;
    overflow: hidden;
    text-align: start;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 7px 10px;
    font: inherit;
    font-size: 13px;
    color: var(--c-text, #f5f5f5);
    cursor: pointer;
    z-index: 0;
    transition: border-color 0.15s ease;
}
.poll-opt:hover { border-color: var(--c-brand); }
.poll-opt.mine { border-color: var(--c-brand-soft); }
.poll-opt .poll-opt-text { position: relative; z-index: 1; display: block; font-weight: 600; }
.poll-opt .poll-opt-meta { position: relative; z-index: 1; display: block; font-size: 11.5px; color: var(--c-muted, #b0b0b0); margin-top: 2px; }
.poll-bar { position: absolute; inset-block-start: 0; inset-inline-end: 0; bottom: 0; background: rgba(186, 120, 2, 0.18); z-index: -1; transition: width 0.3s ease; }

.poll-new-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px dashed var(--c-brand-deep);
    border-radius: 8px;
    color: var(--c-brand-soft);
    font: inherit;
    font-size: 12.5px;
    padding: 4px 10px;
    cursor: pointer;
    margin-bottom: 8px;
}
.poll-new-btn:hover { border-style: solid; }

.poll-composer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--c-raised, #222222);
    border: 1px solid var(--c-line);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}
.poll-composer input[type="text"],
.poll-composer textarea {
    background: var(--c-bg, #0d0d0d);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    color: inherit;
    font: inherit;
    font-size: 13px;
    padding: 7px 9px;
    resize: vertical;
}

/* =========================================================
   v0.3 — انیمیشن هیرو، فرم‌های خوش‌ساخت، چک‌باکس سفارشی، امضای Everloop
   ========================================================= */

/* --- امضای توسعه‌دهنده در فوتر --- */
.dev-credit { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); }
.everloop-mark {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    direction: ltr;
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: 0.4px;
    background: linear-gradient(120deg, #f0d98c, var(--c-brand-soft) 45%, var(--c-brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.inf-svg { width: 27px; height: 14px; margin: 0 1px; filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.45)); }
.everloop-mark:hover .inf-svg { animation: infGlow 1.6s ease-in-out infinite; }
@keyframes infGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.35)); }
    50% { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.85)); }
}

/* --- انیمیشن‌های ملایم بخش Hero --- */
@keyframes zhFloatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes zhFloatYsm { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes zhRingPulse {
    0%, 100% { outline-color: rgba(186, 120, 2, 0.3); }
    50% { outline-color: rgba(212, 175, 55, 0.7); }
}

.hero-visual .float-chip.fc-chat { animation: zhFloatY 4.2s ease-in-out infinite; }
.hero-visual .float-chip.fc-users { animation: zhFloatY 5s ease-in-out 0.6s infinite; }
.hero-visual .float-chip.fc-poll { animation: zhFloatY 5.6s ease-in-out 1.1s infinite; }

.mockup-side .mini-tile:nth-child(1) { animation: zhFloatYsm 3.8s ease-in-out infinite; }
.mockup-side .mini-tile:nth-child(2) { animation: zhFloatYsm 3.8s ease-in-out 0.4s infinite; }
.mockup-side .mini-tile:nth-child(3) { animation: zhFloatYsm 3.8s ease-in-out 0.8s infinite; }

.mockup-controls .ctrl-btn:nth-child(1) { animation: zhFloatYsm 3s ease-in-out infinite; }
.mockup-controls .ctrl-btn:nth-child(2) { animation: zhFloatYsm 3s ease-in-out 0.25s infinite; }
.mockup-controls .ctrl-btn:nth-child(3) { animation: zhFloatYsm 3s ease-in-out 0.5s infinite; }
.mockup-controls .ctrl-btn:nth-child(4) { animation: zhFloatYsm 3s ease-in-out 0.75s infinite; }
.mockup-controls .ctrl-btn:nth-child(5) { animation: zhFloatYsm 3s ease-in-out 1s infinite; }
.mockup-controls .ctrl-btn.ctrl-btn-danger { animation: none; }

.hero-visual .avatar-lg { animation: zhRingPulse 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .hero-visual .float-chip,
    .mockup-side .mini-tile,
    .mockup-controls .ctrl-btn,
    .hero-visual .avatar-lg { animation: none !important; }
}

/* --- فرم‌های عمومی: ورودی بدون کلاس هم خوش‌ساخت باشد --- */
main form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not(.input),
main form textarea:not(.input),
main form select:not(.input) {
    width: 100%;
    background: var(--c-raised);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    color: var(--c-fg);
    padding: 11px 14px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
main form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.input):hover,
main form textarea:not(.input):hover,
main form select:not(.input):hover { border-color: var(--c-brand-deep); }
main form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.input):focus,
main form textarea:not(.input):focus,
main form select:not(.input):focus {
    outline: none;
    border-color: rgba(186, 120, 2, 0.65);
    box-shadow: 0 0 0 3px rgba(186, 120, 2, 0.18);
}
main form textarea:not(.input) { min-height: 110px; resize: vertical; line-height: 1.9; }
main form ::placeholder { color: var(--c-muted); opacity: 0.65; }
main form label.f-label { margin-top: 12px; font-weight: 600; letter-spacing: 0.2px; }
main form label.f-label:first-child { margin-top: 0; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* --- جعبه نظرسنجی: بازطراحی کامل --- */
.survey-box {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    margin: 36px auto 0;
    padding: clamp(22px, 4vw, 38px) clamp(18px, 4vw, 40px) clamp(20px, 3.5vw, 34px);
    border: 1px solid rgba(186, 120, 2, 0.25);
    border-radius: var(--radius-lg, 16px);
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(212, 175, 55, 0.10), transparent 55%),
        var(--c-panel);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}
.survey-box::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c-brand-soft) 30%, var(--c-brand) 70%, transparent);
}
.survey-box .section-heading { margin-bottom: 6px; }

.survey-box input[type="text"],
.survey-box input[type="email"],
.survey-box textarea {
    background: rgba(13, 13, 13, 0.55);
    margin-bottom: 14px;
}
.survey-box .form-grid-2 { gap: 0 16px; }
.survey-box textarea { min-height: 130px; }

/* ستاره‌های امتیاز */
.survey-box .rating-input { margin: 2px 0 14px; gap: 6px; }
.rating-input label {
    font-size: 32px;
    line-height: 1;
    padding: 2px;
    color: #3a3a42;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.rating-input label:hover { transform: scale(1.25) rotate(-6deg); color: #8a6a1f; }
.rating-input input:checked + label,
.rating-input input:checked ~ label {
    color: var(--c-brand-soft);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}
@keyframes starPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.rating-input input:checked + label { animation: starPop 0.25s ease; }

.survey-box .btn-group { margin-top: 10px; }
.survey-box .btn-group .btn { min-width: 160px; }
.survey-box .notice { margin-bottom: 16px; }

/* کارت فرم عمومی (تماس با ما و…) — جایگزین padding های inline */
.form-card {
    padding: clamp(20px, 3.5vw, 30px) clamp(18px, 3.5vw, 32px);
    max-width: 680px;
    border-radius: var(--radius-lg, 16px);
}
.form-card h3 { margin-top: 0; }


/* --- چک‌باکس سفارشی --- */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 0;
    border: 2px solid var(--c-line);
    border-radius: 6px;
    background: var(--c-raised);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="checkbox"]:hover { border-color: var(--c-brand-deep); }
input[type="checkbox"]:focus-visible { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(186, 120, 2, 0.2); }
input[type="checkbox"]::before {
    content: "";
    width: 11px;
    height: 11px;
    transform: scale(0);
    transition: transform 0.12s ease-in-out;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background: #160B02;
}
input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--c-brand-soft), var(--c-brand));
    border-color: var(--c-brand);
}
input[type="checkbox"]:checked::before { transform: scale(1); }
.chk input[type="checkbox"] { width: 20px; height: 20px; accent-color: initial; }

/* --- کارت هویت پیش‌اتاق (کاربر لاگین‌شده) --- */
.prejoin-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(120deg, rgba(186, 120, 2, 0.10), rgba(186, 120, 2, 0.03));
    border: 1px solid rgba(186, 120, 2, 0.28);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}
.prejoin-identity .prejoin-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}
.prejoin-id-text { min-width: 0; flex: 1; }
.prejoin-id-text strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prejoin-id-text .field-hint { margin-top: 2px; }
.prejoin-check { width: 20px; height: 20px; color: var(--c-success); flex-shrink: 0; }

/* --- پایین آوردن همه دست‌ها (میزبان) --- */
.lower-all-wrap { padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.lower-all-wrap .btn { font-size: 12.5px; }

/* منوی سه‌نقطه مدیریت شرکت‌کننده */
.person-kebab { flex-shrink: 0; }
.mod-menu {
    position: fixed;
    z-index: 90;
    min-width: 190px;
    display: grid;
    gap: 2px;
    padding: 6px;
    border-radius: var(--radius-md);
    background: rgba(27,27,33,.97);
    border: 1px solid var(--c-line);
    box-shadow: 0 14px 40px rgba(0,0,0,.55);
    animation: zhMenuIn .14s ease;
}
@keyframes zhMenuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
.mod-menu-item {
    display: block;
    width: 100%;
    text-align: start;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--c-fg);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.mod-menu-item:hover { background: rgba(186,120,2,.16); color: var(--c-brand-soft); }
.mod-menu-item.danger:hover { background: rgba(220,38,38,.18); color: #fca5a5; }

/* ---------- انیمیشن ظاهرشدن هنگام اسکرول (فقط وقتی JS فعال است) ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--rd, 0ms);
    will-change: opacity, transform;
}
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* موج ستاره‌های امتیاز پس از نمایان‌شدن جعبه نظرسنجی */
.js .survey-box.revealed .rating-input label {
    animation: zhStarIn .55s cubic-bezier(.34,1.56,.64,1) backwards;
}
.js .survey-box.revealed .rating-input label:nth-of-type(1) { animation-delay: .55s; }
.js .survey-box.revealed .rating-input label:nth-of-type(2) { animation-delay: .65s; }
.js .survey-box.revealed .rating-input label:nth-of-type(3) { animation-delay: .75s; }
.js .survey-box.revealed .rating-input label:nth-of-type(4) { animation-delay: .85s; }
.js .survey-box.revealed .rating-input label:nth-of-type(5) { animation-delay: .95s; }
@keyframes zhStarIn {
    from { opacity: 0; transform: scale(0) rotate(-40deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

/* درخشش دکمه ارسال */
.survey-box .btn-primary { position: relative; overflow: hidden; }
.survey-box .btn-primary::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    inset-inline-start: -70%;
    width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: inset-inline-start .65s ease;
    pointer-events: none;
}
.survey-box .btn-primary:hover::after { inset-inline-start: 130%; }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .js .survey-box.revealed .rating-input label { animation: none !important; }
    .survey-box .btn-primary::after { display: none; }
}
