/* =========================================================
   HMS - HUNGARIAN MERLIN SPECIALISTS
   TELJES STÍLUSLAP
========================================================= */


/* =========================================================
   VÁLTOZÓK
========================================================= */

:root {
    --bg: #090c0a;
    --bg-soft: #0f1310;
    --bg-card: #141915;
    --bg-card-hover: #192019;
    --bg-input: #0b0e0c;

    --text: #f2f4f2;
    --text-soft: #a5ada7;
    --text-muted: #69716b;

    --green: #536f4e;
    --green-light: #789270;
    --green-dark: #344632;

    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(120, 146, 112, 0.45);

    --danger: #742f2f;
    --danger-soft: rgba(130, 42, 42, 0.28);

    --success: #315d3a;
    --success-soft: rgba(56, 110, 63, 0.28);

    --warning: #9b7b32;

    --radius: 7px;

    --container: 1200px;

    --header-height: 78px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

body,
input,
textarea,
select,
button {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

img {
    display: block;

    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 70vh;
}


/* =========================================================
   ÁLTALÁNOS
========================================================= */

.container {
    width: min(
        var(--container),
        calc(100% - 40px)
    );

    margin: 0 auto;
}

.section {
    padding: 95px 0;
}

.section-dark {
    background: var(--bg-soft);
}

.eyebrow {
    margin:
        0 0 14px;

    color: var(--green-light);

    font-size: 12px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 3px;
}

.section-heading {
    max-width: 760px;

    margin-bottom: 48px;
}

.section-heading h2 {
    margin: 0;

    font-size:
        clamp(
            34px,
            5vw,
            54px
        );

    line-height: 1.08;
}

.section-description {
    max-width: 780px;

    margin-top: 20px;

    color: var(--text-soft);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(
            7,
            9,
            8,
            0.96
        );

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(12px);
}

.header-inner {
    min-height: var(--header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGÓ
========================================================= */

.brand {
    display: flex;

    flex-direction: column;

    text-decoration: none;

    line-height: 1;
}

.brand-main {
    color: white;

    font-size: 30px;

    font-weight: 900;

    letter-spacing: 5px;
}

.brand-sub {
    margin-top: 8px;

    color: var(--text-soft);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 2.2px;
}


/* =========================================================
   NAVIGÁCIÓ
========================================================= */

.main-nav {
    display: flex;

    align-items: center;

    gap: 28px;
}

.main-nav a {
    position: relative;

    color: #d8ddd9;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    transition:
        color 0.2s ease;
}

.main-nav a:hover {
    color: white;
}

.main-nav a:not(.login-link)::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -9px;

    width: 0;

    height: 2px;

    background: var(--green-light);

    transition:
        width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.login-link {
    padding:
        10px 16px;

    border:
        1px solid var(--green-light);

    border-radius: 4px;
}

.login-link:hover {
    background: var(--green-dark);
}


/* =========================================================
   MOBIL MENÜ GOMB
========================================================= */

.mobile-menu-button {
    display: none;

    padding: 0;

    background: transparent;

    border: none;

    color: white;

    font-size: 27px;
}


/* =========================================================
   GOMBOK
========================================================= */

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding:
        0 23px;

    background: transparent;

    border:
        1px solid transparent;

    border-radius: 4px;

    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform:
        translateY(-1px);
}

.button-primary {
    background: var(--green);
}

.button-primary:hover {
    background: var(--green-light);
}

.button-secondary {
    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    border-color: var(--border);
}

.button-secondary:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-color:
        rgba(
            255,
            255,
            255,
            0.17
        );
}

.button-full {
    width: 100%;
}


/* =========================================================
   FŐOLDALI HERO
========================================================= */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(78, 109, 72, 0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0e120f,
            #060806
        );
}

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size:
        60px 60px;

    pointer-events: none;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;
}

.hero h1 {
    max-width: 950px;

    margin: 0;

    font-size:
        clamp(
            50px,
            7vw,
            92px
        );

    line-height: 0.96;

    letter-spacing: -3px;
}

