/* TowerMT2 — etap 1: główny layout w stylu klienta */
:root {
    --tm-bg: #05030a;
    --tm-panel: rgba(8, 5, 15, .93);
    --tm-panel-soft: rgba(18, 8, 31, .87);
    --tm-purple: #8f46de;
    --tm-purple-light: #d0a5ff;
    --tm-purple-dark: #351050;
    --tm-border: rgba(178, 106, 244, .72);
    --tm-text: #eee5f8;
    --tm-muted: #aa95bd;
    --tm-shadow: 0 0 14px rgba(126, 45, 206, .48), 0 0 35px rgba(57, 14, 105, .28);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
    margin: 0;
    color: var(--tm-text);
    background:
        linear-gradient(rgba(4, 2, 8, .30), rgba(4, 2, 8, .90)),
        url("../img/client-bg.png") center top / cover fixed no-repeat,
        var(--tm-bg);
    font-family: Georgia, "Times New Roman", serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 53% 14%, rgba(165, 83, 255, .16), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, .58), transparent 18%, transparent 82%, rgba(0, 0, 0, .58));
}

a { color: inherit; }

.client-page-shell { min-height: 100vh; }

.client-header {
    position: relative;
    min-height: 520px;
    border-bottom: 1px solid rgba(202, 145, 255, .40);
    background:
        linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(5,2,10,.12) 58%, rgba(5,2,10,.92) 100%);
    overflow: hidden;
}

.client-header__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 8%, rgba(173, 91, 255, .12), transparent 32%),
        linear-gradient(90deg, rgba(0,0,0,.34), transparent 25%, transparent 75%, rgba(0,0,0,.34));
}

.client-brand {
    position: absolute;
    top: 42px;
    left: 5vw;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.client-brand img {
    width: min(360px, 38vw);
    max-height: 150px;
    object-fit: contain;
    filter:
        hue-rotate(18deg)
        saturate(1.65)
        brightness(1.10)
        drop-shadow(0 0 8px rgba(153, 61, 246, .92))
        drop-shadow(0 0 24px rgba(89, 22, 168, .65));
}

.client-brand span {
    margin-top: -6px;
    padding-left: 20px;
    color: #b99aca;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 8px #44106f;
}

.client-nav {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 5;
    display: flex;
    align-items: stretch;
    transform: translateX(-50%);
    min-width: min(920px, 78vw);
    padding: 7px 14px;
    border: 1px solid var(--tm-border);
    background: linear-gradient(180deg, rgba(42, 18, 66, .93), rgba(8, 5, 14, .96));
    box-shadow: inset 0 0 22px rgba(174, 91, 255, .12), var(--tm-shadow);
    clip-path: polygon(2% 0, 98% 0, 100% 28%, 100% 72%, 98% 100%, 2% 100%, 0 72%, 0 28%);
}

.client-nav > a,
.client-nav .dropdown__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    color: #dfc8f3;
    background: transparent;
    font: 700 13px/1 Georgia, serif;
    letter-spacing: 1.1px;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(176, 89, 255, .65);
    cursor: pointer;
}

.client-nav > a:hover,
.client-nav .dropdown__toggle:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(130, 54, 201, .50), rgba(40, 13, 66, .18));
    box-shadow: inset 0 -2px 0 #b96dff;
}

.client-header__cta {
    position: absolute;
    right: 5vw;
    bottom: 115px;
    z-index: 4;
}

.client-play-button {
    position: relative;
    display: flex;
    width: 190px;
    min-height: 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #bd72ff;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(113, 43, 183, .94), rgba(43, 13, 70, .98) 58%, rgba(12, 5, 20, .99));
    box-shadow: inset 0 0 0 2px rgba(225, 187, 255, .11), 0 0 18px rgba(150, 61, 240, .70);
    text-decoration: none;
    clip-path: polygon(12% 0, 88% 0, 100% 30%, 94% 82%, 78% 100%, 22% 100%, 6% 82%, 0 30%);
    transition: transform .2s ease, filter .2s ease;
}

.client-play-button:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.18);
}

.client-play-button span {
    font-size: 30px;
    letter-spacing: 4px;
    text-shadow: 0 0 11px #d8a8ff, 0 2px 2px #000;
}

.client-play-button small {
    margin-top: 4px;
    color: #cbb6dc;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.client-main {
    position: relative;
    padding: 32px 22px 70px;
    background: linear-gradient(to bottom, rgba(5,2,10,.82), rgba(5,2,10,.96));
}

.client-grid {
    width: min(1380px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr) 255px;
    gap: 22px;
    align-items: start;
}

