:root {
    color-scheme: dark;
    /* HeroUI dark semantic foundation */
    --bg: #09090b;
    --surface: #18181b;
    --surface-raised: #27272a;
    --surface-soft: rgba(255, 255, 255, .055);
    --line: #27272a;
    --line-strong: #3f3f46;
    --text: #f4f4f5;
    --text-soft: #d4d4d8;
    --text-faint: #a1a1aa;
    --primary: #0060ff;
    --primary-strong: #2476ff;
    --cyan: #2476ff;
    --success: #17c964;
    --danger: #f31260;
    --warning: #f5a524;
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow: 0 12px 32px rgba(0, 0, 0, .46), 0 4px 16px rgba(0, 0, 0, .34);
    font-family: 'Baloo Bhaijaan 2', Tahoma, Arial, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

html {
    height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background: var(--bg);
}

/* Native emoji should never inherit the Persian display font exclusively. */
.dm-emoji-panel,
.dm-emoji-panel button,
[data-emoji] {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.global-profile-dialog { width:min(430px,calc(100% - 24px)); padding:0; color:#f8fafc; border:1px solid rgba(148,163,184,.24); border-radius:24px; background:#0b1019; box-shadow:0 28px 90px rgba(0,0,0,.7); }
.global-profile-dialog::backdrop { background:rgba(2,6,12,.78); backdrop-filter:blur(10px); }
.global-profile-card { position:relative; overflow:hidden; min-height:440px; }
.global-profile-banner { height:142px; background:var(--surface,#111111); background-position:center; background-size:cover; }
.global-profile-close { position:absolute; z-index:2; top:14px; left:14px; width:42px; height:42px; display:grid; place-items:center; color:#fff; border:1px solid rgba(255,255,255,.16); border-radius:13px; background:rgba(5,10,18,.72); cursor:pointer; }
.global-profile-avatar { position:absolute; top:94px; right:28px; width:96px; height:96px; display:grid; place-items:center; overflow:hidden; color:#fff; font-size:2rem; font-weight:800; border:6px solid #0b1019; border-radius:30px; background:#0b6fee; }
.global-profile-avatar img { width:100%; height:100%; object-fit:cover; }
.global-profile-body { padding:58px 28px 28px; }
.global-profile-status { display:inline-flex; min-height:28px; align-items:center; padding:0 10px; color:#7ce7ba; font-size:.8rem; border:1px solid rgba(52,211,153,.2); border-radius:999px; background:rgba(52,211,153,.08); }
.global-profile-body h2 { margin:12px 0 0; font-size:1.55rem; }
.global-profile-handle { margin:0; color:#7f8da3; direction:ltr; text-align:right; }
.global-profile-bio { min-height:54px; margin:24px 0; color:#bac4d3; line-height:1.9; overflow-wrap:anywhere; }
.global-profile-bio a { color:#60a5fa; }
.global-profile-badges { display:flex; flex-wrap:wrap; gap:8px; }
.profile-badge { padding:7px 10px; border:1px solid rgba(96,165,250,.24); border-radius:10px; color:#cfe4ff; background:rgba(37,99,235,.12); }
.global-profile-message { min-height:44px; margin-top:20px; display:flex; align-items:center; justify-content:center; gap:8px; color:white; text-decoration:none; border-radius:12px; background:#0b6fee; }
.global-profile-dialog.loading .global-profile-body { opacity:.55; }

.dm-live-notice { position:fixed; z-index:1000; inset:auto auto 24px 24px; min-height:52px; display:flex; align-items:center; gap:10px; padding:0 16px; color:#fff; text-decoration:none; border:1px solid rgba(96,165,250,.35); border-radius:15px; background:#101827; box-shadow:0 18px 45px rgba(0,0,0,.45); }
.dm-send-error { position:absolute; bottom:calc(100% + 8px); right:16px; padding:7px 10px; color:#fecaca; border-radius:9px; background:#49151b; }
.dm-composer { position:relative; }
.dm-emoji-toggle { flex:0 0 44px; width:44px; min-height:44px; color:#9db9dc; border:1px solid rgba(148,163,184,.18); border-radius:12px; background:#0d1420; cursor:pointer; }
.dm-emoji-panel { position:absolute; z-index:30; bottom:calc(100% + 10px); right:12px; width:min(320px,calc(100vw - 48px)); display:grid; grid-template-columns:repeat(8,1fr); gap:5px; padding:10px; border:1px solid rgba(96,165,250,.28); border-radius:16px; background:#0b111c; box-shadow:0 20px 55px rgba(0,0,0,.55); }
.dm-emoji-panel[hidden] { display:none; }
.dm-emoji-panel button { aspect-ratio:1; padding:0; font-size:1.25rem; border:0; border-radius:9px; background:transparent; cursor:pointer; }
.dm-emoji-panel button:hover,.dm-emoji-panel button:focus-visible { background:rgba(59,130,246,.18); outline:2px solid #60a5fa; }

@media (max-width:560px) {
    .global-profile-avatar { right:20px; }
    .global-profile-body { padding-inline:20px; }
    .dm-emoji-panel { grid-template-columns:repeat(6,1fr); right:0; }
    .dm-live-notice { inset:auto 12px 12px 12px; }
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(53, 213, 242, .38);
    outline-offset: 3px;
}

svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.landing-page {
    overflow-x: hidden;
}

.ambient {
    position: fixed;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .13;
    pointer-events: none;
}

.ambient-one {
    top: -10rem;
    right: -5rem;
    background: var(--primary);
}

.ambient-two {
    bottom: -12rem;
    left: -4rem;
    background: var(--cyan);
}

.join-layout {
    width: min(1160px, calc(100% - 32px));
    min-height: 100vh;
    min-height: 100svh;
    margin: auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
    align-items: center;
    gap: clamp(48px, 8vw, 120px);
}

.brand-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 42px;
    color: white;
    background: #0060ff;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0,96,255, .32);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
}

.eyebrow,
.card-kicker {
    margin: 0;
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow span {
    width: 24px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
}

.join-intro h1 {
    margin: 16px 0 22px;
    max-width: 660px;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.02;
    letter-spacing: -.06em;
}

.join-intro h1 em {
    color: var(--primary-strong);
    font-style: normal;
}

.intro-copy {
    max-width: 570px;
    margin: 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 2;
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.feature-row span {
    padding: 9px 13px;
    color: #cbd1dd;
    font-size: .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
}

.join-card {
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface,#111111);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.join-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.join-card h2 {
    margin: 4px 0 0;
    font-size: 1.55rem;
    letter-spacing: -.03em;
}

.status-pulse {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 7px rgba(56, 217, 150, .11);
}

.field-label {
    display: block;
    margin: 18px 2px 8px;
    color: #cbd1dc;
    font-size: .86rem;
    font-weight: 700;
}

.field-shell {
    position: relative;
}

.field-shell > i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
}

.field-shell input {
    width: 100%;
    min-height: 54px;
    padding: 0 50px 0 16px;
    color: var(--text);
    background: rgba(4, 6, 10, .52);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.field-shell input::placeholder {
    color: #626b7d;
}

.field-shell input:focus {
    outline: none;
    border-color: rgba(0,96,255, .8);
    background: rgba(9, 12, 18, .82);
    box-shadow: 0 0 0 4px rgba(0,96,255, .1);
}

.form-error {
    min-height: 24px;
    margin: 10px 2px 0;
    color: #ff8799;
    font-size: .82rem;
}

.primary-button {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: 0;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    background: #0060ff;
    box-shadow: 0 14px 30px rgba(0,96,255, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0,96,255, .3);
}

.primary-button > i {
    font-size: .92rem;
}

.privacy-note {
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-faint);
    font-size: .75rem;
    line-height: 1.7;
}

.privacy-note > i {
    width: 16px;
    flex: 0 0 auto;
    text-align: center;
}

@media (max-width: 820px) {
    .join-layout {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 34px 0 48px;
    }

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

    .brand-mark {
        margin: 0 auto 30px;
    }

    .eyebrow,
    .feature-row {
        justify-content: center;
    }

    .intro-copy {
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .join-layout {
        width: min(100% - 24px, 440px);
        padding-top: 24px;
    }

    .join-intro h1 {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }

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

    .feature-row {
        margin-top: 28px;
    }

    .join-card {
        padding: 24px 18px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
