* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: auto; /* 🔥 FIX na drugi ekran */
    font-family: sans-serif;
    background: url("bg4k.jpeg") center/cover no-repeat fixed;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}

body {
    display: flex;
    min-height: 100vh;
}

.mobileNavToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(222,186,92,0.35);
    border-radius: 10px;
    background: rgba(12,14,18,0.98);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1205;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.topAvatarLink {
    position: fixed;
    top: 14px;
    right: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(222,186,92,0.65);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35), 0 0 16px rgba(222,186,92,0.2);
    overflow: hidden;
    z-index: 1200;
    background: rgba(17,19,24,0.95);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: none;
}

.topAvatarLink.is-visible {
    display: block;
}

.topAvatarLink:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(222,186,92,0.95);
    box-shadow: 0 10px 22px rgba(0,0,0,0.42), 0 0 20px rgba(222,186,92,0.35);
}

.topAvatarImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SIDEBAR PC */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    overflow-y: auto;
    background: rgba(10,12,16,0.75);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 0;
}

.logoLink {
    display: block;
    width: 100%;
    margin-top: 52px;
    margin-bottom: 15px;
}

/* LOGO */
#logo {
    width: 85%;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* NAV */
.navLinks {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebt {
    width: 85%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17,19,24,0.75);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
}

.sidebt:hover {
    background: #1f2126;
    color: #deba5c;
    box-shadow: 0 0 10px #deba5c66;
}

/* FOOTER */
#sidebar-footer {
    margin-top: 0;
    margin-bottom: 0;
    padding: 12px 20px 20px;
    font-size: 12px;
    color: #deba5c;
    text-align: center;
}

/* PANEL */
#panel {
    flex: 1;
    margin-left: 220px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.navLinks {
    position: static;
}

/* BOX */
.panelBox {
    background: rgba(10,12,16,0.92);
    border-radius: 20px;
    padding: 30px;
    max-width: 850px;
    margin: auto;
    color: white;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.hasFloatingAction {
    position: relative;
}

.bgPolicyBtn {
    position: absolute;
    top: 14px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(222,186,92,0.22);
    background: rgba(222,186,92,0.08);
    color: rgba(222,186,92,0.85);
    font-size: 12px;
    text-decoration: none;
    opacity: 0.72;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}

.bgPolicyBtn:hover {
    opacity: 1;
    background: rgba(222,186,92,0.14);
    border-color: rgba(222,186,92,0.44);
}

.subtitle {
    margin: 8px 0 24px;
    color: #c6c6c6;
    text-align: center;
}

.title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-align: center;
}

.profileForm {
    margin: 24px auto 0;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profileForm label,
.gamePickerHint {
    color: #deba5c;
    margin: 0;
    font-weight: 700;
}

.profileForm textarea {
    width: 100%;
    min-height: 96px;
    border-radius: 12px;
    border: 1px solid rgba(222,186,92,0.35);
    background: rgba(17,19,24,0.72);
    color: #fff;
    padding: 12px;
    resize: vertical;
    outline: none;
}

.profileGamesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.profileGameItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(222,186,92,0.2);
    background: rgba(17,19,24,0.65);
    padding: 10px 8px;
    cursor: pointer;
}

.profileGameItem.selected {
    border-color: rgba(222,186,92,0.7);
    box-shadow: 0 0 0 2px rgba(222,186,92,0.22) inset;
}

.profileGameItem input {
    display: none;
}

.profileGameItem img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.profileGameItem span {
    font-size: 12px;
    color: #d8d8d8;
}

.searchWrap {
    margin: 0 auto 22px;
    max-width: 480px;
}

.searchInput {
    width: 100%;
    border: 1px solid rgba(222,186,92,0.24);
    border-radius: 12px;
    background: rgba(17,19,24,0.72);
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.searchInput::placeholder {
    color: #8f8f8f;
}

.searchInput:focus {
    border-color: rgba(222,186,92,0.62);
    box-shadow: 0 0 0 3px rgba(222,186,92,0.12);
}

.topUsers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.usersDivider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 22px;
    color: #deba5c;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
}