.hero-description {
    max-width: 700px;

    margin:
        28px 0 0;

    color: var(--text-soft);

    font-size: 20px;
}

.hero-actions {
    display: flex;

    gap: 14px;

    margin-top: 35px;
}


/* =========================================================
   BELSŐ OLDAL HERO
========================================================= */

.page-hero {
    position: relative;

    padding:
        115px 0 90px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(77, 105, 72, 0.15),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #101511,
            #080a08
        );

    border-bottom:
        1px solid var(--border);
}

.page-hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        );

    background-size:
        55px 55px;

    pointer-events: none;
}

.page-hero .container {
    position: relative;

    z-index: 2;
}

.page-hero h1 {
    margin: 0;

    font-size:
        clamp(
            50px,
            8vw,
            84px
        );

    line-height: 1;
}

.page-hero p:last-child {
    max-width: 650px;

    margin-top: 20px;

    color: var(--text-soft);

    font-size: 18px;
}


/* =========================================================
   RÓLUNK
========================================================= */

.about-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 60px;

    align-items: center;
}

.about-main {
    max-width: 750px;

    color: #c3c9c4;

    font-size: 18px;
}

.about-stat {
    min-height: 240px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: var(--bg-card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);
}

.stat-number {
    font-size: 62px;

    font-weight: 900;

    letter-spacing: 8px;
}

.stat-label {
    color: var(--text-soft);
}


/* =========================================================
   ALAKULAT KÁRTYÁK
========================================================= */

.unit-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.unit-card {
    min-height: 260px;

    padding: 28px;

    background: var(--bg-card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.unit-card:hover {
    transform:
        translateY(-5px);

    background:
        var(--bg-card-hover);

    border-color:
        var(--border-hover);
}

.unit-number {
    color: var(--green-light);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;
}

.unit-card h3 {
    margin:
        55px 0 12px;

    font-size: 23px;
}

.unit-card p {
    color: var(--text-soft);
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding:
        80px 0;

    background:
        linear-gradient(
            120deg,
            #121812,
            #090c0a
        );

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.cta-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}

.cta-inner h2 {
    margin: 0;

    font-size:
        clamp(
            34px,
            5vw,
            52px
        );
}

.cta-inner p {
    color: var(--text-soft);
}


/* =========================================================
   FORMOK
========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #dfe4e0;

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding:
        13px 14px;

    background: var(--bg-input);

    border:
        1px solid #343a35;

    border-radius: 4px;

    color: var(--text);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        var(--green-light);

    box-shadow:
        0 0 0 3px
        rgba(
            120,
            146,
            112,
            0.08
        );
}

.form-group textarea {
    min-height: 120px;

    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        5px 20px;
}


/* =========================================================
   ÜZENETEK
========================================================= */

.message {
    margin-bottom: 30px;

    padding:
        18px 20px;

    border-radius: 5px;

    font-weight: 700;
}

.message-error {
    background: var(--danger-soft);

    border:
        1px solid
        rgba(
            210,
            80,
            80,
            0.35
        );

    color: #ffc7c7;
}

.message-success {
    background: var(--success-soft);

    border:
        1px solid
        rgba(
            93,
            166,
            102,
            0.35
        );

    color: #caffcf;
}


/* =========================================================
   LOGIN
========================================================= */

.login-section {
    min-height:
        calc(
            100vh -
            var(--header-height)
        );

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        70px 20px;

    background:
        radial-gradient(
            circle at center,
            rgba(75, 102, 70, 0.14),
            transparent 42%
        ),
        var(--bg);
}

.login-card {
    width:
        min(
            460px,
            100%
        );

    padding: 42px;

    background: var(--bg-card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);
}

.login-card h1 {
    margin:
        0 0 15px;

    font-size: 40px;
}

.login-description {
    margin-bottom: 30px;

    color: var(--text-soft);
}


/* =========================================================
   MÉDIA
========================================================= */

.media-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 17px;
}

.media-placeholder {
    aspect-ratio:
        16 / 10;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #171d18,
            #0b0e0c
        );

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    color: #5d675f;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 3px;
}


/* =========================================================
   TOBORZÁS
========================================================= */

