/* =========================================================
   01. RESET / BAZA
========================================================= */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #111827;
    color: #f9fafb;
    overflow-x: hidden;
    font-size: 12px;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
button.disabled {
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   02. LOGOWANIE / REJESTRACJA
========================================================= */

.auth-screen {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("img/header_bg.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #303030;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 32px;
    color: #f9fafb;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.auth-card h1 {
    margin: 0;
    color: #facc15;
    letter-spacing: 3px;
    font-size: 34px;
    text-align: center;
}

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

.topbar-logo-login-img {
    height: 100px;
    object-fit: contain;
    display: block;
}

.auth-subtitle {
    text-align: center;
    color: #d1d5db;
    margin-bottom: 24px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
}

.auth-tab {
    background: #111827;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
    border-radius: 6px;
    font-weight: 800;
}

.auth-tab.active {
    background: #facc15;
    color: #111827;
}

.auth-form {
    display: none;
}

.active-auth-form {
    display: block;
}

.auth-form label {
    display: block;
    margin: 14px 0 6px;
    color: #e5e7eb;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: #111827;
    color: #f9fafb;
    font-size: 16px;
}

.auth-form input:focus {
    outline: none;
    border-color: #facc15;
}

.auth-main-button {
    width: 100%;
    margin-top: 20px;
    background: #facc15;
    color: #111827;
    border: none;
    padding: 13px 16px;
    border-radius: 6px;
    font-weight: 900;
}

.auth-main-button:hover {
    background: #eab308;
}

.auth-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    display: none;
    font-weight: 700;
}

.auth-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.auth-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}


/* =========================================================
   03. GÓRNY PASEK
========================================================= */

.topbar {
    height: 80px;
    background: #18191b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.053);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #facc15;
}

.topbar-logo-img {
    height: 60px;
    object-fit: contain;
    display: block;
}

.round-info {
    display: flex;
    gap: 18px;
    font-size: 17px;
    color: #e5e7eb;
}

.logout-button {
    justify-self: end;
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 9px 18px;
    border-radius: 6px;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   04. GÓRNY PANEL POSTACI
========================================================= */

.hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("img/header_bg.png");
    background-size: cover;
    background-position: center;
    display: grid;
    grid-template-columns: 260px 280px 340px;
    justify-content: center;
    gap: 64px;
    padding: 36px 56px 44px;
}

.hero-column {
    min-height: 190px;
}

.label {
    margin: 0 0 4px;
    color: #9ca3af;
    font-size: 14px;
}

.value {
    margin: 0 0 14px;
    font-size: 18px;
}

.highlight {
    color: #facc15;
    font-weight: 800;
}

.character-summary h2 {
    margin: 0;
    font-size: 26px;
}

.avatar-box {
    width: 96px;
    height: 96px;
    margin: 14px 0 18px;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    overflow: hidden;
}

.main-player-avatar-img,
.main-player-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.main-player-avatar-img {
    object-fit: cover;
}

.main-player-avatar-placeholder {
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
}


/* =========================================================
   05. STATYSTYKI / ZASOBY / EKWIPUNEK W HEADERZE
========================================================= */

.stats-summary h3 {
    margin: 0 0 18px;
    font-size: 22px;
}

.stat-row {
    max-width: 240px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 18px;
}

.stat-row strong {
    color: #facc15;
    text-align: right;
}



.stat-row span,
.stat-row strong {
    white-space: nowrap;
}

.money-box {
    max-width: 240px;
    margin-top: 18px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.money-box strong {
    color: #facc15;
}

.resources-summary {
    display: flex;
    flex-direction: column;
}

.resource-line {
    display: flex;
    justify-content: space-between;
    max-width: 330px;
    font-size: 18px;
    margin-bottom: 8px;
}

.resource-line strong {
    color: #facc15;
}

.energy-bar {
    max-width: 330px;
    height: 12px;
    background: #111827;
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0 14px;
}

.energy-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #a3e635);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.inventory-title {
    margin-top: 14px;
    margin-bottom: 10px;
    color: #d1d5db;
}

.equipment-grid {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.equipment-slot {
    width: 135px;
    height: 135px;
    background: #1f1f1f;
    border: none;
    border-radius: 6px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
}

.header-equipment-content,
.header-equipment-empty {
    width: 96px;
    height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.header-equipment-img,
.header-equipment-icon,
.header-equipment-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 6px;
}

.header-equipment-img {
    object-fit: cover;
    border: none;
    background: transparent;
}

.header-equipment-icon,
.header-equipment-empty-icon {
    background: transparent;
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    line-height: 1;
}

.header-equipment-name,
.header-equipment-empty-name {
    color: #f9fafb;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    max-width: 96px;
    word-break: break-word;
}

.header-equipment-empty-name {
    color: #9ca3af;
}


/* =========================================================
   06. UKŁAD GŁÓWNY / MENU / TREŚĆ
========================================================= */

.main-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 400px 1fr;
    background: #e5e7eb;
    color: #111827;
}

