/* =========================================================
   GAME4ONLINE — MAIN STYLESHEET
   Shared styles: homepage, accounts and common components
   Page-specific Help / TeamSpeak / Admin styles remain inline.
========================================================= */

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

/* ---------------------------------------------------------
   1. DESIGN TOKENS + RESET
--------------------------------------------------------- */
:root {
    --primary: #e32636;
    --primary-dark: #bd1e2c;
    --primary-soft: #fff0f1;
    --text-dark: #222222;
    --text-gray: #777777;
    --muted: #999999;
    --background: #f5f5f7;
    --white: #ffffff;
    --border: #e8e8e8;
    --success: #269c67;
    --error: #bd1e2c;
    --info-bg: #f1f6ff;
    --info-text: #315b91;
    --container-width: 1220px;
    --radius-small: 8px;
    --radius-medium: 13px;
    --radius-large: 18px;
    --shadow-soft: 0 10px 35px rgba(20, 20, 20, 0.055);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    direction: rtl;
    background: var(--background);
    color: var(--text-dark);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

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

img {
    height: auto;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(227, 38, 54, 0.32);
    outline-offset: 3px;
}

::selection {
    background: rgba(227, 38, 54, 0.17);
    color: var(--text-dark);
}

.container {
    width: min(90%, var(--container-width));
    margin-inline: auto;
}

main {
    width: 100%;
}

/* ---------------------------------------------------------
   2. SHARED HEADER / LOGO / LINKS
--------------------------------------------------------- */
.header {
    width: 100%;
    min-height: 78px;
    padding-inline: max(5%, calc((100% - var(--container-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-content {
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    min-width: 0;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--primary);
    color: var(--white);
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.logo-text {
    color: var(--text-dark);
    font-size: 21px;
    font-weight: 900;
    direction: ltr;
    white-space: nowrap;
    line-height: 1.2;
}

.logo-text span {
    color: var(--primary);
}

.back-link {
    flex: 0 0 auto;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.login-btn,
.register-btn {
    min-height: 39px;
    padding: 8px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.login-btn {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--white);
}

.login-btn:hover {
    background: var(--primary-soft);
}

.register-btn {
    background: var(--primary);
    color: var(--white);
}

.register-btn:hover {
    background: var(--primary-dark);
}

/* Legacy navigation selectors, retained for compatibility. */
.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.navigation a {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
    color: var(--primary);
}

/* ---------------------------------------------------------
   3. HOMEPAGE HEADER + RESPONSIVE NAVIGATION
--------------------------------------------------------- */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(232, 232, 232, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header-inner {
    width: min(90%, var(--container-width));
    min-height: 78px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.main-navigation {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(13px, 2vw, 27px);
}

.nav-link {
    position: relative;
    padding-block: 9px;
    color: #686868;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu {
    position: relative;
    display: none;
    flex: 0 0 auto;
}

.mobile-menu summary {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
    cursor: pointer;
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary::marker {
    content: "";
}

.mobile-menu summary span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu[open] summary span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu[open] summary span:nth-child(2) {
    opacity: 0;
}

.mobile-menu[open] summary span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-navigation {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 120;
    width: min(290px, calc(100vw - 30px));
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.mobile-navigation > a,
.mobile-account-links a {
    min-height: 42px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border-radius: 7px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.mobile-navigation > a:hover,
.mobile-account-links a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.mobile-account-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
}

.mobile-account-links a {
    justify-content: center;
    background: #fafafa;
}

/* ---------------------------------------------------------
   4. HOMEPAGE HERO
--------------------------------------------------------- */
.home-page {
    background: #ffffff;
}

.home-page main {
    flex: 1;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(55px, 7vw, 92px) 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(227, 38, 54, 0.08), transparent 27%),
        linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    right: -170px;
    bottom: -280px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(227, 38, 54, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(227, 38, 54, 0.025), 0 0 0 90px rgba(227, 38, 54, 0.02);
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
    align-items: center;
    gap: clamp(30px, 6vw, 85px);
}

.hero-content {
    min-width: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid #f1dadd;
    border-radius: 6px;
    background: #fff8f8;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(227, 38, 54, 0.1);
}

.hero-content h1 {
    max-width: 650px;
    margin: 24px 0 0;
    color: #202020;
    font-size: clamp(35px, 4.5vw, 58px);
    font-weight: 900;
    line-height: 1.65;
    letter-spacing: -1.6px;
}

.hero-content h1 span {
    display: block;
    color: var(--primary);
}

.hero-description {
    max-width: 610px;
    margin: 16px 0 0;
    color: #777;
    font-size: 14px;
    line-height: 2.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-top: 27px;
}

.primary-action,
.secondary-action {
    min-height: 47px;
    padding: 11px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 7px 18px rgba(227, 38, 54, 0.15);
}

.primary-action:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 10px 22px rgba(227, 38, 54, 0.2);
}

.primary-action span,
.secondary-action span {
    font-size: 17px;
    line-height: 1;
}

.secondary-action {
    border-color: #dedede;
    background: var(--white);
    color: #555;
}

.secondary-action:hover {
    border-color: #f0b7bd;
    background: #fff8f8;
    color: var(--primary);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 37px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 11px;
}

.highlight-symbol {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f2dadd;
    border-radius: 9px;
    background: #fff6f7;
    color: var(--primary);
    font-size: 16px;
    font-weight: 900;
}

.highlight-item strong,
.highlight-item small {
    display: block;
}

.highlight-item strong {
    color: #333;
    font-size: 11px;
    direction: ltr;
    text-align: right;
}

.highlight-item small {
    margin-top: 3px;
    color: #999;
    font-size: 10px;
}

/* Hero visual */
.hero-visual {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.visual-glow {
    position: absolute;
    z-index: -2;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 38, 54, 0.16), rgba(227, 38, 54, 0) 70%);
    filter: blur(8px);
}

.visual-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(227, 38, 54, 0.14);
    border-radius: 50%;
    transform: rotate(-22deg);
}

.orbit-one {
    width: 400px;
    height: 220px;
}

.orbit-two {
    width: 340px;
    height: 310px;
    transform: rotate(38deg);
}

.visual-main-card {
    position: relative;
    width: min(310px, 76%);
    min-height: 345px;
    padding: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 19px;
    background: linear-gradient(145deg, #29292d 0%, #151518 70%, #3b151a 100%);
    box-shadow: 0 25px 65px rgba(30, 15, 18, 0.22);
    color: var(--white);
    transform: rotate(-4deg);
}

.visual-main-card::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -100px;
    left: -100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.025), 0 0 0 56px rgba(255, 255, 255, 0.02);
}

.visual-label,
.visual-card-footer {
    position: relative;
    z-index: 1;
    direction: ltr;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.visual-label {
    color: #f08a94;
}

.visual-logo {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    margin: 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 23px;
    background: linear-gradient(145deg, #ed3443, #b71929);
    color: var(--white);
    font-size: 44px;
    font-weight: 900;
    box-shadow: 0 15px 32px rgba(227, 38, 54, 0.28);
}

.visual-main-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    direction: ltr;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: 2px;
}

.visual-main-card h2 span {
    display: block;
    color: #f07883;
}

.visual-main-card p {
    position: relative;
    z-index: 1;
    margin: 7px 0 0;
    color: #aaa;
    text-align: center;
    direction: ltr;
    font-size: 10px;
}

.visual-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #888;
    font-size: 8px;
    letter-spacing: 1px;
}

.visual-floating-card {
    position: absolute;
    z-index: 2;
    min-width: 150px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(232, 232, 232, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
    backdrop-filter: blur(8px);
}

.floating-top {
    top: 57px;
    right: 0;
}

.floating-bottom {
    bottom: 53px;
    left: 0;
}

.floating-icon {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 17px;
    font-weight: 900;
}

.visual-floating-card strong,
.visual-floating-card small {
    display: block;
}

.visual-floating-card strong {
    direction: ltr;
    text-align: right;
    color: #333;
    font-size: 10px;
}

.visual-floating-card small {
    margin-top: 2px;
    color: #999;
    font-size: 9px;
}

/* ---------------------------------------------------------
   5. QUICK ACCESS
--------------------------------------------------------- */
.quick-access-section {
    position: relative;
    z-index: 2;
    padding: 0 0 35px;
    background: #fbfbfc;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.quick-access-card {
    min-width: 0;
    min-height: 88px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-access-card:hover {
    transform: translateY(-3px);
    border-color: #efc3c8;
    box-shadow: var(--shadow-soft);
}

.quick-access-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 19px;
    font-weight: 900;
}

.quick-access-card > div {
    min-width: 0;
}

.quick-access-card strong,
.quick-access-card small {
    display: block;
}

.quick-access-card strong {
    font-size: 12px;
    font-weight: 800;
}

.quick-access-card small {
    margin-top: 5px;
    color: #999;
    font-size: 10px;
    line-height: 1.8;
}

.quick-arrow {
    margin-right: auto;
    color: var(--primary);
    font-size: 17px;
    transition: transform 0.2s ease;
}

.quick-access-card:hover .quick-arrow {
    transform: translateX(-4px);
}

/* ---------------------------------------------------------
   6. HOMEPAGE CONTENT SECTIONS + HEADINGS
--------------------------------------------------------- */
.content-section {
    padding: 78px 0;
    background: #ffffff;
}

.content-section:nth-of-type(even) {
    background: #fbfbfc;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    direction: ltr;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
}

.section-heading h2 {
    margin: 10px 0 0;
    color: #242424;
    font-size: clamp(23px, 2.7vw, 31px);
    font-weight: 900;
    line-height: 1.7;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    max-width: 620px;
    margin: 7px 0 0;
    color: #888;
    font-size: 12px;
    line-height: 2.2;
}

.section-counter {
    padding-bottom: 7px;
    color: #b1b1b1;
    direction: ltr;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   7. GAME GENRES
--------------------------------------------------------- */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.genre-card {
    position: relative;
    min-height: 205px;
    padding: 22px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    background: #fff;
    isolation: isolate;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.genre-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.93) 73%);
}

.genre-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.genre-action {
    background: linear-gradient(140deg, #f6dfe1, #fff 75%);
}

.genre-rpg {
    background: linear-gradient(140deg, #e5e7f2, #fff 75%);
}

.genre-strategy {
    background: linear-gradient(140deg, #e2eee9, #fff 75%);
}

.genre-adventure {
    background: linear-gradient(140deg, #f3eadb, #fff 75%);
}

.genre-indie {
    background: linear-gradient(140deg, #e9e1f0, #fff 75%);
}

.genre-multiplayer {
    background: linear-gradient(140deg, #e0ebf3, #fff 75%);
}

.genre-decoration {
    position: absolute;
    z-index: -1;
    top: -38px;
    left: 10px;
    color: rgba(35, 35, 35, 0.055);
    direction: ltr;
    font-size: 190px;
    font-weight: 900;
    line-height: 1;
    user-select: none;
}

.genre-card-content {
    position: relative;
    z-index: 1;
}

.genre-number {
    display: inline-block;
    margin-bottom: 10px;
    color: #999;
    direction: ltr;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.genre-card h3 {
    margin: 0;
    color: #2b2b2b;
    font-size: 18px;
    font-weight: 900;
}

.genre-card p {
    max-width: 260px;
    margin: 7px 0 0;
    color: #777;
    font-size: 11px;
    line-height: 2;
}

.section-bottom-note {
    margin-top: 19px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #999;
    font-size: 10px;
    line-height: 2;
}

.note-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--primary);
}

/* ---------------------------------------------------------
   8. GUIDES / EDITORIAL CARDS
--------------------------------------------------------- */
.guides-section {
    background: #fbfbfc !important;
}

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

.guide-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.guide-visual {
    position: relative;
    min-height: 175px;
    padding: 19px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    isolation: isolate;
}

.guide-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 180px;
    height: 180px;
    left: -43px;
    bottom: -100px;
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 50%;
    box-shadow: 0 0 0 23px rgba(255,255,255,0.06), 0 0 0 46px rgba(255,255,255,0.04);
}

.guide-visual > span {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.65);
    direction: ltr;
    font-size: 10px;
    font-weight: 900;
}

.guide-visual > strong {
    color: white;
    direction: ltr;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
}

.guide-visual-red {
    background: linear-gradient(135deg, #e32636, #8e1723);
}

.guide-visual-dark {
    background: linear-gradient(135deg, #37373d, #17171a);
}

.guide-visual-gray {
    background: linear-gradient(135deg, #68717d, #303944);
}

.guide-content {
    padding: 20px;
}

.guide-category {
    color: var(--primary);
    direction: ltr;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.guide-content h3 {
    min-height: 55px;
    margin: 10px 0 0;
    color: #303030;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.9;
}

.guide-content p {
    min-height: 65px;
    margin: 8px 0 0;
    color: #888;
    font-size: 11px;
    line-height: 2.15;
}

.guide-read-time {
    display: inline-block;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 10px;
    font-weight: 700;
}

/* ---------------------------------------------------------
   9. GAMING TOOLS
--------------------------------------------------------- */
.tools-section {
    background: #ffffff !important;
}

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

.tool-card {
    min-width: 0;
    min-height: 125px;
    padding: 19px;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tool-card:hover {
    border-color: #efc3c8;
    background: #fffdfd;
}

.tool-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
}

.tool-card > div {
    min-width: 0;
}

.tool-card h3 {
    margin: 1px 0 0;
    color: #333;
    direction: ltr;
    text-align: right;
    font-size: 13px;
    font-weight: 900;
}

.tool-card p {
    margin: 6px 0 0;
    color: #888;
    font-size: 11px;
    line-height: 2;
}

.tool-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 3px;
    padding: 5px 8px;
    border-radius: 5px;
    background: #f4f4f4;
    color: #888;
    font-size: 9px;
    font-weight: 700;
}

/* ---------------------------------------------------------
   10. COMMUNITY SECTION
--------------------------------------------------------- */
.community-section {
    position: relative;
    overflow: hidden;
    padding: 75px 0;
    background: linear-gradient(120deg, #252529 0%, #17171a 100%);
    color: var(--white);
}

.community-section::before {
    content: "G4";
    position: absolute;
    left: 3%;
    top: -100px;
    color: rgba(255,255,255,0.035);
    direction: ltr;
    font-size: 300px;
    font-weight: 900;
    line-height: 1;
}

.community-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(30px, 6vw, 90px);
}

.community-content h2 {
    max-width: 650px;
    margin: 15px 0 0;
    color: #fff;
    font-size: clamp(24px, 3.2vw, 37px);
    font-weight: 900;
    line-height: 1.8;
}

.community-content h2 span {
    display: block;
    color: #f07883;
}

.community-content > p {
    max-width: 620px;
    margin: 13px 0 0;
    color: #b5b5b8;
    font-size: 12px;
    line-height: 2.5;
}

.community-actions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.community-help {
    padding: 11px 13px;
    color: #ddd;
    font-size: 11px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.community-help:hover {
    color: #ff9ca5;
}

.community-card {
    position: relative;
    max-width: 390px;
    width: 100%;
    justify-self: center;
    padding: 26px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
    box-shadow: 0 20px 55px rgba(0,0,0,0.18);
}

.community-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bcbcc1;
    direction: ltr;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.online-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b5b5b5;
}

.community-ts-icon {
    width: 66px;
    height: 66px;
    margin: 27px auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--primary);
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.community-card h3 {
    margin: 0;
    color: #fff;
    direction: ltr;
    text-align: center;
    font-size: 17px;
    font-weight: 900;
}

.community-card > p {
    margin: 7px 0 0;
    color: #aaa;
    text-align: center;
    font-size: 10px;
    line-height: 2;
}

.community-server-address {
    margin-top: 19px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    background: rgba(0,0,0,0.16);
    color: #fff;
    direction: ltr;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.community-server-link {
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ff9ca5;
    font-size: 11px;
    font-weight: 800;
}

.community-server-link span {
    font-size: 16px;
}

/* ---------------------------------------------------------
   11. ABOUT + FOOTER
--------------------------------------------------------- */
.about-section {
    padding: 65px 0;
    background: #fbfbfc;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 55px;
}

.about-layout h2 {
    margin: 10px 0 0;
    font-size: clamp(22px, 2.8vw, 31px);
    font-weight: 900;
    line-height: 1.8;
}

.about-layout h2 span {
    display: block;
    color: var(--primary);
}

.about-layout > p {
    margin: 0;
    color: #777;
    font-size: 12px;
    line-height: 2.6;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
}

.footer-main {
    padding-block: 45px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 35px;
}

.footer-brand p {
    margin: 15px 0 0;
    color: #999;
    font-size: 11px;
    line-height: 2.3;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-column h3 {
    margin: 0 0 5px;
    color: #333;
    font-size: 12px;
    font-weight: 900;
}

.footer-column a {
    color: #888;
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    min-height: 57px;
    padding-block: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 9px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom span {
    direction: ltr;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

/* ---------------------------------------------------------
   12. ACCOUNT PAGES — LOGIN / REGISTER
--------------------------------------------------------- */
.main-container {
    width: 100%;
    flex: 1;
    padding: 36px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-card {
    width: 100%;
    max-width: 1000px;
    min-height: 570px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
    border: 1px solid rgba(232, 232, 232, 0.75);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

.register-info {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 55px 40px;
    background: linear-gradient(145deg, #ed3443, #b71929);
    color: var(--white);
}

.info-content {
    position: relative;
    z-index: 2;
}

.welcome-label {
    display: inline-block;
    direction: ltr;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.info-content h1 {
    margin: 35px 0 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.8;
}

.info-content h1 span {
    display: block;
    color: #ffdce0;
}

.info-content p {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 2.4;
}

.info-footer {
    position: relative;
    z-index: 2;
    margin-top: 25px;
    direction: ltr;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.decorative-circle {
    position: absolute;
    bottom: -120px;
    left: -100px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.04), 0 0 0 70px rgba(255, 255, 255, 0.03);
}

.register-form-section {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 55px;
}

.form-label {
    color: var(--primary);
    direction: ltr;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.form-header h2 {
    margin: 12px 0 0;
    color: var(--text-dark);
    font-size: 25px;
    font-weight: 900;
}

.form-header p {
    margin: 8px 0 0;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 2;
}

.register-form {
    width: 100%;
    margin-top: 28px;
}

.input-group {
    margin-bottom: 17px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 12px;
    font-weight: 800;
}

.input-group input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #fafafa;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input::placeholder {
    color: #aaa;
}

.input-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(227, 38, 54, 0.08);
}

.input-group input:invalid:not(:placeholder-shown) {
    border-color: #e8a7ad;
}

.input-hint {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 10px;
    line-height: 1.9;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    padding-right: 39px;
}

.input-status {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #d5d5d5;
    pointer-events: none;
    transition: background-color 0.2s ease;
}

.input-status.valid {
    background: var(--success);
}

.input-status.invalid {
    background: var(--error);
}

.login-options {
    margin: 5px 0 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 10px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-gray);
    cursor: pointer;
}

.remember-me input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    font-weight: 800;
}

.forgot-password:hover {
    text-decoration: underline;
}

.register-button {
    width: 100%;
    min-height: 48px;
    margin-top: 5px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.register-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(227, 38, 54, 0.18);
}

.register-button span {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.register-button:hover span {
    transform: translateX(-4px);
}

.form-feedback {
    margin-top: 13px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.9;
}

.form-feedback:empty {
    display: none;
}

.form-feedback[data-type="info"] {
    border-color: #d6e4fa;
    background: var(--info-bg);
    color: var(--info-text);
}

.form-feedback[data-type="error"] {
    border-color: #f2c4c8;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.login-link {
    margin-top: 21px;
    color: var(--text-gray);
    text-align: center;
    font-size: 11px;
}

.login-link a {
    color: var(--primary);
    font-weight: 900;
}

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

.footer {
    width: 100%;
    padding: 18px;
    color: #999;
    text-align: center;
    font-size: 10px;
}

/* ---------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
--------------------------------------------------------- */
@media (max-width: 1100px) {
    .site-header-inner {
        gap: 15px;
    }

    .main-navigation {
        gap: 13px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero-layout {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 45px;
    }
}

@media (max-width: 900px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    }

    .hero-content h1 {
        font-size: 39px;
    }

    .hero-visual {
        min-height: 375px;
    }

    .orbit-one {
        width: 330px;
    }

    .orbit-two {
        width: 290px;
    }

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

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

    .guide-card:last-child {
        grid-column: 1 / -1;
    }

    .guide-card:last-child .guide-visual {
        min-height: 145px;
    }

    .community-layout {
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .header {
        min-height: 70px;
        padding-inline: 5%;
    }

    .header-content {
        min-height: 70px;
    }

    .logo-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        font-size: 17px;
    }

    .logo-text {
        font-size: 18px;
    }

    .register-card {
        max-width: 600px;
        grid-template-columns: 1fr;
    }

    .register-info {
        min-height: 235px;
        padding: 33px;
    }

    .info-content h1 {
        margin-top: 20px;
        font-size: 27px;
    }

    .info-content p {
        margin-top: 12px;
        font-size: 12px;
    }

    .register-form-section {
        padding: 35px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-content h1 {
        max-width: 600px;
        font-size: clamp(35px, 7vw, 48px);
    }

    .hero-visual {
        min-height: 370px;
        margin-top: 5px;
    }

    .visual-main-card {
        min-height: 315px;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-card {
        min-height: 75px;
    }

    .community-layout {
        grid-template-columns: 1fr;
    }

    .community-card {
        max-width: 450px;
        justify-self: start;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 22px;
    }
}

@media (max-width: 560px) {
    html {
        scroll-padding-top: 75px;
    }

    .site-header-inner {
        width: 90%;
        min-height: 68px;
        gap: 9px;
    }

    .site-header .logo-text {
        font-size: 17px;
    }

    .site-header .logo-icon {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    .site-header .header-actions {
        display: none;
    }

    .hero-section {
        padding: 48px 0 35px;
    }

    .hero-content h1 {
        margin-top: 19px;
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .hero-description {
        font-size: 12px;
        line-height: 2.3;
    }

    .hero-actions {
        align-items: stretch;
    }

    .primary-action,
    .secondary-action {
        min-height: 44px;
        padding-inline: 13px;
        font-size: 10px;
    }

    .hero-highlights {
        gap: 15px;
        margin-top: 27px;
    }

    .highlight-item {
        gap: 8px;
    }

    .highlight-item strong {
        font-size: 9px;
    }

    .highlight-item small {
        font-size: 9px;
    }

    .hero-visual {
        min-height: 330px;
    }

    .visual-main-card {
        width: 245px;
        min-height: 285px;
        padding: 21px;
    }

    .visual-logo {
        width: 75px;
        height: 75px;
        font-size: 35px;
    }

    .visual-main-card h2 {
        font-size: 20px;
    }

    .orbit-one {
        width: 280px;
        height: 180px;
    }

    .orbit-two {
        width: 260px;
        height: 240px;
    }

    .visual-floating-card {
        min-width: 125px;
        padding: 9px;
    }

    .floating-top {
        top: 27px;
    }

    .floating-bottom {
        bottom: 28px;
    }

    .floating-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .quick-access-section {
        padding-bottom: 25px;
    }

    .content-section {
        padding: 52px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .section-heading p {
        font-size: 11px;
    }

    .genre-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .genre-card {
        min-height: 165px;
    }

    .genre-decoration {
        font-size: 155px;
    }

    .guide-card:last-child {
        grid-column: auto;
    }

    .guide-card:last-child .guide-visual {
        min-height: 175px;
    }

    .guide-content h3,
    .guide-content p {
        min-height: 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .community-section {
        padding: 55px 0;
    }

    .community-content h2 {
        font-size: 25px;
    }

    .community-content > p {
        font-size: 11px;
    }

    .community-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-card {
        padding: 21px;
    }

    .about-section {
        padding: 48px 0;
    }

    .footer-main {
        padding-block: 35px;
        gap: 27px 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .main-container {
        padding: 20px 12px;
    }

    .register-card {
        border-radius: 13px;
    }

    .register-info {
        min-height: 215px;
        padding: 27px 23px;
    }

    .info-content h1 {
        font-size: 24px;
    }

    .info-content p {
        font-size: 11px;
    }

    .register-form-section {
        padding: 28px 22px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .login-options {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 30px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
    }

    .hero-highlights {
        flex-direction: column;
    }

    .mobile-navigation {
        left: -5px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------------------------------------------------------
   14. ACCESSIBILITY / REDUCED MOTION
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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