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

:root {
    --bg: #0b0c0e;
    --bg-soft: #111316;
    --panel: #17191d;
    --panel-light: #1e2025;
    --panel-hover: #25272c;
    --orange: #ff7a24;
    --orange-light: #ffad55;
    --orange-dark: #c84c16;
    --amber: #ffc15c;
    --text: #f5f3ef;
    --muted: #a5a5aa;
    --border: rgba(255, 143, 61, 0.17);
    --border-hover: rgba(255, 143, 61, 0.48);
    --success: #7fe0a1;
    --danger: #ff7777;
    --radius: 18px;
    --radius-small: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --glow: 0 0 35px rgba(255, 122, 36, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 50% -15%, rgba(176, 77, 24, 0.16), transparent 45%),
        radial-gradient(ellipse at 100% 55%, rgba(255, 122, 36, 0.035), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    pointer-events: none;
}

::selection {
    background: rgba(255, 122, 36, 0.35);
    color: white;
}

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

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

button {
    color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
}

section {
    scroll-margin-top: 105px;
}

.container,
main,
footer {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

/* NAVIGATION */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    min-height: 82px;
    padding: 14px max(24px, calc((100% - 1160px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(11, 12, 14, 0.84);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.brand > span:last-child {
    white-space: nowrap;
}

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 164, 85, 0.42);
    border-radius: 13px;
    background: linear-gradient(145deg, #ff9c45, #c44c16);
    box-shadow: 0 0 25px rgba(255, 122, 36, 0.2);
    color: #160d08;
    font-size: 22px;
    font-weight: 800;
}

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

.navbar nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.navbar nav a {
    position: relative;
    padding: 10px 12px;
    border-radius: 9px;
    color: #b5b5ba;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
    background: rgba(255, 122, 36, 0.09);
    color: var(--orange-light);
}

.menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    cursor: pointer;
    font-size: 23px;
}

.account-area {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.account-area > a,
#loginButton,
.login-button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid rgba(255, 143, 61, 0.45);
    border-radius: 11px;
    background: linear-gradient(135deg, var(--orange), #e55a19);
    box-shadow: 0 5px 20px rgba(255, 101, 31, 0.12);
    color: #160c06;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-area > a:hover,
#loginButton:hover,
.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 101, 31, 0.24);
}

.account-trigger {
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--panel);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.account-trigger:hover {
    border-color: var(--border-hover);
    background: var(--panel-light);
}

.account-trigger img,
#profileAvatar {
    width: 33px;
    height: 33px;
    border-radius: 10px;
    object-fit: cover;
}

.account-trigger span {
    max-width: 135px;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown,
.account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1001;
    min-width: 205px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #181a1e;
    box-shadow: var(--shadow);
}

.account-dropdown[hidden],
.account-menu[hidden] {
    display: none;
}

.account-dropdown a,
.account-dropdown button,
.account-menu a,
.account-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    text-align: left;
}

.account-dropdown a:hover,
.account-dropdown button:hover,
.account-menu a:hover,
.account-menu button:hover {
    background: rgba(255, 122, 36, 0.09);
    color: var(--orange-light);
}

/* GENERAL COMPONENTS */

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--orange-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
    width: 19px;
    height: 2px;
    border-radius: 5px;
    background: var(--orange);
    content: "";
}

h1,
h2,
h3 {
    line-height: 1.12;
}

h1,
h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: -0.7px;
}

h2 {
    font-size: clamp(31px, 4vw, 45px);
}

.section-heading {
    max-width: 650px;
    margin-bottom: 40px;
}

.section-heading h2 {
    margin-top: 15px;
}

.section-heading p {
    max-width: 600px;
    margin-top: 14px;
    color: var(--muted);
}

.accent,
.orange-text {
    color: var(--orange-light);
}

.btn,
.button,
button[type="submit"] {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.button:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
}

.btn-primary,
.button-primary,
button[type="submit"] {
    background: linear-gradient(135deg, #ff9a42, #f06421);
    box-shadow: 0 7px 24px rgba(255, 110, 35, 0.13);
    color: #1b0d05;
}

.btn-primary:hover,
.button-primary:hover,
button[type="submit"]:hover {
    box-shadow: 0 10px 30px rgba(255, 110, 35, 0.23);
}

.btn-secondary,
.button-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.btn-secondary:hover,
.button-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 122, 36, 0.07);
}

/* HERO */

.hero {
    position: relative;
    display: grid;
    min-height: 590px;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 55px;
    padding-top: 82px;
    padding-bottom: 85px;
}

.hero::before {
    position: absolute;
    top: 14%;
    right: 1%;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 105, 27, 0.09);
    filter: blur(100px);
    content: "";
    pointer-events: none;
}

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