.sidebar {
    background: #1f1f1f;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-button {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #e5e7eb;
    border: none;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-button:hover,
.menu-button.active {
    background: #494949;
    color: #facc15;
}

.menu-icon {
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.menu-icon i {
    font-size: 16px;
    line-height: 1;
}

.menu-button:hover .menu-icon,
.menu-button.active .menu-icon {
    background: #facc15;
    color: #111827;
    border-color: #facc15;
    border-radius: 4px;
}

.menu-button span:not(.menu-icon):not(.inbox-badge) {
    flex: 1;
}

.content {
    padding: 34px 48px;
    min-width: 0;
}

.content-page {
    display: none;
}

.active-page {
    display: block;
}

.content h1 {
    margin-top: 0;
    font-size: 30px;
}

.content p {
    font-size: 17px;
    line-height: 1.55;
}


/* =========================================================
   07. KARTY / PRZYCISKI WSPÓLNE
========================================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.info-card,
.robbery-card,
.event-log,
.club-card,
.club-panel,
.vip-card,
.group-robbery-card,
.equipment-owned-box,
.equipment-shop-box,
.economy-box,
.gang-create-box,
.gang-list-box,
.my-gang-panel,
.no-gang-box,
.friends-box,
.inbox-list-panel,
.inbox-message-panel,
.ranking-box,
.gang-raid-card,
.gang-raid-result {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.info-card h3,
.robbery-card h2,
.event-log h2,
.club-card h2,
.club-panel h2,
.vip-card h3,
.economy-box h2,
.friends-box h2,
.ranking-box h2,
.equipment-owned-box h2,
.equipment-shop-box h2 {
    margin-top: 0;
}

.secondary-button,
.energy-button,
.reset-button,
.club-action-button,
.club-card button,
.vip-card button,
.economy-main-button,
.economy-buy-button,
.economy-small-button,
.gang-main-button,
.gang-join-button,
.gang-danger-button,
.friend-attack-button,
.friend-remove-button,
.friend-gang-raid-button,
.escape-button,
.hospital-button {
    border: none;
    border-radius: 6px;
    font-weight: 800;
}

.energy-button {
    width: fit-content;
    background: #2563eb;
    color: white;
    padding: 11px 18px;
}

.energy-button:hover {
    background: #1d4ed8;
}

.reset-button {
    width: fit-content;
    margin-top: 10px;
    background: #dc2626;
    color: white;
    padding: 11px 18px;
}

.reset-button:hover {
    background: #b91c1c;
}

.secondary-button {
    background: #374151;
    color: white;
    padding: 10px 16px;
}

.secondary-button:hover {
    background: #111827;
}


/* =========================================================
   08. RABUNEK SOLO
========================================================= */

.robbery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.robbery-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}

.robbery-card-grandmma {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/grandmma.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card-kiosk {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/kiosk.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card-zabka {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/zabka.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card-lombard {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/lombard.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card-supermarket {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/supermarket.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card-buckmacher {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/buckmacher.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card-magazyn_elektroniki {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/magazyn_elektroniki.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card-kasyno {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/kasyno.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card-bank {
    background: linear-gradient(rgba(0, 0, 0, 0.765), rgba(59, 59, 59, 0.509)), url("img/bank.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.robbery-card button {
    background: #facc15;
    color: #111827;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 800;
}

.robbery-card button:hover {
    background: #eab308;
}

.robbery-result {
    margin: 10px 0 30px 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.robbery-result h3 {
    margin-top: 0;
}

.success-result {
    border-color: #22c55e;
    background: #f0fdf4;
}

.fail-result {
    border-color: #dc2626;
    background: #fef2f2;
}

.result-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.result-stats-grid div {
    background: #111827;
    color: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.result-stats-grid strong {
    color: #facc15;
}


/* =========================================================
   09. SKOKI GRUPOWE
========================================================= */

.group-robbery-message,
.equipment-message,
.economy-message,
.gang-message,
.friends-message,
.inbox-action-message,
.club-panel-message {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 6px;
    display: none;
    font-weight: 800;
}

.group-robbery-message.success,
.equipment-message.success,
.economy-message.success,
.gang-message.success,
.friends-message.success,
.inbox-action-message.success,
.club-panel-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.group-robbery-message.error,
.equipment-message.error,
.economy-message.error,
.gang-message.error,
.friends-message.error,
.inbox-action-message.error,
.club-panel-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.group-robbery-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.group-robbery-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.group-robbery-header h2,
.group-robbery-rewards h3 {
    margin-top: 0;
}

.group-robbery-header p,
.group-robbery-rewards p {
    margin: 6px 0;
}

.group-robbery-rewards {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
}

.group-robbery-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.group-robbery-slot {
    min-height: 170px;
    padding: 14px;
    border-radius: 6px;
    border: 1px dashed #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.group-robbery-slot.filled {
    background: #111827;
    color: #f9fafb;
    border: 1px solid #1f2937;
}

.group-robbery-slot.empty {
    background: #f3f4f6;
    color: #6b7280;
}

.group-robbery-avatar-img,
.group-robbery-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.group-robbery-avatar-img {
    object-fit: cover;
    border: 3px solid #facc15;
    background: #111827;
}

.group-robbery-avatar-placeholder {
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
}

.group-robbery-player-name {
    color: #f9fafb;
    font-size: 15px;
    font-weight: 900;
}

.group-robbery-player-info {
    color: #d1d5db;
    font-size: 13px;
    font-weight: 700;
}

.group-robbery-player-info strong {
    color: #facc15;
}

.group-robbery-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.group-robbery-button,
.group-robbery-execute-button,
.group-robbery-leave-button {
    border: none;
    border-radius: 6px;
    padding: 11px 16px;
    font-weight: 900;
}

.group-robbery-button {
    background: #facc15;
    color: #111827;
}

.group-robbery-button:hover {
    background: #eab308;
}

.group-robbery-execute-button {
    background: #22c55e;
    color: #052e16;
}

.group-robbery-execute-button:hover {
    background: #16a34a;
}

.group-robbery-leave-button {
    background: #374151;
    color: white;
}

.group-robbery-leave-button:hover {
    background: #111827;
}

.group-robbery-button.disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.group-robbery-result-box p {
    margin: 0 0 10px;
}

.group-robbery-result-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.group-robbery-result-grid div {
    background: #111827;
    color: #f9fafb;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.group-robbery-result-grid strong {
    color: #facc15;
}


.group-robbery-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f9fafb;
    border-color: rgba(17, 24, 39, 0.9);
}

.group-robbery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(20, 20, 20, 0.945) 0%,
            rgba(20, 20, 20, 0.788) 45%,
            rgba(46, 46, 46, 0.301) 100%
        );
    z-index: 0;
    pointer-events: none;
}

.group-robbery-card > * {
    position: relative;
    z-index: 1;
}

.group-robbery-card h2,
.group-robbery-card h3,
.group-robbery-card p {
    color: #f9fafb;
}

.group-robbery-card strong {
    color: #facc15;
}

.group-robbery-card .group-robbery-rewards {
    background: rgba(37, 37, 37, 0.72);
    border-color: rgba(250, 204, 21, 0.28);
    color: #f9fafb;
}

.group-robbery-card .group-robbery-slot.empty {
    background: rgba(249, 250, 251, 0.12);
    color: #d1d5db;
    border-color: rgba(209, 213, 219, 0.45);
}

.group-robbery-card .group-robbery-slot.filled {
    background: rgba(43, 43, 43, 0.82);
    border-color: rgba(250, 204, 21, 0.38);
}

/* Indywidualne tła skoków grupowych */
.group-robbery-card-kantor {
    background-image: url("img/kantor.png");
}

.group-robbery-card-jubiler {
    background-image: url("img/jubiler.png");
}

.group-robbery-card-kolekcjoner_sztuki {
    background-image: url("img/kolekcjoner_sztuki.png");
}

.group-robbery-card-konwoj_pieniezny {
    background-image: url("img/konwoj_pieniezny.png");
}

.group-robbery-card-skarbiec_banku_narodowego {
    background-image: url("img/skarbiec_banku_narodowego.png");
}


/* =========================================================
   10. KLUBY
========================================================= */

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.club-card button,
.club-action-button,
.vip-card button {
    background: #facc15;
    color: #111827;
    padding: 10px 16px;
}

.club-card button:hover,
.club-action-button:hover,
.vip-card button:hover {
    background: #eab308;
}

.club-inside-view {
    display: none;
}

.club-inside-view.active {
    display: block;
}

.club-inside-header {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.club-inside-header h2 {
    margin: 0;
}

.club-main-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
}

.club-people-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.club-person-slot {
    min-height: 190px;
    padding: 14px;
    background: #f3f4f6;
    border: 1px dashed #9ca3af;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.club-person-slot.filled {
    background: #111827;
    color: #f9fafb;
    border: 1px solid #1f2937;
    font-weight: 700;
}

.club-person-slot.empty {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px dashed #9ca3af;
}

.club-player-avatar-img,
.club-player-avatar-placeholder {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    border-radius: 50%;
    margin: 0;
}

.club-player-avatar-img {
    object-fit: cover;
    border: 3px solid #facc15;
    background: #111827;
}

.club-player-avatar-placeholder {
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
}

.club-player-name {
    color: #f9fafb;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
}

.club-player-respect {
    color: #facc15;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.club-attack-button {
    margin-top: 6px;
    background: #dc2626;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
}

.club-attack-button:hover {
    background: #b91c1c;
}

.club-player-you {
    margin-top: 6px;
    background: rgba(250, 204, 21, 0.14);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.35);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
}

.energy-items-list,
.vip-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.energy-item-row {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 16px;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
}

.energy-item-row p {
    margin: 4px 0 0;
    font-size: 14px;
}

.energy-item-row input {
    width: 90px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

.attack-result-box p {
    margin: 0 0 10px;
}

.attack-gain-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.attack-gain-list div {
    background: #111827;
    color: #f9fafb;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.attack-gain-list strong {
    color: #facc15;
}


/* =========================================================
   11. WYPOSAŻENIE / BRONIE / PANCERZE
========================================================= */

.equipment-owned-layout,
.equipment-shop-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.equipment-card {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
}

.equipment-item-image,
.equipment-item-img,
.equipment-item-placeholder {
    width: 70px;
    height: 70px;
}

.equipment-item-img,
.equipment-item-placeholder {
    border-radius: 6px;
}

.equipment-item-img {
    object-fit: cover;
    border: 2px solid #facc15;
    background: #111827;
}

.equipment-item-placeholder {
    background: #111827;
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
}

.equipment-item-info h3 {
    margin: 0 0 6px;
}

.equipment-item-info p {
    margin: 4px 0;
}

.equipment-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.equipment-buy-button,
.equipment-activate-button,
.equipment-sell-button {
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 900;
}

.equipment-buy-button {
    background: #facc15;
    color: #111827;
}

.equipment-buy-button:hover {
    background: #eab308;
}

.equipment-activate-button {
    background: #2563eb;
    color: white;
}

.equipment-activate-button:hover {
    background: #1d4ed8;
}

.equipment-sell-button {
    background: #dc2626;
    color: white;
}

.equipment-sell-button:hover {
    background: #b91c1c;
}

.equipment-active-label,
.equipment-owned-label,
.economy-owned-label {
    padding: 9px 12px;
    border-radius: 6px;
    font-weight: 900;
    text-align: center;
}

.equipment-active-label {
    background: #dcfce7;
    color: #166534;
}

.equipment-owned-label,
.economy-owned-label {
    background: #e5e7eb;
    color: #374151;
}


/* =========================================================
   12. EKONOMIA: BUDYNKI / SUBSTANCJE / CZARNY RYNEK
========================================================= */

.economy-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.economy-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.economy-card {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
}

.economy-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    background: #111827;
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.economy-info h3 {
    margin: 0 0 6px;
}

.economy-info p {
    margin: 4px 0;
}

.economy-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.economy-actions-with-input {
    gap: 10px;
}

/* Budynki posiadane - układ akcji:
   1 linia: Zbierz
   2 linia: input / MAX / Sprzedaj
*/
#ownedBuildingsList .economy-actions.economy-actions-with-input {
    width: 280px;
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

#ownedBuildingsList .economy-actions.economy-actions-with-input > button:first-of-type {
    grid-column: 1 / -1;
    width: 100%;
}

#ownedBuildingsList .economy-actions.economy-actions-with-input > input {
    width: 100%;
    min-width: 0;
}

#ownedBuildingsList .economy-actions.economy-actions-with-input > button {
    white-space: nowrap;
}

.economy-actions input {
    width: 110px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
}

.economy-main-button {
    background: #121928;
    color: white;
    padding: 10px 14px;
    font-weight: 900;
}

.economy-main-button:hover {
    background: #273250;
}

.economy-buy-button {
    background: #facc15;
    color: #111827;
    padding: 10px 14px;
    font-weight: 900;
}

.economy-buy-button:hover {
    background: #eab308;
}

.economy-small-button {
    padding: 10px;
    background: #111827;
    color: #facc15;
    font-weight: 900;
}

.economy-small-button:hover {
    background: #374151;
}

.black-market-card {
    border-color: #111827;
    background: #fff7ed;
}


/* =========================================================
   13. DZIEWCZYNY
========================================================= */

.girls-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 18px;
}

.girl-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.girl-card-image {
    height: 700px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.girl-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.girl-card-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
}

.girl-card-body {
    padding: 16px;
    flex: 1;
}

.girl-card-body h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.girl-card-body p {
    margin: 6px 0;
    font-size: 15px;
}

.girl-card-body strong {
    color: #111827;
}

.girl-card-actions {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.girl-buy-row,
.girl-sell-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.girl-buy-row input,
.girl-sell-row input {
    width: 90px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
}


/* =========================================================
   14. GANG
========================================================= */

.gang-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.gang-tab-button {
    background: white;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 900;
}

.gang-tab-button.active {
    background: #111827;
    color: #facc15;
    border-color: #111827;
}

.gang-card {
    display: none;
}

.gang-card.active-gang-card {
    display: block;
}

.gang-create-box,
.gang-list-box,
.my-gang-panel,
.no-gang-box {
    margin-bottom: 22px;
}

.gang-create-box label {
    display: block;
    font-weight: 900;
    margin-bottom: 8px;
}

.gang-create-box input {
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 14px;
}

.gang-main-button,
.gang-join-button {
    background: #facc15;
    color: #111827;
    padding: 11px 16px;
}

.gang-main-button:hover,
.gang-join-button:hover {
    background: #eab308;
}

.gang-join-button.disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.gang-section-header,
.my-gang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.gangs-list,
.gang-members-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gang-list-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
}

.gang-list-item h3 {
    margin: 0 0 8px;
}

.gang-list-item p {
    margin: 4px 0;
}

.gang-member-card {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
}

.gang-member-avatar-img,
.gang-member-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.gang-member-avatar-img {
    object-fit: cover;
    border: 3px solid #facc15;
    background: #111827;
}

.gang-member-avatar-placeholder {
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
}

.gang-member-info h3 {
    margin: 0 0 6px;
}

.gang-member-info p {
    margin: 4px 0;
}

.gang-leader-badge,
.gang-member-badge {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.gang-leader-badge {
    background: #facc15;
    color: #111827;
}

.gang-member-badge {
    background: #e5e7eb;
    color: #374151;
}

.gang-danger-button {
    background: #dc2626;
    color: white;
    padding: 10px 14px;
}

.gang-danger-button:hover {
    background: #b91c1c;
}

.gang-invite-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
}

.gang-invite-box h3 {
    margin: 0 0 12px;
}

.gang-invite-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.gang-invite-row input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    color: #111827;
}

.gang-invite-row input:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.22);
}


/* =========================================================
   15. ZNAJOMI
========================================================= */

.friends-layout {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.friends-box h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.friends-box p {
    margin-top: 0;
    color: #374151;
}

.friend-add-row,
.friends-add-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.friend-add-row input,
.friends-add-row input,
#friendNameInput,
#friendNameinput {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #111827;
    font-size: 16px;
}

.friend-add-row input:focus,
.friends-add-row input:focus,
#friendNameInput:focus,
#friendNameinput:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.friend-add-button {
    min-height: 44px;
    background: #facc15;
    color: #111827;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 900;
    white-space: nowrap;
}

.friend-add-button:hover {
    background: #eab308;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.friend-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
}

.friend-avatar,
.friend-avatar-img,
.friend-avatar-placeholder {
    width: 58px;
    height: 58px;
}

.friend-avatar-img,
.friend-avatar-placeholder {
    border-radius: 50%;
}

.friend-avatar-img {
    object-fit: cover;
    border: 3px solid #facc15;
    background: #111827;
}

.friend-avatar-placeholder {
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
}

.friend-info {
    min-width: 0;
}

.friend-info h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 18px;
    word-break: break-word;
}

