
/* =========================================================
   DZIEŃ TYGRYSA — NOWOCZESNY CSS
   ========================================================= */

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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #070a12;
    --bg-soft: #0d1220;
    --card: rgba(18, 24, 40, 0.78);
    --card-hover: rgba(25, 33, 54, 0.9);

    --text: #f8fafc;
    --muted: #94a3b8;

    --orange: #ff9f1c;
    --orange-light: #ffb84d;
    --orange-dark: #e88600;

    --green: #22c55e;
    --red: #ef4444;
    --blue: #38bdf8;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 159, 28, 0.35);

    --shadow: 0 20px 60px rgba(0, 0, 0, .30);
    --shadow-small: 0 10px 30px rgba(0, 0, 0, .20);

    --radius: 18px;
    --radius-small: 12px;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;

    color: var(--text);

    background:
        radial-gradient(circle at 10% 10%, rgba(255,159,28,.10), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(56,189,248,.07), transparent 25%),
        radial-gradient(circle at 50% 100%, rgba(255,159,28,.06), transparent 30%),
        var(--bg);

    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);

    background-size: 40px 40px;

    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}
i nie ma
a {
    color: inherit;
    text-decoration: none;
}

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

/* =========================================================
   TOP BAR
   ========================================================= */

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

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

    min-height: 72px;
    padding: 14px 28px;

    background: rgba(7, 10, 18, .78);

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

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.topbar a {
    color: var(--muted);
    transition: .2s ease;
}

.topbar a:hover {
    color: var(--orange);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.5px;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1250px, calc(100% - 32px));
    margin: 0 auto;

    padding: 30px 0 50px;
}

/* =========================================================
   GRID
   ========================================================= */

.grid {
    display: grid;
    gap: 20px;
}

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

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

/* =========================================================
   CARDS
   ========================================================= */

.card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.015)
        ),
        var(--card);

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

    border-radius: var(--radius);

    padding: 22px;

    box-shadow: var(--shadow-small);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,159,28,.4),
        transparent
    );

    opacity: .7;
}

.card:hover {
    transform: translateY(-2px);

    border-color: rgba(255,159,28,.18);

    box-shadow:
        0 25px 70px rgba(0,0,0,.30),
        0 0 30px rgba(255,159,28,.04);
}

/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

h2 {
    font-size: 23px;
    letter-spacing: -.5px;
}

h3 {
    font-size: 17px;
}

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

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;

    padding: 11px 17px;

    border: 1px solid transparent;
    border-radius: 12px;

    cursor: pointer;

    font-weight: 800;
    font-size: 14px;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.btn.primary {
    color: #15100a;

    background: linear-gradient(
        135deg,
        var(--orange-light),
        var(--orange)
    );

    box-shadow:
        0 10px 25px rgba(255,159,28,.18);
}

.btn.primary:hover {
    box-shadow:
        0 14px 35px rgba(255,159,28,.28);
}

.btn.secondary {
    color: var(--text);

    background: rgba(255,255,255,.05);

    border-color: var(--border);
}

.btn.secondary:hover {
    background: rgba(255,255,255,.09);
}

.btn.success {
    color: #04140a;

    background: linear-gradient(
        135deg,
        #4ade80,
        #22c55e
    );

    box-shadow:
        0 10px 25px rgba(34,197,94,.15);
}

.btn.danger {
    color: #fff;

    background: linear-gradient(
        135deg,
        #f43f5e,
        #ef4444
    );

    box-shadow:
        0 10px 25px rgba(239,68,68,.15);
}

.btn.full {
    width: 100%;
}

/* =========================================================
   FORMS
   ========================================================= */

label {
    display: block;

    margin-bottom: 16px;

    color: var(--muted);

    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;

    margin-top: 7px;

    padding: 13px 14px;

    color: var(--text);

    background: rgba(4, 8, 17, .65);

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

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(4,8,17,.85);

    border-color: rgba(255,159,28,.7);

    box-shadow:
        0 0 0 4px rgba(255,159,28,.10);
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 25px;
}

