
/* IE_GLOBAL_LANGUAGE_FONTS_START */
@font-face {
    font-family: "IE-Font-FA";
    src: url("../fonts/oracle/fa/BNazanin.fe70eb00cc03.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IE-Font-FA";
    src: url("../fonts/oracle/fa/BNazanin-Bold.991c306aad9d.ttf") format("truetype");
    font-weight: 700 1000;
    font-display: swap;
}

@font-face {
    font-family: "IE-Font-AR";
    src: url("../fonts/oracle/ar/NotoNaskhArabic-Regular.9a93e6c089ce.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IE-Font-AR";
    src: url("../fonts/oracle/ar/NotoNaskhArabic-Bold.b1f5d93b8437.ttf") format("truetype");
    font-weight: 700 1000;
    font-display: swap;
}

@font-face {
    font-family: "IE-Font-HI";
    src: url("../fonts/oracle/hi/NotoSerifDevanagari-Regular.4174029027ab.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IE-Font-HI";
    src: url("../fonts/oracle/hi/NotoSerifDevanagari-Bold.fef26394647a.ttf") format("truetype");
    font-weight: 700 1000;
    font-display: swap;
}

@font-face {
    font-family: "IE-Font-Latin";
    src: url("../fonts/oracle/latin/NotoSerif-Regular.84c82181704e.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IE-Font-Latin";
    src: url("../fonts/oracle/latin/NotoSerif-Bold.8442b7697f01.ttf") format("truetype");
    font-weight: 700 1000;
    font-display: swap;
}

:root {
    --ie-app-font: "IE-Font-FA", Tahoma, Arial, sans-serif;
    --font-fa: var(--ie-app-font);
}

html[lang="fa"],
html[lang^="fa-"] {
    --ie-app-font: "IE-Font-FA", Tahoma, Arial, sans-serif;
}

html[lang="ar"],
html[lang^="ar-"] {
    --ie-app-font: "IE-Font-AR", Tahoma, Arial, sans-serif;
}

html[lang="hi"],
html[lang^="hi-"] {
    --ie-app-font: "IE-Font-HI", serif;
}

html[lang="en"],
html[lang^="en-"],
html[lang="ru"],
html[lang^="ru-"],
html[lang="id"],
html[lang^="id-"] {
    --ie-app-font: "IE-Font-Latin", Georgia, "Times New Roman", serif;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--ie-app-font) !important;
}

code,
pre,
kbd,
samp,
.ie-copy-value,
.ie-weekly-leaderboard-week,
.ie-weekly-leaderboard-position,
.ie-weekly-leaderboard-user small {
    font-family: "IE-Font-Latin", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-variant-numeric: lining-nums tabular-nums;
}
/* IE_GLOBAL_LANGUAGE_FONTS_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 {
    --bg: #070a12;
    --panel: rgba(13, 18, 31, 0.78);
    --border: rgba(245, 203, 120, 0.22);
    --border-soft: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --muted: #b7bfd3;
    --muted-2: #8792ad;
    --gold: #d6a84f;
    --gold-2: #f5d37d;
    --cyan: #70e4ff;
    --radius-xl: 30px;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
    --font-fa: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-fa);
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(214, 168, 79, 0.16), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(112, 228, 255, 0.10), transparent 28%),
        radial-gradient(circle at 50% 120%, rgba(214, 168, 79, 0.14), transparent 38%),
        linear-gradient(135deg, #05070d 0%, #0a1020 52%, #05070d 100%);
    overflow-x: hidden;
}

html[dir="ltr"] body { text-align: left; }
html[dir="rtl"] body { text-align: right; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    opacity: 0.35;
}

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

button,
input,
select {
    font-family: inherit;
}

.myth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.65;
    animation: floatOrb 8s ease-in-out infinite;
}

.orb-one {
    width: 320px;
    height: 320px;
    right: -110px;
    top: 80px;
    background: radial-gradient(circle, rgba(214,168,79,0.28), transparent 68%);
}

.orb-two {
    width: 420px;
    height: 420px;
    left: -160px;
    top: 260px;
    background: radial-gradient(circle, rgba(112,228,255,0.15), transparent 66%);
    animation-delay: -3s;
}

.orb-three {
    width: 380px;
    height: 380px;
    left: 36%;
    bottom: -210px;
    background: radial-gradient(circle, rgba(245,211,125,0.15), transparent 66%);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.035); }
}

.page {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 28px 0 72px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 54px;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(8, 12, 22, 0.62);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

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

.brand-mark {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(245, 211, 125, 0.35);
    background: radial-gradient(circle, rgba(245,211,125,0.24), rgba(255,255,255,0.04));
    box-shadow: 0 18px 44px rgba(214, 168, 79, 0.22);
    overflow: hidden;
}

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

.brand strong {
    display: block;
    font-family: var(--font-display);
    letter-spacing: 1.4px;
    font-size: 18px;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 11px;
    direction: ltr;
    text-align: left;
}

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

.nav-link {
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    transition: 0.22s ease;
}

.nav-link:hover {
    color: var(--gold-2);
    background: rgba(255,255,255,0.055);
}

.logout-form { margin: 0; }

.btn {
    border: 0;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
    color: #150f05;
    background: linear-gradient(135deg, #fff0b8 0%, var(--gold-2) 28%, var(--gold) 60%, #b87a2d 100%);
    box-shadow: 0 18px 44px rgba(214,168,79,0.24);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid rgba(245,211,125,0.22);
    background: rgba(255,255,255,0.055);
}

.full-btn {
    width: 100%;
    margin-top: 12px;
}

.card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)), var(--panel);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(245,211,125,0.18), transparent 32%),
                radial-gradient(circle at 20% 0%, rgba(245,211,125,0.12), transparent 32%);
    opacity: 0.7;
}

.card > * {
    position: relative;
    z-index: 1;
}

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

h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.1;
    letter-spacing: -1px;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 34px);
}

h3 { margin: 0 0 10px; }

p {
    color: var(--muted);
    line-height: 2;
    font-size: 16px;
}

.hero {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 26px;
    align-items: center;
}

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

.badge {
    color: #ffe7a4;
    border: 1px solid rgba(245,211,125,0.22);
    background: rgba(245,211,125,0.075);
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.myth-visual {
    min-height: 560px;
    display: grid;
    place-items: center;
}

.emblem-frame {
    position: relative;
    width: min(460px, 90vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.emblem-frame::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: conic-gradient(from 120deg, transparent, rgba(245,211,125,0.34), transparent 36%, rgba(112,228,255,0.14), transparent 72%);
    filter: blur(8px);
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    to { transform: rotate(360deg); }
}

.emblem-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    border: 1px solid rgba(245,211,125,0.42);
    box-shadow: 0 34px 100px rgba(0,0,0,0.55), 0 0 70px rgba(214,168,79,0.22);
    position: relative;
    z-index: 2;
}

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

.feature-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,0.048);
    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,211,125,0.34);
    background: rgba(245,211,125,0.06);
}

.feature-card span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(245,211,125,0.12);
    border: 1px solid rgba(245,211,125,0.22);
}

.rank-section {
    margin-top: 28px;
}

.rank-ladder {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.rank-step {
    min-height: 120px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(245,211,125,0.10), rgba(255,255,255,0.035));
    border: 1px solid rgba(245,211,125,0.18);
}

.rank-step b {
    display: block;
    color: var(--gold-2);
    margin-bottom: 8px;
}

.quote-panel {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border-soft);
    color: #e6edf8;
    line-height: 2;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.auth-card { max-width: 780px; }
.auth-card.wide { max-width: 980px; }

.side-note {
    position: sticky;
    top: 24px;
}

.side-emblem {
    width: 180px;
    height: 180px;
    margin: 0 auto 18px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(245,211,125,0.35);
    box-shadow: 0 18px 44px rgba(214, 168, 79, 0.22);
    display: block;
}

.step-badge {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(245, 211, 125, 0.12);
    border: 1px solid rgba(245, 211, 125, 0.28);
    color: #ffe8a3;
    font-weight: 900;
    margin-bottom: 16px;
}

.form { margin-top: 24px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field label {
    color: #eef2ff;
    font-weight: 900;
}

.field input,
.field select {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(245,211,125,0.18);
    border-radius: 18px;
    padding: 0 15px;
    background: rgba(255,255,255,0.075);
    color: white;
    outline: none;
    transition: 0.22s ease;
}

.field input:focus,
.field select:focus {
    border-color: rgba(245,211,125,0.55);
    box-shadow: 0 0 0 4px rgba(245,211,125,0.08);
}

.field select option {
    color: #111827;
}

.field small {
    color: var(--muted);
    line-height: 1.7;
}

.form-error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 10px 12px;
    border-radius: 14px;
    line-height: 1.8;
}

.success-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}

.warning {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.11);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: #fde68a;
    line-height: 1.9;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.language-option {
    min-height: 68px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(245,211,125,0.16);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.22s ease;
    cursor: pointer;
}

.language-option:hover {
    transform: translateY(-3px);
    border-color: rgba(245,211,125,0.46);
    background: rgba(245,211,125,0.085);
}

.language-option input {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
}

.language-option:has(input:checked) {
    border-color: rgba(245, 211, 125, 0.65);
    background: linear-gradient(135deg, rgba(245,211,125,0.16), rgba(255,255,255,0.06));
    box-shadow: 0 18px 44px rgba(214, 168, 79, 0.18);
}

.flag {
    font-size: 24px;
    line-height: 1;
}

.mini-panel {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(245,211,125,0.14);
}

.mini-panel strong {
    color: var(--gold-2);
}

.code-box {
    direction: ltr;
    text-align: left;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #e0f2fe;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0,0,0,0.22);
}

.login-card {
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .nav {
        border-radius: 28px;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-actions {
        width: 100%;
    }

    .hero,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .side-note {
        position: relative;
        top: auto;
        order: -1;
    }

    .sections-grid,
    .rank-ladder {
        grid-template-columns: 1fr;
    }

    .myth-visual {
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .page {
        width: min(94%, 1180px);
        padding-top: 16px;
    }

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

    .form-grid,
    .language-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn,
    .nav-actions .btn,
    .nav-link,
    .logout-form {
        width: 100%;
    }

    .logout-form button {
        width: 100%;
    }

    .brand small {
        display: none;
    }

    .emblem-frame {
        width: min(330px, 88vw);
    }
}

/* === POLISH_PATCH_2026_04_29 === */
/* === POLISH_PATCH_2026_04_29 === */

/* Smaller, more premium page titles */
h1 {
    font-size: clamp(28px, 3.4vw, 46px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.4px !important;
}

.auth-card h1,
.login-card h1 {
    font-size: clamp(26px, 3vw, 40px) !important;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 54px) !important;
}

/* Button action / shine effect */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;
    top: -45%;
    bottom: -45%;
    width: 42%;
    inset-inline-start: -60%;
    z-index: -1;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255,255,255,0.18) 38%,
        rgba(255,255,255,0.42) 50%,
        rgba(255,255,255,0.18) 62%,
        transparent 100%
    );
    transform: skewX(-18deg);
    transition: inset-inline-start 0.65s ease;
}

