:root {
    --background: #0d0d0d;
    --background-light: #151515;
    --panel: #191919;
    --panel-hover: #202020;
    --text: #f1ede3;
    --muted: #aaa59b;
    --gold: #b8944f;
    --gold-light: #d0ad68;
    --border: rgba(184, 148, 79, 0.25);
}

@import url('https://fonts.googleapis.com/css2?family=Balthazar&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

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

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


.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    min-height: 74px;
    padding: 0 6%;

    display: flex;
    align-items: center;
    gap: 35px;

    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.brand {
    margin-right: 10px;

    color: var(--gold-light);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.navigation a {
    transition: color 0.2s ease;
}

.navigation a:hover {
    color: var(--text);
}

.navigation-actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-button {
    padding: 10px 17px;

    border: 1px solid var(--border);
    border-radius: 4px;

    font-family: Arial, sans-serif;
    font-size: 0.85rem;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.nav-button.secondary:hover {
    background: var(--panel);
}

.nav-button.primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
    font-weight: 700;
}

.nav-button.primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}


.hero {
    position: relative;

    min-height: 660px;
    padding: 110px 8%;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(184, 148, 79, 0.13),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #171717,
            #090909 65%
        );

    overflow: hidden;
}

.hero::after {
    content: "";

    position: absolute;
    top: -100px;
    right: -180px;

    width: 560px;
    height: 560px;

    border: 1px solid rgba(184, 148, 79, 0.12);
    border-radius: 50%;
}

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

    width: 100%;
    max-width: 750px;
}

.eyebrow {
    margin-bottom: 18px;

    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 22px;

    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 500;
    letter-spacing: 0.08rem;
    line-height: 0.95;
}

.hero-description {
    max-width: 660px;

    color: #c9c4b9;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.75;
}