.login-card {
    position: relative;

    width: min(440px, 100%);

    padding: 34px;

    background:
        linear-gradient(
            145deg,
            rgba(25,33,54,.88),
            rgba(13,18,32,.92)
        );

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

    border-radius: 24px;

    box-shadow:
        0 35px 100px rgba(0,0,0,.40),
        0 0 60px rgba(255,159,28,.05);

    backdrop-filter: blur(25px);
}

.login-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    right: -80px;

    background: rgba(255,159,28,.13);

    border-radius: 50%;

    filter: blur(40px);

    pointer-events: none;
}

.login-card .brand {
    margin-bottom: 24px;

    font-size: 24px;
}

.login-card h1 {
    margin-bottom: 10px;
}

/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 13px 15px;

    margin: 15px 0;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;
}

.alert.danger {
    background: rgba(239,68,68,.10);

    border: 1px solid rgba(239,68,68,.25);

    color: #fca5a5;
}

/* =========================================================
   KPI
   ========================================================= */

.kpi {
    margin-top: 8px;

    font-size: clamp(34px, 5vw, 48px);
    line-height: 1;

    font-weight: 900;

    letter-spacing: -2px;

    background: linear-gradient(
        135deg,
        #fff,
        #cbd5e1
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

/* =========================================================
   RANKING
   ========================================================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;

    border-radius: 12px;
}

.rank-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;
}

.rank-table th {
    padding: 13px 12px;

    color: #cbd5e1;

    text-align: left;

    font-size: 12px;
    text-transform: uppercase;

    letter-spacing: .5px;

    background: rgba(255,255,255,.035);

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

.rank-table td {
    padding: 14px 12px;

    border-bottom: 1px solid rgba(255,255,255,.05);
}

.rank-table tbody tr {
    transition: background .18s ease;
}

.rank-table tbody tr:hover {
    background: rgba(255,255,255,.025);
}

.rank-table tr.current {
    background:
        linear-gradient(
            90deg,
            rgba(255,159,28,.12),
            rgba(255,159,28,.035)
        );

    box-shadow:
        inset 3px 0 0 var(--orange);
}

/* =========================================================
   COMPETITIONS
   ========================================================= */

.comp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 17px 0;

    border-bottom: 1px solid rgba(255,255,255,.06);
}

.comp-row:last-child {
    border-bottom: 0;
}

.comp-row b {
    display: inline-block;

    margin-bottom: 5px;

    font-size: 15px;
}

.comp-row .actions {
    flex-shrink: 0;
}

.small {
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   STATUS BADGES
   ========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
}

.status.ok {
    color: #86efac;

    background: rgba(34,197,94,.11);

    border: 1px solid rgba(34,197,94,.18);
}

.status.no {
    color: #94a3b8;

    background: rgba(148,163,184,.08);

    border: 1px solid rgba(148,163,184,.12);
}

.status.wait {
    color: #fcd34d;

    background: rgba(245,158,11,.10);

    border: 1px solid rgba(245,158,11,.18);
}

/* =========================================================
   TABS
   ========================================================= */

.tabs {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 18px;
}

.tab {
    padding: 10px 14px;

    color: var(--muted);

    background: rgba(255,255,255,.045);

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

    border-radius: 10px;

    cursor: pointer;

    font-weight: 700;

    transition: .2s ease;
}

.tab:hover {
    color: var(--text);

    background: rgba(255,255,255,.07);
}

.tab.active {
    color: #17110a;

    background: linear-gradient(
        135deg,
        var(--orange-light),
        var(--orange)
    );

    border-color: transparent;

    box-shadow:
        0 10px 25px rgba(255,159,28,.15);
}

/* =========================================================
   ACTIONS
   ========================================================= */

.actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

/* =========================================================
   BACK LINK
   ========================================================= */

.back-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 20px;

    color: var(--muted);

    font-size: 14px;
    font-weight: 600;

    transition: .2s ease;
}

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

/* =========================================================
   REGISTER
   ========================================================= */

.register-card {
    max-width: 680px;

    margin: 30px auto;
}

.hidden {
    display: none !important;
}

.account-type {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-top: 8px;
}