.hero-content h1,
.hero h1 {
    max-width: 720px;
    margin-top: 21px;
    font-size: clamp(54px, 7.4vw, 92px);
    letter-spacing: -2px;
    line-height: 0.98;
}

.hero-content h1 span,
.hero h1 span {
    color: var(--orange-light);
    text-shadow: 0 0 38px rgba(255, 122, 36, 0.15);
}

.hero-content p,
.hero > p {
    max-width: 540px;
    margin-top: 25px;
    color: #b2b2b7;
    font-size: 15px;
    line-height: 1.9;
}

.hero-buttons,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
    color: #b8b8bd;
    font-size: 12px;
    font-weight: 600;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-badges span::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px rgba(255, 122, 36, 0.65);
    content: "";
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 380px;
    place-items: center;
}

.hero-visual::before {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 143, 61, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255, 122, 36, 0.08), inset 0 0 70px rgba(255, 122, 36, 0.05);
    content: "";
}

.hero-visual::after {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px dashed rgba(255, 143, 61, 0.16);
    border-radius: 50%;
    content: "";
    animation: slow-spin 35s linear infinite;
}

.hero-art {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(300px, 75vw);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 161, 76, 0.28);
    border-radius: 35px;
    background:
        linear-gradient(145deg, rgba(255, 151, 63, 0.13), transparent 50%),
        linear-gradient(145deg, #29201a, #141518 75%);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5), 0 0 65px rgba(255, 122, 36, 0.09);
    transform: rotate(-5deg);
}

.hero-art span {
    color: var(--orange-light);
    font-size: 110px;
    filter: drop-shadow(0 0 25px rgba(255, 122, 36, 0.25));
}

.hero-floating-card {
    position: absolute;
    right: -2px;
    bottom: 30px;
    z-index: 2;
    padding: 15px 19px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(22, 24, 27, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-floating-card small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-floating-card strong {
    display: block;
    margin-top: 3px;
    color: var(--orange-light);
    font-size: 17px;
}

@keyframes slow-spin {
    to {
        transform: rotate(360deg);
    }
}

/* SERVER STATUS CARD */

.server-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(140deg, rgba(255, 122, 36, 0.055), transparent 42%),
        var(--panel);
    box-shadow: var(--shadow);
}

.server-card::before {
    position: absolute;
    top: 0;
    left: 30px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), transparent);
    content: "";
}

.server-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.server-heading h2,
.server-heading h3 {
    font-size: 21px;
    font-weight: 700;
}

.server-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.server-status,
.status-badge,
#serverStatusBadge {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid rgba(127, 224, 161, 0.19);
    border-radius: 100px;
    background: rgba(127, 224, 161, 0.07);
    color: var(--success);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.server-status::before,
.status-badge::before,
#serverStatusBadge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
    content: "";
}

.server-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 19px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.server-address > div {
    min-width: 0;
}

.server-address small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.server-address strong,
.server-address code {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

#copyServerAddress,
.copy-button {
    display: grid;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 122, 36, 0.08);
    color: var(--orange-light);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#copyServerAddress:hover,
.copy-button:hover {
    border-color: var(--border-hover);
    background: rgba(255, 122, 36, 0.16);
}

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

.server-stat,
.stat-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.server-stat small,
.stat-card small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.server-stat strong,
.stat-card strong {
    display: block;
    margin-top: 7px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
}

.server-stat strong span {
    color: var(--orange-light);
}

.server-motd,
#serverMotd {
    margin-top: 17px;
    color: #b7b7bc;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.server-updated,
#serverUpdated {
    margin-top: 14px;
    color: #777980;
    font-size: 10px;
}

.server-card .offline,
#serverStatusBadge.offline {
    border-color: rgba(255, 119, 119, 0.2);
    background: rgba(255, 119, 119, 0.07);
    color: var(--danger);
}

/* SECTION SPACING */

section:not(.hero) {
    padding-top: 85px;
    padding-bottom: 85px;
}

.section-divider {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 143, 61, 0.23), transparent);
}

/* FEATURES */

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

.feature-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 65%), var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: linear-gradient(145deg, rgba(255, 122, 36, 0.075), transparent 65%), var(--panel);
}

.feature-card::after {
    position: absolute;
    right: -30px;
    bottom: -45px;
    width: 115px;
    height: 115px;
    border: 1px solid rgba(255, 143, 61, 0.09);
    border-radius: 24px;
    content: "";
    transform: rotate(30deg);
}

.feature-icon {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border: 1px solid rgba(255, 143, 61, 0.18);
    border-radius: 14px;
    background: rgba(255, 122, 36, 0.09);
    color: var(--orange-light);
    font-size: 22px;
}