.usersDivider::before,
.usersDivider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(222,186,92,0), rgba(222,186,92,0.45), rgba(222,186,92,0));
}

/* HOME */
.homepanel {
    display: flex;
    flex-wrap: wrap;
}

.home_left, .home_right {
    flex: 1;
}

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

.home_left img {
    width: 80%;
}

/* SERVER STATS GRID */
.serverStatsGrid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.statCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(222,186,92,0.07);
    border: 1px solid rgba(222,186,92,0.18);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 76px;
    flex: 1;
}

.statCardValue {
    font-size: 1.35em;
    font-weight: 700;
    color: #deba5c;
    line-height: 1.2;
}

.statCardLabel {
    font-size: 0.72em;
    color: #999;
    margin-top: 3px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.statActivityLine {
    margin-top: 8px;
    font-size: 0.78em;
    color: #888;
    min-height: 16px;
}

/* DISCORD BTN */
.discordBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    background: #5865F2;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.discordBtn:hover {
    background: #4f59d7;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(88,101,242,0.28);
}

.homeActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
}

.discordLoginBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(222,186,92,0.45);
    background: linear-gradient(180deg, rgba(222,186,92,0.22), rgba(222,186,92,0.10));
    color: #deba5c;
    font-weight: 700;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.discordLoginBtn:hover {
    background: linear-gradient(180deg, rgba(222,186,92,0.30), rgba(222,186,92,0.16));
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(222,186,92,0.20);
}

.loginHint {
    margin-top: 12px;
    color: #aaaaaa;
    font-size: 13px;
}

/* GRY */
.gry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gra {
    text-decoration: none;
    color: white;
    text-align: center;
    background: rgba(17,19,24,0.72);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(222,186,92,0.28);
    transition: 0.2s, box-shadow 0.18s, border-color 0.18s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.28);
}

.gra img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.gra:hover {
    transform: scale(1.05) translateY(-4px);
    border-color: rgba(222,186,92,0.50);
    box-shadow: 0 12px 24px rgba(222,186,92,0.18);
}

/* USERS */
.userlist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.usercard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 18px 14px;
    border-radius: 16px;
    background: rgba(17,19,24,0.72);
    border: 1px solid rgba(222,186,92,0.18);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.topUserCard {
    min-height: 270px;
    justify-content: center;
}

.topUserCard:nth-child(1) {
    border-color: rgba(255, 215, 0, 0.42);
}

.topUserCard:nth-child(2) {
    border-color: rgba(192, 192, 192, 0.42);
}

.topUserCard:nth-child(3) {
    border-color: rgba(205, 127, 50, 0.42);
}

.listUserCard {
    min-height: 220px;
}

.useravatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(222,186,92,0.55);
}

.rankBadge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(222,186,92,0.16);
    color: #deba5c;
    font-size: 12px;
    font-weight: bold;
}

.username {
    margin: 0;
    font-weight: bold;
    color: #fff;
    word-break: break-word;
}

.userid {
    margin: 0;
    font-size: 12px;
    color: #9a9a9a;
    word-break: break-all;
}

.userBio {
    margin: 0;
    font-size: 13px;
    color: #d2d2d2;
    line-height: 1.35;
    min-height: 34px;
}

.favoriteGames {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.favoriteGames img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(222,186,92,0.32);
}

.userstats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    color: #deba5c;
}

.stateMessage {
    margin: 0;
    padding: 24px 0;
    text-align: center;
    color: #deba5c;
}

/* O NAS */
#divpfp {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.person {
    background: rgba(17,19,24,0.90);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(222,186,92,0.28);
    text-align: center;
    width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.28);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.person:hover {
    transform: translateY(-4px);
    border-color: rgba(222,186,92,0.50);
    box-shadow: 0 12px 24px rgba(222,186,92,0.18);
}