.friend-info p {
    margin: 4px 0;
    color: #4b5563;
    font-size: 15px;
}

.friend-info strong {
    color: #111827;
}

.friend-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.friend-attack-button {
    background: #dc2626;
    color: white;
    padding: 10px 14px;
    font-weight: 900;
    white-space: nowrap;
}

.friend-attack-button:hover {
    background: #b91c1c;
}

.friend-remove-button {
    background: #374151;
    color: white;
    padding: 10px 14px;
    font-weight: 900;
    white-space: nowrap;
}

.friend-remove-button:hover {
    background: #111827;
}

.friend-gang-raid-button {
    background: #facc15;
    color: #111827;
    padding: 10px 14px;
}

.friend-gang-raid-button:hover {
    background: #eab308;
}

.empty-friends-info {
    margin: 0;
    padding: 14px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    font-weight: 700;
}


/* =========================================================
   16. SKRZYNKA ODBIORCZA
========================================================= */

.inbox-badge {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: auto;
    border-radius: 999px;
    background: #dc2626;
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.inbox-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
}

.inbox-header-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.inbox-header-row h2 {
    margin: 0;
}

.inbox-header-row .secondary-button {
    width: 100%;
}

.inbox-message-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.inbox-message-title-row h3 {
    margin: 0;
}