.recruitment-hero {
    padding-top: 120px;

    padding-bottom: 90px;
}

.recruitment-intro {
    padding-bottom: 35px;
}

.training-section {
    padding:
        20px 0 100px;
}

.training-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.training-info-card {
    position: relative;

    display: flex;

    flex-direction: column;

    padding: 32px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #171c18,
            #101310
        );

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.training-info-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 3px;

    background: var(--green);
}

.training-info-card:hover {
    transform:
        translateY(-6px);

    border-color:
        var(--border-hover);

    box-shadow:
        0 20px 50px
        rgba(
            0,
            0,
            0,
            0.25
        );
}

.training-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 28px;
}

.training-number {
    color: var(--green-light);

    font-size: 25px;

    font-weight: 900;

    letter-spacing: 2px;
}

.training-label {
    color: var(--text-soft);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;
}

.training-info-card h2 {
    margin:
        0 0 22px;

    font-size: 29px;

    line-height: 1.15;
}

.training-description {
    color: #bbc2bc;

    font-size: 15px;

    line-height: 1.8;
}

.training-duty-box {
    flex-grow: 1;

    margin-top: 28px;

    padding-top: 23px;

    border-top:
        1px solid var(--border);
}

.training-duty-box h3 {
    margin:
        0 0 12px;

    color: var(--green-light);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.training-duty-box div {
    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.7;
}

.choose-track-button {
    width: 100%;

    margin-top: 30px;
}


/* =========================================================
   JELENTKEZÉSI ŰRLAP
========================================================= */

.application-section {
    background: var(--bg-soft);

    border-top:
        1px solid var(--border);
}

.application-container {
    max-width: 1000px;
}

.application-header {
    margin-bottom: 45px;
}

.application-header h2 {
    margin:
        0 0 15px;

    font-size:
        clamp(
            40px,
            6vw,
            62px
        );
}

.application-header > p:last-child {
    color: var(--text-soft);
}

.application-form {
    padding: 0;
}

.form-section {
    margin-bottom: 28px;

    padding: 32px;

    background: var(--bg-card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);
}

.form-section-title {
    display: flex;

    align-items: flex-start;

    gap: 20px;

    margin-bottom: 30px;

    padding-bottom: 25px;

    border-bottom:
        1px solid var(--border);
}

.form-section-title > span {
    min-width: 42px;

    color: var(--green-light);

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 2px;
}

.form-section-title h3 {
    margin:
        0 0 5px;

    font-size: 22px;
}

.form-section-title p {
    margin: 0;

    color: var(--text-soft);

    font-size: 14px;
}


/* =========================================================
   KÉPZÉSVÁLASZTÓ
========================================================= */

.track-selector {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.track-option {
    position: relative;

    cursor: pointer;
}

.track-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.track-option-content {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 145px;

    padding: 22px;

    background: #0d100e;

    border:
        1px solid #303631;

    border-radius: 5px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.track-option:hover
.track-option-content {
    transform:
        translateY(-2px);

    border-color:
        var(--border-hover);
}

.track-option-content strong {
    margin-top: auto;

    font-size: 18px;
}

.track-option-content > span:last-child {
    margin-top: 3px;

    color: var(--text-soft);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.track-check {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #39413a;

    border-radius: 50%;

    color: transparent;

    font-size: 13px;

    transition:
        0.2s ease;
}

.track-option input:checked
+ .track-option-content {
    background:
        linear-gradient(
            145deg,
            rgba(
                77,
                106,
                72,
                0.20
            ),
            #0d100e
        );

    border-color:
        var(--green-light);
}

.track-option input:checked
+ .track-option-content
.track-check {
    background: var(--green);

    border-color: var(--green);

    color: white;
}


/* =========================================================
   JELENTKEZÉS ELKÜLDÉS
========================================================= */

.application-submit {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin-top: 30px;

    padding: 28px;

    background: #0d100e;

    border:
        1px solid var(--border);

    border-radius: var(--radius);
}

.application-submit p {
    max-width: 560px;

    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
}

.application-submit-button {
    flex-shrink: 0;

    min-width: 230px;
}


/* =========================================================
   ADMIN - FŐOLDAL
========================================================= */

.admin-layout {
    display: flex;

    flex-direction: column;

    gap: 35px;
}

.admin-panel {
    padding: 32px;

    background: var(--bg-card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);
}

.admin-panel-header {
    margin-bottom: 30px;
}

.admin-panel-header h2 {
    margin:
        0 0 8px;

    font-size: 32px;
}

.admin-panel-header p:last-child {
    color: var(--text-soft);
}


/* =========================================================
   ADMIN - ÁLLOMÁNYKEZELÉS FEJLÉC
========================================================= */

.admin-users-section {
    background: var(--bg);
}

.admin-users-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}

.admin-users-top h2 {
    margin:
        0 0 8px;

    font-size: 38px;
}

.admin-users-top > div > p:last-child {
    margin: 0;

    color: var(--text-soft);
}


/* =========================================================
   ÚJ FELHASZNÁLÓ PANEL
========================================================= */

.create-user-panel {
    display: none;

    margin-bottom: 40px;

    padding: 35px;

    background:
        linear-gradient(
            145deg,
            #171d18,
            #101411
        );

    border:
        1px solid
        rgba(
            120,
            146,
            112,
            0.28
        );

    border-radius: 8px;

    box-shadow:
        0 20px 50px
        rgba(
            0,
            0,
            0,
            0.2
        );
}

.create-user-panel.open {
    display: block;
}

.create-user-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 32px;

    padding-bottom: 25px;

    border-bottom:
        1px solid var(--border);
}

.create-user-header h2 {
    margin:
        0 0 8px;

    font-size: 30px;
}

.create-user-header p:last-child {
    margin: 0;

    color: var(--text-soft);
}

.panel-close {
    padding: 0;

    background: transparent;

    border: none;

    color: var(--text-soft);

    font-size: 32px;

    line-height: 1;
}

.panel-close:hover {
    color: white;
}

.admin-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        5px 20px;
}


/* =========================================================
   ADMIN JOGOSULTSÁG TOGGLE
========================================================= */

.admin-toggle-option {
    display: flex;

    align-items: center;

    gap: 14px;

    margin:
        8px 0 28px;

    padding: 17px;

    background: #0b0e0c;

    border:
        1px solid var(--border);

    border-radius: 5px;

    cursor: pointer;
}

.admin-toggle-option input {
    position: absolute;

    opacity: 0;
}

.admin-toggle-box {
    position: relative;

    width: 42px;
    height: 23px;

    flex-shrink: 0;

    background: #252b26;

    border-radius: 50px;

    transition:
        0.2s ease;
}

.admin-toggle-box::after {
    content: "";

    position: absolute;

    top: 4px;
    left: 4px;

    width: 15px;
    height: 15px;

    background: #888;

    border-radius: 50%;

    transition:
        0.2s ease;
}

.admin-toggle-option
input:checked
+ .admin-toggle-box {
    background: var(--green);
}

.admin-toggle-option
input:checked
+ .admin-toggle-box::after {
    left: 23px;

    background: white;
}

.admin-toggle-option strong {
    display: block;

    color: white;

    font-size: 14px;
}

.admin-toggle-option small {
    display: block;

    margin-top: 2px;

    color: var(--text-soft);
}

.create-user-footer {
    display: flex;

    justify-content: flex-end;
}


/* =========================================================
   TAGLISTA
========================================================= */

.member-admin-list {
    display: flex;

    flex-direction: column;

    gap: 14px;
}


/* =========================================================
   TAG KÁRTYA
========================================================= */

.member-admin-card {
    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #141915,
            #101310
        );

    border:
        1px solid var(--border);

    border-radius: 7px;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.member-admin-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(
            120,
            146,
            112,
            0.30
        );

    box-shadow:
        0 12px 35px
        rgba(
            0,
            0,
            0,
            0.18
        );
}