.client-sidebar {
    display: grid;
    gap: 20px;
}

.client-panel,
.client-window {
    border: 1px solid var(--tm-border);
    background: var(--tm-panel);
    box-shadow: inset 0 0 0 1px rgba(234, 205, 255, .055), var(--tm-shadow);
}

.client-panel__title,
.client-window__bar {
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(195, 128, 255, .62);
    color: #f3e6ff;
    background:
        linear-gradient(180deg, rgba(85, 34, 135, .90), rgba(21, 8, 35, .98));
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-shadow: 0 0 9px #a853ff;
}

.client-panel__title::before,
.client-panel__title::after {
    content: "";
    width: 8px;
    height: 8px;
    margin: 0 10px;
    border: 1px solid #d9b8ff;
    background: #6327a0;
    transform: rotate(45deg);
    box-shadow: 0 0 9px #bd6fff;
}

.client-panel__body { padding: 16px; }

.client-window__bar { min-height: 58px; }

.client-window__bar h1 {
    margin: 0 18px;
    color: inherit;
    font-size: 20px;
    font-weight: 700;
}

.client-window__gem {
    width: 10px;
    height: 10px;
    border: 1px solid #eedaff;
    background: #7d35c0;
    transform: rotate(45deg);
    box-shadow: 0 0 10px #b966ff;
}

.client-window__body {
    min-height: 760px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(40, 15, 66, .18), transparent 42%),
        rgba(5, 3, 10, .72);
}

.client-login {
    display: grid;
    gap: 12px;
}

.client-login label span {
    display: block;
    margin-bottom: 5px;
    color: var(--tm-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.client-login input,
.form-input,
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    min-height: 39px;
    border: 1px solid rgba(165, 94, 226, .62) !important;
    color: #f4ebfb !important;
    background: rgba(2, 1, 6, .82) !important;
    box-shadow: inset 0 0 10px rgba(104, 35, 171, .12);
}

.client-login input:focus,
.form-input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d29cff !important;
    box-shadow: 0 0 12px rgba(157, 67, 244, .58) !important;
}

.client-login button,
.btn,
.btn-login,
.login-button,
.pagination-btn,
.pagination-current,
.client-action {
    min-height: 40px;
    border: 1px solid #a95be8 !important;
    color: #f7ecff !important;
    background: linear-gradient(180deg, #4d236f, #1d0a30 58%, #09040e) !important;
    box-shadow: inset 0 0 0 1px rgba(240, 217, 255, .10), 0 0 9px rgba(126, 43, 204, .34) !important;
    text-shadow: 0 0 7px rgba(186, 112, 255, .78);
    cursor: pointer;
}

.client-login button:hover,
.btn:hover,
.btn-login:hover,
.login-button:hover,
.pagination-btn:hover,
.client-action:hover {
    border-color: #dbacff !important;
    background: linear-gradient(180deg, #7437a6, #32104f 58%, #100619) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 16px rgba(159, 67, 241, .62) !important;
}

.client-mini-links {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    text-align: center;
}

.client-mini-links a,
.client-panel-link {
    color: #c99af2;
    font-size: 12px;
    text-decoration: none;
}

.client-stack-nav,
.client-community .client-panel__body {
    display: grid;
    gap: 9px;
}

.client-stack-nav a,
.client-community a {
    padding: 10px 12px;
    border: 1px solid rgba(159, 90, 221, .44);
    color: #e2d0f0;
    background: linear-gradient(90deg, rgba(67, 24, 105, .42), rgba(10, 5, 16, .72));
    text-decoration: none;
}

.client-stack-nav a:hover,
.client-community a:hover {
    border-color: #c680ff;
    box-shadow: 0 0 11px rgba(145, 54, 232, .45);
}

.client-stats,
.client-ranking {
    margin: 0;
    padding: 0;
    list-style: none;
}

.client-stats li,
.client-ranking li {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(151, 82, 211, .19);
}

.client-stats li:last-child,
.client-ranking li:last-child { border-bottom: 0; }

.client-stats span {
    flex: 1;
    color: #b8a5c9;
    font-size: 12px;
}

.client-stats strong,
.client-ranking strong {
    color: #c984ff;
    font-size: 12px;
}

.client-ranking__position {
    width: 24px;
    color: #8e5ab6;
    font-weight: 700;
}

.client-ranking__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #dbc9e9;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-panel-link {
    display: block;
    margin-top: 13px;
    text-align: right;
}

.client-home-hero {
    position: relative;
    min-height: 430px;
    margin: -22px -22px 24px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid rgba(184, 108, 248, .58);
    background:
        linear-gradient(90deg, rgba(3,1,7,.95), rgba(7,3,14,.27) 55%, rgba(3,1,7,.62)),
        url("../img/client-bg.png") center / cover no-repeat;
}

.client-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 64% 24%, rgba(176, 89, 255, .16), transparent 32%);
}

