:root {
    --background: #05090e;
    --background-soft: #081019;
    --panel: rgba(13, 26, 36, 0.94);
    --panel-light: rgba(17, 35, 45, 0.92);
    --border: rgba(110, 143, 161, 0.22);
    --border-green: rgba(65, 230, 170, 0.34);
    --text: #f2f6f8;
    --text-soft: #98aab5;
    --text-dark: #647780;
    --green: #41e6aa;
    --green-hover: #66f2be;
    --green-soft: rgba(65, 230, 170, 0.09);
    --yellow: #ffc12f;
    --red: #ff5757;
    --blue: #62b8ff;
    --blue-soft: rgba(98, 184, 255, 0.1);
    --max-width: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(5, 10, 15, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
}

.topbar-container {
    width: min(1200px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}

.logo span {
    color: var(--green);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navigation a {
    padding: 10px 13px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    transition: color 0.15s ease, background 0.15s ease;
}

.navigation a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.navigation .active {
    color: white;
}

.navigation .account-button {
    margin-left: 10px;
    color: #06100b;
    background: var(--green);
    font-weight: 800;
}

.navigation .account-button:hover {
    color: #06100b;
    background: var(--green-hover);
}

.mobile-menu-button {
    display: none;
    border: 0;
    color: white;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.applications-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 35%, rgba(20, 120, 125, 0.25), transparent 40%),
        linear-gradient(135deg, #14242c, #071018 65%, #05090e);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 9, 14, 0.32), rgba(3, 8, 12, 0.91));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 7px 13px;
    color: var(--green);
    background: rgba(65, 230, 170, 0.08);
    border: 1px solid rgba(65, 230, 170, 0.22);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-content h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.hero-small-text {
    margin-top: 15px;
    color: #70838e;
    font-size: 12px;
}

.primary-button,
.application-button,
.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 19px;
    color: #06100b;
    background: var(--green);
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.primary-button:hover,
.application-button:hover,
.discord-button:hover {
    transform: translateY(-2px);
    background: var(--green-hover);
}

.section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.section-header {
    max-width: 700px;
    margin-bottom: 42px;
}

.section-header.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header h2 {
    margin-bottom: 13px;
    font-size: clamp(31px, 5vw, 46px);
    letter-spacing: 0;
}

.section-header p {
    color: var(--text-soft);
    line-height: 1.7;
}

.process-section {
    padding: 80px 20px;
    background: #080d13;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.process-grid {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.process-card {
    position: relative;
    min-height: 210px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.process-number {
    position: absolute;
    top: 14px;
    right: 16px;
    color: #536873;
    font-size: 11px;
    font-weight: 800;
}

.process-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(65, 230, 170, 0.16);
    border-radius: 9px;
    font-size: 18px;
    font-weight: 800;
}

.process-card h3 {
    margin-bottom: 9px;
    font-size: 17px;
}

.process-card p {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.linked-section,
.applications-section {
    padding: 80px 20px;
    background: #05090e;
}

.linked-container,
.applications-container {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
}

.discord-message {
    margin-bottom: 20px;
    padding: 14px 17px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}

.discord-message.success {
    color: #66f2be;
    background: rgba(65, 230, 170, 0.08);
    border: 1px solid rgba(65, 230, 170, 0.23);
}

.discord-message.error {
    color: #ff7777;
    background: rgba(255, 87, 87, 0.08);
    border: 1px solid rgba(255, 87, 87, 0.22);
}

.discord-message.warning {
    color: #ffd060;
    background: rgba(255, 193, 47, 0.08);
    border: 1px solid rgba(255, 193, 47, 0.22);
}

.linked-card,
.locked-notice,
.empty-card {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.linked-card.connected {
    border-color: rgba(65, 230, 170, 0.35);
}

.linked-icon,
.locked-notice-icon,
.empty-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 18px;
    font-weight: 900;
}

.linked-icon.discord {
    color: #9aaeff;
    background: rgba(88, 101, 242, 0.13);
    border: 1px solid rgba(88, 101, 242, 0.25);
}

.linked-icon.warning,
.locked-notice-icon,
.empty-icon {
    color: var(--yellow);
    background: rgba(255, 193, 47, 0.08);
    border: 1px solid rgba(255, 193, 47, 0.20);
}

.linked-icon.connected {
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(65, 230, 170, 0.25);
}

.linked-info {
    flex: 1;
}

.linked-state {
    display: block;
    margin-bottom: 3px;
    color: #7e919d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.connected-state {
    color: var(--green);
}

.linked-info h3,
.locked-notice h3,
.empty-card h3 {
    margin-bottom: 4px;
    font-size: 18px;
}

.linked-info p,
.locked-notice p,
.empty-card p {
    color: var(--text-soft);
    font-size: 13px;
}

.linked-date {
    margin-top: 4px;
    color: #647780 !important;
    font-size: 11px !important;
}

.linked-badge {
    padding: 8px 12px;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(65, 230, 170, 0.22);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.locked-notice {
    margin-bottom: 28px;
    border-color: rgba(255, 193, 47, 0.20);
}

.locked-notice > div:nth-child(2),
.empty-card > div:nth-child(2) {
    flex: 1;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.application-grid-locked {
    opacity: 0.58;
    pointer-events: none;
}

.application-card {
    padding: 25px;
    background: linear-gradient(145deg, rgba(15, 36, 43, 0.92), rgba(9, 21, 29, 0.94));
    border: 1px solid rgba(65, 230, 170, 0.23);
    border-radius: 13px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.application-card:not(.locked-card):not(.closed-card):hover {
    transform: translateY(-4px);
    border-color: rgba(65, 230, 170, 0.46);
}

.locked-card,
.closed-card {
    cursor: default;
}

.closed-card {
    opacity: 0.56;
}

.application-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 17px;
    gap: 12px;
}

.application-icon {
    min-width: 43px;
    height: 43px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(65, 230, 170, 0.17);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 900;
}

.application-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 0;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.status-badge.open {
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(65, 230, 170, 0.20);
}

.status-badge.locked {
    color: var(--yellow);
    background: rgba(255, 193, 47, 0.07);
    border: 1px solid rgba(255, 193, 47, 0.19);
}

.status-badge.closed {
    color: #8a99a3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.status-badge.closes {
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid rgba(98, 184, 255, 0.25);
}

.application-department {
    margin-bottom: 5px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.application-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.application-description {
    min-height: 48px;
    margin-bottom: 20px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.requirements-box {
    margin-bottom: 21px;
    padding: 16px;
    background: rgba(4, 12, 17, 0.47);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
}

.requirements-title {
    display: block;
    margin-bottom: 12px;
    color: #748994;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.requirements-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirements-box li {
    position: relative;
    padding-left: 14px;
    color: #afbdc5;
    font-size: 13px;
    line-height: 1.55;
}

.requirements-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(65, 230, 170, 0.5);
}

.requirements-empty {
    color: var(--text-dark);
    font-size: 13px;
}

.application-button.disabled {
    color: #697983;
    background: rgba(255, 255, 255, 0.06);
    cursor: not-allowed;
}

.application-button.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.06);
}

.info-section {
    padding: 0 20px 90px;
    background: #05090e;
}

.info-box {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 16px 19px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #91a4ae;
    background: rgba(16, 29, 39, 0.80);
    border: 1px solid rgba(110, 143, 161, 0.18);
    border-radius: 9px;
    font-size: 12px;
}

.info-circle {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    border: 1px solid rgba(65, 230, 170, 0.25);
    border-radius: 50%;
    font-weight: 900;
}

.footer {
    background: #04070a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 65px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 70px;
}

.footer-brand p {
    margin-top: 15px;
    color: var(--text-dark);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-links h4 {
    margin-bottom: 16px;
    font-size: 13px;
}

.footer-links a {
    display: block;
    width: fit-content;
    margin-bottom: 9px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
    color: #56656f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .mobile-menu-button {
        display: block;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        padding: 15px 20px 22px;
        flex-direction: column;
        align-items: stretch;
        background: #070c11;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        padding: 13px;
    }

    .navigation .account-button {
        margin: 5px 0 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .linked-card,
    .locked-notice,
    .empty-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .discord-button,
    .locked-notice .primary-button {
        width: 100%;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .application-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .application-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 500px) {
    .hero-content,
    .topbar-container,
    .footer-container,
    .footer-bottom {
        width: calc(100% - 28px);
    }

    .hero-content h1 {
        font-size: 42px;
        letter-spacing: 0;
    }

    .process-section,
    .linked-section,
    .applications-section,
    .info-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .application-card {
        padding: 20px;
    }
}