.type-option {
    margin: 0;

    padding: 18px 12px;

    text-align: center;

    color: var(--muted);

    background: rgba(255,255,255,.025);

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

    border-radius: 14px;

    cursor: pointer;

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

.type-option:hover {
    transform: translateY(-2px);

    background: rgba(255,255,255,.05);

    border-color: rgba(255,159,28,.25);
}

.type-option.selected {
    color: var(--text);

    background: rgba(255,159,28,.09);

    border-color: rgba(255,159,28,.55);

    box-shadow:
        0 10px 30px rgba(255,159,28,.08);
}

.type-option input {
    display: none;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #080c16;
}

::-webkit-scrollbar-thumb {
    background: #263149;

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #37445e;
}

/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    color: #17110a;
    background: var(--orange);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.login-card {
    animation: fadeUp .45s ease both;
}

.check-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #9aa4b6 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer;
    user-select: none;
}

.check-wrap input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

.check-box {
    position: relative;
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    border-radius: 8px;
    border: 2px solid #3a465c;
    background: #101624;

    transition: all .2s ease;
}

.check-box::after {
    content: "✓";

    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: #07160d;
    font-size: 15px;
    font-weight: 900;

    opacity: 0;
    transform: scale(.5);

    transition: all .18s ease;
}

.check-wrap input:checked + .check-box {
    background: linear-gradient(
        135deg,
        #4ade80,
        #22c55e
    );

    border-color: #4ade80;

    box-shadow:
        0 0 0 4px rgba(34,197,94,.10),
        0 6px 18px rgba(34,197,94,.20);
}

.check-wrap input:checked + .check-box::after {
    opacity: 1;
    transform: scale(1);
}

.check-wrap input:checked ~ .check-label {
    color: #6ee7a5;
}

.check-wrap:hover .check-box {
    border-color: #64748b;
    transform: translateY(-1px);
}

.check-wrap input:checked:hover + .check-box {
    border-color: #86efac;
}

.check-wrap input:focus-visible + .check-box {
    outline: 3px solid rgba(255,159,28,.25);
    outline-offset: 3px;
}

.competition-toggle {
    position: relative;

    display: inline-flex !important;
    align-items: center !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;

    cursor: pointer;
    user-select: none;

    color: #94a3b8 !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}

/* ukrywamy prawdziwy checkbox */
.competition-toggle > input {
    position: absolute !important;

    width: 0 !important;
    height: 0 !important;

    opacity: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    pointer-events: none !important;
}

/* obudowa switcha */
.competition-toggle .check-box {
    position: relative;

    display: block;

    width: 48px;
    height: 27px;

    flex: 0 0 48px;

    border-radius: 999px;

    background: #20283a;

    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.3);

    transition:
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

/* kółko */
.competition-toggle .check-box::before {
    content: "";

    position: absolute;

    width: 19px;
    height: 19px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: #8994a7;

    box-shadow:
        0 2px 7px rgba(0,0,0,.35);

    transition:
        transform .22s cubic-bezier(.4,0,.2,1),
        background .22s ease;
}

/* tekst */
.competition-toggle .check-label {
    min-width: 72px;

    transition:
        color .22s ease;
}

/* AKTYWNA */
.competition-toggle > input:checked + .check-box {
    background: linear-gradient(
        135deg,
        #34d399,
        #22c55e
    );

    border-color: rgba(52,211,153,.6);

    box-shadow:
        0 0 0 4px rgba(34,197,94,.08),
        0 7px 20px rgba(34,197,94,.15);
}

.competition-toggle > input:checked + .check-box::before {
    transform: translateX(21px);

    background: #ffffff;
}

.competition-toggle > input:checked ~ .check-label {
    color: #6ee7a5 !important;
}

/* WYŁĄCZONA */
.competition-toggle > input:not(:checked) ~ .check-label {
    color: #8994a7 !important;
}

/* hover */
.competition-toggle:hover .check-box {
    border-color: rgba(255,255,255,.25);
}

.competition-toggle:hover > input:checked + .check-box {
    box-shadow:
        0 0 0 5px rgba(34,197,94,.09),
        0 8px 24px rgba(34,197,94,.20);
}

/* kliknięcie */
.competition-toggle:active .check-box::before {
    width: 20px;
}

/* focus */
.competition-toggle > input:focus-visible + .check-box {
    outline: 3px solid rgba(255,159,28,.28);
    outline-offset: 3px;
}

/* =========================================================
   WIERSZ KONKURENCJI W ADMINIE
   ========================================================= */

.comp {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 16px 0;

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

.comp:last-child {
    border-bottom: 0;
}

.comp-info {
    flex: 1;
    min-width: 0;
}

.comp-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-width: 140px;
}

/* =========================================================
   ADMIN — POSTĘP KONKURENCJI
   ========================================================= */

.competition-admin-card {
    padding: 18px 0;

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

.competition-admin-card:last-child {
    border-bottom: 0;
}

.competition-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.competition-admin-name {
    font-size: 15px;
    font-weight: 900;
}

.competition-admin-stat {
    display: flex;
    align-items: baseline;
    gap: 5px;

    white-space: nowrap;
}

.competition-admin-stat strong {
    font-size: 22px;
}

.competition-admin-stat span {
    color: var(--muted);
    font-size: 11px;
}

.competition-admin-percent {
    margin-top: 7px;

    color: var(--muted);

    font-size: 11px;
}

.competition-classes {
    margin-top: 14px;

    border: 1px solid var(--line);
    border-radius: 14px;

    overflow: hidden;
}

.competition-class-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 11px 13px;

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

    background: rgba(255,255,255,.015);
}

.competition-class-row:last-child {
    border-bottom: 0;
}

.competition-class-name {
    display: flex;
    align-items: center;
    gap: 9px;
}

.competition-class-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #4b5563;
}