.feature-card h3 {
    margin-top: 22px;
    font-size: 18px;
    font-weight: 800;
}

.feature-card p {
    margin-top: 11px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

/* HOW TO JOIN */

.join-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 65px;
}

.join-section h2 {
    margin-top: 15px;
}

.join-section > div > p,
.join-description {
    margin-top: 15px;
    color: var(--muted);
}

.join-steps {
    display: grid;
    gap: 12px;
}

.join-step {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 15px;
    background: var(--panel);
}

.step-number {
    display: grid;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 122, 36, 0.09);
    color: var(--orange-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.join-step h3 {
    font-size: 15px;
    font-weight: 800;
}

.join-step p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

/* COMMUNITY BANNER */

.community-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    overflow: hidden;
    padding: 42px;
    border: 1px solid rgba(255, 143, 61, 0.24);
    border-radius: 23px;
    background:
        radial-gradient(ellipse at 95% 0%, rgba(255, 122, 36, 0.19), transparent 45%),
        linear-gradient(115deg, #201812, #171719 70%);
    box-shadow: var(--glow);
}

.community-banner h2 {
    margin-top: 13px;
    font-size: clamp(27px, 4vw, 38px);
}

.community-banner p {
    max-width: 590px;
    margin-top: 12px;
    color: #b6b3b0;
    font-size: 13px;
}

.community-banner .btn {
    flex-shrink: 0;
}

/* STAFF APPLICATIONS */

.application-section {
    max-width: 900px;
    margin-inline: auto;
}

.application-card {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 5vw, 45px);
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 122, 36, 0.045), transparent 45%),
        var(--panel);
    box-shadow: var(--shadow);
}

.application-card::before {
    position: absolute;
    top: 0;
    left: 35px;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), transparent);
    content: "";
}

.application-card h2 {
    margin-top: 14px;
}

.application-card > p,
.application-intro {
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    padding: 16px;
    border: 1px solid rgba(255, 143, 61, 0.15);
    border-radius: 14px;
    background: rgba(255, 122, 36, 0.045);
}

#profileAvatar,
.avatar-placeholder {
    display: grid;
    width: 49px;
    height: 49px;
    flex-shrink: 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-light);
    color: var(--orange-light);
    font-size: 19px;
    font-weight: 800;
    object-fit: cover;
}

.profile-row > div {
    min-width: 0;
}

.profile-row strong,
#profileName {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.profile-row p,
.profile-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

#applicationForm {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

#applicationForm label,
.application-card label {
    display: block;
    margin-bottom: 9px;
    color: #e9e7e3;
    font-size: 12px;
    font-weight: 700;
}

#applicationForm input,
#applicationForm textarea,
#applicationForm select,
.application-card input,
.application-card textarea,
.application-card select {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 11px;
    outline: none;
    background: #101114;
    color: var(--text);
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#applicationForm input::placeholder,
#applicationForm textarea::placeholder,
.application-card input::placeholder,
.application-card textarea::placeholder {
    color: #6e7077;
}

#applicationForm input:focus,
#applicationForm textarea:focus,
#applicationForm select:focus,
.application-card input:focus,
.application-card textarea:focus,
.application-card select:focus {
    border-color: rgba(255, 143, 61, 0.7);
    background: #131417;
    box-shadow: 0 0 0 3px rgba(255, 122, 36, 0.08);
}

#applicationForm textarea,
.application-card textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.7;
}

#applicationForm select,
.application-card select {
    cursor: pointer;
}

#applicationForm input[type="checkbox"],
#applicationForm input[type="radio"] {
    display: inline-block;
    width: 17px;
    min-height: auto;
    height: 17px;
    margin-right: 8px;
    accent-color: var(--orange);
    vertical-align: middle;
}

#applicationForm .form-group,
.form-group {
    min-width: 0;
}

#formMessage {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 122, 36, 0.06);
    color: var(--orange-light);
    font-size: 12px;
    line-height: 1.7;
}

#formMessage:empty {
    display: none;
}

#applicationForm button[type="submit"] {
    width: 100%;
    margin-top: 5px;
}

#applicationForm button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.login-required,
.login-notice {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 122, 36, 0.045);
    color: var(--muted);
    font-size: 13px;
}

.login-required a,
.login-notice a {
    color: var(--orange-light);
    font-weight: 800;
}

/* FOOTER */

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #888990;
    font-size: 11px;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--orange-light);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* STATUS PAGE AND OTHER CARDS */

.status-card,
.info-card,
.content-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.status-card h1,
.content-card h1 {
    margin-bottom: 15px;
    font-size: clamp(34px, 5vw, 55px);
}

.status-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.status-item,
.info-item {
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.status-item small,
.info-item small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.status-item strong,
.info-item strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
    font-size: 16px;
}

