
.ie-header-account-icon {
    font-size: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.ie-header-account-icon::before {
    content: "♛";
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    color: #2a1906 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.22) !important;
}

html[data-theme="light"] .ie-header-account-icon::before {
    color: #4a2d08 !important;
}

.ie-header-account-icon svg,
.ie-header-account-icon img,
.ie-header-account-icon span {
    display: none !important;
}

/* === MY REALM CROWN ICON END === */

.ie-header-auth {
    width: 196px !important;
    min-width: 196px !important;
    max-width: 196px !important;
    flex: 0 0 196px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.ie-header-login-btn {
    width: 196px !important;
    min-width: 196px !important;
    max-width: 196px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    padding: 0 18px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;

    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: visible !important;

    border: 1px solid rgba(245, 211, 125, 0.45) !important;
    background:
        linear-gradient(135deg, rgba(255, 241, 194, 0.16), rgba(214, 168, 79, 0.10)),
        rgba(255, 255, 255, 0.06) !important;

    color: #fff7da !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;

    font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;

    transform: none !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.ie-header-login-btn:hover {
    transform: none !important;
    background:
        linear-gradient(135deg, rgba(255, 241, 194, 0.22), rgba(214, 168, 79, 0.14)),
        rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(245, 211, 125, 0.68) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(245, 211, 125, 0.12) inset !important;
}

.ie-header-login-icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    opacity: 0.95 !important;
}

.ie-header-login-btn span:last-child {
    display: inline-block !important;
    font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

html[data-theme="light"] .ie-header-login-btn {
    color: #2b1b08 !important;
    background:
        linear-gradient(135deg, rgba(255, 249, 231, 0.98), rgba(239, 219, 177, 0.92)) !important;
    border-color: rgba(151, 101, 30, 0.30) !important;
    box-shadow:
        0 10px 22px rgba(139, 102, 32, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

/* === LOGIN BUTTON POLISH FINAL END === */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --font-main: "Segoe UI", Tahoma, Arial, sans-serif;
    --bg: #050b13;
    --bg-soft: rgba(8, 17, 30, 0.72);
    --bg-panel: rgba(12, 22, 36, 0.78);
    --bg-panel-strong: rgba(11, 19, 31, 0.92);
    --text: #f7f9fc;
    --muted: #a7b0c0;
    --muted-soft: #7e889b;
    --line: rgba(255, 255, 255, 0.11);
    --gold: #d7a947;
    --gold-soft: #f2cf7b;
    --green: #34d06d;
    --red: #ff5c5c;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
    --panel-blur: blur(18px);
}

html[data-theme="light"] {
    --bg: #f5f0e4;
    --bg-soft: rgba(255, 250, 239, 0.75);
    --bg-panel: rgba(255, 252, 246, 0.82);
    --bg-panel-strong: rgba(255, 250, 240, 0.96);
    --text: #151b26;
    --muted: #425066;
    --muted-soft: #647086;
    --line: rgba(10, 20, 35, 0.14);
    --gold: #b98222;
    --gold-soft: #d6a84f;
    --shadow: 0 24px 70px rgba(73, 52, 17, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);
    background:
        radial-gradient(circle at 50% 0%, rgba(215, 169, 71, 0.12), transparent 34%),
        linear-gradient(180deg, #050b13 0%, var(--bg) 100%);
    overflow-x: hidden;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

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

button {
    font-family: inherit;
}

.browser-bar {
    height: 61px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    background: linear-gradient(180deg, #1b1d21 0%, #15171b 100%);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: #9da3ad;
}

.browser-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    display: inline-block;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28c840; }

.browser-address {
    width: min(780px, 42vw);
    height: 34px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #111418;
    border: 1px solid rgba(255,255,255,0.11);
    font-size: 14px;
    color: #d6d8dd;
}

.ie-shell {
    min-height: calc(100vh - 61px);
}

.ie-hero {
    position: relative;
    min-height: 555px;
    overflow: visible;
    border-bottom: 1px solid var(--line);
}

.ie-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.02);
    filter: saturate(1.08) contrast(1.05);
}

.ie-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 10, 18, 0.95) 0%, rgba(4, 10, 18, 0.72) 27%, rgba(4, 10, 18, 0.24) 56%, rgba(4, 10, 18, 0.76) 100%),
        linear-gradient(180deg, rgba(4,10,18,0.24) 0%, rgba(4,10,18,0.18) 54%, var(--bg) 100%);
}

html[data-theme="light"] .ie-hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 247, 232, 0.94) 0%, rgba(255, 247, 232, 0.70) 29%, rgba(255, 247, 232, 0.18) 57%, rgba(255, 247, 232, 0.62) 100%),
        linear-gradient(180deg, rgba(255,247,232,0.1) 0%, rgba(255,247,232,0.15) 56%, var(--bg) 100%);
}

.ie-glow-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(215, 169, 71, 0.16);
    pointer-events: none;
    opacity: 0.55;
    animation: orbitFloat 9s ease-in-out infinite;
}

.orbit-one {
    width: 360px;
    height: 120px;
    right: 26%;
    top: 130px;
    transform: rotate(-14deg);
}

.orbit-two {
    width: 520px;
    height: 170px;
    right: 18%;
    top: 105px;
    transform: rotate(-11deg);
    animation-delay: -3s;
}

.orbit-three {
    width: 700px;
    height: 220px;
    right: 11%;
    top: 88px;
    transform: rotate(-9deg);
    animation-delay: -5s;
}

@keyframes orbitFloat {
    0%, 100% { opacity: .28; filter: blur(0); }
    50% { opacity: .70; filter: blur(.4px); }
}

.ie-navbar {
    position: relative;
    z-index: 20;
    height: 90px;
    display: grid;
    grid-template-columns: 290px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 0 clamp(24px, 5.5vw, 110px);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 19, 0.50);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .ie-navbar {
    background: rgba(255, 248, 235, 0.66);
}

.ie-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ie-brand img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    filter: drop-shadow(0 12px 24px rgba(215,169,71,.25));
}

.ie-brand strong {
    display: block;
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: .2px;
}

.ie-brand small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}

.ie-navlinks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
    color: var(--muted);
    font-weight: 700;
}

.ie-navlinks a {
    position: relative;
    padding: 12px 2px;
    transition: .22s ease;
}

.ie-navlinks a:hover {
    color: var(--gold-soft);
}

.ie-navlinks a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: .22s ease;
}

.ie-navlinks a:hover::after {
    width: 100%;
}

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

.icon-btn,
.mini-select,
.realm-btn {
    min-height: 50px;
    border: 0;
    color: var(--text);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: .22s ease;
}

.icon-btn {
    width: 50px;
    border-radius: 999px;
    font-size: 24px;
}

.icon-btn:hover,
.mini-select:hover,
.realm-btn:hover {
    background: rgba(215,169,71,.10);
    transform: translateY(-1px);
}

.mini-select {
    height: 50px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.realm-btn {
    height: 58px;
    padding: 0 22px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-soft);
    border: 1px solid rgba(215,169,71,.72);
    box-shadow: 0 0 0 1px rgba(215,169,71,.08), 0 14px 34px rgba(215,169,71,.15);
    font-weight: 900;
}

[data-dropdown] {
    position: relative;
}

.lang-panel,
.realm-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .22s ease;
    background: var(--bg-panel-strong);
    border: 1px solid rgba(215,169,71,.28);
    box-shadow: var(--shadow);
    backdrop-filter: var(--panel-blur);
}

[data-dropdown].open .lang-panel,
[data-dropdown].open .realm-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-panel {
    width: 230px;
    padding: 8px;
    border-radius: 18px;
}

.lang-panel button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: inherit;
    padding: 8px 12px;
    font-weight: 800;
}

.lang-panel button:hover {
    background: rgba(215,169,71,.12);
}

.realm-panel {
    width: 300px;
    padding: 18px;
    border-radius: 18px;
}

.realm-item,
.realm-logout-form button {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 8px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: inherit;
    cursor: pointer;
    transition: .22s ease;
}

.realm-item:hover,
.realm-logout-form button:hover {
    background: rgba(215,169,71,.10);
}

.realm-logout-form {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.realm-item-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--gold);
    background: rgba(215,169,71,.09);
}

.realm-item-icon::before {
    content: "◎";
    font-size: 22px;
}

.realm-item-icon[data-icon="user"]::before { content: "♙"; }
.realm-item-icon[data-icon="network"]::before { content: "♧"; }
.realm-item-icon[data-icon="grid"]::before { content: "▦"; }
.realm-item-icon[data-icon="chart"]::before { content: "↗"; }
.realm-item-icon[data-icon="candles"]::before { content: "▥"; }
.realm-item-icon[data-icon="coin"]::before { content: "◉"; }
.realm-item-icon[data-icon="doc"]::before { content: "▤"; }
.realm-item-icon[data-icon="spark"]::before { content: "✦"; }
.realm-item-icon[data-icon="logout"]::before { content: "↪"; }

.realm-item strong,
.realm-logout-form strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.realm-item small,
.realm-logout-form small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.realm-item.danger,
.realm-logout-form .danger {
    color: #ff7979;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1220px, 88vw);
    margin: 0 auto;
    padding-top: 58px;
}

.hero-copy {
    width: min(520px, 92vw);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    color: var(--gold);
    font-weight: 900;
}

.eyebrow span {
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(48px, 5.6vw, 78px);
    line-height: .95;
    letter-spacing: -1px;
}

.hero-copy h1 em {
    color: var(--gold-soft);
    font-style: normal;
}