.client-home-hero__content {
    position: relative;
    z-index: 1;
    max-width: 610px;
    padding: 45px 42px;
}

.client-kicker {
    color: #c27df8;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.client-home-hero h2 {
    margin: 10px 0 13px;
    color: #fff;
    font-size: clamp(36px, 5vw, 61px);
    line-height: .96;
    text-shadow: 0 0 13px #7021b4, 0 3px 3px #000;
}

.client-home-hero p {
    max-width: 540px;
    margin: 0;
    color: #d0bfdd;
    font-size: 16px;
    line-height: 1.7;
}

.client-home-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.client-action {
    display: inline-flex;
    min-width: 160px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.client-action--primary {
    background: linear-gradient(180deg, #8e42ce, #45136e 56%, #180720) !important;
}

.client-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.client-tiles a {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border: 1px solid rgba(175, 103, 235, .58);
    color: inherit;
    background:
        linear-gradient(135deg, rgba(76, 27, 121, .72), rgba(6, 3, 11, .94)),
        url("../img/client-bg.png") center / cover;
    box-shadow: inset 0 0 24px rgba(143, 50, 225, .10);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.client-tiles a:hover {
    transform: translateY(-3px);
    border-color: #d5a5ff;
    box-shadow: 0 0 18px rgba(150, 59, 236, .50), inset 0 0 25px rgba(143, 50, 225, .16);
}

.client-tiles strong {
    color: #fff;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.client-tiles span {
    margin-top: 6px;
    color: #baa4ca;
    font-size: 12px;
}

.client-section-title { margin: 10px 0 15px; }

.client-section-title span {
    color: #ad65e6;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.client-section-title h2,
.client-empty-news h2 {
    margin: 5px 0 0;
    color: #efe0fa;
    font-size: 29px;
}

.news-item {
    border: 1px solid rgba(156, 83, 216, .42) !important;
    background: linear-gradient(135deg, rgba(36, 14, 57, .88), rgba(5, 3, 9, .96)) !important;
    box-shadow: inset 0 0 24px rgba(127, 39, 201, .07);
}

.news-title-wrapper h2 { color: #ead4fb !important; }
.news-date { color: #a984c4 !important; }

.ranking-table thead th,
.download-table thead {
    background: linear-gradient(180deg, #4c246c, #170923) !important;
}

.ranking-table td,
.download-table td {
    border-color: rgba(149, 79, 208, .24) !important;
}

.dropdown__menu-inner {
    border: 1px solid #9150c6 !important;
    background: #09050f !important;
    box-shadow: var(--tm-shadow);
}

.client-footer {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px max(22px, calc((100vw - 1380px) / 2));
    border-top: 1px solid rgba(170, 98, 229, .45);
    background: rgba(3, 2, 7, .97);
    box-shadow: 0 -8px 30px rgba(60, 16, 110, .20);
}

.client-footer > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.client-footer strong { color: #dbc0ef; }
.client-footer span { color: #806f8c; font-size: 12px; }

.client-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 15px;
}

.client-footer a {
    color: #a991bd;
    font-size: 12px;
    text-decoration: none;
}

.mobile-menu-toggle { z-index: 20; }

@media (max-width: 1120px) {
    .client-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .client-sidebar--right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .client-header__cta { display: none; }
    .client-nav { min-width: 90vw; }
}

@media (max-width: 820px) {
    .client-header { min-height: 350px; }
    .client-brand {
        top: 38px;
        left: 50%;
        align-items: center;
        transform: translateX(-50%);
    }
    .client-brand img { width: min(380px, 78vw); }
    .client-brand span { padding-left: 0; }
    .client-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 15;
        min-width: 270px;
        width: min(82vw, 340px);
        padding: 80px 16px 20px;
        flex-direction: column;
        align-items: stretch;
        transform: translateX(110%);
        clip-path: none;
        transition: transform .25s ease;
    }
    body.mobile-menu-open .client-nav { transform: translateX(0); }
    .client-nav > a,
    .client-nav .dropdown__toggle { justify-content: flex-start; }
    .client-grid { grid-template-columns: 1fr; }
    .client-sidebar--left,
    .client-sidebar--right {
        grid-column: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .client-content { grid-row: 1; }
    .client-window__body { min-height: 500px; }
}

@media (max-width: 620px) {
    .client-main { padding: 18px 10px 45px; }
    .client-header { min-height: 285px; }
    .client-brand { top: 55px; }
    .client-brand span { font-size: 9px; letter-spacing: 2px; }
    .client-sidebar--left,
    .client-sidebar--right,
    .client-tiles { grid-template-columns: 1fr; }
    .client-window__body { padding: 14px; }
    .client-home-hero {
        min-height: 455px;
        margin: -14px -14px 20px;
    }
    .client-home-hero__content { padding: 30px 22px; }
    .client-home-actions { flex-direction: column; }
    .client-action { width: 100%; }
    .client-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .client-footer nav { justify-content: flex-start; }
}


/* ===== TowerMT2 — etap 2: podstrony ===== */
.tm-subpage { width: 100%; }

.tm-subpage__header {
    position: relative;
    margin: 0 0 26px;
    padding: 6px 4px 22px;
    border-bottom: 1px solid rgba(177, 104, 238, .32);
}

.tm-subpage__header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg, #c87dff, transparent);
    box-shadow: 0 0 9px #9c3deb;
}

.tm-subpage__header > span,
.tm-subpage__header > div > span {
    color: #b66de9;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.tm-subpage__header h2 {
    margin: 7px 0 8px;
    color: #f4e7ff;
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1;
    text-shadow: 0 0 12px rgba(142, 56, 224, .64);
}

.tm-subpage__header p {
    margin: 0;
    color: #a996b9;
    line-height: 1.6;
}

.tm-subpage__header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.tm-auth-page {
    min-height: 650px;
    padding: 15px 0 45px;
}

.tm-auth-card {
    position: relative;
    width: min(480px, 100%);
    margin: 45px auto 0;
    padding: 48px 36px 34px;
    border: 1px solid rgba(184, 111, 244, .68);
    background:
        linear-gradient(145deg, rgba(45, 17, 70, .76), rgba(5, 3, 10, .97) 55%),
        url("../img/client-bg.png") center / cover;
    box-shadow: inset 0 0 35px rgba(131, 41, 209, .10), 0 0 25px rgba(112, 34, 184, .34);
}

.tm-auth-card::before,
.tm-auth-card::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border-style: solid;
    border-color: #b86ef0;
    pointer-events: none;
}

.tm-auth-card::before {
    top: 8px;
    left: 8px;
    border-width: 1px 0 0 1px;
}

.tm-auth-card::after {
    right: 8px;
    bottom: 8px;
    border-width: 0 1px 1px 0;
}

.tm-auth-card--wide { width: min(760px, 100%); }

.tm-auth-card__crest {
    position: absolute;
    top: -31px;
    left: 50%;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    transform: translateX(-50%) rotate(45deg);
    border: 1px solid #d1a1ff;
    color: #fff;
    background: linear-gradient(135deg, #7a34b5, #210c35);
    box-shadow: 0 0 16px rgba(184, 96, 255, .72);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 8px #e1b9ff;
}

.tm-auth-card__crest::first-letter { transform: rotate(-45deg); }

.tm-form { display: grid; gap: 17px; }

.tm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 18px;
}

.tm-form .form-group { margin: 0; }

.tm-form .form-label {
    display: block;
    margin-bottom: 7px;
    color: #cbb4db;
    font-size: 12px;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.tm-form .form-input {
    min-height: 45px;
    padding: 0 13px;
}

.tm-field-note {
    display: block;
    margin-top: 6px;
    color: #7f6e8e;
    font-size: 11px;
}

.tm-submit {
    width: 100%;
    min-height: 48px !important;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.tm-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 2px;
}

.tm-auth-links a,
.tm-form-bottom a {
    color: #c984f4;
    font-size: 12px;
    text-decoration: none;
}

.tm-auth-links a:hover,
.tm-form-bottom a:hover { color: #edceff; }

.tm-form-bottom {
    margin: -5px 0 0;
    color: #877494;
    text-align: center;
    font-size: 12px;
}

.tm-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ad99bb;
    font-size: 12px;
    line-height: 1.5;
}

.tm-terms input {
    width: 16px !important;
    min-height: 16px !important;
    margin-top: 2px;
    accent-color: #8f42d1;
}

.tm-captcha { display: flex; justify-content: center; }

.tm-state-card {
    max-width: 620px;
    margin: 50px auto;
    padding: 35px;
    border: 1px solid rgba(181, 105, 239, .55);
    background: rgba(10, 5, 17, .88);
    text-align: center;
    box-shadow: var(--tm-shadow);
}

.tm-state-card strong { color: #ead7f8; font-size: 21px; }
.tm-state-card p { color: #9e8aac; }

.tm-progress {
    width: min(440px, 100%);
    margin: 30px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-progress > div {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #6f607c;
}

.tm-progress b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #604176;
    background: #0a0610;
    transform: rotate(45deg);
}

.tm-progress span { font-size: 11px; text-transform: uppercase; }

.tm-progress i {
    width: 120px;
    height: 1px;
    margin: 0 12px 19px;
    background: #382442;
}

.tm-progress .is-active,
.tm-progress .is-complete { color: #d6b2ed; }

.tm-progress .is-active b,
.tm-progress .is-complete b {
    border-color: #c27af5;
    background: #572184;
    box-shadow: 0 0 12px rgba(169, 77, 238, .58);
}

.tm-code-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 19px;
}

.tm-ranking-switch {
    display: flex;
    gap: 7px;
    padding: 5px;
    border: 1px solid rgba(154, 86, 211, .4);
    background: rgba(4, 2, 8, .55);
}

.tm-ranking-switch a {
    min-width: 92px;
    padding: 9px 13px;
    color: #9c88aa;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
}

.tm-ranking-switch a:hover,
.tm-ranking-switch a.is-active {
    color: #fff;
    background: linear-gradient(180deg, #6b309c, #250d3b);
    box-shadow: 0 0 10px rgba(141, 53, 218, .38);
}

.tm-ranking-frame {
    overflow: hidden;
    border: 1px solid rgba(171, 98, 230, .48);
    background: rgba(4, 2, 8, .72);
    box-shadow: inset 0 0 25px rgba(124, 38, 195, .07);
}

.tm-ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.tm-ranking-table thead th {
    height: 50px;
    padding: 0 13px;
    border-bottom: 1px solid rgba(198, 127, 251, .52);
    color: #dcc3ed;
    background: linear-gradient(180deg, rgba(73, 28, 110, .94), rgba(15, 7, 23, .98)) !important;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tm-ranking-table tbody tr {
    transition: background .18s ease, box-shadow .18s ease;
}

.tm-ranking-table tbody tr:nth-child(even) {
    background: rgba(77, 25, 116, .07);
}

.tm-ranking-table tbody tr:hover {
    background: rgba(111, 39, 168, .18);
    box-shadow: inset 3px 0 0 #a95ee5;
}

.tm-ranking-table td {
    height: 58px;
    padding: 8px 13px;
    border-bottom: 1px solid rgba(148, 78, 200, .16) !important;
    color: #bcaac8;
    vertical-align: middle;
}

.tm-ranking-table .player-name-cell strong { color: #e4d3ef; }

.tm-rank-number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(126, 75, 158, .56);
    color: #a993b7;
    background: rgba(9, 5, 14, .75);
    transform: rotate(45deg);
}

.tm-top-rank .tm-rank-number {
    color: #fff;
    border-color: #c788f2;
    background: #592184;
    box-shadow: 0 0 10px rgba(169, 78, 233, .58);
}

.tm-level-badge {
    display: inline-block;
    min-width: 40px;
    padding: 5px 8px;
    border: 1px solid rgba(173, 101, 226, .44);
    color: #d9b2f4;
    background: rgba(74, 27, 111, .42);
    text-align: center;
}

.tm-empire {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tm-empire img,
.tm-ranking-table .kingdom-map-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(196, 128, 246, .45);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 9px rgba(117, 42, 182, .40);
}

.tm-empire small { color: #9987a5; }

.tm-pagination {
    margin-top: 22px;
    justify-content: center;
}

.tm-pagination .pagination-btn,
.tm-pagination .pagination-current {
    min-width: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
    text-decoration: none;
}

/* Panel gracza — zachowana logika CMS, nowa oprawa */
.tm-account-page .account-info-box,
.tm-account-page .panel-section-wrapper {
    border: 1px solid rgba(171, 99, 228, .48) !important;
    background: rgba(6, 3, 11, .76) !important;
    box-shadow: inset 0 0 25px rgba(125, 39, 197, .07);
}

.tm-account-page .account-info-box {
    margin-bottom: 22px;
}

.tm-account-page .account-info-header,
.tm-account-page .panel-section-header {
    padding: 15px 18px !important;
    border-bottom: 1px solid rgba(185, 112, 241, .46) !important;
    color: #ead9f7 !important;
    background: linear-gradient(180deg, rgba(73, 28, 111, .90), rgba(16, 7, 25, .96)) !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tm-account-page .account-info-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px !important;
    background: rgba(155, 87, 210, .16);
}

.tm-account-page .info-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px !important;
    border: 0 !important;
    background: rgba(6, 3, 11, .94);
}

.tm-account-page .info-label { color: #9784a4 !important; }
.tm-account-page .info-value { color: #d6b1ed !important; font-weight: 700; }

.tm-account-page .panel-section {
    margin-top: 12px;
    border: 1px solid rgba(163, 91, 219, .38);
    cursor: pointer;
}

.tm-account-page .panel-section:hover {
    border-color: rgba(205, 141, 255, .72);
    box-shadow: 0 0 12px rgba(134, 45, 210, .24);
}

.tm-account-page .panel-section-content {
    padding: 19px !important;
    border: 1px solid rgba(154, 85, 207, .25);
    border-top: 0;
    background: rgba(4, 2, 8, .74);
}

.tm-account-page .panel-note {
    color: #9e8cad;
    line-height: 1.6;
}

.tm-account-page .form {
    max-width: 620px;
}

.tm-account-page .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tm-account-page .job-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 7px rgba(166, 83, 236, .4));
}

@media (max-width: 760px) {
    .tm-subpage__header--row {
        align-items: flex-start;
        flex-direction: column;
    }
    .tm-form-grid { grid-template-columns: 1fr; }
    .tm-auth-card { padding: 46px 20px 28px; }
    .tm-ranking-frame { overflow-x: auto; }
    .tm-ranking-table { min-width: 690px; }
    .tm-account-page .account-info-content { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .tm-auth-links { flex-direction: column; text-align: center; }
    .tm-ranking-switch { width: 100%; }
    .tm-ranking-switch a { flex: 1; }
}


/* ===== TowerMT2 — etap 3: animacje, kryształy, światło i pełna responsywność ===== */
:root {
    --tm-scroll: 0px;
}

body {
    overflow-x: hidden;
    background-position:
        center calc(var(--tm-scroll) * -0.035),
        center top;
}

.client-page-shell {
    position: relative;
    z-index: 2;
}

.tm-particles,
.tm-mist,
.tm-crystal {
    position: fixed;
    pointer-events: none;
    user-select: none;
}

.tm-particles {
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.tm-particle {
    position: absolute;
    left: var(--x);
    bottom: -20px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    opacity: var(--opacity);
    background: #d6adff;
    box-shadow:
        0 0 6px #bd76ff,
        0 0 14px rgba(134, 56, 230, .85);
    animation: tm-particle-rise var(--duration) linear var(--delay) infinite;
}

.tm-mist {
    z-index: 1;
    width: 80vw;
    height: 42vh;
    border-radius: 50%;
    filter: blur(55px);
    opacity: .11;
    background: radial-gradient(ellipse, rgba(152, 77, 255, .52), transparent 68%);
    animation: tm-mist-drift 24s ease-in-out infinite alternate;
}

.tm-mist--one {
    left: -18vw;
    top: 24vh;
}

.tm-mist--two {
    right: -22vw;
    top: 48vh;
    animation-duration: 31s;
    animation-direction: alternate-reverse;
}

.tm-crystal {
    z-index: 3;
    bottom: -28px;
    width: clamp(120px, 15vw, 220px);
    height: min(55vh, 520px);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .78;
    filter:
        drop-shadow(0 0 11px rgba(163, 81, 255, .75))
        drop-shadow(0 0 32px rgba(91, 28, 174, .55));
    animation: tm-crystal-breathe 4.8s ease-in-out infinite;
}

.tm-crystal--left {
    left: -22px;
    background-image: url("../img/crystal-left.svg");
}

.tm-crystal--right {
    right: -22px;
    background-image: url("../img/crystal-right.svg");
    transform: scaleX(-1);
    animation-name: tm-crystal-breathe-right;
}

.client-header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 59% 15%, rgba(231, 204, 255, .14), transparent 8%),
        radial-gradient(circle at 59% 15%, rgba(158, 74, 255, .18), transparent 22%);
    mix-blend-mode: screen;
    animation: tm-moon-pulse 5.5s ease-in-out infinite;
}

.client-brand img {
    animation: tm-logo-float 5.2s ease-in-out infinite;
}

.client-nav,
.client-panel,
.client-window {
    isolation: isolate;
}

.client-nav::after,
.client-panel::after,
.client-window::after,
.tm-auth-card::after,
.tm-ranking-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;
    background:
        linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.15) 48%, transparent 60% 100%);
    background-size: 220% 100%;
    animation: tm-shimmer 8s linear infinite;
}

.client-panel,
.client-window,
.tm-auth-card,
.tm-ranking-frame {
    position: relative;
}

.client-panel:hover,
.client-window:hover {
    border-color: rgba(211, 159, 255, .90);
    box-shadow:
        inset 0 0 0 1px rgba(239, 215, 255, .08),
        0 0 18px rgba(145, 58, 230, .52),
        0 0 45px rgba(62, 17, 120, .28);
}

.client-panel__title,
.client-window__bar {
    overflow: hidden;
}

.client-panel__title::before,
.client-panel__title::after,
.client-window__gem {
    animation: tm-gem-pulse 2.2s ease-in-out infinite;
}

.client-play-button,
.client-action--primary,
.tm-submit,
.client-nav > a {
    overflow: hidden;
}

.client-play-button::after,
.client-action--primary::after,
.tm-submit::after,
.client-nav > a::after {
    content: "";
    position: absolute;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,.28), transparent 68%);
    transform: translate(-50%, -50%);
    transition: width .35s ease, height .35s ease, opacity .35s ease;
    opacity: 0;
}

.client-play-button:hover::after,
.client-action--primary:hover::after,
.tm-submit:hover::after,
.client-nav > a:hover::after {
    width: 220px;
    height: 220px;
    opacity: 1;
}

.client-play-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    clip-path: inherit;
    background:
        conic-gradient(from 0deg, transparent, #dcb6ff, transparent 18%, transparent 75%, #7b2bc2, transparent);
    animation: tm-border-spin 4s linear infinite;
}

.client-home-hero {
    background-position:
        center calc(var(--tm-scroll) * -0.02),
        center;
}

.client-home-hero__content {
    animation: tm-hero-enter .9s cubic-bezier(.2,.75,.2,1) both;
}

.client-home-hero h2 {
    animation: tm-title-glow 3.8s ease-in-out infinite;
}

.client-tiles a {
    position: relative;
    overflow: hidden;
}

.client-tiles a::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 100%, rgba(172, 91, 255, .28), transparent 55%);
    transition: opacity .25s ease;
}

.client-tiles a:hover::before { opacity: 1; }

.tm-reveal {
    opacity: 0;
    transform: translateY(26px) scale(.985);
}

.tm-revealed {
    opacity: 1;
    transform: none;
    transition:
        opacity .7s ease var(--reveal-delay, 0ms),
        transform .7s cubic-bezier(.2,.75,.2,1) var(--reveal-delay, 0ms);
}

.tm-ranking-table tbody tr {
    animation: tm-row-enter .45s ease both;
}

.tm-ranking-table tbody tr:nth-child(1) { animation-delay: .03s; }
.tm-ranking-table tbody tr:nth-child(2) { animation-delay: .06s; }
.tm-ranking-table tbody tr:nth-child(3) { animation-delay: .09s; }
.tm-ranking-table tbody tr:nth-child(4) { animation-delay: .12s; }
.tm-ranking-table tbody tr:nth-child(5) { animation-delay: .15s; }

.tm-top-rank--1 .tm-rank-number {
    animation: tm-first-rank 2.4s ease-in-out infinite;
}

.client-login input,
.tm-form .form-input {
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        transform .2s ease;
}

.client-login input:focus,
.tm-form .form-input:focus {
    transform: translateY(-1px);
    background: rgba(15, 6, 24, .94) !important;
}

.mobile-menu-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(192, 121, 247, .7);
    background: rgba(9, 4, 15, .94);
    box-shadow: 0 0 14px rgba(136, 49, 219, .38);
}

.mobile-menu-toggle .hamburger-line {
    width: 23px;
    height: 2px;
    background: #dec1f4;
    transition: transform .22s ease, opacity .22s ease;
}

body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@keyframes tm-particle-rise {
    0% {
        transform: translate3d(0, 0, 0) scale(.6);
        opacity: 0;
    }
    10% { opacity: var(--opacity); }
    70% { opacity: var(--opacity); }
    100% {
        transform: translate3d(var(--drift), -115vh, 0) scale(1.35);
        opacity: 0;
    }
}

@keyframes tm-mist-drift {
    0% { transform: translate3d(-3vw, 0, 0) scale(1); }
    100% { transform: translate3d(12vw, -4vh, 0) scale(1.12); }
}

@keyframes tm-crystal-breathe {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(163,81,255,.65)) drop-shadow(0 0 28px rgba(91,28,174,.45)); }
    50% { transform: translateY(-8px) scale(1.025); filter: drop-shadow(0 0 16px rgba(208,153,255,.92)) drop-shadow(0 0 42px rgba(111,38,203,.72)); }
}

@keyframes tm-crystal-breathe-right {
    0%, 100% { transform: scaleX(-1) translateY(0) scale(1); }
    50% { transform: scaleX(-1) translateY(-8px) scale(1.025); }
}

@keyframes tm-moon-pulse {
    0%, 100% { opacity: .72; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.2); }
}