.competition-class-dot.done {
    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(35,209,123,.08);
}

.competition-class-result {
    display: flex;
    align-items: center;
    gap: 12px;

    white-space: nowrap;
}

.competition-class-result strong {
    min-width: 55px;

    text-align: right;

    font-size: 14px;
}

.conductor-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px;

    margin-bottom: 8px;

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

    background:
        rgba(255,255,255,.018);

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.conductor-admin-row:last-child {
    margin-bottom: 0;
}

.conductor-admin-name {
    font-size: 15px;
    font-weight: 900;
}


.conductor-admin-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    justify-content: flex-end;
}


/* =========================================================
   ALARM
   ========================================================= */

.conductor-admin-row.help-active {

    background:
        linear-gradient(
            90deg,
            rgba(239,68,68,.17),
            rgba(239,68,68,.055)
        );

    border-color:
        rgba(239,68,68,.55);

    box-shadow:
        0 0 0 1px rgba(239,68,68,.08),
        0 10px 35px rgba(239,68,68,.09);

    animation:
        helpPulse 2s infinite;
}


.conductor-admin-row.help-active
.conductor-admin-name {

    color: #fecaca;

}


.help-request-badge {

    display: inline-flex;

    align-items: center;

    padding: 8px 11px;

    border-radius: 999px;

    background:
        rgba(239,68,68,.18);

    border:
        1px solid rgba(239,68,68,.35);

    color: #fca5a5;

    font-size: 11px;

    font-weight: 900;

    white-space: nowrap;
}


@keyframes helpPulse {

    0%,
    100% {

        border-color:
            rgba(239,68,68,.40);

    }

    50% {

        border-color:
            rgba(239,68,68,.90);

        box-shadow:
            0 0 0 4px
            rgba(239,68,68,.055),
            0 12px 40px
            rgba(239,68,68,.12);

    }

}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none !important;
}

@media (max-width: 650px) {

    .competition-admin-head {
        align-items: flex-start;
    }

    .competition-class-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .competition-class-result {
        width: 100%;

        justify-content: space-between;
    }
	

    .conductor-admin-row {

        align-items: flex-start;

        flex-direction: column;

    }

    .conductor-admin-actions {

        width: 100%;

        justify-content:
            space-between;

    }

}

.app-footer {
    width: min(1250px, calc(100% - 32px));

    margin: 20px auto 0;

    padding: 18px 22px;

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

    gap: 20px;

    color: var(--muted);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        ),
        rgba(18,24,40,.75);

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

    border-radius: 18px 18px 0 0;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 -10px 35px rgba(0,0,0,.15);

    font-size: 12px;
}