.hero-copy h2 {
    margin: 22px 0 12px;
    font-size: clamp(21px, 2vw, 30px);
    font-weight: 700;
}

.hero-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 2;
    font-size: 16px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.gold-btn,
.glass-btn {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    font-weight: 950;
    transition: .22s ease;
}

.gold-btn {
    color: #211504;
    background: linear-gradient(135deg, #ffe6a3, #d8a644 52%, #a96d21);
    box-shadow: 0 20px 45px rgba(215,169,71,.22);
}

.glass-btn {
    color: var(--text);
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(12px);
}

.gold-btn:hover,
.glass-btn:hover {
    transform: translateY(-2px);
}

.quick-grid,
.dashboard-grid {
    width: min(1250px, 88vw);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: -40px;
}

.quick-card,
.panel {
    border: 1px solid var(--line);
    background: var(--bg-panel);
    backdrop-filter: var(--panel-blur);
    box-shadow: 0 18px 55px rgba(0,0,0,.24);
}

.quick-card {
    min-height: 155px;
    padding: 18px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    transition: .22s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: rgba(215,169,71,.42);
}

.quick-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.quick-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.quick-card strong {
    display: block;
    margin: 2px 0;
    color: var(--text);
    font-size: 22px;
}

.quick-card .positive {
    color: var(--green);
}

.quick-card a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--gold);
    font-weight: 900;
    font-size: 13px;
}

.card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(215,169,71,.15), rgba(255,255,255,.03));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.card-icon::before {
    font-size: 27px;
}

.card-icon.doc::before { content: "▤"; }
.card-icon.coin::before { content: "◎"; }
.card-icon.network::before { content: "♧"; }
.card-icon.shield::before { content: "⬟"; }
.card-icon.chart::before { content: "↗"; }
.card-icon.candles::before { content: "▥"; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.22fr .94fr .92fr;
    gap: 16px;
    margin-top: 20px;
    padding-bottom: 70px;
}

.panel {
    min-height: 270px;
    padding: 18px;
    border-radius: 18px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-head h3 {
    margin: 0;
    font-size: 18px;
}

.panel-head a {
    color: var(--muted-soft);
    font-size: 13px;
    font-weight: 800;
}

.tabs,
.range-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.tabs button,
.range-tabs button {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    border-radius: 9px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 800;
}

.tabs button.active,
.range-tabs button.active {
    color: var(--text);
    background: rgba(255,255,255,.12);
    border-color: rgba(215,169,71,.32);
}

.market-row {
    min-height: 54px;
    display: grid;
    grid-template-columns: 34px 1fr 88px 70px 58px;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.asset {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 900;
}

.asset.bitcoin { background: #f7931a; color: white; }
.asset.eth { background: #6574cd; color: white; }
.asset.gold { background: #d6a84f; color: white; }

.market-row b {
    font-size: 14px;
}

.market-row small {
    color: var(--muted);
}

.market-row em {
    font-style: normal;
    font-weight: 900;
    font-size: 13px;
}

.up { color: var(--green); }
.down { color: var(--red); }

.spark {
    height: 24px;
    border-radius: 20px;
    display: block;
    background:
        linear-gradient(135deg, transparent 0 25%, currentColor 26% 30%, transparent 31% 45%, currentColor 46% 50%, transparent 51% 65%, currentColor 66% 70%, transparent 71%);
    opacity: .85;
}

.fake-chart {
    height: 210px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.11));
    overflow: hidden;
}

.fake-chart svg {
    width: 100%;
    height: 100%;
}

.grid-line {
    fill: none;
    stroke: rgba(255,255,255,.08);
    stroke-width: 1;
}

.area {
    fill: url(#chartFill);
}

.line {
    fill: none;
    stroke: var(--gold);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-item,
.notice-item {
    display: grid;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    border-bottom: 1px solid var(--line);
}

.report-item {
    grid-template-columns: 72px 1fr;
}

.notice-item {
    grid-template-columns: 44px 1fr;
}

.report-item b,
.notice-item b {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

.report-item small,
.notice-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted-soft);
    font-size: 12px;
}

.report-img {
    width: 70px;
    height: 48px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(215,169,71,.2), rgba(70,180,255,.18)),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 24%),
        #122033;
}

.report-img.two {
    background:
        linear-gradient(135deg, rgba(60,200,255,.22), rgba(215,169,71,.18)),
        #112236;
}

.report-img.three {
    background:
        linear-gradient(135deg, rgba(180,80,255,.25), rgba(215,169,71,.16)),
        #13182b;
}

.notice-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,.04);
    color: var(--gold);
}

.notice-icon.doc::before { content: "▤"; }
.notice-icon.money::before { content: "$"; color: var(--green); font-weight: 950; }
.notice-icon.rank::before { content: "⬟"; }

@media (max-width: 1180px) {
    .ie-navbar {
        grid-template-columns: 240px 1fr;
        height: auto;
        min-height: 88px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .ie-navlinks {
        display: none;
    }

    .ie-actions {
        justify-content: flex-end;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: -30px;
    }

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

@media (max-width: 760px) {
    .browser-bar {
        display: none;
    }

    .ie-hero {
        min-height: auto;
        padding-bottom: 70px;
    }

    .ie-navbar {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .ie-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .realm-menu,
    .realm-btn {
        width: 100%;
    }

    .realm-btn {
        justify-content: center;
    }

    .realm-panel,
    .lang-panel {
        width: min(92vw, 340px);
        inset-inline-end: auto;
        inset-inline-start: 0;
    }

    .hero-content {
        padding-top: 38px;
    }

    .quick-grid,
    .dashboard-grid {
        width: min(92vw, 1250px);
        grid-template-columns: 1fr;
    }

    .quick-grid {
        margin-top: -32px;
    }

    .quick-card {
        min-height: 120px;
    }

    .hero-copy h1 {
        font-size: 48px;
    }

    .market-row {
        grid-template-columns: 34px 1fr 78px;
    }

    .market-row em,
    .market-row .spark {
        display: none;
    }
}


/* === SAFE REALM ACTIONS V1 === */
.realm-actions-shell {
    width: min(1280px, 92%);
    margin: 26px auto 72px;
    padding: 24px;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025)),
        rgba(7, 12, 22, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.realm-actions-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.realm-mini-kicker {
    display: inline-block;
    color: #d6a84f;
    font-weight: 900;
    margin-bottom: 8px;
}

.realm-actions-head h2 {
    margin: 0;
    font-size: clamp(24px, 2.5vw, 36px);
    color: #f8fafc;
}

.realm-actions-head p {
    margin: 8px 0 0;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.9;
}

.realm-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.realm-action-card {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(214, 168, 79, 0.18);
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 168, 79, 0.13), transparent 38%),
        rgba(255,255,255,0.045);
    color: #f8fafc;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.realm-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 211, 125, 0.52);
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 211, 125, 0.18), transparent 42%),
        rgba(255,255,255,0.075);
    box-shadow: 0 20px 50px rgba(214, 168, 79, 0.14);
}

.realm-action-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #f5d37d;
    font-size: 25px;
    border: 1px solid rgba(245, 211, 125, 0.24);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 0 18px rgba(245, 211, 125, 0.08);
}

.realm-coin-icon {
    font-size: 30px;
    background:
        radial-gradient(circle, #ffe8a3 0%, #d6a84f 42%, #6b4517 100%);
    color: #171006;
}

.realm-action-card strong {
    font-size: 17px;
    font-weight: 950;
}

.realm-action-card small {
    color: rgba(226, 232, 240, 0.68);
    line-height: 1.7;
}

.realm-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    z-index: 9999;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid rgba(245, 211, 125, 0.34);
    background: rgba(7, 12, 22, 0.88);
    color: #f8fafc;
    box-shadow: 0 18px 46px rgba(0,0,0,.35);
    backdrop-filter: blur(16px);
    transition: .25s ease;
    pointer-events: none;
}

.realm-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1100px) {
    .realm-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .realm-actions-shell {
        width: min(94%, 1280px);
        padding: 18px;
        border-radius: 22px;
    }

    .realm-actions-grid {
        grid-template-columns: 1fr;
    }

    .realm-action-card {
        min-height: 118px;
    }
}


/* === EXISTING REALM MENU ACTIONS V1 === */
.realm-existing-host {
    min-width: 292px;
}

.realm-existing-actions {
    display: grid;
    gap: 8px;
    padding: 8px;
}

.realm-existing-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(245, 211, 125, 0.12);
    color: #f8fafc;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.realm-existing-action:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 211, 125, 0.42);
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 211, 125, 0.12), transparent 42%),
        rgba(255,255,255,0.075);
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

.realm-existing-action-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(245, 211, 125, 0.22);
    color: #f5d37d;
    background:
        radial-gradient(circle at 35% 25%, rgba(245, 211, 125, 0.20), transparent 45%),
        rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 0 18px rgba(245, 211, 125, 0.08);
}

.realm-existing-action-icon svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
}

.realm-existing-action-text {
    display: grid;
    gap: 2px;
}

.realm-existing-action-text strong {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 950;
    color: rgba(248, 250, 252, 0.96);
}

.realm-existing-action-text small {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.62);
}

.realm-existing-panel-fallback {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 318px;
    padding: 8px;
    border: 1px solid rgba(245, 211, 125, 0.22);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        rgba(7, 12, 22, .94);
    box-shadow: 0 24px 80px rgba(0,0,0,.48);
    backdrop-filter: blur(20px);
    display: none;
    z-index: 9999;
}