/* =========================================================
   TAG KÁRTYA FELSŐ RÉSZ
========================================================= */

.member-admin-main {
    display: flex;

    align-items: center;

    gap: 20px;

    padding:
        24px 26px;
}

.member-avatar {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #51694d,
            #2e3d2d
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 5px;

    color: white;

    font-size: 20px;

    font-weight: 900;

    letter-spacing: 1px;
}

.member-admin-identity {
    flex-grow: 1;

    min-width: 0;
}

.member-name-row {
    display: flex;

    align-items: center;

    gap: 9px;
}

.member-name-row h3 {
    margin: 0;

    color: white;

    font-size: 20px;
}

.you-badge {
    padding:
        2px 6px;

    background:
        rgba(
            120,
            146,
            112,
            0.2
        );

    border:
        1px solid
        rgba(
            120,
            146,
            112,
            0.25
        );

    border-radius: 3px;

    color: var(--green-light);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}

.member-username {
    margin-top: 2px;

    color: var(--green-light);

    font-size: 13px;

    font-weight: 700;
}

.member-email {
    margin-top: 2px;

    color: var(--text-soft);

    font-size: 12px;
}

.member-status-area {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 6px;
}


/* =========================================================
   STÁTUSZ BADGE
========================================================= */

.hms-status {
    padding:
        5px 8px;

    border-radius: 3px;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.8px;
}