.person img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.name {
    margin: 10px 0;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.socials img {
    width: 24px;
}

/* BARONOWIE */
.baronlist {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.baron {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(17,19,24,0.90);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(222,186,92,0.28);
    box-shadow: 0 8px 16px rgba(0,0,0,0.28);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.baron:hover {
    transform: translateY(-2px);
    border-color: rgba(222,186,92,0.50);
    box-shadow: 0 12px 24px rgba(222,186,92,0.18);
}

.rankicon {
    width: 40px;
}

.baronname {
    font-weight: bold;
}

.role {
    font-size: 12px;
    color: #aaa;
}

/* ========== SIDEBAR ACTIVE ========== */
.sidebt-active {
    background: rgba(222,186,92,0.18);
    color: #deba5c !important;
    box-shadow: 0 0 10px rgba(222,186,92,0.22);
}

/* ========== PANEL PAGE LAYOUT ========== */
.panelBox.panelWrap {
    max-width: 1160px;
}

.profilePageHost {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.playerProfileWrap {
    width: min(1050px, calc(100vw - 40px));
    max-width: 1050px !important;
    margin: 0 auto;
}

/* Układ tylko dla profilu gracza (uzytkownik.html) */
.playerProfileWrap .panelCols {
    display: flex !important;
    justify-content: center;
}

.playerProfileWrap .panelLeft {
    width: min(100%, 960px) !important;
    max-width: 960px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
    gap: 18px !important;
    align-items: start;
}

/* Fallback odporne na cache HTML: wymuszenie układu po ID kontenera profilu */
#profileBox {
    width: min(1120px, calc(100vw - 56px)) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#profileBox > .panelBox,
#profileBox .panelBox.panelWrap {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
}

#profileBox .panelCols {
    display: block !important;
}

#profileBox .panelLeft {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
    gap: 18px !important;
    align-items: start;
}

#profileBox .profileUserCard,
#profileBox .profileStatsCard,
#profileBox .profileSection,
#profileBox .riotProfileCard {
    width: 100% !important;
    max-width: none !important;
}

.playerProfileWrap .profileUserCard,
.playerProfileWrap .profileStatsCard,
.playerProfileWrap .profileSection,
.playerProfileWrap .riotProfileCard {
    margin-bottom: 0;
    width: 100% !important;
    max-width: none !important;
}

.panelPageHeader {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(222,186,92,0.18);
}

.panelPageHeader .title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #deba5c;
    text-transform: uppercase;
}

.panelPageHeader .subtitle {
    margin: 0;
}

.panelCols {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.panelLeft {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.panelRight {
    display: block;
    min-width: 0;
}

.panelCard {
    width: 100%;
    background: rgba(17,19,24,0.90);
    border: 1px solid rgba(222,186,92,0.30);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(222,186,92,0.06), 0 10px 24px rgba(0,0,0,0.35);
}

#panelUserCard .useravatar {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(222,186,92,0.70);
    box-shadow: 0 0 22px rgba(222,186,92,0.25);
}

.panelLogoutBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(231,76,60,0.40);
    background: linear-gradient(180deg, rgba(231,76,60,0.16), rgba(231,76,60,0.07));
    color: #e87878;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    margin-top: 12px;
}

.panelLogoutBtn:hover {
    background: linear-gradient(180deg, rgba(231,76,60,0.27), rgba(231,76,60,0.13));
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(231,76,60,0.16);
}

.panelSectionTitle {
    color: #deba5c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(222,186,92,0.20);
}

.profileFormPanel {
    margin: 0 !important;
    max-width: 100% !important;
}

.panelSaveBtn {
    margin-top: 4px;
    width: 100%;
    justify-content: center;
}

.saveStatus {
    color: #deba5c;
    font-size: 13px;
    margin: 10px 0 0;
    min-height: 18px;
    text-align: center;
}

/* ========== RIOT GAMES ========== */
.riotSection {
    margin-top: 4px;
}

.riotHint {
    font-size: 13px;
    color: #aaa;
    margin: 0 0 14px;
    line-height: 1.5;
}

.riotHint strong {
    color: #deba5c;
}