html[dir="ltr"] .realm-existing-panel-fallback {
    right: auto;
    left: 0;
}

.realm-existing-toggle-host {
    position: relative;
}

.realm-existing-toggle-host.is-realm-open .realm-existing-panel-fallback {
    display: block;
}

.realm-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    z-index: 99999;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid rgba(245, 211, 125, 0.34);
    background: rgba(7, 12, 22, 0.90);
    color: #f8fafc;
    box-shadow: 0 18px 46px rgba(0,0,0,.35);
    backdrop-filter: blur(16px);
    transition: .25s ease;
    pointer-events: none;
}

.realm-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 680px) {
    .realm-existing-panel-fallback {
        width: min(318px, calc(100vw - 28px));
    }
}


/* === REALM LIGHT MODE CONTRAST V1 START === */

/*
این بخش فقط برای خوانایی Realm در حالت روز است.
JS پایین، روی html مقدار data-realm-theme="light" یا "dark" می‌گذارد.
*/

html[data-realm-theme="light"] .realm-existing-host,
html[data-realm-theme="light"] .realm-existing-panel-fallback {
    border-color: rgba(120, 81, 24, 0.22) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 240, 226, 0.90)),
        rgba(255, 255, 255, 0.96) !important;
    box-shadow:
        0 24px 70px rgba(54, 35, 10, 0.20),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset !important;
    color: #1b2433 !important;
}

html[data-realm-theme="light"] .realm-existing-actions {
    background: transparent !important;
}

html[data-realm-theme="light"] .realm-existing-action {
    border-color: rgba(120, 81, 24, 0.14) !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(214, 168, 79, 0.14), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(246,240,222,0.84)) !important;
    color: #151b2a !important;
    box-shadow: 0 10px 26px rgba(54, 35, 10, 0.08) !important;
}

html[data-realm-theme="light"] .realm-existing-action:hover {
    border-color: rgba(120, 81, 24, 0.34) !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(214, 168, 79, 0.22), transparent 45%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,235,207,0.92)) !important;
    box-shadow: 0 16px 38px rgba(54, 35, 10, 0.14) !important;
}

html[data-realm-theme="light"] .realm-existing-action-icon {
    border-color: rgba(120, 81, 24, 0.22) !important;
    color: #7a4d12 !important;
    background:
        radial-gradient(circle at 35% 25%, rgba(245, 211, 125, 0.62), transparent 48%),
        linear-gradient(145deg, #fff7df, #ead8a6) !important;
    box-shadow:
        inset 0 0 18px rgba(120, 81, 24, 0.08),
        0 8px 20px rgba(120, 81, 24, 0.12) !important;
}

html[data-realm-theme="light"] .realm-existing-action-text strong {
    color: #121827 !important;
}

html[data-realm-theme="light"] .realm-existing-action-text small {
    color: rgba(29, 38, 56, 0.70) !important;
}

/* Realm پایین صفحه در حالت روز */
html[data-realm-theme="light"] .realm-actions-shell {
    border-color: rgba(120, 81, 24, 0.18) !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(214, 168, 79, 0.13), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.92), rgba(246,239,218,0.82)) !important;
    box-shadow:
        0 24px 70px rgba(54, 35, 10, 0.16),
        0 0 0 1px rgba(255,255,255,0.62) inset !important;
    color: #151b2a !important;
}

html[data-realm-theme="light"] .realm-mini-kicker {
    color: #8a5b18 !important;
}

html[data-realm-theme="light"] .realm-actions-head h2 {
    color: #121827 !important;
}

html[data-realm-theme="light"] .realm-actions-head p {
    color: rgba(29, 38, 56, 0.72) !important;
}

html[data-realm-theme="light"] .realm-action-card {
    border-color: rgba(120, 81, 24, 0.14) !important;
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 168, 79, 0.15), transparent 40%),
        linear-gradient(145deg, rgba(255,255,255,0.94), rgba(246,239,218,0.82)) !important;
    color: #151b2a !important;
    box-shadow: 0 12px 30px rgba(54, 35, 10, 0.08) !important;
}

html[data-realm-theme="light"] .realm-action-card:hover {
    border-color: rgba(120, 81, 24, 0.34) !important;
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 168, 79, 0.23), transparent 44%),
        linear-gradient(145deg, rgba(255,255,255,0.99), rgba(243,232,202,0.92)) !important;
    box-shadow: 0 18px 44px rgba(54, 35, 10, 0.14) !important;
}