.hms-status.active {
    background:
        rgba(
            48,
            115,
            61,
            0.22
        );

    color: #8bd197;
}

.hms-status.admin {
    background:
        rgba(
            102,
            124,
            94,
            0.22
        );

    color: #9db497;
}

.hms-status.inactive {
    background:
        rgba(
            110,
            110,
            110,
            0.18
        );

    color: #aaa;
}

.hms-status.suspended {
    background:
        rgba(
            140,
            45,
            45,
            0.25
        );

    color: #f29b9b;
}

.hms-status.first-login {
    background:
        rgba(
            159,
            124,
            47,
            0.22
        );

    color: #e5c374;
}


/* =========================================================
   TAG RÉSZLETEK
========================================================= */

.member-admin-details {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    background:
        rgba(
            0,
            0,
            0,
            0.12
        );

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.member-detail {
    padding:
        17px 25px;

    border-right:
        1px solid var(--border);
}

.member-detail:last-child {
    border-right: none;
}

.member-detail span {
    display: block;

    margin-bottom: 4px;

    color: #687069;

    font-size: 9px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1.2px;
}

.member-detail strong {
    display: block;

    color: #dce1dd;

    font-size: 13px;
}


/* =========================================================
   TAG MŰVELETEK
========================================================= */

.member-admin-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        15px 25px;
}

.member-admin-actions form {
    margin: 0;
}

.member-action {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 34px;

    padding:
        0 13px;

    background: transparent;

    border:
        1px solid #313832;

    border-radius: 3px;

    color: #b5bcb7;

    text-decoration: none;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.6px;

    transition:
        0.15s ease;
}

.member-action:hover {
    background: #1b211c;

    border-color: #596559;

    color: white;
}

.member-action.primary {
    background: var(--green-dark);

    border-color: var(--green);

    color: white;
}

.member-action.primary:hover {
    background: var(--green);
}

.member-action.danger {
    margin-left: auto;

    border-color:
        rgba(
            150,
            55,
            55,
            0.35
        );

    color: #cf8b8b;
}

.member-action.danger:hover {
    background:
        rgba(
            120,
            35,
            35,
            0.20
        );

    border-color:
        rgba(
            170,
            65,
            65,
            0.5
        );
}


/* =========================================================
   FELHASZNÁLÓ SZERKESZTÉS
========================================================= */

.edit-user-container {
    max-width: 900px;

    margin: 0 auto;
}