.btn:hover::before {
    inset-inline-start: 118%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.012);
}

.btn:active {
    transform: translateY(0) scale(0.975);
}

.btn:focus-visible {
    outline: 3px solid rgba(245, 211, 125, 0.34);
    outline-offset: 3px;
}

/* Stronger primary CTA */
.btn-primary {
    border: 1px solid rgba(255, 239, 184, 0.44) !important;
}

.btn-primary:hover {
    box-shadow:
        0 22px 60px rgba(245,211,125,0.35),
        inset 0 1px 0 rgba(255,255,255,0.44) !important;
}

/* Ghost button polish */
.btn-ghost:hover {
    border-color: rgba(245,211,125,0.55) !important;
    background: rgba(245,211,125,0.10) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

/* Language button flags */
.language-option {
    justify-content: flex-start;
}

.language-name {
    font-weight: 850;
}

.flag {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 25px !important;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.30));
    transition: transform 0.22s ease;
}

.language-option:hover .flag {
    transform: translateY(-2px) rotate(-5deg) scale(1.08);
}

.language-option:has(input:checked) .flag {
    transform: scale(1.12);
}

/* Cleaner image-only hero card */
.image-only::before {
    opacity: 0.38;
}

.clean-emblem {
    width: min(430px, 88vw) !important;
}