@keyframes tm-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes tm-shimmer {
    0% { background-position: 180% 0; }
    100% { background-position: -80% 0; }
}

@keyframes tm-gem-pulse {
    0%, 100% { box-shadow: 0 0 7px #a34de9; filter: brightness(.9); }
    50% { box-shadow: 0 0 15px #d4a4ff; filter: brightness(1.25); }
}

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

@keyframes tm-hero-enter {
    from { opacity: 0; transform: translateX(-35px); }
    to { opacity: 1; transform: none; }
}

@keyframes tm-title-glow {
    0%, 100% { text-shadow: 0 0 11px #7021b4, 0 3px 3px #000; }
    50% { text-shadow: 0 0 17px #a64df0, 0 0 35px rgba(123,43,198,.48), 0 3px 3px #000; }
}

@keyframes tm-row-enter {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: none; }
}

@keyframes tm-first-rank {
    0%, 100% { box-shadow: 0 0 10px rgba(169,78,233,.58); }
    50% { box-shadow: 0 0 20px rgba(216,160,255,.92), 0 0 34px rgba(131,45,212,.55); }
}

@media (max-width: 1180px) {
    .tm-crystal {
        width: 130px;
        opacity: .48;
    }
    .client-grid {
        padding-inline: 6px;
    }
}

@media (max-width: 820px) {
    .mobile-menu-toggle { display: flex; }

    body.mobile-menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 12;
        background: rgba(2, 1, 5, .72);
        backdrop-filter: blur(3px);
    }

    .client-nav {
        overflow-y: auto;
        box-shadow: -10px 0 35px rgba(0,0,0,.62);
    }

    .client-nav > a,
    .client-nav .dropdown__toggle {
        min-height: 52px;
        border-bottom: 1px solid rgba(151, 83, 205, .2);
    }

    .tm-crystal {
        width: 100px;
        height: 300px;
        opacity: .30;
    }

    .client-sidebar--left,
    .client-sidebar--right {
        gap: 14px;
    }
}

@media (max-width: 620px) {
    body {
        background-attachment: scroll;
        background-position: center top, center top;
    }

    .tm-mist { opacity: .06; }
    .tm-crystal { display: none; }

    .client-header {
        min-height: 250px;
    }

    .client-brand img {
        width: min(340px, 84vw);
    }

    .client-window__bar h1 {
        font-size: 16px;
        text-align: center;
    }

    .client-home-hero h2 {
        font-size: 39px;
    }

    .client-home-hero p {
        font-size: 14px;
    }

    .client-tiles a {
        min-height: 105px;
    }

    .tm-subpage__header h2 {
        font-size: 31px;
    }

    .tm-auth-card {
        margin-top: 38px;
    }

    .tm-ranking-table td,
    .tm-ranking-table thead th {
        padding-inline: 10px;
    }
}

@media (max-width: 390px) {
    .client-main { padding-inline: 6px; }

    .client-window__body { padding-inline: 10px; }

    .client-home-hero {
        margin-inline: -10px;
    }

    .client-home-hero__content {
        padding-inline: 18px;
    }

    .client-home-hero h2 {
        font-size: 34px;
    }

    .tm-auth-card {
        padding-inline: 14px;
    }
}

@media (hover: none) {
    .client-panel:hover,
    .client-window:hover {
        border-color: var(--tm-border);
        box-shadow: inset 0 0 0 1px rgba(234,205,255,.055), var(--tm-shadow);
    }
}

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

    .tm-particles,
    .tm-mist {
        display: none;
    }

    .tm-reveal {
        opacity: 1;
        transform: none;
    }
}


/* ===== Poprawka Etapu 3 ===== */
.client-brand--text a {
    text-decoration: none;
}

.client-brand--text strong {
    display: block;
    color: #d9a2ff;
    font-size: clamp(42px, 6vw, 82px);
    line-height: .9;
    letter-spacing: 4px;
    text-shadow:
        0 0 8px #c36cff,
        0 0 24px rgba(133, 43, 221, .88),
        0 4px 2px rgba(0, 0, 0, .85);
}

.client-brand--text span {
    padding-left: 4px;
    margin-top: 12px;
}

.client-home-hero {
    background:
        linear-gradient(90deg, rgba(3,1,7,.90), rgba(7,3,14,.22) 58%, rgba(3,1,7,.38)),
        url("../img/client-bg.png") center / cover no-repeat;
}

.client-home-hero h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 820px) {
    .client-brand--text strong {
        font-size: clamp(38px, 13vw, 64px);
        text-align: center;
    }
}