.hero-buttons {
    margin-top: 35px;

    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


.large-button {
    min-width: 175px;
    padding: 14px 22px;

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

    border: 1px solid var(--border);
    border-radius: 4px;

    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.gold-button {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
}

.gold-button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.dark-button {
    background: rgba(255, 255, 255, 0.03);
}

.dark-button:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.disabled-button {
    background: #252525;
    border-color: #333;
    color: #777;
    cursor: not-allowed;
}


.stats-section {
    width: min(1050px, 88%);
    margin: -55px auto 0;

    position: relative;
    z-index: 5;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.stat-card {
    min-height: 185px;
    padding: 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;

    text-align: center;
}

.stat-label {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.stat-number {
    margin: 12px 0 5px;

    font-size: 2.7rem;
    font-weight: 500;
}

.stat-description {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}


.content-section {
    width: min(900px, 86%);
    margin: 0 auto;
    padding: 140px 0;

    text-align: center;
}

.section-heading h2,
.community-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 500;
}

.section-text {
    max-width: 760px;
    margin: 28px auto 0;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
}

.community-section {
    padding: 120px 7%;

    background:
        linear-gradient(
            rgba(10, 10, 10, 0.86),
            rgba(10, 10, 10, 0.96)
        ),
        radial-gradient(
            circle at center,
            #3b3020,
            #111 65%
        );

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.community-content {
    max-width: 720px;
    margin: 0 auto;

    text-align: center;
}

.community-content p:not(.eyebrow) {
    margin: 24px 0 32px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.8;
}


.applications-page {
    width: min(1100px, 88%);
    min-height: calc(100vh - 174px);
    margin: 0 auto;
    padding: 95px 0 120px;
}

.page-heading {
    max-width: 680px;
    margin-bottom: 55px;
}

.page-heading h1 {
    margin-bottom: 18px;

    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 500;
}

.page-heading > p:not(.eyebrow) {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

.application-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(285px, 1fr));
    gap: 20px;
}

.application-card {
    min-height: 310px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 35px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.application-card:hover {
    background: var(--panel-hover);
    transform: translateY(-3px);
}

.application-card h2 {
    margin: 20px 0 14px;

    font-size: 1.75rem;
    font-weight: 500;
}

.application-card p {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
}

.application-status {
    padding: 7px 10px;

    display: inline-block;

    border-radius: 3px;

    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.application-status.open {
    background: rgba(91, 148, 96, 0.16);
    color: #82c58a;
}

.application-status.closed {
    background: rgba(155, 77, 77, 0.16);
    color: #cc8181;
}


.empty-state {
    grid-column: 1 / -1;

    padding: 65px 30px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;

    text-align: center;
}

.empty-state h2 {
    margin-bottom: 14px;

    font-size: 2rem;
    font-weight: 500;
}

.empty-state p {
    max-width: 520px;
    margin: 0 auto;

    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}


footer {
    min-height: 100px;
    padding: 30px 6%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    color: #777;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
}


.dashboard-login-page {
    min-height: calc(100vh - 74px);
    padding: 70px 20px;

    display: grid;
    place-items: center;
}

.dashboard-login-card {
    width: min(540px, 100%);
    padding: 50px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;

    text-align: center;
}

.dashboard-login-card h1 {
    margin-bottom: 18px;

    font-size: clamp(2.3rem, 6vw, 3.5rem);
    font-weight: 500;
}

.dashboard-login-card > p:not(.eyebrow) {
    margin-bottom: 28px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.discord-button {
    width: 100%;

    background: #5865f2;
    border-color: #5865f2;
    color: white;
}

.discord-button:hover {
    background: #6874f5;
    border-color: #6874f5;
    transform: translateY(-2px);
}

.login-error {
    margin-bottom: 22px;
    padding: 13px 15px;

    background: rgba(155, 77, 77, 0.15);
    border: 1px solid rgba(204, 129, 129, 0.3);
    border-radius: 4px;

    color: #dc9999;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
}


.dashboard-user {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}

.dashboard-page {
    width: min(1100px, 88%);
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 90px 0 120px;
}

.dashboard-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.dashboard-heading h1 {
    margin-bottom: 18px;

    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 500;
}

.dashboard-heading > p:not(.eyebrow) {
    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.dashboard-card {
    min-height: 230px;
    padding: 28px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.dashboard-card h2 {
    margin-bottom: 14px;

    font-size: 1.65rem;
    font-weight: 500;
}

.dashboard-card p {
    margin-bottom: 30px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.93rem;
    line-height: 1.7;
}

.coming-soon {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}


.dashboard-card-link {
    display: block;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.dashboard-card-link:hover {
    background: var(--panel-hover);
    transform: translateY(-3px);
}

.dashboard-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.dashboard-success {
    margin-bottom: 25px;
    padding: 14px 16px;

    background: rgba(91, 148, 96, 0.15);
    border: 1px solid rgba(130, 197, 138, 0.3);
    border-radius: 4px;

    color: #8fd097;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.dashboard-application-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.dashboard-application-card {
    min-height: 270px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.dashboard-application-card h2 {
    margin: 18px 0 12px;

    font-size: 1.7rem;
    font-weight: 500;
}

.dashboard-application-card p {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.93rem;
    line-height: 1.7;
}

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

.dashboard-empty-state {
    grid-column: 1 / -1;

    padding: 60px 30px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;

    text-align: center;
}

.dashboard-empty-state h2 {
    margin-bottom: 13px;

    font-size: 2rem;
    font-weight: 500;
}

.dashboard-empty-state p {
    max-width: 540px;
    margin: 0 auto 28px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}


.dashboard-form-page {
    width: min(760px, 90%);
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 85px 0 120px;
}

.dashboard-form-heading {
    margin-bottom: 40px;
}

.dashboard-form-heading h1 {
    margin-bottom: 16px;

    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 500;
}

.dashboard-form-heading > p:not(.eyebrow) {
    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.dashboard-form {
    padding: 34px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.form-field {
    margin-bottom: 26px;
}

.form-field label {
    margin-bottom: 9px;

    display: block;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 13px 14px;

    background: #101010;
    border: 1px solid #353535;
    border-radius: 4px;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field textarea {
    min-height: 145px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(184, 148, 79, 0.12);
}

.form-field small {
    margin-top: 8px;

    display: block;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    line-height: 1.5;
}

.dashboard-form-actions {
    margin-top: 34px;

    display: flex;
    justify-content: flex-end;
    gap: 12px;
}


.application-builder-heading {
    max-width: 820px;
}

.application-builder-heading h1 {
    margin-top: 18px;
}

.question-builder-section,
.add-question-section {
    margin-top: 55px;
}

.question-builder-title {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.question-builder-title h2 {
    font-size: 2.2rem;
    font-weight: 500;
}

.question-count {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}

.question-builder-list {
    display: grid;
    gap: 16px;
}

.question-builder-card {
    padding: 26px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.question-builder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.question-builder-header h3 {
    margin-top: 8px;

    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.45;
}

.question-number {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.question-type-badge {
    flex-shrink: 0;

    padding: 7px 10px;

    background: rgba(184, 148, 79, 0.12);
    border: 1px solid var(--border);
    border-radius: 3px;

    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.question-meta {
    margin-top: 16px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
}

.question-options-list {
    margin: 20px 0 0;
    padding-left: 22px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
}

.question-delete-form {
    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid #292929;
}

.danger-button {
    padding: 9px 13px;

    background: rgba(155, 77, 77, 0.12);
    border: 1px solid rgba(204, 129, 129, 0.3);
    border-radius: 4px;

    color: #d98b8b;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.danger-button:hover {
    background: rgba(155, 77, 77, 0.22);
    border-color: rgba(204, 129, 129, 0.5);
}

.question-form {
    width: 100%;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;

    cursor: pointer;
}

.checkbox-field input {
    width: 17px;
    height: 17px;
    margin-top: 2px;

    accent-color: var(--gold);
}


.public-application-page {
    width: min(850px, 90%);
    min-height: calc(100vh - 174px);
    margin: 0 auto;
    padding: 85px 0 120px;
}

.public-application-heading,
.public-application-loading,
.public-application-error {
    max-width: 760px;
    margin-bottom: 45px;
}

.public-application-heading h1,
.public-application-loading h1,
.public-application-error h1 {
    margin-bottom: 18px;

    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 500;
}

.public-application-heading > p:not(.eyebrow),
.public-application-loading > p:not(.eyebrow),
.public-application-error > p:not(.eyebrow) {
    margin-bottom: 28px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

.public-application-form {
    display: grid;
    gap: 18px;
}

.public-question-card {
    padding: 30px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.public-question-heading {
    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.required-marker,
.optional-marker {
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.required-marker {
    color: #d98b8b;
}

.optional-marker {
    color: var(--muted);
}

.public-question-label {
    margin-bottom: 18px;

    display: block;

    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.5;
}

.public-question-input input[type="text"],
.public-question-input textarea {
    width: 100%;
    padding: 14px;

    background: #101010;
    border: 1px solid #353535;
    border-radius: 4px;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.public-question-input textarea {
    resize: vertical;
}

.public-question-input input[type="text"]:focus,
.public-question-input textarea:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(184, 148, 79, 0.12);
}

.public-choice-list {
    display: grid;
    gap: 10px;
}

.public-choice {
    padding: 13px 14px;

    display: flex;
    align-items: center;
    gap: 11px;

    background: #101010;
    border: 1px solid #303030;
    border-radius: 4px;

    color: var(--muted);
    font-family: Arial, sans-serif;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.public-choice:hover {
    background: #171717;
    border-color: var(--border);
    color: var(--text);
}

.public-choice input {
    width: 17px;
    height: 17px;

    accent-color: var(--gold);
}

.public-submit-section {
    margin-top: 18px;
    padding: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.public-submit-section p {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
}


.application-builder-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
}

.application-builder-top > div {
    max-width: 720px;
}

.application-builder-top > .nav-button {
    flex-shrink: 0;
}

.danger-zone {
    margin-top: 45px;
    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    background: rgba(133, 55, 55, 0.08);
    border: 1px solid rgba(204, 129, 129, 0.25);
    border-radius: 6px;
}

.danger-zone h2 {
    margin-bottom: 10px;

    font-size: 1.7rem;
    font-weight: 500;
}

.danger-zone p:not(.eyebrow) {
    max-width: 530px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
}

.danger-button-large {
    padding: 13px 18px;

    white-space: nowrap;
}


.applicant-information-card {
    padding: 30px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.applicant-information-card h2 {
    margin-bottom: 24px;

    font-size: 2rem;
    font-weight: 500;
}

.applicant-information-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.submission-complete {
    max-width: 720px;
}

.submission-complete h1 {
    margin-bottom: 18px;

    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 500;
}

.submission-complete > p:not(.eyebrow) {
    margin-bottom: 28px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.8;
}

#submit-application-button:disabled {
    cursor: wait;
    opacity: 0.65;
}


.submission-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.submission-card {
    min-height: 340px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.submission-card h2 {
    margin: 18px 0 8px;

    font-size: 1.8rem;
    font-weight: 500;
}

.submission-application-name {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}

.submission-status {
    padding: 6px 9px;

    display: inline-block;

    border: 1px solid var(--border);
    border-radius: 3px;

    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.submission-status.pending {
    color: #d1b36a;
}

.submission-status.reviewing {
    color: #82a7d9;
}

.submission-status.accepted {
    color: #8fd097;
}

.submission-status.denied {
    color: #dc9999;
}

.submission-details {
    margin-top: 25px;

    display: grid;
    gap: 14px;
}

.submission-details div,
.submission-review-information div {
    display: grid;
    gap: 4px;
}

.submission-details dt,
.submission-review-information dt {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.submission-details dd,
.submission-review-information dd {
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.submission-review-heading {
    margin-bottom: 45px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.submission-review-heading h1 {
    margin: 18px 0 10px;

    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 500;
}

.submission-review-heading > div > p:not(.eyebrow) {
    color: var(--muted);
    font-family: Arial, sans-serif;
}

.submission-review-information {
    min-width: 250px;

    display: grid;
    gap: 18px;
}

.submission-status-panel {
    margin-bottom: 35px;
    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.submission-status-panel h2 {
    margin-bottom: 7px;

    font-size: 1.5rem;
    font-weight: 500;
}

.submission-status-panel p {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}

.submission-status-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submission-status-form select {
    min-width: 150px;
    padding: 10px 12px;

    background: #101010;
    border: 1px solid #353535;
    border-radius: 4px;

    color: var(--text);
    font-family: Arial, sans-serif;
}

.review-answer-list {
    display: grid;
    gap: 16px;
}

.review-answer-card {
    padding: 27px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.review-answer-card h3 {
    margin: 9px 0 18px;

    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
}

.review-answer-text {
    padding: 18px;

    background: #101010;
    border: 1px solid #2d2d2d;
    border-radius: 4px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.75;
    white-space: pre-wrap;
}

.dashboard-warning {
    margin: 20px 0;
    padding: 14px 16px;

    background: rgba(184, 148, 79, 0.1);
    border: 1px solid rgba(184, 148, 79, 0.35);
    border-radius: 4px;

    color: #d9bd82;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
}

.application-description,
.application-builder-description,
.application-card-description,
.public-application-description,
.question-text,
.public-question-label,
.review-question-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.question-card-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.question-card-actions form {
    margin: 0;
}

.small-action-button {
    padding: 8px 13px;

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

    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04rem;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.small-action-button:hover {
    background: rgba(184, 148, 79, 0.08);
    border-color: var(--gold);
    color: var(--gold-light);
}

.checkbox-field {
    padding: 16px;

    display: flex;
    align-items: center;
    gap: 11px;

    background: #101010;
    border: 1px solid #353535;
    border-radius: 4px;

    color: var(--text);
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;

    accent-color: var(--gold);
}

.form-field[hidden] {
    display: none;
}


.question-order-panel {
    margin-bottom: 35px;
}

.question-order-heading {
    margin-bottom: 18px;
    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.question-order-heading h2 {
    margin-bottom: 7px;

    font-size: 1.5rem;
    font-weight: 500;
}

.question-order-heading p {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.83rem;
    line-height: 1.6;
}

.question-order-heading button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.question-list {
    display: grid;
    gap: 14px;
}

.draggable-question-card {
    position: relative;

    cursor: grab;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.draggable-question-card:hover {
    border-color: rgba(184, 148, 79, 0.45);
}

.draggable-question-card:active {
    cursor: grabbing;
}

.draggable-question-card.dragging {
    opacity: 0.4;
    transform: scale(0.99);

    border-color: var(--gold);

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.35);
}

.question-card-drag-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-drag-handle {
    width: 34px;
    height: 34px;

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

    background: #101010;
    border: 1px solid #343434;
    border-radius: 4px;

    color: var(--muted);
    font-size: 1rem;

    cursor: grab;
}

.question-drag-handle:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.question-drag-handle:active {
    cursor: grabbing;
}

.question-order-message {
    min-height: 24px;
    margin-top: 12px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
}

.question-order-message.success {
    color: #8fd097;
}

.question-order-message.error {
    color: #dc9999;
}



.factions-page {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 110px;
}

.factions-hero {
    max-width: 760px;
    margin-bottom: 48px;
}

.factions-hero h1 {
    margin: 6px 0 14px;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.95;
}

.factions-hero p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.public-faction-groups {
    display: grid;
    gap: 52px;
}

.public-faction-category {
    display: grid;
    gap: 20px;
}

.public-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184, 148, 79, 0.38);
}

.public-category-header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}


.factions-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}

.faction-card {
    position: relative;
    display: block;
    flex: 0 0 276px;
    width: 276px;
    height: 330px;
    overflow: hidden;

    color: inherit;
    background: #111;
    border: 1px solid rgba(184, 148, 79, 0.58);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
    text-decoration: none;
    isolation: isolate;

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.faction-card > img {
    position: absolute;
    inset: 0;
    display: block;

    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;
    background: #111;

    transition:
        transform 280ms ease,
        filter 280ms ease;
}

.faction-card-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--panel);
}

.faction-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.faction-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;

    color: #fff;
    opacity: 0;
    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.97) 0%,
            rgba(0, 0, 0, 0.82) 26%,
            rgba(0, 0, 0, 0.25) 62%,
            transparent 100%
        );

    transition: opacity 220ms ease;
}

.faction-card-overlay h3 {
    margin: 0 0 7px;
    color: #fff;
    font-family: "Balthazar", serif;
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.faction-card-description {
    margin: 0 0 10px;
    color: #ddd8cd;
    font-family: "Balthazar", serif;
    font-size: 0.9rem;
    line-height: 1.55;
}

.faction-card-overlay span {
    color: var(--gold-light);
     font-family: "Balthazar", serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.faction-card:hover,
.faction-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(208, 173, 104, 0.95);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(208, 173, 104, 0.12);
}

.faction-card:hover > img,
.faction-card:focus-visible > img {
    transform: scale(1.035);
    filter: brightness(0.68) saturate(1.04);
}

.faction-card:hover .faction-card-overlay,
.faction-card:focus-visible .faction-card-overlay {
    opacity: 1;
}

.faction-card:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.factions-loading,
.factions-empty,
.factions-error {
    width: 100%;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

@media (max-width: 700px) {
    .factions-page {
        width: min(100% - 24px, 1320px);
        padding-top: 42px;
    }

    .public-category-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .factions-grid {
        gap: 14px;
    }

    .faction-card {
        flex-basis: calc(50% - 7px);
        width: calc(50% - 7px);
        height: auto;
        aspect-ratio: 276 / 330;
    }

    .faction-card-overlay {
        padding: 16px;
    }

    .faction-card-overlay h3 {
        font-size: 1.15rem;
    }

    .faction-card-description {
        font-size: 0.72rem;
    }
}

@media (max-width: 460px) {
    .faction-card {
        flex-basis: 100%;
        width: 100%;
    }
}

.faction-manager-page {
    width: min(
        1280px,
        calc(100% - 40px)
    );
    margin: 0 auto;
    padding: 64px 0 100px;
}

.faction-manager-header {
    margin-bottom: 34px;
}

.faction-manager-header h1 {
    margin: 6px 0 12px;
    font-size: clamp(
        2.3rem,
        5vw,
        4rem
    );
}

.faction-manager-header p:last-child {
    max-width: 700px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.faction-manager-layout {
    display: grid;
    grid-template-columns:
        minmax(280px, 360px)
        minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.dashboard-panel {
    padding: 26px;
    border: 1px solid
        rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        rgba(255, 255, 255, 0.035);
}

.add-faction-panel {
    position: sticky;
    top: 24px;
}

.add-faction-panel h2 {
    margin-top: 0;
}

.dashboard-form {
    display: grid;
    gap: 18px;
}

.dashboard-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.dashboard-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid
        rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: inherit;
    background:
        rgba(0, 0, 0, 0.25);
    font: inherit;
    box-sizing: border-box;
}

.dashboard-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.dashboard-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
}

.dashboard-checkbox input {
    width: auto;
}

.faction-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.faction-list-heading h2 {
    margin: 0;
}

.faction-list-heading span {
    color: var(--text-muted);
}

.dashboard-faction-list {
    display: grid;
    gap: 18px;
}

.dashboard-faction-card {
    display: grid;
    grid-template-columns:
        180px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid
        rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        rgba(255, 255, 255, 0.035);
}

.dashboard-faction-image {
    min-height: 190px;
    background: #111;
}

.dashboard-faction-image img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: block;
    object-fit: cover;
}

.dashboard-faction-content {
    min-width: 0;
    padding: 22px;
}

.dashboard-faction-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.dashboard-faction-heading h2 {
    margin: 0 0 10px;
}

.status-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    color: #b9ffd0;
    background:
        rgba(34, 197, 94, 0.16);
}

.status-inactive {
    color: #d3d3d3;
    background:
        rgba(255, 255, 255, 0.1);
}

.position-label {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.faction-invite-preview {
    display: block;
    margin: 18px 0;
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-faction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-faction-actions form {
    margin: 0;
}

.dashboard-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
}

.dashboard-button.primary {
    color: #111;
    background: var(--gold);
}

.dashboard-button.secondary {
    color: inherit;
    border-color:
        rgba(255, 255, 255, 0.14);
    background:
        rgba(255, 255, 255, 0.06);
}

.dashboard-button.danger {
    color: #ffc7c7;
    border-color:
        rgba(239, 68, 68, 0.26);
    background:
        rgba(239, 68, 68, 0.12);
}

.dashboard-alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 12px;
}

.dashboard-alert.success {
    color: #c8ffd8;
    border: 1px solid
        rgba(34, 197, 94, 0.25);
    background:
        rgba(34, 197, 94, 0.1);
}

.dashboard-alert.error {
    color: #ffcaca;
    border: 1px solid
        rgba(239, 68, 68, 0.25);
    background:
        rgba(239, 68, 68, 0.1);
}

@media (max-width: 900px) {
    .faction-manager-layout {
        grid-template-columns: 1fr;
    }

    .add-faction-panel {
        position: static;
    }
}

@media (max-width: 620px) {
    .faction-manager-page {
        width: calc(100% - 24px);
        padding-top: 40px;
    }

    .dashboard-faction-card {
        grid-template-columns: 1fr;
    }

    .dashboard-faction-image,
    .dashboard-faction-image img {
        min-height: 230px;
        max-height: 300px;
    }

    .dashboard-faction-heading {
        flex-direction: column;
    }
}

.faction-edit-page {
    width: min(
        1180px,
        calc(100% - 40px)
    );
    margin: 0 auto;
    padding: 64px 0 100px;
}

.faction-edit-header {
    margin-bottom: 30px;
}

.faction-edit-header h1 {
    margin: 6px 0 12px;
    font-size: clamp(
        2.3rem,
        5vw,
        4rem
    );
}

.faction-edit-header p:last-child {
    margin: 0;
    color: var(--text-muted);
}

.faction-edit-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 390px);
    align-items: start;
    gap: 28px;
}

.faction-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.faction-edit-preview {
    position: sticky;
    top: 24px;
}

.faction-preview-card {
    min-height: 420px;
}

.faction-preview-card img {
    min-height: 420px;
}

.faction-drag-handle {
    align-self: stretch;
    width: 48px;
    padding: 0;
    border: 0;
    border-right: 1px solid
        rgba(255, 255, 255, 0.1);
    cursor: grab;
    color: var(--text-muted);
    background:
        rgba(255, 255, 255, 0.025);
    font-size: 1.35rem;
}

.faction-drag-handle:active {
    cursor: grabbing;
}

.dashboard-faction-card {
    grid-template-columns:
        48px 180px minmax(0, 1fr);
}

.faction-sort-ghost {
    opacity: 0.35;
}

.faction-sort-chosen {
    border-color:
        rgba(212, 175, 55, 0.55);
}

@media (max-width: 800px) {
    .faction-edit-layout {
        grid-template-columns: 1fr;
    }

    .faction-edit-preview {
        position: static;
    }
}

@media (max-width: 620px) {
    .dashboard-faction-card {
        grid-template-columns:
            42px minmax(0, 1fr);
    }

    .dashboard-faction-image {
        grid-column: 2;
    }

    .dashboard-faction-content {
        grid-column: 2;
    }

    .faction-drag-handle {
        grid-row: 1 / 3;
        width: 42px;
    }
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: clamp(340px, 38vw, 560px);
    overflow: hidden;

    border-radius: 28px;
    background: #0b0b0b;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            black 14%,
            black 84%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            black 14%,
            black 84%,
            transparent 100%
        );
}

.hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    opacity: 0;
    transform: scale(1.02);

    filter:
        brightness(0.72)
        saturate(0.88);

    transition:
        opacity 1.4s ease,
        transform 7s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.07);
}

.hero-slideshow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            to right,
            rgba(10, 10, 10, 0.72) 0%,
            rgba(10, 10, 10, 0.28) 18%,
            transparent 48%
        );
}

.hero-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    box-shadow:
        inset 0 0 90px
        rgba(0, 0, 0, 0.56);
}

@media (max-width: 900px) {
    .hero-slideshow {
        height: clamp(230px, 58vw, 420px);
        margin-top: 32px;
        border-radius: 20px;

        -webkit-mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                black 12%,
                black 88%,
                transparent 100%
            );

        mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                black 12%,
                black 88%,
                transparent 100%
            );
    }
}


.ticket-manager-page {
    width: min(1180px, 90%);
}

.ticket-filters {
    margin-bottom: 28px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-filters a {
    padding: 10px 16px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.ticket-filters a:hover,
.ticket-filters a.active {
    background: rgba(184, 148, 79, 0.14);
    border-color: var(--gold);
    color: var(--gold-light);
}

.ticket-list {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.ticket-list-card {
    padding: 25px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.ticket-list-card:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 148, 79, 0.55);
}

.ticket-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.ticket-list-heading > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.ticket-list-heading time {
    flex-shrink: 0;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
}

.ticket-number {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.ticket-status {
    padding: 5px 9px;

    border-radius: 999px;

    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.ticket-status-open {
    background: rgba(34, 197, 94, 0.14);
    color: #9ae6ad;
}

.ticket-status-pending {
    background: rgba(234, 179, 8, 0.14);
    color: #e8cc72;
}

.ticket-status-closed {
    background: rgba(255, 255, 255, 0.08);
    color: #b7b7b7;
}

.ticket-list-card h2 {
    margin: 20px 0;

    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.35;
}

.ticket-list-information {
    margin-bottom: 20px;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.ticket-list-information div {
    min-width: 0;
}

.ticket-list-information dt {
    margin-bottom: 5px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.ticket-list-information dd {
    overflow: hidden;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-claimed-by,
.ticket-unclaimed {
    margin-bottom: 20px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
}

.ticket-claimed-by strong {
    color: var(--gold-light);
}

.ticket-unclaimed {
    color: #d7b766;
}

@media (max-width: 650px) {
    .ticket-list {
        grid-template-columns: 1fr;
    }

    .ticket-list-heading {
        flex-direction: column;
        gap: 12px;
    }

    .ticket-list-information {
        grid-template-columns: 1fr;
    }
}


.ticket-review-page {
    width: min(1200px, 92%);
}

.ticket-review-header {
    margin-bottom: 28px;
    padding: 28px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ticket-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.ticket-title-row h1 {
    margin: 0;
}

.ticket-subject {
    margin: 15px 0 8px;

    color: var(--text);
    font-size: 1.35rem;
    font-weight: 500;
}

.ticket-review-header p:last-child {
    margin-bottom: 0;
}

.ticket-claim-information {
    min-width: 170px;
    padding: 15px 18px;

    background: rgba(184, 148, 79, 0.1);
    border: 1px solid rgba(184, 148, 79, 0.35);
    border-radius: 9px;
}

.ticket-claim-information span {
    display: block;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.ticket-claim-information strong {
    display: block;
    margin-top: 6px;

    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.ticket-review-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 340px);
    align-items: start;
    gap: 24px;
}

.ticket-conversation-column {
    min-width: 0;

    display: grid;
    gap: 24px;
}

.ticket-sidebar {
    display: grid;
    gap: 24px;
}

.ticket-section-heading {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-section-heading h2 {
    margin-bottom: 0;
}

.ticket-conversation {
    display: grid;
    gap: 18px;
}

.ticket-message {
    width: min(88%, 700px);
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.ticket-message.user-message {
    justify-self: start;

    background: rgba(255, 255, 255, 0.035);
}

.ticket-message.staff-message {
    justify-self: end;

    background: rgba(184, 148, 79, 0.1);
    border-color: rgba(184, 148, 79, 0.32);
}

.ticket-message-header {
    margin-bottom: 12px;

    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.ticket-message-header strong {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
}

.ticket-message-header time {
    flex-shrink: 0;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
}

.ticket-message-body {
    overflow-wrap: anywhere;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;
}

.ticket-reply-panel h2,
.ticket-sidebar h2 {
    margin-bottom: 20px;
}

.ticket-form-note {
    margin-top: -4px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    line-height: 1.5;
}

.ticket-details-list {
    display: grid;
    gap: 18px;
}

.ticket-details-list div {
    padding-bottom: 16px;

    border-bottom: 1px solid var(--border);
}

.ticket-details-list div:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.ticket-details-list dt {
    margin-bottom: 6px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.ticket-details-list dd {
    overflow-wrap: anywhere;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.ticket-discord-id {
    font-family: monospace !important;
}

.ticket-status-actions {
    display: grid;
    gap: 10px;
}

.ticket-status-actions form,
.ticket-status-actions button {
    width: 100%;
}

.dashboard-button.danger {
    background: rgba(185, 55, 55, 0.12);
    border: 1px solid rgba(220, 75, 75, 0.5);
    color: #ef9a9a;
}

.dashboard-button.danger:hover {
    background: rgba(185, 55, 55, 0.22);
    border-color: #dc6464;
}

.ticket-closed-notice {
    text-align: center;
}

.ticket-closed-notice h2 {
    color: #c6c6c6;
}

@media (max-width: 900px) {
    .ticket-review-layout {
        grid-template-columns: 1fr;
    }

    .ticket-sidebar {
        grid-row: 1;
    }
}

@media (max-width: 650px) {
    .ticket-review-header {
        flex-direction: column;
    }

    .ticket-message {
        width: 100%;
    }

    .ticket-message-header {
        flex-direction: column;
        gap: 5px;
    }

    .ticket-claim-information {
        width: 100%;
    }
}


@media (max-width: 760px) {
    .navbar {
        padding: 15px 5%;
        flex-wrap: wrap;
        gap: 15px;
    }

    .navigation {
        display: none;
    }

    .navigation-actions {
        width: 100%;
    }

    .navigation-actions .nav-button {
        flex: 1;
        text-align: center;
    }

    .hero {
        min-height: 590px;
        padding: 90px 7%;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        margin-top: -35px;
    }

    .applications-page {
        width: min(92%, 1100px);
        padding-top: 65px;
    }

    .page-heading {
        margin-bottom: 38px;
    }

    .empty-state {
        padding: 45px 22px;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

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

.dashboard-form-page {
    width: 92%;
    padding-top: 60px;
}

.dashboard-form {
    padding: 25px 20px;
}

.dashboard-form-actions {
    flex-direction: column-reverse;
}

.dashboard-form-actions .large-button {
    width: 100%;
}

.dashboard-login-card {
    padding: 35px 22px;
}

.dashboard-page {
    width: 92%;
    padding-top: 65px;
}

.dashboard-user {
    display: none;
}

.question-builder-title {
    align-items: flex-start;
    flex-direction: column;
}

.question-builder-header {
    flex-direction: column;
}

.question-type-badge {
    align-self: flex-start;
}

.question-builder-card {
    padding: 22px 18px;
}

.public-application-page {
    width: 92%;
    padding-top: 60px;
}

.public-question-card {
    padding: 23px 19px;
}

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

.public-submit-section {
    align-items: stretch;
    flex-direction: column;
}

.public-submit-section .large-button {
    width: 100%;
}

.application-builder-top {
    flex-direction: column;
}

.application-builder-top > .nav-button {
    width: 100%;
}

.danger-zone {
    align-items: stretch;
    flex-direction: column;
}

.danger-zone form,
.danger-button-large {
    width: 100%;
}

.applicant-information-grid {
    grid-template-columns: 1fr;
}

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

.submission-review-information {
    width: 100%;
}

.submission-status-panel {
    align-items: stretch;
    flex-direction: column;
}

.submission-status-form {
    align-items: stretch;
    flex-direction: column;
}

.submission-status-form select,
.submission-status-form .nav-button {
    width: 100%;
}

.question-card-actions {
    width: 100%;
}

.question-card-actions .small-action-button,
.question-card-actions form,
.question-card-actions .danger-button {
    flex: 1;
}

.question-card-actions .danger-button {
    width: 100%;
}

.question-order-heading {
    align-items: stretch;
    flex-direction: column;
}

.question-order-heading .nav-button {
    width: 100%;
}

.draggable-question-card {
    cursor: default;
}

}



.public-support-page {
    width: min(780px, 90%);
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 85px 0 120px;
}

.public-support-heading {
    margin-bottom: 42px;
}

.public-support-heading h1 {
    margin-bottom: 18px;

    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 500;
}

.public-support-heading > p:not(.eyebrow) {
    max-width: 680px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

.public-support-form textarea {
    width: 100%;
    padding: 14px;

    resize: vertical;

    background: #101010;
    border: 1px solid #353535;
    border-radius: 4px;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;

    outline: none;
}

.public-support-form textarea:focus {
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px
        rgba(184, 148, 79, 0.12);
}

.support-success-panel {
    text-align: center;
}

.support-success-panel h2 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.support-success-panel p {
    margin-bottom: 25px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.dashboard-faction-groups {
    display: grid;
    gap: 28px;
}

.dashboard-faction-category {
    display: grid;
    gap: 16px;
}

.faction-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faction-category-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faction-category-heading h2 {
    margin: 0;
}

.dashboard-category-list {
    display: grid;
    gap: 16px;
}

.dashboard-category-card {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.category-manager-panel {
    margin-bottom: 30px;
}

.category-manager-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 24px;
    margin-top: 20px;
}

.category-edit-form {
    margin-bottom: 14px;
}

@media (max-width: 850px) {
    .category-manager-layout {
        grid-template-columns: 1fr;
    }

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


.dashboard-channels-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;

    padding: 11px 17px;

    color: #111;
    background: var(--gold);
    border: 1px solid var(--gold-light);
    border-radius: 999px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45);

    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.dashboard-channels-button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.channel-password-page {
    min-height: calc(100vh - 74px);
    padding: 70px 20px;

    display: grid;
    place-items: center;
}

.channel-password-card {
    width: min(520px, 100%);
    padding: 44px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow:
        0 22px 65px rgba(0, 0, 0, 0.38);
}

.channel-password-card h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 500;
}

.channel-password-card > p:not(.eyebrow) {
    margin-bottom: 26px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.channel-password-form {
    display: grid;
    gap: 14px;
}

.channel-password-form label,
.channel-selector-label {
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.channel-password-form input,
.channel-selector-label select {
    width: 100%;
    padding: 13px 14px;

    color: var(--text);
    background: #101010;
    border: 1px solid #393939;
    border-radius: 5px;
    outline: none;
}

.channel-password-form input:focus,
.channel-selector-label select:focus {
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(184, 148, 79, 0.12);
}

.channel-lock-button {
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.channel-browser-page {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 58px 0 100px;
}

.channel-browser-heading {
    margin-bottom: 28px;

    display: grid;
    grid-template-columns: 1fr minmax(280px, 380px);
    align-items: end;
    gap: 30px;
}

.channel-browser-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 500;
}

.channel-browser-heading p:not(.eyebrow) {
    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.channel-browser-selectors {
    display: grid;
    gap: 14px;
}

.channel-selector-label {
    display: grid;
    gap: 9px;
}

.channel-selector-label select:disabled {
    color: #777;
    cursor: not-allowed;
}

.channel-message-panel {
    min-height: 480px;
    padding: 22px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.channel-status {
    margin-bottom: 18px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.86rem;
}

.channel-load-older {
    width: 100%;
    margin-bottom: 18px;
}

.channel-message-list {
    display: grid;
    gap: 4px;
}

.channel-message {
    padding: 13px 12px;

    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;

    border-radius: 6px;
}

.channel-message:hover {
    background: rgba(255, 255, 255, 0.035);
}

.channel-message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-message-body {
    min-width: 0;
}

.channel-message-heading {
    margin-bottom: 5px;

    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;

    font-family: Arial, sans-serif;
}

.channel-message-heading strong {
    color: var(--text);
    font-size: 0.92rem;
}

.channel-message-heading time {
    color: #777;
    font-size: 0.7rem;
}

.channel-message-content {
    color: #d5d1c8;
    font-family: Arial, sans-serif;
    font-size: 0.91rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.channel-message-attachments {
    margin-top: 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.channel-message-attachments img {
    display: block;
    width: min(360px, 100%);
    max-height: 300px;
    border-radius: 7px;
    object-fit: contain;
    background: #090909;
}

.channel-message-attachments > a:not(:has(img)) {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 0.84rem;
}

.channel-message-embed {
    max-width: 560px;
    margin-top: 10px;
    padding: 12px 14px;

    background: #121212;
    border-left: 3px solid var(--gold);
    border-radius: 4px;

    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.channel-message-embed strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
}

@media (max-width: 760px) {
    .dashboard-channels-button {
        right: 14px;
        bottom: 14px;
    }

    .channel-browser-heading {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .channel-password-card {
        padding: 30px 24px;
    }

    .channel-message-panel {
        padding: 12px;
    }

    .channel-message {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 10px 8px;
    }

    .channel-message-avatar {
        width: 36px;
        height: 36px;
    }
}


.hero {
    position: relative;
    min-height: 760px;
    padding: 110px 8% 150px;

    display: flex;
    align-items: center;

    overflow: visible;
    isolation: isolate;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: -1;

    width: 100%;
    height: 100%;
    margin: 0;

    border-radius: 0;

    -webkit-mask-image: none;
    mask-image: none;
}

.hero-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slideshow::before {
    background:
        linear-gradient(
            to right,
            rgba(8, 8, 8, 0.96) 0%,
            rgba(8, 8, 8, 0.84) 30%,
            rgba(8, 8, 8, 0.35) 58%,
            rgba(8, 8, 8, 0.08) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(8, 8, 8, 0.08) 55%,
            rgba(8, 8, 8, 0.9) 100%
        );
}

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

.stats-section {
    position: relative;
    z-index: 10;

    margin: -105px auto 0;
}

@media (max-width: 900px) {
    .hero {
        min-height: 720px;
        padding: 90px 7% 135px;
    }

    .hero-slideshow {
        position: absolute;
        inset: 0;
        height: 100%;
        margin: 0;
        border-radius: 0;

        -webkit-mask-image: none;
        mask-image: none;
    }

    .stats-section {
        margin-top: -75px;
    }
}