/* Make long translated titles look better */
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] p {
    text-align: left;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] p {
    text-align: right;
}

@media (max-width: 680px) {
    h1 {
        font-size: clamp(25px, 8vw, 34px) !important;
    }

    .hero h1 {
        font-size: clamp(28px, 8.5vw, 38px) !important;
    }

    .clean-emblem {
        width: min(310px, 86vw) !important;
    }
}

/* === REGISTRATION_FINISH_PATCH_2026_04_29 === */
/* === REGISTRATION_FINISH_PATCH_2026_04_29 === */

.pisi-mark {
    font-family: var(--font-display);
    font-size: 21px !important;
    font-weight: 900;
    color: #1a1205;
    background:
        radial-gradient(circle at 30% 25%, #fff7cf 0%, #f5d37d 28%, #d6a84f 60%, #8d6428 100%) !important;
    border: 1px solid rgba(255, 242, 185, 0.68) !important;
    box-shadow:
        0 14px 36px rgba(214, 168, 79, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.55);
}

.form-actions {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 12px;
    margin-top: 20px;
}

.form-actions .btn {
    width: 100%;
}

.account-shell {
    grid-template-columns: minmax(0, 1fr);
}

.account-form-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-form-layout .field {
    margin-bottom: 0;
}

.full-row,
.form-section-title {
    grid-column: 1 / -1;
}

.form-section-title {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    color: var(--gold-2);
    font-weight: 900;
    background: rgba(245, 211, 125, 0.075);
    border: 1px solid rgba(245, 211, 125, 0.16);
}

.form-section-title:first-child {
    margin-top: 0;
}

.account-form-layout input,
.account-form-layout select {
    min-height: 52px;
}

@media (max-width: 760px) {
    .account-form-layout {
        grid-template-columns: 1fr;
    }

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


/* === 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 === */