html[data-realm-theme="light"] .realm-action-icon {
    border-color: rgba(120, 81, 24, 0.22) !important;
    color: #7a4d12 !important;
    background:
        radial-gradient(circle at 35% 25%, rgba(245, 211, 125, 0.64), transparent 48%),
        linear-gradient(145deg, #fff7df, #ead8a6) !important;
    box-shadow:
        inset 0 0 18px rgba(120, 81, 24, 0.08),
        0 8px 20px rgba(120, 81, 24, 0.12) !important;
}

html[data-realm-theme="light"] .realm-coin-icon {
    color: #171006 !important;
    background:
        radial-gradient(circle, #fff3b8 0%, #d6a84f 44%, #8a5b18 100%) !important;
}

html[data-realm-theme="light"] .realm-action-card strong {
    color: #121827 !important;
}

html[data-realm-theme="light"] .realm-action-card small {
    color: rgba(29, 38, 56, 0.70) !important;
}

/* Toast در حالت روز */
html[data-realm-theme="light"] .realm-toast {
    border-color: rgba(120, 81, 24, 0.22) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #121827 !important;
    box-shadow: 0 18px 46px rgba(54, 35, 10, 0.20) !important;
}

/* اگر خود سایت از کلاس‌های رایج light/day استفاده کند، بدون نیاز به JS هم ساپورت شود */
html.light .realm-existing-host,
html.light-mode .realm-existing-host,
html.day .realm-existing-host,
html.day-mode .realm-existing-host,
body.light .realm-existing-host,
body.light-mode .realm-existing-host,
body.day .realm-existing-host,
body.day-mode .realm-existing-host {
    background: rgba(255,255,255,0.96) !important;
    color: #121827 !important;
}

/* === REALM LIGHT MODE CONTRAST V1 END === */


/* === HOME V2 MOBILE RESPONSIVE FINAL START === */

/* Realm پایین صفحه حذف شده؛ Realm کرکره‌ای بالای سایت می‌ماند */
.realm-actions-shell {
    display: none !important;
}

/* جلوگیری از اسکرول افقی ناخواسته */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
svg {
    max-width: 100%;
}

/* تنظیمات کلی برای تبلت */
@media (max-width: 1100px) {
    .page,
    .home-page,
    .home-v2-page,
    .site-page,
    .main-page,
    main {
        width: min(100%, calc(100vw - 28px)) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero,
    .home-hero,
    .hero-v2,
    .cosmic-hero,
    .oracle-hero,
    .orbital-hero,
    .luxury-hero,
    .home-v2-hero,
    .hero-grid,
    .home-grid,
    .cosmic-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .hero-copy,
    .hero-content,
    .home-hero-content,
    .home-v2-content,
    .oracle-copy,
    .cosmic-copy {
        max-width: 780px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .hero-actions,
    .home-actions,
    .cta-actions,
    .nav-actions,
    .action-row {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .hero-visual,
    .home-hero-visual,
    .cosmic-visual,
    .oracle-visual,
    .orbital-stage,
    .planet-stage,
    .eye-stage {
        width: 100% !important;
        max-width: 620px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        min-height: auto !important;
    }
}

/* موبایل */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .page,
    .home-page,
    .home-v2-page,
    .site-page,
    main {
        width: min(100%, calc(100vw - 22px)) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .nav,
    .navbar,
    .topbar,
    .site-header,
    .home-header,
    header {
        max-width: 100% !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        border-radius: 20px !important;
    }

    h1,
    .hero-title,
    .home-title,
    .oracle-title,
    .cosmic-title {
        font-size: clamp(34px, 10vw, 54px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.7px !important;
    }

    h2,
    .section-title {
        font-size: clamp(24px, 7vw, 34px) !important;
        line-height: 1.18 !important;
    }

    p,
    .hero-subtitle,
    .hero-body,
    .home-body,
    .section-body {
        font-size: 15px !important;
        line-height: 1.9 !important;
    }

    .btn,
    button,
    .hero-actions a,
    .home-actions a,
    .cta-actions a {
        min-height: 46px;
    }

    .hero-actions .btn,
    .home-actions .btn,
    .cta-actions .btn {
        width: 100%;
        max-width: 360px;
    }

    .hero-visual img,
    .home-hero-visual img,
    .cosmic-visual img,
    .oracle-visual img,
    .orbital-stage img,
    .planet-stage img,
    .eye-stage img {
        max-height: 430px !important;
        object-fit: contain !important;
    }

    /* Realm کرکره‌ای موجود در موبایل */
    .realm-existing-host,
    .realm-existing-panel-fallback {
        width: min(330px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: min(72vh, 560px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .realm-existing-actions {
        gap: 7px !important;
    }

    .realm-existing-action {
        min-height: 50px !important;
        padding: 10px !important;
    }

    .realm-existing-action-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 13px !important;
    }

    .realm-existing-action-text strong {
        font-size: 13.5px !important;
    }

    .realm-existing-action-text small {
        font-size: 11.5px !important;
        line-height: 1.5 !important;
    }

    .language-menu,
    .language-panel,
    .lang-menu,
    .theme-menu,
    .dropdown-menu {
        max-width: calc(100vw - 24px) !important;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .page,
    .home-page,
    .home-v2-page,
    main {
        width: min(100%, calc(100vw - 16px)) !important;
    }

    h1,
    .hero-title,
    .home-title,
    .oracle-title,
    .cosmic-title {
        font-size: clamp(30px, 11vw, 44px) !important;
    }

    .hero-copy,
    .hero-content,
    .home-hero-content,
    .home-v2-content,
    .oracle-copy,
    .cosmic-copy {
        text-align: center !important;
    }

    .card,
    .panel,
    .glass-card,
    .home-card,
    .feature-card {
        border-radius: 20px !important;
        padding: 18px !important;
    }

    .hero-visual img,
    .home-hero-visual img,
    .cosmic-visual img,
    .oracle-visual img,
    .orbital-stage img,
    .planet-stage img,
    .eye-stage img {
        max-height: 340px !important;
    }

    .realm-existing-host,
    .realm-existing-panel-fallback {
        width: min(318px, calc(100vw - 18px)) !important;
        max-width: calc(100vw - 18px) !important;
    }

    .realm-toast {
        width: calc(100vw - 28px) !important;
        max-width: 420px !important;
        text-align: center !important;
        border-radius: 18px !important;
    }
}

/* تبلت افقی */
@media (min-width: 769px) and (max-width: 1180px) {
    .hero,
    .home-hero,
    .hero-v2,
    .cosmic-hero,
    .oracle-hero,
    .orbital-hero,
    .luxury-hero,
    .home-v2-hero {
        align-items: center !important;
    }

    .hero-visual,
    .home-hero-visual,
    .cosmic-visual,
    .oracle-visual,
    .orbital-stage,
    .planet-stage,
    .eye-stage {
        max-width: 560px !important;
    }
}

/* === HOME V2 MOBILE RESPONSIVE FINAL END === */


/* === REALM AUTH ROLE ORGANIZE V1 START === */

.auth-corner-shell {
    position: fixed;
    top: 22px;
    left: 24px;
    z-index: 5100;
    display: flex;
    align-items: center;
    gap: 8px;
}

html[dir="ltr"] .auth-corner-shell {
    left: auto;
    right: 24px;
}

.auth-corner-form {
    margin: 0;
}

.auth-corner-btn {
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(245, 211, 125, 0.28);
    color: #fff7d6;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 211, 125, 0.18), transparent 46%),
        rgba(9, 13, 24, 0.72);
    box-shadow: 0 14px 36px rgba(0,0,0,.25);
    backdrop-filter: blur(16px);
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    font-family: inherit;
    font-weight: 900;
}

.auth-corner-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 211, 125, 0.55);
}

.auth-corner-btn span {
    color: #f5d37d;
}

.auth-corner-btn b {
    font-size: 13px;
}

.auth-corner-ghost {
    background: rgba(255,255,255,0.055);
}

.realm-menu-section-title {
    display: block;
    padding: 10px 12px 6px;
    color: rgba(245, 211, 125, 0.86);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.realm-menu-divider {
    height: 1px;
    margin: 8px 8px;
    background: linear-gradient(90deg, transparent, rgba(245, 211, 125, 0.22), transparent);
}

.realm-existing-action.is-staff-only .realm-existing-action-icon {
    color: #70e4ff;
    border-color: rgba(112, 228, 255, 0.22);
}

.realm-existing-action.is-private-only .realm-existing-action-icon {
    color: #f5d37d;
}

html[data-realm-theme="light"] .auth-corner-btn {
    color: #151b2a;
    border-color: rgba(120, 81, 24, 0.20);
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 168, 79, 0.18), transparent 46%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(54, 35, 10, 0.14);
}

html[data-realm-theme="light"] .auth-corner-btn span {
    color: #7a4d12;
}

html[data-realm-theme="light"] .realm-menu-section-title {
    color: #8a5b18;
}

html[data-realm-theme="light"] .realm-menu-divider {
    background: linear-gradient(90deg, transparent, rgba(120, 81, 24, 0.22), transparent);
}

@media (max-width: 768px) {
    .auth-corner-shell {
        position: fixed;
        top: 14px;
        left: 14px;
        gap: 6px;
    }

    html[dir="ltr"] .auth-corner-shell {
        left: auto;
        right: 14px;
    }

    .auth-corner-btn {
        height: 38px;
        padding: 0 11px;
    }

    .auth-corner-btn b {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .auth-corner-btn b {
        display: none;
    }

    .auth-corner-btn {
        width: 40px;
        padding: 0;
    }
}

/* === REALM AUTH ROLE ORGANIZE V1 END === */


/* === PASSWORD RESET AUTH UI V1 === */

.auth-forgot-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    color: var(--gold-2, #f5d37d);
    font-weight: 850;
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

html[data-realm-theme="light"] .auth-forgot-link {
    color: #7a4d12;
}


/* === FINAL LOGIN RESET REALM CLEAN CSS START === */

.login-help-row {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.login-help-link {
    color: var(--gold-2, #f5d37d);
    font-weight: 900;
    text-decoration: none;
}

.login-help-link:hover {
    text-decoration: underline;
}

.login-register-box {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(245, 211, 125, 0.18);
    background: rgba(255,255,255,0.055);
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted, #b7bfd3);
}

.login-register-box a {
    color: var(--gold-2, #f5d37d);
    font-weight: 950;
    text-decoration: none;
}

.login-register-box a:hover {
    text-decoration: underline;
}

.realm-existing-actions {
    min-height: 78px;
}

.realm-existing-action svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

html[data-realm-theme="light"] .login-help-link,
html[data-realm-theme="light"] .login-register-box a {
    color: #7a4d12;
}

html[data-realm-theme="light"] .login-register-box {
    color: rgba(29, 38, 56, 0.72);
    border-color: rgba(120, 81, 24, 0.18);
    background: rgba(255,255,255,0.76);
}

/* === FINAL LOGIN RESET REALM CLEAN CSS END === */


/* === FINAL GUEST LOGIN ONLY CSS START === */

.login-pro-tools {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 18px;
}

html[dir="rtl"] .login-pro-tools {
    justify-content: flex-start;
}

.login-forgot-pro {
    color: var(--gold-2, #f5d37d);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    opacity: .92;
}

.login-forgot-pro:hover {
    opacity: 1;
    text-decoration: underline;
}

.login-create-pro {
    margin-top: 18px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(245, 211, 125, 0.18);
    background:
        linear-gradient(135deg, rgba(245, 211, 125, 0.08), rgba(255,255,255,0.045));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    color: var(--muted, #b7bfd3);
    font-size: 14px;
}

.login-create-pro a {
    color: var(--gold-2, #f5d37d);
    font-weight: 950;
    text-decoration: none;
}

.login-create-pro a:hover {
    text-decoration: underline;
}

.realm-existing-actions {
    min-height: 78px;
}

.realm-existing-action svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.realm-login-only {
    display: flex !important;
}

html[data-auth-state="guest"] .realm-existing-actions a:not(.realm-login-only),
html[data-auth-state="guest"] [data-existing-realm-actions] a:not(.realm-login-only),
html[data-auth-state="guest"] .realm-existing-panel-fallback a:not(.realm-login-only),
html[data-auth-state="guest"] .realm-panel a:not(.realm-login-only),
html[data-auth-state="guest"] .realm-menu a:not(.realm-login-only),
html[data-auth-state="guest"] .realm-dropdown a:not(.realm-login-only) {
    display: none !important;
}

html[data-realm-theme="light"] .login-forgot-pro,
html[data-realm-theme="light"] .login-create-pro a {
    color: #7a4d12;
}

html[data-realm-theme="light"] .login-create-pro {
    color: rgba(29, 38, 56, 0.72);
    border-color: rgba(120, 81, 24, 0.18);
    background: rgba(255,255,255,0.76);
}

@media (max-width: 520px) {
    .login-pro-tools {
        justify-content: center;
        margin-top: 6px;
    }

    html[dir="rtl"] .login-pro-tools {
        justify-content: center;
    }

    .login-create-pro {
        text-align: center;
    }
}

/* === FINAL GUEST LOGIN ONLY CSS END === */


/* === FINAL LOGIN BUTTON CLEANUP CSS START === */

/* Remove redundant separate Join/Login corner buttons. Realm is the official entry point. */
.auth-corner-shell {
    display: none !important;
}

/* More breathing room between Login button and account creation hint. */
.login-create-pro {
    margin-top: 28px !important;
}

/* Make the whole create-account row behave like one professional clickable CTA. */
.login-create-pro-link {
    cursor: pointer;
    text-decoration: none !important;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.login-create-pro-link:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 211, 125, 0.42);
    background:
        linear-gradient(135deg, rgba(245, 211, 125, 0.13), rgba(255,255,255,0.065));
    box-shadow: 0 18px 42px rgba(0,0,0,0.16);
}

.login-create-pro-link span {
    color: var(--muted, #b7bfd3);
}

.login-create-pro-link strong {
    color: var(--gold-2, #f5d37d);
    font-weight: 950;
}

html[data-realm-theme="light"] .login-create-pro-link:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(120, 81, 24, 0.28);
    box-shadow: 0 18px 42px rgba(54, 35, 10, 0.12);
}

html[data-realm-theme="light"] .login-create-pro-link span {
    color: rgba(29, 38, 56, 0.72);
}

html[data-realm-theme="light"] .login-create-pro-link strong {
    color: #7a4d12;
}

/* === FINAL LOGIN BUTTON CLEANUP CSS END === */


/* === LOGIN SPACING AND REGISTER BACK FIX START === */

/* فاصله بیشتر بین دکمه لاگین و خط ساخت اکانت */
.login-create-pro,
.login-create-pro-link {
    margin-top: 42px !important;
}

/* اگر ساختار باکس داخلی باشد، کمی فاصله تنفسی بهتر */
.login-create-pro-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* در صفحه انتخاب زبان، دکمه بازگشت اولیه نمایش داده نشود */
.register-language-page .register-back-btn,
.register-language-page .btn-back,
.register-language-page .back-btn,
.register-language-page a[href*="register"][class*="back"],
.register-language-page a[class*="back"] {
    display: none !important;
}

/* === LOGIN SPACING AND REGISTER BACK FIX END === */


/* === REAL FIX LOGIN SPACING AND REGISTER HOME BACK START === */

/* فاصله قطعی بین دکمه Login و خط ساخت حساب */
.login-create-pro,
.login-create-pro-link {
    margin-top: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    text-decoration: none !important;
    padding: 16px 18px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(245, 211, 125, 0.22) !important;
    background:
        linear-gradient(135deg, rgba(245, 211, 125, 0.095), rgba(255,255,255,0.052)) !important;
    color: var(--muted, #b7bfd3) !important;
    cursor: pointer !important;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease !important;
}

.login-create-pro-link:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(245, 211, 125, 0.48) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,0.18) !important;
}

.login-create-pro-link span {
    color: var(--muted, #b7bfd3) !important;
}

.login-create-pro-link strong,
.login-create-pro-link a {
    color: var(--gold-2, #f5d37d) !important;
    font-weight: 950 !important;
}

/* لینک شیک بازگشت به خانه در صفحه انتخاب زبان */
.register-language-home-back-wrap {
    display: flex;
    justify-content: center;
    margin: 26px 0 8px;
}

.register-language-home-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(245, 211, 125, 0.22);
    background: rgba(255,255,255,0.055);
    color: var(--gold-2, #f5d37d);
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.register-language-home-back:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 211, 125, 0.48);
    background: rgba(245, 211, 125, 0.095);
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.register-language-home-back-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(245, 211, 125, 0.14);
}

html[dir="rtl"] .register-language-home-back-icon {
    transform: rotate(180deg);
}

/* === REAL FIX LOGIN SPACING AND REGISTER HOME BACK END === */


/* === FINAL LOGIN TINY POLISH START === */

.login-create-pro,
.login-create-pro-link {
    margin-top: 42px !important;
}

/* === FINAL LOGIN TINY POLISH END === */


/* === FINAL LOGIN BALANCED SPACING START === */

.login-card .login-pro-tools {
    margin-top: 4px !important;
    margin-bottom: 28px !important;
}

.login-card button[type="submit"].full-btn,
.login-card .btn.btn-primary.full-btn {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.login-card .login-create-pro,
.login-card .login-create-pro-link {
    margin-top: 28px !important;
}

/* === FINAL LOGIN BALANCED SPACING END === */


/* === REGISTER BACK LAST BUTTON POLISH START === */

.register-final-back-polish {
    margin-top: 14px !important;
}

.register-final-back-polish.btn,
.register-final-back-polish.full-btn,
a.register-final-back-polish {
    width: 100%;
}

/* Back to home in first register page should look intentional, not accidental */
.register-language-home-back-wrap.register-final-back-polish {
    display: flex !important;
    justify-content: center !important;
    margin-top: 18px !important;
}

.register-language-home-back {
    min-width: min(100%, 260px);
}

/* === REGISTER BACK LAST BUTTON POLISH END === */


/* === REGISTER BUTTONS UNIFORM SYSTEM START === */

/*
   استاندارد نهایی دکمه‌های ثبت‌نام:
   - اندازه یکسان
   - فاصله منظم
   - تمام‌عرض
   - مناسب موبایل
*/

.register-flow-page .auth-card {
    --register-button-height: 56px;
    --register-button-gap: 14px;
}

.register-flow-page .auth-card .btn,
.register-flow-page .auth-card button.btn,
.register-flow-page .auth-card a.btn,
.register-flow-page .register-language-home-back {
    width: 100% !important;
    min-height: var(--register-button-height) !important;
    height: var(--register-button-height) !important;
    padding: 0 22px !important;
    border-radius: 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    text-align: center !important;
    line-height: 1.5 !important;
    white-space: normal !important;

    margin-top: var(--register-button-gap) !important;
    margin-right: 0 !important;
    margin-left: 0 !important;

    font-size: 15px !important;
    font-weight: 900 !important;
}

/* اگر دکمه‌ها پشت سر هم بیایند، فاصله ثابت بماند */
.register-flow-page .auth-card .btn + .btn,
.register-flow-page .auth-card button.btn + a.btn,
.register-flow-page .auth-card a.btn + button.btn,
.register-flow-page .auth-card form + .register-final-back-polish,
.register-flow-page .auth-card form + .register-language-home-back-wrap {
    margin-top: var(--register-button-gap) !important;
}

/* دکمه Back / Back to home هم دقیقاً هم‌اندازه بقیه */
.register-flow-page .register-final-back-polish,
.register-flow-page .register-language-home-back-wrap {
    width: 100% !important;
    margin-top: var(--register-button-gap) !important;
}

.register-flow-page .register-language-home-back {
    max-width: none !important;
    min-width: 0 !important;
}

/* دکمه‌های Ghost و Primary هر دو شکل حرفه‌ای و قابل کلیک داشته باشند */
.register-flow-page .btn-primary {
    box-shadow: 0 16px 38px rgba(214, 168, 79, 0.20) !important;
}

.register-flow-page .btn-ghost,
.register-flow-page .register-language-home-back {
    border: 1px solid rgba(245, 211, 125, 0.26) !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--text, #f8fafc) !important;
}

/* فاصله فرم از دکمه‌ها */
.register-flow-page .form {
    margin-top: 24px !important;
}

/* در فرم اطلاعات کاربری، دکمه ثبت از گرید جدا و واضح باشد */
.register-flow-page .form-grid + .btn,
.register-flow-page .form-grid + button.btn,
.register-flow-page .form-grid + a.btn {
    margin-top: 22px !important;
}

/* جلوگیری از کلیک اشتباهی روی موبایل */
@media (max-width: 680px) {
    .register-flow-page .auth-card .btn,
    .register-flow-page .auth-card button.btn,
    .register-flow-page .auth-card a.btn,
    .register-flow-page .register-language-home-back {
        min-height: 58px !important;
        height: auto !important;
        padding: 14px 18px !important;
        font-size: 15px !important;
    }

    .register-flow-page .auth-card {
        --register-button-gap: 16px;
    }
}

/* === REGISTER BUTTONS UNIFORM SYSTEM END === */


/* === REGISTER PRIMARY BUTTONS EQUAL FINAL START === */

.register-flow-page .auth-card .btn,
.register-flow-page .auth-card .full-btn,
.register-flow-page .auth-card .btn-primary,
.register-flow-page .auth-card .btn-ghost,
.register-flow-page .auth-card button,
.register-flow-page .auth-card button[type="submit"],
.register-flow-page .auth-card a.btn,
.register-flow-page .auth-card form .btn,
.register-flow-page .auth-card form .full-btn,
.register-flow-page .auth-card form .btn-primary,
.register-flow-page .register-language-home-back {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;

    padding: 0 22px !important;
    margin-top: 16px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;

    box-sizing: border-box !important;
    border-radius: 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    line-height: 1.4 !important;
    text-align: center !important;
    white-space: normal !important;

    font-size: 15px !important;
    font-weight: 900 !important;
}

.register-flow-page .auth-card form {
    width: 100% !important;
}

.register-flow-page .auth-card form > .btn,
.register-flow-page .auth-card form > button.btn,
.register-flow-page .auth-card form > a.btn {
    display: flex !important;
    width: 100% !important;
}

.register-flow-page .register-language-home-back-wrap,
.register-flow-page .register-final-back-polish {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
}

.register-flow-page .btn-primary {
    background:
        linear-gradient(135deg, #fff0b8 0%, var(--gold-2, #f5d37d) 28%, var(--gold, #d6a84f) 60%, #b87a2d 100%) !important;
    color: #150f05 !important;
}

@media (max-width: 680px) {
    .register-flow-page .auth-card .btn,
    .register-flow-page .auth-card .full-btn,
    .register-flow-page .auth-card .btn-primary,
    .register-flow-page .auth-card .btn-ghost,
    .register-flow-page .auth-card button,
    .register-flow-page .auth-card button[type="submit"],
    .register-flow-page .auth-card a.btn,
    .register-flow-page .auth-card form .btn,
    .register-flow-page .auth-card form .full-btn,
    .register-flow-page .auth-card form .btn-primary,
    .register-flow-page .register-language-home-back {
        height: 60px !important;
        min-height: 60px !important;
        max-height: none !important;
        padding: 14px 18px !important;
    }
}

/* === REGISTER PRIMARY BUTTONS EQUAL FINAL END === */






/* === REGISTER BUTTONS + ORACLE LUXURY FINAL START === */

/* ---------- Register flow buttons: all equal ---------- */
.register-flow-page .btn,
.register-flow-page button,
.register-flow-page .full-btn,
.register-flow-page .btn-primary,
.register-flow-page .btn-ghost,
.register-flow-page a.btn,
.register-flow-page input[type="submit"],
.register-flow-page form button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;

    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
    padding: 0 22px !important;
    margin: 14px 0 0 0 !important;

    border-radius: 18px !important;
    text-align: center !important;
    line-height: 1.35 !important;

    font-size: 15px !important;
    font-weight: 900 !important;
    white-space: normal !important;
}

.register-flow-page form {
    width: 100% !important;
}

.register-flow-page form > .btn,
.register-flow-page form > button,
.register-flow-page form > input[type="submit"],
.register-flow-page form > a.btn {
    width: 100% !important;
    display: flex !important;
}

.register-flow-page .btn-primary,
.register-flow-page button[type="submit"],
.register-flow-page input[type="submit"] {
    background: linear-gradient(135deg, #fff0b8 0%, #f5d37d 28%, #d6a84f 62%, #b87a2d 100%) !important;
    color: #140d04 !important;
    border: 1px solid rgba(245, 211, 125, 0.55) !important;
    box-shadow: 0 10px 26px rgba(214, 168, 79, 0.25) !important;
}

.register-flow-page .btn-ghost,
.register-flow-page .register-language-home-back,
.register-flow-page .register-back-link,
.register-flow-page .register-back-btn {
    min-width: 100% !important;
}

@media (max-width: 680px) {
    .register-flow-page .btn,
    .register-flow-page button,
    .register-flow-page .full-btn,
    .register-flow-page .btn-primary,
    .register-flow-page .btn-ghost,
    .register-flow-page a.btn,
    .register-flow-page input[type="submit"],
    .register-flow-page form button[type="submit"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: none !important;
        padding: 14px 18px !important;
    }
}

/* ---------- Oracle quote: no title + luxury typography ---------- */
/* Hide title-ish parts */
.oracle-card .kicker,
.oracle-card .title,
.oracle-card .subtitle,
.oracle-card .section-title,
.oracle-card .section-kicker,
.oracle-card .oracle-title,
.oracle-card .oracle-kicker,
.oracle-card .quote-title,
.oracle-card .quote-kicker,
.oracle-card h1,
.oracle-card h2,
.oracle-card h3,
.oracle-card h4,
.oracle-card h5,
.oracle-card h6,

.oracle-quote .kicker,
.oracle-quote .title,
.oracle-quote .subtitle,
.oracle-quote .section-title,
.oracle-quote .section-kicker,
.oracle-quote .oracle-title,
.oracle-quote .oracle-kicker,
.oracle-quote .quote-title,
.oracle-quote .quote-kicker,
.oracle-quote h1,
.oracle-quote h2,
.oracle-quote h3,
.oracle-quote h4,
.oracle-quote h5,
.oracle-quote h6,

.daily-quote .kicker,
.daily-quote .title,
.daily-quote .subtitle,
.daily-quote .section-title,
.daily-quote .section-kicker,
.daily-quote .oracle-title,
.daily-quote .oracle-kicker,
.daily-quote .quote-title,
.daily-quote .quote-kicker,
.daily-quote h1,
.daily-quote h2,
.daily-quote h3,
.daily-quote h4,
.daily-quote h5,
.daily-quote h6,

.quote-card .kicker,
.quote-card .title,
.quote-card .subtitle,
.quote-card .section-title,
.quote-card .section-kicker,
.quote-card .oracle-title,
.quote-card .oracle-kicker,
.quote-card .quote-title,
.quote-card .quote-kicker,
.quote-card h1,
.quote-card h2,
.quote-card h3,
.quote-card h4,
.quote-card h5,
.quote-card h6 {
    display: none !important;
}

/* Main quote box look */
.oracle-card,
.oracle-quote,
.daily-quote,
.quote-card,
.insight-quote,
.oracle-saying,
.oracle-message {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    padding: 24px 22px !important;
    background: linear-gradient(180deg, rgba(18, 20, 29, 0.84) 0%, rgba(10, 12, 20, 0.92) 100%) !important;
    border: 1px solid rgba(245, 211, 125, 0.18) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.oracle-card::before,
.oracle-quote::before,
.daily-quote::before,
.quote-card::before,
.insight-quote::before,
.oracle-saying::before,
.oracle-message::before {
    content: "✦" !important;
    position: absolute !important;
    top: 12px !important;
    left: 18px !important;
    font-size: 18px !important;
    color: rgba(245, 211, 125, 0.85) !important;
    opacity: 0.95 !important;
}

.oracle-card::after,
.oracle-quote::after,
.daily-quote::after,
.quote-card::after,
.insight-quote::after,
.oracle-saying::after,
.oracle-message::after {
    content: "✦" !important;
    position: absolute !important;
    bottom: 12px !important;
    right: 18px !important;
    font-size: 18px !important;
    color: rgba(245, 211, 125, 0.85) !important;
    opacity: 0.95 !important;
}

/* Quote text styling */
.oracle-card p,
.oracle-card blockquote,
.oracle-card .body,
.oracle-card .quote-text,
.oracle-card .oracle-text,

.oracle-quote p,
.oracle-quote blockquote,
.oracle-quote .body,
.oracle-quote .quote-text,
.oracle-quote .oracle-text,

.daily-quote p,
.daily-quote blockquote,
.daily-quote .body,
.daily-quote .quote-text,
.daily-quote .oracle-text,

.quote-card p,
.quote-card blockquote,
.quote-card .body,
.quote-card .quote-text,
.quote-card .oracle-text,

.insight-quote p,
.insight-quote blockquote,
.insight-quote .body,
.insight-quote .quote-text,
.insight-quote .oracle-text,

.oracle-saying p,
.oracle-saying blockquote,
.oracle-saying .body,
.oracle-saying .quote-text,
.oracle-saying .oracle-text,

.oracle-message p,
.oracle-message blockquote,
.oracle-message .body,
.oracle-message .quote-text,
.oracle-message .oracle-text {
    margin: 0 !important;
    color: #f7ecd0 !important;
    font-family: "Cormorant Garamond", serif !important;
    font-size: clamp(22px, 2.1vw, 30px) !important;
    line-height: 1.85 !important;
    letter-spacing: 0.2px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-wrap: pretty !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24) !important;
}

/* If more than one paragraph exists, keep spacing beautiful */
.oracle-card p + p,
.oracle-quote p + p,
.daily-quote p + p,
.quote-card p + p,
.insight-quote p + p,
.oracle-saying p + p,
.oracle-message p + p {
    margin-top: 10px !important;
}

/* Light theme adaptation */
html[data-realm-theme="light"] .oracle-card,
html[data-realm-theme="light"] .oracle-quote,
html[data-realm-theme="light"] .daily-quote,
html[data-realm-theme="light"] .quote-card,
html[data-realm-theme="light"] .insight-quote,
html[data-realm-theme="light"] .oracle-saying,
html[data-realm-theme="light"] .oracle-message {
    background: linear-gradient(180deg, rgba(255, 248, 235, 0.94) 0%, rgba(250, 240, 217, 0.96) 100%) !important;
    border: 1px solid rgba(185, 123, 42, 0.22) !important;
    box-shadow: 0 16px 38px rgba(113, 80, 23, 0.11) !important;
}

html[data-realm-theme="light"] .oracle-card p,
html[data-realm-theme="light"] .oracle-card blockquote,
html[data-realm-theme="light"] .oracle-card .body,
html[data-realm-theme="light"] .oracle-card .quote-text,
html[data-realm-theme="light"] .oracle-card .oracle-text,

html[data-realm-theme="light"] .oracle-quote p,
html[data-realm-theme="light"] .oracle-quote blockquote,
html[data-realm-theme="light"] .oracle-quote .body,
html[data-realm-theme="light"] .oracle-quote .quote-text,
html[data-realm-theme="light"] .oracle-quote .oracle-text,

html[data-realm-theme="light"] .daily-quote p,
html[data-realm-theme="light"] .daily-quote blockquote,
html[data-realm-theme="light"] .daily-quote .body,
html[data-realm-theme="light"] .daily-quote .quote-text,
html[data-realm-theme="light"] .daily-quote .oracle-text,

html[data-realm-theme="light"] .quote-card p,
html[data-realm-theme="light"] .quote-card blockquote,
html[data-realm-theme="light"] .quote-card .body,
html[data-realm-theme="light"] .quote-card .quote-text,
html[data-realm-theme="light"] .quote-card .oracle-text,

html[data-realm-theme="light"] .insight-quote p,
html[data-realm-theme="light"] .insight-quote blockquote,
html[data-realm-theme="light"] .insight-quote .body,
html[data-realm-theme="light"] .insight-quote .quote-text,
html[data-realm-theme="light"] .insight-quote .oracle-text,

html[data-realm-theme="light"] .oracle-saying p,
html[data-realm-theme="light"] .oracle-saying blockquote,
html[data-realm-theme="light"] .oracle-saying .body,
html[data-realm-theme="light"] .oracle-saying .quote-text,
html[data-realm-theme="light"] .oracle-saying .oracle-text,

html[data-realm-theme="light"] .oracle-message p,
html[data-realm-theme="light"] .oracle-message blockquote,
html[data-realm-theme="light"] .oracle-message .body,
html[data-realm-theme="light"] .oracle-message .quote-text,
html[data-realm-theme="light"] .oracle-message .oracle-text {
    color: #563714 !important;
    text-shadow: none !important;
}

/* === REGISTER BUTTONS + ORACLE LUXURY FINAL END === */





















/* IE_HOME_HEADER_COMPACT_FINAL_CSS_START */
.ie-navbar {
    width: 100% !important;
    box-sizing: border-box !important;
}

.ie-navlinks a[data-i18n="navAbout"] {
    max-width: 150px !important;
}

.realm-menu::before,
.realm-menu::after {
    content: none !important;
    display: none !important;
}

.realm-btn,
.mini-select,
.icon-btn,
.ie-navlinks a {
    box-sizing: border-box !important;
}

.realm-panel,
.lang-panel {
    overflow: visible !important;
    contain: none !important;
}
/* IE_HOME_HEADER_COMPACT_FINAL_CSS_END */

















/* IE_HEADER_AUTH_SLOT_FINAL_CSS_START */
.ie-header-auth {
    overflow: visible !important;
    contain: none !important;
    transform: none !important;
    animation: none !important;
}

.ie-header-login-btn,
.ie-header-account-btn,
.ie-header-login-btn:hover,
.ie-header-account-btn:hover {
    transform: none !important;
    scale: 1 !important;
    animation: none !important;
}

.ie-header-account-panel {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    z-index: 9999 !important;
}

.ie-header-account-toggle:not(:checked) ~ .ie-header-account-panel {
    display: none !important;
}

.ie-header-account-toggle:checked ~ .ie-header-account-panel {
    display: block !important;
}
/* IE_HEADER_AUTH_SLOT_FINAL_CSS_END */


/* IE_REALM_CONTENT_AND_POLISH_FINAL_START */

.ie-header-auth {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    flex: 0 0 210px !important;
    overflow: visible !important;
}

.ie-header-account-btn {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;

    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    display: inline-grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 16px !important;
    align-items: center !important;
    column-gap: 10px !important;

    padding: 0 16px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;

    border: 1px solid rgba(245, 211, 125, 0.48) !important;
    background:
        linear-gradient(135deg, rgba(255, 241, 194, 0.18), rgba(214, 168, 79, 0.12)),
        rgba(255, 255, 255, 0.065) !important;

    color: #fff7da !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;

    font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;

    transform: none !important;
    scale: 1 !important;
    animation: none !important;
}

.ie-header-account-btn:hover {
    transform: none !important;
    scale: 1 !important;
    border-color: rgba(245, 211, 125, 0.72) !important;
    background:
        linear-gradient(135deg, rgba(255, 241, 194, 0.24), rgba(214, 168, 79, 0.16)),
        rgba(255, 255, 255, 0.085) !important;
}

.ie-header-account-icon {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    color: #201504 !important;
    background: linear-gradient(135deg, #fff0b8, #d6a84f) !important;

    font-size: 13px !important;
    line-height: 1 !important;
}

.ie-header-account-text {
    display: block !important;
    min-width: 0 !important;

    font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: 0.1px !important;

    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

.ie-header-account-chev {
    width: 16px !important;
    min-width: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.ie-header-account-panel {
    width: 340px !important;
    min-width: 340px !important;
    max-width: min(340px, calc(100vw - 24px)) !important;

    padding: 10px !important;
    border-radius: 22px !important;

    border: 1px solid rgba(245, 211, 125, 0.24) !important;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(8, 13, 24, 0.96)) !important;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;

    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

.ie-header-account-panel .realm-item,
.ie-header-account-panel .realm-logout-form button {
    width: 100% !important;
    min-height: 62px !important;

    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;

    padding: 12px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    border-radius: 16px !important;
    border: 1px solid transparent !important;
    background: transparent !important;

    color: #f8fafc !important;
    text-decoration: none !important;
    text-align: start !important;

    transform: none !important;
    animation: none !important;
}

.ie-header-account-panel .realm-item:hover,
.ie-header-account-panel .realm-logout-form button:hover {
    background: rgba(245, 211, 125, 0.08) !important;
    border-color: rgba(245, 211, 125, 0.16) !important;
    transform: none !important;
}

.ie-header-account-panel .realm-item-icon {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 14px !important;
    color: #f5d37d !important;
    background: rgba(245, 211, 125, 0.10) !important;
}

.ie-header-account-panel strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ie-header-account-panel small {
    display: block !important;
    color: rgba(248, 250, 252, 0.62) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    margin-top: 3px !important;
}

.ie-header-account-panel .danger strong {
    color: #ff8b8b !important;
}

html[dir="rtl"] .ie-header-account-text {
    font-size: 0 !important;
}

html[dir="rtl"] .ie-header-account-text::before {
    content: "قلمروی من";
    font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

html[data-theme="light"] .ie-header-account-btn {
    color: #2b1b08 !important;
    background:
        linear-gradient(135deg, rgba(255, 249, 231, 0.98), rgba(239, 219, 177, 0.92)) !important;
    border-color: rgba(151, 101, 30, 0.30) !important;
    box-shadow:
        0 10px 22px rgba(139, 102, 32, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

html[data-theme="light"] .ie-header-account-panel {
    background:
        linear-gradient(180deg, rgba(255, 250, 238, 0.98), rgba(244, 233, 207, 0.98)) !important;
    border-color: rgba(151, 101, 30, 0.20) !important;
}

html[data-theme="light"] .ie-header-account-panel .realm-item,
html[data-theme="light"] .ie-header-account-panel .realm-logout-form button {
    color: #1d2638 !important;
}

html[data-theme="light"] .ie-header-account-panel strong {
    color: #172033 !important;
}

html[data-theme="light"] .ie-header-account-panel small {
    color: rgba(23, 32, 51, 0.62) !important;
}

/* IE_REALM_CONTENT_AND_POLISH_FINAL_END */


/* IE_REALM_BUTTON_VISIBILITY_FIX_START */

.ie-header-auth {
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    flex: 0 0 230px !important;
}

.ie-header-account-btn {
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;

    display: inline-grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 16px !important;
    align-items: center !important;
    column-gap: 12px !important;

    padding: 0 18px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;

    border: 1px solid rgba(245, 211, 125, 0.56) !important;
    background:
        linear-gradient(135deg, rgba(255, 243, 201, 0.18), rgba(214, 168, 79, 0.12)),
        rgba(255, 255, 255, 0.07) !important;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;

    color: #fff7de !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.ie-header-account-btn:hover {
    border-color: rgba(245, 211, 125, 0.82) !important;
    background:
        linear-gradient(135deg, rgba(255, 246, 212, 0.24), rgba(214, 168, 79, 0.16)),
        rgba(255, 255, 255, 0.09) !important;
}

.ie-header-account-icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    background: linear-gradient(135deg, #ffe9a8, #d7a548) !important;
    color: #241704 !important;

    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.ie-header-account-text {
    display: block !important;
    min-width: 0 !important;

    font-family: "Segoe UI", "Inter", Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.2px !important;

    color: #fff8e7 !important;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.22),
        0 0 12px rgba(245, 211, 125, 0.18) !important;

    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.ie-header-account-chev {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: rgba(255, 248, 231, 0.92) !important;
}

html[dir="rtl"] .ie-header-account-text {
    font-size: 0 !important;
}

html[dir="rtl"] .ie-header-account-text::before {
    content: "قلمروی من";
    font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    color: #fff8e7 !important;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.22),
        0 0 12px rgba(245, 211, 125, 0.18) !important;
}

html[data-theme="light"] .ie-header-account-btn {
    background:
        linear-gradient(135deg, rgba(255, 250, 236, 0.98), rgba(243, 228, 197, 0.96)) !important;
    border-color: rgba(148, 99, 29, 0.34) !important;
    color: #2d1b09 !important;
}

html[data-theme="light"] .ie-header-account-text {
    color: #2a1a08 !important;
    text-shadow: none !important;
}

html[data-theme="light"][dir="rtl"] .ie-header-account-text::before {
    color: #2a1a08 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .ie-header-account-chev {
    color: #5c3b12 !important;
}

/* IE_REALM_BUTTON_VISIBILITY_FIX_END */


/* IE_REALM_TEXT_CLIP_FIX_START */

.ie-header-auth {
    width: 236px !important;
    min-width: 236px !important;
    max-width: 236px !important;
    flex: 0 0 236px !important;
}

.ie-header-account-btn {
    width: 236px !important;
    min-width: 236px !important;
    max-width: 236px !important;

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 16px !important;
    align-items: center !important;
    column-gap: 12px !important;

    padding: 0 18px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.ie-header-account-text {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-overflow: clip !important;

    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;

    color: #fff8ea !important;
    text-rendering: geometricPrecision !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;

    padding-top: 1px !important;
    padding-bottom: 3px !important;
}

.ie-header-account-btn *,
.ie-header-account-text *,
.ie-header-account-chev,
.ie-header-account-icon {
    overflow: visible !important;
}

.ie-header-account-chev {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;

    font-size: 15px !important;
    line-height: 1 !important;
    color: rgba(255, 248, 234, 0.92) !important;
}

.ie-header-account-icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

html[dir="rtl"] .ie-header-account-text {
    font-size: 0 !important;
    padding-bottom: 2px !important;
}

html[dir="rtl"] .ie-header-account-text::before {
    content: "قلمروی من";
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: #fff8ea !important;
}

html[data-theme="light"] .ie-header-account-text {
    color: #2c1b08 !important;
}

html[data-theme="light"] .ie-header-account-chev {
    color: #6a4312 !important;
}

html[data-theme="light"][dir="rtl"] .ie-header-account-text::before {
    color: #2c1b08 !important;
}

/* IE_REALM_TEXT_CLIP_FIX_END */


/* === MY REALM CLEAN CROWN ICON START === */

.ie-header-account-icon {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    background: linear-gradient(135deg, #fff1b8, #d8a544) !important;
    color: #241704 !important;

    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    text-shadow: 0 1px 0 rgba(255,255,255,0.28) !important;
    overflow: hidden !important;
}

.ie-header-account-icon::before,
.ie-header-account-icon::after {
    content: none !important;
    display: none !important;
}

.ie-header-account-icon svg,
.ie-header-account-icon img,
.ie-header-account-icon span {
    display: none !important;
}

html[data-theme="light"] .ie-header-account-icon {
    color: #4a2d08 !important;
}

/* === MY REALM CLEAN CROWN ICON END === */


/* === MY REALM CROWN SIZE POLISH START === */

.ie-header-account-icon {
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding-bottom: 1px !important;
}

html[data-theme="light"] .ie-header-account-icon {
    font-size: 22px !important;
}

/* === MY REALM CROWN SIZE POLISH END === */


/* === MY REALM CROWN BIGGER FINAL START === */

.ie-header-account-icon {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 26px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    border-radius: 999px !important;
    padding: 0 !important;
}

.ie-header-account-icon::before,
.ie-header-account-icon i,
.ie-header-account-icon svg {
    font-size: 26px !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 1 !important;
}

html[data-theme="light"] .ie-header-account-icon {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 26px !important;
}

/* === MY REALM CROWN BIGGER FINAL END === */


/* === MY REALM CHEVRON POLISH START === */

.ie-header-account-btn {
    grid-template-columns: 42px minmax(0, 1fr) 28px !important;
    column-gap: 8px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.ie-header-account-icon {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 28px !important;
    line-height: 1 !important;
}

.ie-header-account-icon::before,
.ie-header-account-icon i,
.ie-header-account-icon svg {
    width: 24px !important;
    height: 24px !important;
    font-size: 28px !important;
    line-height: 1 !important;
}

.ie-header-account-text {
    font-size: 19px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.ie-header-account-chev {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    transform: rotate(0deg) !important;
    transition: transform .18s ease !important;
}

/* حالت باز: فلش برود بالا */
.ie-header-auth.open .ie-header-account-chev,
.ie-header-account-wrap.open .ie-header-account-chev,
.ie-header-account-dropdown.open .ie-header-account-chev,
.ie-header-account-btn[aria-expanded="true"] .ie-header-account-chev,
.ie-header-account-btn.is-open .ie-header-account-chev {
    transform: rotate(180deg) !important;
}

/* اگر فلش خیلی پایین/بالا دیده می‌شود */
.ie-header-account-chev,
.ie-header-account-chev::before,
.ie-header-account-chev::after {
    vertical-align: middle !important;
}

/* در موبایل هم جمع‌وجور ولی واضح بماند */
@media (max-width: 768px) {
    .ie-header-account-btn {
        grid-template-columns: 38px minmax(0, 1fr) 24px !important;
        column-gap: 6px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ie-header-account-icon {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        font-size: 24px !important;
    }

    .ie-header-account-text {
        font-size: 17px !important;
    }

    .ie-header-account-chev {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        min-height: 24px !important;
        font-size: 19px !important;
    }
}

/* === MY REALM CHEVRON POLISH END === */

/* ==========================================================================
   MOBILE RESPONSIVE STABILIZER
   Safe point before this patch: safe-before-mobile-responsive-20260530-055928
   Purpose:
   - Prevent horizontal overflow on mobile
   - Compact navbar/header controls
   - Stack hero/dashboard sections cleanly
   - Preserve desktop/full-HD layout
   ========================================================================== */

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        min-width: 0;
    }

    .ie-hero,
    .hero-content,
    .quick-grid,
    .dashboard-grid,
    .market-panel,
    .reports-panel,
    .panel {
        max-width: 100%;
        box-sizing: border-box;
    }

    .ie-hero {
        min-height: auto;
        padding-bottom: 28px;
        overflow: hidden;
    }

    .ie-navbar {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        grid-template-columns: 1fr auto !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
    }

    .ie-brand {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .ie-brand span,
    .ie-brand strong,
    .brand-text {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .ie-navlinks {
        display: none !important;
    }

    .ie-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-wrap: nowrap !important;
    }

    #themeToggle,
    .lang-menu > button,
    .icon-btn {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
    }

    .ie-header-auth {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .ie-header-login-btn,
    .ie-header-account-btn {
        height: 38px !important;
        min-width: 38px !important;
        max-width: 132px !important;
        padding: 0 10px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    .ie-header-login-btn [data-i18n="login"],
    .ie-header-account-text {
        max-width: 74px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .ie-header-account-icon,
    .ie-header-login-icon {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
    }

    .lang-panel,
    .ie-header-account-panel,
    .realm-panel {
        max-width: calc(100vw - 24px) !important;
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: 12px !important;
        box-sizing: border-box !important;
    }

    html[dir="rtl"] .lang-panel,
    html[dir="rtl"] .ie-header-account-panel,
    html[dir="rtl"] .realm-panel {
        left: 12px !important;
        right: 12px !important;
    }

    .hero-content {
        width: calc(100% - 28px) !important;
        max-width: calc(100% - 28px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-top: 28px !important;
        text-align: center !important;
    }

    .hero-content h1 {
        font-size: clamp(32px, 10vw, 56px) !important;
        line-height: 1.05 !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    .hero-content p {
        font-size: 14px !important;
        line-height: 1.8 !important;
        max-width: 100% !important;
    }

    .hero-actions,
    .hero-content .actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 360px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .gold-btn,
    .ghost-btn,
    .hero-actions a,
    .hero-content .actions a {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .quick-grid,
    .dashboard-grid {
        width: calc(100% - 28px) !important;
        max-width: calc(100% - 28px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .quick-card,
    .market-row,
    .report-item,
    .notice-item {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .market-list {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .market-row {
        grid-template-columns: 34px minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }

    .market-row * {
        min-width: 0 !important;
    }

    .market-row b,
    .market-row span,
    .report-item b,
    .notice-item b {
        overflow-wrap: anywhere !important;
    }
}

@media (max-width: 420px) {
    .ie-navbar {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        padding: 8px 8px !important;
        gap: 6px !important;
    }

    .ie-actions {
        gap: 6px !important;
    }

    #themeToggle,
    .lang-menu > button,
    .icon-btn {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
    }

    .ie-header-login-btn,
    .ie-header-account-btn {
        height: 34px !important;
        max-width: 112px !important;
        padding: 0 8px !important;
    }

    .ie-header-login-btn [data-i18n="login"],
    .ie-header-account-text {
        max-width: 58px !important;
        font-size: 12px !important;
    }

    .hero-content {
        width: calc(100% - 18px) !important;
        max-width: calc(100% - 18px) !important;
    }

    .quick-grid,
    .dashboard-grid {
        width: calc(100% - 18px) !important;
        max-width: calc(100% - 18px) !important;
    }
}

/* ==========================================================================
   MOBILE BUTTON SCALE FIX
   Safe point before this patch: safe-before-mobile-responsive-20260530-055928

   Scope:
   - Mobile only
   - Does not affect desktop / Full HD layout
   - Normalizes language, theme, auth, and hero CTA button sizes
   ========================================================================== */

@media (max-width: 768px) {
    .ie-navbar {
        box-sizing: border-box !important;
    }

    .ie-navlinks {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px 18px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ie-navlinks a {
        font-size: 15px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }

    .ie-actions {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }

    #themeToggle,
    .lang-menu > button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        padding: 0 !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 15px !important;
        line-height: 1 !important;
    }

    #themeToggle .theme-icon,
    .lang-menu > button span,
    .lang-menu > button {
        font-size: 15px !important;
    }

    .ie-header-auth {
        width: auto !important;
        max-width: 100% !important;
        justify-self: center !important;
        display: flex !important;
        justify-content: center !important;
    }

    .ie-header-login-btn,
    .ie-header-account-btn {
        width: auto !important;
        min-width: 148px !important;
        max-width: 214px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        padding: 0 16px !important;
        border-radius: 999px !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }

    .ie-header-login-btn [data-i18n="login"],
    .ie-header-account-text {
        max-width: 104px !important;
        font-size: 15px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .ie-header-login-icon,
    .ie-header-account-icon {
        width: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
    }

    .ie-header-account-chev {
        width: 16px !important;
        min-width: 16px !important;
    }

    .hero-content .gold-btn,
    .hero-content .ghost-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        padding: 0 18px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .hero-content .ghost-btn {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 420px) {
    .ie-navlinks {
        gap: 8px 14px !important;
    }

    .ie-navlinks a {
        font-size: 14px !important;
    }

    #themeToggle,
    .lang-menu > button {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        border-radius: 18px !important;
        font-size: 14px !important;
    }

    .ie-header-login-btn,
    .ie-header-account-btn {
        min-width: 136px !important;
        max-width: 190px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        padding: 0 14px !important;
    }

    .ie-header-login-btn [data-i18n="login"],
    .ie-header-account-text {
        max-width: 92px !important;
        font-size: 14px !important;
    }

    .hero-content .gold-btn,
    .hero-content .ghost-btn {
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        font-size: 15px !important;
    }
}

/* IE_HOME_SINGLE_VIEWPORT_SCROLLBAR_FIX_20260625
   Keep only one desktop viewport scrollbar.
   The document viewport is forced LTR so the native scrollbar stays on the right,
   while visible homepage content keeps RTL/LTR direction from the html dir attribute.
*/
html[dir="rtl"] {
    direction: ltr !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

html[dir="rtl"] body {
    direction: ltr !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

html[dir="rtl"] body > * {
    direction: rtl !important;
    text-align: right !important;
}

html[dir="ltr"] {
    direction: ltr !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

html[dir="ltr"] body {
    direction: ltr !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

html[dir="ltr"] body > * {
    direction: ltr !important;
    text-align: left !important;
}