.riotInputRow {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.riotIdField {
    flex: 1;
    min-width: 150px;
    height: 46px;
    padding: 0 14px;
}

.riotRegionSelect {
    height: 46px;
    border: 1px solid rgba(222,186,92,0.24);
    border-radius: 12px;
    background: rgba(17,19,24,0.72);
    color: #fff;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.riotRegionSelect:focus {
    border-color: rgba(222,186,92,0.62);
}

.riotConnectBtn {
    white-space: nowrap;
    flex-shrink: 0;
    height: 46px;
}

.riotStats {
    margin-top: 16px;
}

.riotStatsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.riotStatCard {
    background: rgba(17,19,24,0.80);
    border: 1px solid rgba(222,186,92,0.20);
    border-radius: 14px;
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.riotCardLabel {
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #deba5c;
    font-weight: 700;
    margin-bottom: 6px;
}

.riotRankIcon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.riotRankName {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.riotRR {
    font-size: 24px;
    font-weight: 900;
    color: #deba5c;
    line-height: 1.1;
}

.riotWinRate {
    font-size: 38px;
    font-weight: 900;
    color: #deba5c;
    line-height: 1;
    margin: 8px 0 4px;
}

.riotWL {
    font-size: 13px;
    color: #aaa;
}

.riotTrackerWrap {
    text-align: center;
    margin-top: 14px;
}

.riotTrackerLink {
    color: #deba5c;
    font-size: 13px;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.riotTrackerLink:hover {
    opacity: 1;
    text-decoration: underline;
}

.riotMsg {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 10px;
    margin: 0;
}

.riotError {
    color: #e87878;
}

.riotApiKeyWrap {
    background: rgba(222,186,92,0.05);
    border: 1px solid rgba(222,186,92,0.18);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 4px;
}

.riotApiKeyStatus {
    font-size: 12px;
    color: #888;
    min-height: 16px;
    margin-top: 2px;
}

.riotApiKeyStatus.riotApiKeyOk {
    color: #6fcf97;
}

/* ================= */
/* 📱 MOBILE FINAL */
/* ================= */

@media (max-width: 768px) {

    .bgPolicyBtn {
        top: 10px;
        right: 12px;
        font-size: 11px;
        min-height: 28px;
        padding: 4px 10px;
    }

    body {
        display: flex;
        flex-direction: column;
    }

    .homeActions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .discordBtn,
    .discordLoginBtn {
        text-align: center;
        width: 100%;
        min-height: 46px;
        border-radius: 10px;
    }

    .searchWrap {
        margin-bottom: 16px;
        max-width: 100%;
    }

    .topUsers {
        grid-template-columns: 1fr;
    }

    .usersDivider {
        margin-top: 20px;
    }

    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 64px;
        min-height: 64px;
        padding: 0 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        background: rgba(10,12,16,0.96);
        backdrop-filter: blur(12px);
        z-index: 1200;
    }

    .logoLink {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        margin: 0;
    }

    #logo {
        width: 36px;
        margin: 0;
    }

    .mobileNavToggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(222,186,92,0.35);
        border-radius: 10px;
        background: rgba(12,14,18,0.98);
        color: #fff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        z-index: 1305;
        box-shadow: 0 6px 16px rgba(0,0,0,0.35);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .topAvatarLink {
        position: fixed;
        top: 11px;
        right: 10px;
        width: 42px;
        height: 42px;
        z-index: 1304;
    }

    .navLinks {
        display: none !important;
        position: fixed;
        top: 64px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        background: rgba(12,14,18,0.98);
        border: 1px solid rgba(222,186,92,0.25);
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 14px 40px rgba(0,0,0,0.45);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        z-index: 1303;
        box-sizing: border-box;
    }

    .navLinks.open {
        display: flex !important;
    }

    .sidebt {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14px;
        justify-content: center;
        border-radius: 10px;
    }

    #sidebar-footer {
        display: block;
        margin-top: 8px;
        padding: 12px 8px 4px;
        font-size: 11px;
        color: #deba5c;
        text-align: center;
        border-top: 1px solid rgba(222,186,92,0.18);
        width: 100%;
        box-sizing: border-box;
    }

    #sidebar-footer p {
        margin: 4px 0;
    }

    #panel {
        margin: 0;
        padding: 84px 10px 10px;
    }

    .panelBox {
        padding: 14px;
    }

    .playerProfileWrap {
        width: min(100%, calc(100vw - 14px));
    }

    .playerProfileWrap .panelLeft {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    #profileBox {
        width: min(100%, calc(100vw - 14px)) !important;
    }

    #profileBox .panelLeft {
        grid-template-columns: 1fr !important;
    }

    .panelCols {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .panelLeft {
        flex: unset;
        width: 100%;
    }

    .panelCard {
        width: 100%;
    }

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

    .home_left,
    .home_right {
        flex: 100%;
        text-align: center;
    }

    .home_left img {
        width: 60%;
    }
}