.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbox-item {
    width: 100%;
    text-align: left;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px;
}

.inbox-item:hover {
    background: #f3f4f6;
}

.inbox-item.unread {
    border-color: #facc15;
    background: #fffbeb;
}

.inbox-item-title {
    font-weight: 900;
    color: #111827;
    margin-bottom: 6px;
}

.inbox-item.unread .inbox-item-title::before {
    content: "● ";
    color: #dc2626;
}

.inbox-item-date,
.inbox-message-date {
    font-size: 13px;
    color: #6b7280;
}

.empty-inbox-info {
    color: #6b7280;
    margin: 0;
}

.inbox-message-details {
    min-height: 240px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 18px;
}

.read-label,
.unread-label {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.read-label {
    background: #e5e7eb;
    color: #374151;
}

.unread-label {
    background: #dc2626;
    color: white;
}

.inbox-message-content {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    color: #111827;
}

.inbox-action-panel {
    margin-top: 18px;
    padding: 16px;
    background: #111827;
    color: #f9fafb;
    border-radius: 6px;
}

.inbox-action-panel p {
    margin-top: 0;
    margin-bottom: 12px;
    color: #e5e7eb;
    font-weight: 800;
}

.inbox-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inbox-accept-button,
.inbox-reject-button {
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 900;
}

.inbox-accept-button {
    background: #22c55e;
    color: #052e16;
}

.inbox-accept-button:hover {
    background: #16a34a;
}

.inbox-reject-button {
    background: #dc2626;
    color: white;
}

.inbox-reject-button:hover {
    background: #b91c1c;
}

.inbox-action-resolved {
    margin-top: 18px;
    padding: 14px;
    border-radius: 6px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
}


/* =========================================================
   17. RANKING
========================================================= */

.ranking-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.ranking-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.ranking-header-row h2 {
    margin: 0;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-player-row,
.ranking-gang-row {
    display: grid;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
}

.ranking-player-row {
    grid-template-columns: 58px 52px 1fr auto;
}

.ranking-gang-row {
    grid-template-columns: 58px 1fr auto;
}

.ranking-position {
    border-radius: 6px;
    padding: 9px 10px;
    text-align: center;
    font-weight: 900;
}

.ranking-avatar,
.ranking-player-avatar-img,
.ranking-player-avatar-placeholder {
    width: 46px;
    height: 46px;
}

.ranking-player-avatar-img,
.ranking-player-avatar-placeholder {
    border-radius: 50%;
}

.ranking-player-avatar-img {
    object-fit: cover;
    border: 2px solid #facc15;
    background: #111827;
}

.ranking-player-avatar-placeholder {
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
}

.ranking-main-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ranking-main-info strong {
    color: #111827;
    font-size: 16px;
    word-break: break-word;
}

.ranking-main-info span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.ranking-respect {
    color: #111827;
    background: rgba(250, 204, 21, 0.18);
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 6px;
    padding: 9px 12px;
    font-weight: 900;
    white-space: nowrap;
}


/* =========================================================
   18. SZPITAL
========================================================= */

.hospital-box {
    background: #111827;
    color: #f9fafb;
    border: 1px solid #2563eb;
    border-radius: 6px;
    padding: 24px;
    max-width: 720px;
}

.hospital-box p {
    font-size: 20px;
    line-height: 1.6;
    color: #bfdbfe;
}

.hospital-button {
    background: #2563eb;
    color: white;
    padding: 12px 18px;
}

.hospital-button:hover {
    background: #1d4ed8;
}

body.hospital-mode .menu-button:not(:nth-last-child(2)) {
    opacity: 0.35;
    cursor: not-allowed;
}

body.hospital-mode .energy-button {
    opacity: 0.35;
    cursor: not-allowed;
}

.hospital-penalty-result,
.hospital-loss-summary {
    margin-top: 18px;
    margin-bottom: 18px;
}

.hospital-loss-summary p {
    color: #bfdbfe;
    font-size: 20px;
    margin-bottom: 14px;
}

.hospital-loss-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hospital-loss-list div {
    background: #1e3a8a;
    color: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.hospital-loss-list strong {
    color: #facc15;
}


/* =========================================================
   19. WIĘZIENIE
========================================================= */

.prison-box {
    background: #111827;
    color: #f9fafb;
    border: 1px solid #991b1b;
    border-radius: 6px;
    padding: 24px;
    max-width: 720px;
}

.prison-box p {
    font-size: 20px;
    line-height: 1.6;
    color: #fecaca;
}

.escape-button {
    background: #dc2626;
    color: white;
    padding: 12px 18px;
}

.escape-button:hover {
    background: #b91c1c;
}

body.prison-mode .menu-button:not(:last-child) {
    opacity: 0.35;
    cursor: not-allowed;
}

body.prison-mode .energy-button {
    opacity: 0.35;
    cursor: not-allowed;
}

.prison-penalty-result,
.prison-loss-summary {
    margin-top: 18px;
    margin-bottom: 18px;
}

.prison-penalty-result h3 {
    color: #f9fafb;
    margin-bottom: 10px;
}

.prison-penalty-result p,
.prison-loss-summary p {
    color: #fecaca;
}

.prison-loss-summary p {
    font-size: 20px;
    margin-bottom: 14px;
}

.prison-loss-list,
.prison-losses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.prison-loss-list div,
.prison-losses div {
    background: #7f1d1d;
    color: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.prison-loss-list strong {
    color: #facc15;
}

.prison-bribe-info,
.prison-time-info {
    margin: 18px 0;
    padding: 14px 16px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 6px;
    color: #fef3c7;
    font-size: 18px;
    line-height: 1.5;
}

.prison-bribe-info p,
.prison-time-info p {
    margin: 0 0 8px;
    color: #fef3c7;
}

.prison-bribe-info p:last-child,
.prison-time-info p:last-child {
    margin-bottom: 0;
}

.prison-bribe-info strong,
.prison-time-info strong {
    color: #facc15;
}

.prison-confirm-box {
    margin-top: 18px;
    padding: 16px;
    background: #1f2937;
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 6px;
}

.prison-confirm-box p {
    margin-top: 0;
    color: #fef3c7;
}

.prison-confirm-box strong {
    color: #facc15;
}

.prison-confirm-actions,
.prison-bribe-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.prison-bribe-row {
    align-items: center;
    gap: 16px;
}

.prison-bribe-row span {
    color: #fef3c7;
    font-size: 18px;
    font-weight: 800;
}

.prison-message-box {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 800;
}

.prison-message-box.success {
    background: #dcfce7;
    color: #166534;
}

.prison-message-box.error {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================================================
   ULICA / CZAT
========================================================= */

/* =========================================================
   ULICA / CZAT
========================================================= */

.street-chat-layout {
    margin-top: 24px;
}

.street-chat-box {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.street-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.street-chat-header h2 {
    margin: 0;
}

.street-chat-messages {
    height: 360px;
    overflow-y: auto;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.street-chat-empty {
    margin: 0;
    color: #6b7280;
    font-weight: 700;
}

/* Jedna wiadomość */
.street-chat-message {
    display: grid;
    grid-template-columns: minmax(210px, 260px) 1fr;
    gap: 16px;
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.street-chat-message:hover {
    border-color: rgba(250, 204, 21, 0.55);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

/* Lewa kolumna: avatar + gracz */
.street-chat-author-box {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding-right: 16px;
    border-right: 1px solid #e5e7eb;
}

.street-chat-avatar,
.street-chat-avatar-img,
.street-chat-avatar-placeholder {
    width: 48px;
    height: 48px;
}

.street-chat-avatar-img,
.street-chat-avatar-placeholder {
    border-radius: 8px;
}

.street-chat-avatar-img {
    object-fit: cover;
    border: 2px solid #facc15;
    background: #111827;
}

.street-chat-avatar-placeholder {
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}

.street-chat-author-info {
    min-width: 0;
}

.street-chat-author-name-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.street-chat-author-name-row strong {
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    word-break: break-word;
}

.street-chat-author-name-row span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.street-chat-author-respect {
    margin-top: 6px;
    width: fit-content;
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.38);
    color: #92400e;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
}

/* Prawa kolumna: treść wiadomości */
.street-chat-message-content {
    margin: 0;
    align-self: center;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Formularz */
.street-chat-form {
    margin-top: 14px;
}

.street-chat-form textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #111827;
    background: white;
}

.street-chat-form textarea:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.street-chat-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

#streetMessageCounter {
    color: #6b7280;
    font-weight: 800;
}


/* =========================================================
   20. DZIENNIK / STOPKA
========================================================= */

.event-log {
    margin-top: 28px;
}

#log {
    min-height: 120px;
    max-height: 240px;
    overflow-y: auto;
    background: #f9fafb;
    border-radius: 6px;
    padding: 14px;
}

.log-message {
    margin: 0 0 8px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 15px;
}

.success {
    background: #dcfce7;
    color: #166534;
}

.fail {
    background: #fee2e2;
    color: #991b1b;
}

.info {
    background: #e0f2fe;
    color: #075985;
}

.footer {
    background: #18191b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    padding: 18px 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.footer-copyright {
    margin: 0;
    justify-self: start;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.footer-support {
    justify-self: center;
    text-align: center;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.footer-support span {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 400;
}

.footer-support a {
    color: #facc15;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.footer-support a:hover {
    color: #eab308;
    text-decoration: underline;
}

.footer-facebook {
    justify-self: end;
    color: #ffffff;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.footer-facebook:hover {
    color: #facc15;
    background: transparent;
    transform: translateY(-1px);
}
.footer-facebook {
    justify-self: end;
    color: #ffffff;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.footer-facebook:hover {
    color: #facc15;
    background: transparent;
    transform: translateY(-1px);
}

.footer-facebook i {
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

/* =========================================================
   21. VIP / OVERLAYS
========================================================= */

.vip-overlay,
.robbery-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.88);
}

.vip-overlay {
    z-index: 9999;
}

.robbery-overlay {
    z-index: 10000;
}

.vip-overlay.active,
.robbery-overlay.active {
    display: flex;
}

.vip-modal,
.robbery-loading-box {
    max-width: calc(100vw - 32px);
    background: #f9fafb;
    color: #111827;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.vip-modal {
    width: 360px;
}

.robbery-loading-box {
    width: 320px;
}

.vip-modal h2,
.robbery-loading-box h2 {
    margin: 18px 0 0;
    color: #111827;
    font-size: 26px;
    font-weight: 900;
}

.loader {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border: 8px solid #e5e7eb;
    border-top: 8px solid #facc15;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.frozen {
    overflow: hidden;
}

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


/* =========================================================
   22. NAPAD GRUPOWY GANGU
========================================================= */

.gang-raid-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.gang-raid-header h2 {
    margin: 0;
    font-size: 26px;
}

.gang-raid-vs {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #111827;
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.gang-raid-connector-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.gang-raid-connector-box p {
    margin: 4px 0;
}

.gang-raid-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.gang-raid-section-header h3 {
    margin: 0;
}

.gang-raid-section-header span {
    background: rgba(250, 204, 21, 0.18);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #111827;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.gang-raid-participants-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.gang-raid-player-card {
    background: #111827;
    color: #f9fafb;
    border-radius: 6px;
    padding: 14px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
}

.gang-raid-avatar-img,
.gang-raid-avatar-placeholder {
    width: 62px;
    height: 62px;
    border-radius: 50%;
}

.gang-raid-avatar-img {
    object-fit: cover;
    border: 3px solid #facc15;
    background: #111827;
}

.gang-raid-avatar-placeholder {
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

.gang-raid-player-info h4 {
    margin: 0 0 6px;
    color: #f9fafb;
}

.gang-raid-player-info p {
    margin: 3px 0;
    color: #d1d5db;
    font-size: 14px;
}

.gang-raid-player-info strong {
    color: #facc15;
}

.gang-raid-empty {
    grid-column: 1 / -1;
    background: #f9fafb;
    border: 1px dashed #9ca3af;
    color: #6b7280;
    padding: 18px;
    border-radius: 6px;
    font-weight: 800;
    text-align: center;
}

.gang-raid-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gang-raid-main-button,
.gang-raid-secondary-button,
.gang-raid-danger-button {
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 900;
}

.gang-raid-main-button {
    background: #facc15;
    color: #111827;
}

.gang-raid-main-button:hover {
    background: #eab308;
}

.gang-raid-secondary-button {
    background: #374151;
    color: white;
}

.gang-raid-secondary-button:hover {
    background: #111827;
}

.gang-raid-danger-button {
    background: #dc2626;
    color: white;
}

.gang-raid-danger-button:hover {
    background: #b91c1c;
}

.gang-raid-power-grid,
.gang-raid-result-grid {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

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

.gang-raid-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gang-raid-power-grid div,
.gang-raid-result-grid div {
    background: #111827;
    color: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    font-weight: 800;
}

.gang-raid-power-grid strong,
.gang-raid-result-grid strong {
    display: block;
    color: #facc15;
    margin-top: 4px;
}

/* =========================================================
   PROFIL GRACZA
========================================================= */

.profile-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-page-header h1 {
    margin-bottom: 6px;
}

.profile-page-header p {
    margin: 0;
    color: #6b7280;
    font-weight: 700;
}

.profile-card {
    width: 100%;
    max-width: 760px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.profile-card-header {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.profile-avatar-placeholder {
    width: 86px;
    height: 86px;
    border-radius: 14px;
    background: #facc15;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    border: 3px solid #111827;
}

.profile-card-header h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 28px;
    line-height: 1.1;
}

.profile-card-header p {
    margin: 0;
    color: #6b7280;
    font-weight: 800;
}

.profile-message {
    min-height: 22px;
    margin-bottom: 12px;
    font-weight: 800;
}

.profile-message.success {
    color: #15803d;
}

.profile-message.error {
    color: #b91c1c;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.profile-info-grid div {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
}

.profile-info-grid span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.profile-info-grid strong {
    color: #111827;
    font-size: 15px;
    word-break: break-word;
}

.profile-achievements {
    background: #111827;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px;
    color: white;
}

.profile-achievements h3 {
    margin: 0 0 10px;
    color: #facc15;
}

.profile-achievements p {
    margin: 0;
    color: #d1d5db;
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-actions button {
    border: 0;
    border-radius: 9px;
    padding: 12px 14px;
    background: #111827;
    color: #facc15;
    font-weight: 900;
    cursor: pointer;
}

.profile-actions button:hover {
    background: #020617;
}

.profile-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.profile-message-box {
    margin-top: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
}

.profile-message-box label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 900;
}

.profile-message-box textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

.profile-message-box textarea:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.profile-message-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

#profileMessageCounter {
    color: #6b7280;
    font-weight: 800;
}

.profile-send-message-button {
    border: 0;
    border-radius: 9px;
    padding: 10px 14px;
    background: #111827;
    color: #facc15;
    font-weight: 900;
}

.profile-send-message-button:hover {
    background: #020617;
}

.player-profile-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    text-align: left;
}

.player-profile-link:hover {
    color: #b45309;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .profile-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-card {
        padding: 18px;
    }

    .profile-card-header {
        grid-template-columns: 68px 1fr;
        gap: 12px;
    }

    .profile-avatar-placeholder {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }

    .profile-card-header h2 {
        font-size: 22px;
    }

    .profile-info-grid,
    .profile-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DOM / ZASADY GRY
========================================================= */

.home-intro-card,
.home-tip-card {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: white;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 22px;
    border: 1px solid rgba(250, 204, 21, 0.35);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.home-intro-card h2,
.home-tip-card h2 {
    margin: 0 0 12px;
    color: #facc15;
}

.home-intro-card p,
.home-tip-card p {
    margin: 0 0 12px;
    line-height: 1.65;
    color: #f9fafb;
}

.home-intro-card p:last-child,
.home-tip-card p:last-child {
    margin-bottom: 0;
}

.home-rules-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.home-rule-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.home-rule-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
}

.home-rule-card p {
    margin: 0 0 10px;
    color: #374151;
    line-height: 1.55;
}

.home-rule-card p:last-child {
    margin-bottom: 0;
}

.home-rule-card strong,
.home-intro-card strong,
.home-tip-card strong {
    color: #facc15;
    font-weight: 900;
}

.home-rule-card strong {
    color: #92400e;
}

@media (max-width: 800px) {
    .home-rules-grid {
        grid-template-columns: 1fr;
    }

    .home-intro-card,
    .home-tip-card,
    .home-rule-card {
        padding: 16px;
    }
}


/* =========================================================
   23. RESPONSYWNOŚĆ <= 1100px
========================================================= */

@media (max-width: 1100px) {
    .topbar {
        height: 72px;
        grid-template-columns: auto 1fr auto;
        gap: 18px;
        padding: 0 28px;
    }

    .topbar-logo-img {
        height: 52px;
    }

    .round-info {
        justify-content: center;
        align-items: center;
        gap: 12px;
        font-size: 15px;
        white-space: nowrap;
    }

    .logout-button {
        justify-self: end;
        padding: 8px 14px;
        white-space: nowrap;
    }

    .hero {
        grid-template-columns: minmax(190px, 220px) minmax(210px, 240px) minmax(260px, 300px);
        justify-content: center;
        gap: 28px;
        padding: 28px 72px 34px;
    }

    .hero-column {
        min-height: auto;
    }

    .character-summary h2 {
        font-size: 22px;
    }

    .avatar-box {
        width: 82px;
        height: 82px;
        margin: 12px 0 14px;
    }

    .stats-summary h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .stat-row,
    .money-box,
    .resource-line {
        font-size: 16px;
    }

    .equipment-grid {
        gap: 12px;
    }

    .equipment-slot {
        width: 112px;
        height: 112px;
    }

    .header-equipment-content,
    .header-equipment-empty {
        width: 86px;
        height: 86px;
    }

    .header-equipment-img,
    .header-equipment-icon,
    .header-equipment-empty-icon {
        width: 50px;
        height: 50px;
    }

    .header-equipment-name,
    .header-equipment-empty-name {
        font-size: 12px;
        max-width: 86px;
    }

    .main-layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        padding: 14px 22px;
        background: linear-gradient(180deg, #202020 0%, #171717 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
        display: flex;
        justify-content: center;
    }

    .sidebar .sidebar {
        width: min(100%, 980px);
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .menu-button {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        padding: 7px 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(255, 255, 255, 0.055);
        color: #e5e7eb;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 7px;
        text-align: center;
        font-size: 10px;
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: 0.2px;
        white-space: nowrap;
        transition:
            transform 0.15s ease,
            background 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease;
    }

    .menu-button:hover {
        transform: translateY(-1px);
        background: rgba(250, 204, 21, 0.09);
        border-color: rgba(250, 204, 21, 0.32);
        color: #facc15;
    }

    .menu-button.active {
        background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
        border-color: #facc15;
        color: #111827;
        box-shadow: 0 8px 18px rgba(250, 204, 21, 0.2);
    }

    .menu-icon {
        width: 24px;
        min-width: 24px;
        height: 24px;
        color: #facc15;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        line-height: 1;
    }

    .menu-icon i {
        font-size: 14px;
        line-height: 1;
    }

    .menu-button:hover .menu-icon {
        color: #facc15;
        background: transparent;
    }

    .menu-button.active .menu-icon {
        color: #111827;
        background: transparent;
    }

    .menu-button span:not(.menu-icon):not(.inbox-badge) {
        flex: unset;
    }

    .inbox-badge {
        position: absolute;
        margin-left: 0;
        transform: translate(34px, -16px);
    }

    .content {
        padding: 30px 42px;
    }

    .robbery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .robbery-card {
        min-height: 210px;
    }

    .girls-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .girl-card-image {
        height: 630px;
    }

    .girl-card-body,
    .girl-card-actions {
        padding: 14px;
    }

    .girl-card-body h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .girl-card-body p {
        margin: 5px 0;
        font-size: 14px;
        line-height: 1.35;
    }

    .girl-buy-row input,
    .girl-sell-row input {
        width: 80px;
        padding: 9px 10px;
    }

    .economy-buy-button,
    .economy-small-button {
        padding: 9px 12px;
        font-size: 13px;
    }

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

    .club-main-layout,
    .equipment-owned-layout,
    .equipment-shop-layout,
    .ranking-layout,
    .inbox-layout {
        grid-template-columns: 1fr;
    }

    .club-people-grid,
    .group-robbery-slots,
    .gang-raid-participants-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   24. RESPONSYWNOŚĆ <= 760px
========================================================= */

@media (max-width: 760px) {
    .topbar {
        height: 62px;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 0 10px;
    }

    .topbar-logo-img {
        height: 40px;
    }

    .round-info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2px;
        font-size: 11px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .logout-button {
        padding: 6px 8px;
        font-size: 11px;
        border-radius: 5px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 16px 26px;
        text-align: center;
    }

    .hero-column {
        min-height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .character-summary {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .character-summary h2,
    .character-summary .label,
    .character-summary .value {
        text-align: center;
    }

    .character-summary h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .avatar-box {
        width: 86px;
        height: 86px;
        margin: 10px auto 14px;
    }

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

    .value {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .stats-summary,
    .resources-summary {
        width: 100%;
        max-width: 420px;
        align-items: center;
        text-align: center;
        background: rgba(17, 24, 39, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        padding: 14px;
    }

    .stats-summary h3 {
        font-size: 18px;
        margin: 0 0 10px;
    }

    .stat-row,
    .money-box,
    .resource-line,
    .energy-bar {
        width: 100%;
        max-width: 340px;
    }

    .stat-row {
        padding: 7px 0;
        font-size: 15px;
    }

    .money-box {
        margin-top: 12px;
        padding: 10px 12px;
        font-size: 15px;
    }

    .resource-line {
        font-size: 15px;
    }

    .energy-bar {
        height: 10px;
    }

    .inventory-title {
        margin-top: 10px;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 800;
    }

    .equipment-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        gap: 10px;
        margin-bottom: 0;
    }

    .equipment-slot {
        width: 100%;
        height: 92px;
    }

    .header-equipment-content,
    .header-equipment-empty {
        width: 74px;
        height: 74px;
    }

    .header-equipment-img,
    .header-equipment-icon,
    .header-equipment-empty-icon {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .header-equipment-name,
    .header-equipment-empty-name {
        max-width: 74px;
        font-size: 11px;
    }

    .sidebar {
        padding: 10px;
        overflow-x: visible;
        justify-content: center;
    }

    .sidebar .sidebar {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        overflow-x: visible;
    }

    .menu-button {
        width: 100%;
        min-width: 0;
        min-height: 34px;
        padding: 6px;
        border-radius: 7px;
        flex: initial;
        flex-direction: row;
        justify-content: center;
        gap: 5px;
        font-size: 8.5px;
        letter-spacing: 0;
        white-space: normal;
        line-height: 1.05;
    }

    .menu-icon {
        width: 14px;
        min-width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .menu-icon i {
        font-size: 9px;
    }

    .inbox-badge {
        transform: translate(26px, -12px);
    }

    .content {
        padding: 20px 12px;
    }

    .content h1 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .content p {
        font-size: 15px;
    }

    .info-card,
    .robbery-card,
    .event-log,
    .club-card,
    .club-panel,
    .vip-card,
    .group-robbery-card,
    .equipment-owned-box,
    .equipment-shop-box,
    .economy-box,
    .gang-create-box,
    .gang-list-box,
    .my-gang-panel,
    .no-gang-box,
    .friends-box,
    .inbox-list-panel,
    .inbox-message-panel,
    .ranking-box,
    .gang-raid-card,
    .gang-raid-result {
        padding: 16px;
    }

    .info-grid,
    .girls-grid,
    .clubs-grid,
    .group-robbery-header,
    .group-robbery-result-grid,
    .attack-gain-list,
    .result-stats-grid,
    .hospital-loss-list,
    .prison-loss-list,
    .prison-losses,
    .gang-raid-power-grid,
    .gang-raid-result-grid {
        grid-template-columns: 1fr;
    }

    .club-people-grid,
    .group-robbery-slots,
    .gang-raid-participants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-person-slot,
    .group-robbery-slot {
        min-height: 100px;
        padding: 8px;
        gap: 5px;
    }

    .gang-raid-player-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .club-player-avatar-img,
    .club-player-avatar-placeholder,
    .group-robbery-avatar-img,
    .group-robbery-avatar-placeholder,
    .gang-raid-avatar-img,
    .gang-raid-avatar-placeholder {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 16px;
        border-width: 2px;
        margin-left: auto;
        margin-right: auto;
    }

    .club-player-name,
    .group-robbery-player-name {
        font-size: 12px;
        line-height: 1.1;
    }

    .club-player-respect,
    .group-robbery-player-info,
    .gang-raid-player-info {
        font-size: 11px;
        line-height: 1.1;
    }

    .club-attack-button,
    .group-robbery-button,
    .group-robbery-execute-button,
    .group-robbery-leave-button,
    .gang-raid-main-button,
    .gang-raid-secondary-button,
    .gang-raid-danger-button {
        padding: 6px 8px;
        font-size: 11px;
        border-radius: 6px;
    }

    .equipment-card,
    .gang-member-card,
    .friend-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .equipment-item-image,
    .equipment-item-img,
    .equipment-item-placeholder,
    .friend-avatar,
    .friend-avatar-img,
    .friend-avatar-placeholder,
    .gang-member-avatar-img,
    .gang-member-avatar-placeholder {
        margin-left: auto;
        margin-right: auto;
    }

    .equipment-item-actions,
    .friend-actions {
        width: 100%;
        align-items: stretch;
        justify-content: center;
    }

    .friend-add-row,
    .friends-add-row,
    .gang-invite-row {
        grid-template-columns: 1fr;
    }

    .gang-section-header,
    .my-gang-header,
    .ranking-header-row,
    .inbox-header-row,
    .club-inside-header,
    .gang-raid-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .inbox-layout {
        display: flex;
        flex-direction: column;
    }

    .inbox-message-panel {
        order: 1;
    }

    .inbox-list-panel {
        order: 2;
    }

    .inbox-list {
        max-height: 340px;
        overflow-y: auto;
    }

    .street-chat-box {
        padding: 16px;
    }

    .street-chat-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .street-chat-messages {
        height: 320px;
        padding: 10px;
    }

    .street-chat-message {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .street-chat-author-box {
        grid-template-columns: 46px 1fr;
        gap: 10px;
        padding-right: 0;
        padding-bottom: 10px;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .street-chat-avatar,
    .street-chat-avatar-img,
    .street-chat-avatar-placeholder {
        width: 42px;
        height: 42px;
    }

    .street-chat-avatar-img,
    .street-chat-avatar-placeholder {
        border-radius: 7px;
    }

    .street-chat-avatar-placeholder {
        font-size: 19px;
    }

    .street-chat-author-name-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .street-chat-author-name-row strong {
        font-size: 15px;
    }

    .street-chat-author-name-row span {
        font-size: 11px;
    }

    .street-chat-author-respect {
        font-size: 11px;
        padding: 3px 8px;
    }

    .street-chat-message-content {
        align-self: auto;
        font-size: 14px;
    }

    .street-chat-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .street-chat-actions button {
        width: 100%;
    }

.footer {
    padding: 14px 12px;
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-copyright,
.footer-support,
.footer-facebook {
    justify-self: center;
}

.footer-support {
    font-size: 13px;
}

.footer-facebook {
    width: 36px;
    height: 36px;
}

    .energy-button,
    .reset-button {
        width: 100%;
    }

    .group-robbery-card {
    min-height: 300px;
    background-position: center;
}

.group-robbery-card::before {
    background: rgba(17, 24, 39, 0.82);
}
}




/* =========================================================
   25. TELEFON <= 600px
========================================================= */

@media (max-width: 600px) {
    .ranking-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ranking-box {
        padding: 14px;
    }

    .ranking-header-row {
        gap: 10px;
        align-items: flex-start;
    }

    .ranking-header-row h2 {
        font-size: 18px;
        margin: 0;
    }

    .ranking-list {
        gap: 8px;
    }

    .ranking-player-row {
        grid-template-columns: 34px 38px 1fr auto;
    }

    .ranking-gang-row {
        grid-template-columns: 34px 1fr auto;
    }

    .ranking-player-row,
    .ranking-gang-row {
        display: grid;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 8px 10px;
        border-radius: 8px;
        text-align: left;
    }

    .ranking-position {
        font-size: 14px;
        font-weight: 900;
        text-align: center;
        padding: 0;
    }

    .ranking-avatar,
    .ranking-player-avatar-img,
    .ranking-player-avatar-placeholder {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .ranking-player-avatar-placeholder {
        border-radius: 8px;
        font-size: 18px;
    }

    .ranking-main-info {
        min-width: 0;
    }

    .ranking-main-info strong,
    .ranking-main-info .player-profile-link {
        font-size: 14px;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ranking-main-info span {
        display: none;
    }

    .ranking-respect {
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
        text-align: right;
        padding: 7px 8px;
    }

    .ranking-respect::before {
        content: "Respekt ";
        color: #6b7280;
        font-weight: 800;
    }

    .ranking-duelist-row .ranking-respect::before {
    content: "Wygrane ";
}

    .economy-card,
    .black-market-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .economy-icon-box {
        width: 106px;
        height: 106px;
        min-width: 106px;
        min-height: 106px;
        margin: 0 auto 10px;
        align-self: center;
        font-size: 46px;
        border-radius: 9px;
    }

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

    .economy-info h3,
    .economy-info p {
        text-align: center;
    }

    .economy-actions,
    .economy-actions-with-input {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        justify-content: center;
    }

    .economy-actions input,
    .economy-actions-with-input input {
        width: 100%;
    }

    .economy-actions button,
    .economy-actions-with-input button {
        width: 100%;
    }

    .building-owned-actions .collect-button,
    .owned-building-actions .collect-button,
    .building-owned-actions button:first-child,
    .owned-building-actions button:first-child {
        grid-column: 1 / -1;
        width: 100%;
    }

    .building-owned-actions input,
    .owned-building-actions input {
        min-width: 0;
        width: 100%;
    }

    .building-owned-actions .max-button,
    .owned-building-actions .max-button,
    .building-owned-actions .sell-button,
    .owned-building-actions .sell-button {
        width: auto;
    }

    .girl-card-image {
        height: 460px;
        min-height: 460px;
        max-height: none;
    }

    .girl-card-img,
    .girl-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
    }

    .profile-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-card {
        padding: 18px;
    }

    .profile-card-header {
        grid-template-columns: 68px 1fr;
        gap: 12px;
    }

    .profile-avatar-placeholder {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }

    .profile-card-header h2 {
        font-size: 22px;
    }

    .profile-info-grid,
    .profile-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   26. TELEFON <= 520px
========================================================= */

@media (max-width: 520px) {
    .auth-card {
        padding: 24px;
    }

    .topbar {
        height: 64px;
    }

    .round-info {
        font-size: 11px;
    }

    .logout-button {
        font-size: 12px;
        padding: 6px 8px;
    }

    .content h1 {
        font-size: 24px;
    }

    .content p {
        font-size: 15px;
    }

    .robbery-card {
        min-height: 190px;
        padding: 18px;
    }

    .prison-box,
    .hospital-box {
        padding: 18px;
    }

    .prison-box p,
    .hospital-box p,
    .hospital-loss-summary p,
    .prison-loss-summary p {
        font-size: 16px;
    }

    .vip-modal,
    .robbery-loading-box {
        padding: 24px;
    }
}