/* LEWA STRONA */

.footer-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-logo {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--orange-light),
            var(--orange)
        );

    color: #17110a;

    font-size: 18px;

    box-shadow:
        0 8px 22px rgba(255,159,28,.15);
}

.footer-left strong {
    color: var(--text);

    font-size: 13px;
}

.footer-small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}


/* ŚRODEK */

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-status {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    border-radius: 999px;

    color: #86efac;

    background:
        rgba(34,197,94,.08);

    border:
        1px solid rgba(34,197,94,.15);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .5px;
}

.footer-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(34,197,94,.08);

    animation:
        footerPulse 2s infinite;
}


/* PRAWA STRONA */

.footer-right {
    text-align: right;

    font-size: 11px;
}


/* ANIMACJA */

@keyframes footerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .45;
    }

}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;

    transition: .2s ease;
}

.topbar-links a:hover {
    color: var(--orange);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-nav-button {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    padding: 0;

    color: #fff;

    background:
        rgba(255,255,255,.05);

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

    border-radius: 12px;

    font-size: 21px;

    cursor: pointer;

    transition: .2s ease;
}

.mobile-nav-button:hover {
    background:
        rgba(255,255,255,.09);

    border-color:
        rgba(255,159,28,.25);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-nav-menu {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    right: 12px;

    width: min(280px, calc(100vw - 24px));

    padding: 9px;

    background:
        rgba(15,22,41,.98);

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

    border-radius: 16px;

    box-shadow:
        0 20px 55px rgba(0,0,0,.45);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 999;
}


.mobile-nav-menu.open {
    display: block;

    animation:
        mobileMenuOpen .18s ease;
}


.mobile-nav-menu a {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 12px 13px;

    margin: 0;

    color: #e2e8f0;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none !important;

    transition:
        background .18s ease,
        color .18s ease;
}


.mobile-nav-menu a:hover {
    color: #fff;

    background:
        rgba(255,255,255,.06);
}


.mobile-nav-menu .mobile-logout {
    margin-top: 5px;

    color: #fca5a5;

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

    border-radius:
        0 0 10px 10px;
}


.mobile-nav-menu .mobile-logout:hover {
    color: #fff;

    background:
        rgba(239,68,68,.13);
}


/* =========================================================
   ANIMACJA
   ========================================================= */

@keyframes mobileMenuOpen {

    from {
        opacity: 0;
        transform: translateY(-7px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .topbar {
        position: sticky;
        top: 0;

        min-height: 64px;

        padding: 10px 14px;
    }


    .topbar-links {
        display: none;
    }


    .mobile-nav-button {
        display: inline-flex;
    }


    .brand {
        font-size: 16px;
    }

}

@media (max-width: 900px) {

    .cols-3 {
        grid-template-columns: 1fr;
    }

    .cols-2 {
        grid-template-columns: 1fr;
    }

    .container {
        width: min(100% - 24px, 1250px);
        padding-top: 20px;
    }

    .topbar {
        padding: 12px 15px;
    }
}

@media (max-width: 650px) {

    .topbar {
        min-height: 64px;
    }

    .brand {
        font-size: 17px;
    }

    .container {
        width: calc(100% - 18px);
    }

    .card {
        padding: 17px;
        border-radius: 15px;
    }

    .login-card {
        padding: 24px 19px;
        border-radius: 18px;
    }

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

    .comp-row > div:last-child {
        width: 100%;
    }

    .comp-row .btn {
        width: 100%;
    }

    .account-type {
        grid-template-columns: 1fr;
    }

    .rank-table {
        min-width: 550px;
    }
	
	    .app-footer {
        width: calc(100% - 18px);

        flex-direction: column;

        align-items: flex-start;

        gap: 14px;

        padding: 16px;

        border-radius: 15px 15px 0 0;
    }

    .footer-center {
        width: 100%;

        justify-content: flex-start;
    }

    .footer-right {
        width: 100%;

        text-align: left;
    }

}