.back-link {
    display: inline-flex;
    margin-top: 22px;
    color: var(--orange-light);
    font-size: 13px;
    font-weight: 700;
}

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

/* SMALL INTERACTIONS */

a,
button {
    touch-action: manipulation;
}

@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .server-card,
    .application-card {
        animation: fade-in-up 0.6s ease both;
    }

    @keyframes fade-in-up {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* TABLET */

@media (max-width: 1000px) {
    .navbar {
        gap: 15px;
    }

    .navbar nav {
        gap: 0;
    }

    .navbar nav a {
        padding-inline: 8px;
        font-size: 12px;
    }

    .hero {
        gap: 25px;
    }

    .hero-content h1 {
        font-size: clamp(54px, 7vw, 76px);
    }

    .hero-visual::after {
        width: 290px;
        height: 290px;
    }

    .hero-visual::before {
        width: 240px;
        height: 240px;
    }

    .hero-art {
        width: 245px;
    }

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

/* MOBILE NAVIGATION */

@media (max-width: 850px) {
    .navbar {
        min-height: 72px;
        padding: 12px 22px;
    }

    .brand {
        font-size: 21px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .navbar nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 5px;
        padding: 15px 22px 20px;
        border-bottom: 1px solid var(--border);
        background: rgba(14, 15, 17, 0.98);
        box-shadow: var(--shadow);
    }

    .navbar nav.open {
        display: flex;
        flex-direction: column;
    }

    .navbar nav a {
        padding: 13px 14px;
        font-size: 14px;
    }

    .account-area {
        margin-left: auto;
    }

    .account-area > a,
    #loginButton,
    .login-button {
        min-height: 40px;
        padding-inline: 12px;
        font-size: 12px;
    }

    .account-trigger {
        min-height: 40px;
        padding-right: 8px;
    }

    .account-trigger img {
        width: 29px;
        height: 29px;
    }

    .account-trigger span {
        max-width: 90px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 75px;
        padding-bottom: 45px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1,
    .hero h1 {
        margin-inline: auto;
        font-size: clamp(56px, 12vw, 82px);
    }

    .hero-content p,
    .hero > p {
        margin-inline: auto;
    }

    .hero-buttons,
    .hero-actions,
    .hero-badges {
        justify-content: center;
    }

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

    .hero-art {
        width: 220px;
    }

    .hero-art span {
        font-size: 85px;
    }

    .hero-visual::before {
        width: 220px;
        height: 220px;
    }

    .hero-visual::after {
        width: 270px;
        height: 270px;
    }

    .hero-floating-card {
        right: 8%;
        bottom: 5px;
    }

    .join-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .community-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px;
    }
}

/* SMALL MOBILE */

@media (max-width: 560px) {
    .container,
    main,
    footer {
        width: calc(100% - 32px);
    }

    .navbar {
        gap: 9px;
        padding-inline: 16px;
    }

    .brand {
        gap: 8px;
        font-size: 19px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 18px;
    }

    .account-trigger {
        padding: 4px;
        border: 0;
        background: transparent;
    }

    .account-trigger span {
        display: none;
    }

    .account-trigger img {
        width: 34px;
        height: 34px;
    }

    .account-area > a,
    #loginButton,
    .login-button {
        min-height: 37px;
        padding-inline: 10px;
        font-size: 11px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    section:not(.hero) {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-content h1,
    .hero h1 {
        font-size: clamp(48px, 13vw, 66px);
        letter-spacing: -1.6px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .btn,
    .hero-actions .btn {
        width: 100%;
    }

    .hero-badges {
        gap: 12px;
        font-size: 11px;
    }

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

    .hero-art {
        width: 185px;
        border-radius: 25px;
    }

    .hero-art span {
        font-size: 70px;
    }

    .hero-visual::before {
        width: 180px;
        height: 180px;
    }

    .hero-visual::after {
        width: 225px;
        height: 225px;
    }

    .hero-floating-card {
        right: 0;
        bottom: 0;
        padding: 11px 14px;
    }

    .section-heading {
        margin-bottom: 27px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        min-height: auto;
        padding: 23px;
    }

    .server-card {
        padding: 20px;
    }

    .server-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-stats,
    .status-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .server-stat,
    .stat-card {
        padding: 12px;
    }

    .server-stat strong,
    .stat-card strong {
        font-size: 14px;
    }

    .server-address {
        padding: 12px;
    }

    .join-step {
        padding: 16px;
    }

    .community-banner {
        padding: 25px 21px;
    }

    .community-banner .btn {
        width: 100%;
    }

    .application-card {
        padding: 23px 17px;
    }

    #applicationForm {
        gap: 18px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .footer-links {
        gap: 14px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