@media (max-width: 740px) {
    #panel {
        padding-top: 82px;
    }

    .sidebt {
        font-size: 13px;
    }

    .topAvatarLink {
        width: 38px;
        height: 38px;
    }
}

/* ========================================= */
/* 👤  STRONA PROFILU UŻYTKOWNIKA (uzytkownik.html) */
/* ========================================= */

.upBackLink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #deba5c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.75;
    margin-bottom: 26px;
    transition: opacity 0.18s;
}

.upBackLink:hover {
    opacity: 1;
    text-decoration: underline;
}

.upHero {
    display: flex;
    gap: 28px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(222,186,92,0.18);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.upAvatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(222,186,92,0.65);
    box-shadow: 0 0 28px rgba(222,186,92,0.22);
    flex-shrink: 0;
}

.upHeroInfo {
    flex: 1;
    min-width: 0;
}

.upUsername {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    word-break: break-word;
}

.upStatsRow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.upStat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(222,186,92,0.08);
    border: 1px solid rgba(222,186,92,0.20);
    border-radius: 12px;
    padding: 10px 18px;
    min-width: 70px;
    text-align: center;
}

.upStatVal {
    font-size: 18px;
    font-weight: 900;
    color: #deba5c;
    line-height: 1.1;
}

.upStatLabel {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 3px;
}

.upSection {
    margin-bottom: 24px;
}

.upBio {
    margin: 0;
    font-size: 14px;
    color: #d2d2d2;
    line-height: 1.6;
    white-space: pre-wrap;
}

.upGamesList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upGamesList img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
}

/* Klikalne karty użytkownika na liście */
.usercard.clickable {
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.usercard.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.38), 0 0 0 1px rgba(222,186,92,0.38);
    border-color: rgba(222,186,92,0.50);
}

/* ===== NOWY UJEDNOLICONY STYL PROFILU UŻYTKOWNIKA ===== */

.profileUserName {
    margin: 12px 0 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #d2d2d2;
}

.backLinkBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #deba5c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 6px 0;
    transition: opacity 0.18s;
    opacity: 0.75;
}

.backLinkBtn:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Karta użytkownika w lewej kolumnie */
.profileUserCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px !important;
    background: linear-gradient(135deg, rgba(222,186,92,0.10), rgba(222,186,92,0.04)) !important;
    border: 1px solid rgba(222,186,92,0.32) !important;
    margin-bottom: 16px;
    text-align: center;
}

.profileAvatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(222,186,92,0.75);
    box-shadow: 0 0 28px rgba(222,186,92,0.30);
    flex-shrink: 0;
}

.profileUserInfo {
    text-align: center;
    width: 100%;
}

.profileLevelBadge {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    color: #deba5c;
    line-height: 1;
    letter-spacing: -0.02em;
}

.badgeLabel {
    font-size: 11px;
    margin-left: 8px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 700;
}

.profileXpText {
    margin: 8px 0 0;
    font-size: 13px;
    color: #d2d2d2;
    font-weight: 500;
}

/* Karty statystyk */
.profileStatsCard {
    padding: 20px !important;
    margin-bottom: 16px;
}

.profileStatsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 12px;
}

.profileStatItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(222,186,92,0.10);
    border: 1px solid rgba(222,186,92,0.24);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: transform 0.18s, border-color 0.18s;
}

.profileStatItem:hover {
    transform: translateY(-2px);
    border-color: rgba(222,186,92,0.40);
}

.profileStatValue {
    font-size: 18px;
    font-weight: 900;
    color: #deba5c;
    line-height: 1;
    word-break: break-word;
}

.profileStatLabel {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-top: 6px;
    font-weight: 700;
}

/* Sekcje (O mnie, Gry) */
.profileSection {
    padding: 20px !important;
    margin-bottom: 16px;
}

.profileSection .panelSectionTitle {
    margin: 0 0 14px;
    padding-bottom: 10px;
}

.profileBioText {
    margin: 0;
    font-size: 14px;
    color: #d2d2d2;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.profileGamesList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    justify-items: center;
}

.profileGameIcon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(222,186,92,0.38);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    cursor: pointer;
}

.profileGameIcon:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 20px rgba(222,186,92,0.28);
    border-color: rgba(222,186,92,0.55);
}

/* Karta Valorant */
.riotProfileCard {
    padding: 20px !important;
}

.riotProfileCard .panelSectionTitle {
    margin: 0 0 14px;
}

/* ========= MOBILE RESPONSYWNOŚĆ PROFILU ========= */

@media (max-width: 1024px) {
    .panelLeft {
        flex: 0 0 240px;
    }
}

/* ========== POLITYKA I INNE STRONY ========== */

.panelBox h2, .panelBox h3 {
    margin: 24px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #deba5c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.panelBox p {
    margin: 0 0 12px;
    color: #d2d2d2;
    line-height: 1.6;
    font-size: 14px;
}

.panelBox ul, .panelBox ol {
    margin: 12px 0;
    padding-left: 24px;
    color: #d2d2d2;
    line-height: 1.7;
}

.panelBox li {
    margin-bottom: 6px;
    color: #d2d2d2;
}

.baroninfo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

@media (max-width: 768px) {
    .upHero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .upStatsRow {
        justify-content: center;
    }

    .upUsername {
        font-size: 20px;
    }

    /* Panel profilu na mobile */
    .panelPageHeader {
        padding-bottom: 14px;
        margin-bottom: 18px;
    }

    .panelPageHeader .title {
        font-size: 22px;
        margin-bottom: 4px;
        letter-spacing: 0.04em;
    }

    .profileUserName {
        font-size: 16px;
        margin-top: 8px;
    }

    .panelCols {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }

    .panelLeft {
        flex: 1 1 360px;
        min-width: 300px;
    }

    .panelRight {
        flex: 1 1 300px;
        min-width: 280px;
    }

    @media (max-width: 1100px) {
        .panelCols {
            flex-direction: column;
            align-items: stretch;
        }

        .panelLeft,
        .panelRight {
            flex: 1 1 100%;
            min-width: 0;
        }
    }

    .profileUserCard {
        padding: 16px !important;
    }

    .profileStatsGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .profileAvatar {
        width: 90px;
        height: 90px;
    }

    .profileLevelBadge {
        font-size: 28px;
    }

    .backLinkBtn {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .profileGamesList {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
    }

    .profileGameIcon {
        width: 54px;
        height: 54px;
    }
}
.socials {
    display: flex;
    justify-content: center;
    align-items: center; /* 🔥 NIE ROZCIĄGA */
    gap: 10px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(17,19,24,0.8);
    border: 1px solid rgba(222,186,92,0.25);
    border-radius: 8px;
    transition: 0.2s;
}

.socials a:hover {
    border-color: rgba(222,186,92,0.6);
    box-shadow: 0 0 10px rgba(222,186,92,0.3);
    transform: translateY(-2px);
}

.socials img {
    width: 18px;
    height: 18px;       /* 🔥 IDEALNY KWADRAT */
    object-fit: contain;
    display: block;
}