.back-link {
    display: inline-block;

    margin-bottom: 25px;

    color: var(--text-soft);

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.back-link:hover {
    color: white;
}

.account-settings {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin:
        10px 0 30px;
}

.account-settings label {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        12px 15px;

    background: #0d100e;

    border:
        1px solid var(--border);

    border-radius: 4px;

    cursor: pointer;
}

.account-settings input {
    width: auto;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding:
        45px 0;

    background: #050705;

    border-top:
        1px solid var(--border);
}

.footer-inner {
    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.site-footer strong {
    font-size: 18px;

    letter-spacing: 2px;
}

.site-footer p {
    margin:
        4px 0;

    color: var(--text-muted);

    font-size: 13px;
}

.footer-right {
    text-align: right;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .unit-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .track-selector {
        grid-template-columns: 1fr;
    }

    .member-admin-details {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .member-detail:nth-child(2) {
        border-right: none;
    }

}


/* =========================================================
   MOBIL
========================================================= */

@media (max-width: 700px) {

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container)
            );
    }

    .section {
        padding:
            70px 0;
    }


    /* HEADER */

    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        display: none;

        position: absolute;

        top: var(--header-height);

        left: 0;

        right: 0;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        padding: 20px;

        background: #080b09;

        border-bottom:
            1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding:
            12px 5px;
    }

    .login-link {
        margin-top: 5px;

        text-align: center;
    }

    .brand-sub {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: 610px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }


    /* GRID */

    .unit-grid,
    .media-grid,
    .form-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }


    /* CTA */

    .cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }


    /* TOBORZÁS */

    .form-section {
        padding: 22px;
    }

    .application-submit {
        flex-direction: column;

        align-items: stretch;
    }

    .application-submit-button {
        width: 100%;

        min-width: 0;
    }


    /* ADMIN FELSŐ */

    .admin-users-top {
        flex-direction: column;

        align-items: stretch;
    }

    .admin-users-top .button {
        width: 100%;
    }

    .create-user-panel {
        padding: 22px;
    }


    /* TAG KÁRTYA */

    .member-admin-main {
        align-items: flex-start;

        flex-wrap: wrap;

        padding: 20px;
    }

    .member-avatar {
        width: 50px;

        height: 50px;
    }

    .member-status-area {
        width: 100%;

        justify-content: flex-start;
    }

    .member-admin-details {
        grid-template-columns: 1fr;
    }

    .member-detail {
        border-right: none;

        border-bottom:
            1px solid var(--border);
    }

    .member-detail:last-child {
        border-bottom: none;
    }

    .member-admin-actions {
        flex-direction: column;

        align-items: stretch;

        padding:
            15px 20px;
    }

    .member-admin-actions form {
        width: 100%;
    }

    .member-action {
        width: 100%;
    }

    .member-action.danger {
        margin-left: 0;
    }


    /* USER EDIT */

    .account-settings {
        flex-direction: column;
    }


    /* FOOTER */

    .footer-inner {
        flex-direction: column;
    }

    .footer-right {
        text-align: left;
    }

}

/* =========================================================
   ALEGYSÉGEK / ÁLLOMÁNY
========================================================= */

.units-overview {
    display: grid;
    gap: 28px;
}

.unit-roster-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.unit-roster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    border-bottom: 1px solid var(--border);
}

.unit-roster-header h2 {
    margin: 5px 0 0;
}

.unit-member-count {
    min-width: 80px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--green-light);
}

.unit-member-count span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
}

.unit-roster-list {
    display: flex;
    flex-direction: column;
}

.roster-member {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(180px, 280px);
    gap: 18px;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
}

.roster-member:last-child {
    border-bottom: 0;
}

.roster-member:hover {
    background: rgba(255, 255, 255, 0.02);
}

.roster-member-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    letter-spacing: 1px;
}

.roster-member-main {
    min-width: 0;
}

.roster-member-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.roster-member-name strong {
    font-size: 17px;
}

.roster-rank {
    color: var(--green-light);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.roster-member-meta {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 13px;
}

.roster-position {
    text-align: right;
}

.roster-position span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roster-position strong {
    font-size: 14px;
}

.unit-empty {
    padding: 32px 28px;
    text-align: center;
    color: var(--text-soft);
}

.unit-empty strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
}

.unit-empty p {
    margin: 0;
}


/* MOBIL */

@media (max-width: 700px) {

    .unit-roster-header {
        padding: 22px 20px;
    }

    .roster-member {
        grid-template-columns: 48px 1fr;
        padding: 18px 20px;
    }

    .roster-position {
        grid-column: 2;
        text-align: left;
    }

}