/* ============================
   GLOBAL SUBPAGE STYLES
   ============================ */

.subpage-area {
    padding-top: 160px; /* Miejsce na fixed header */
    padding-bottom: 80px;
    /* POPRAWKA: Dodano gradient przyciemniający tło, aby białe napisy były czytelne, 
       ale tekstura tła nadal widoczna */
    background: linear-gradient(rgba(16, 19, 20, 0.8), rgba(16, 19, 20, 0.1)), url('../images/glory-opt/server-bg-1920.webp') no-repeat fixed center top;
    background-size: cover;
    min-height: 100vh;
}

.subpage-title-wp {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.subpage-title-wp :is(h1, h2) {
    font-family: var(--heading-font);
    color: var(--whiteColor);
    font-size: 42px; /* Większy nagłówek */
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Cień dla lepszej czytelności */
    letter-spacing: 1px;
}

.breadcrumbs {
    font-size: 14px;
    color: #aaa;
    font-weight: 600;
}

.breadcrumbs a {
    color: var(--primaryColor);
}

.breadcrumbs span {
    margin-inline: 5px;
    color: #666;
}

/* ============================
   MARKET SPECIFIC STYLES
   ============================ */

/* User Panel */
.market-user-panel {
    background: rgba(16, 19, 20, 0.85); /* Półprzezroczyste ciemne tło */
    border: 1px solid #2d3335;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #000;
    border: 2px solid var(--primaryColor);
    border-radius: 4px;
    background-image: url('../images/slider-img.png');
    background-size: cover;
    background-position: center;
}

.user-details h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 2px;
}

.user-details a {
    font-size: 12px;
    color: var(--primaryColor);
    text-decoration: underline;
}

.user-credits {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #2d3335;
}

.credit-amount {
    font-size: 18px;
    font-weight: 700;
    color: #FFF4D2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deposit-btn {
    padding: 8px 25px;
    background: var(--primaryColor);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
}

.deposit-btn:hover {
    background: #229ea3;
    color: #fff;
}

.cart-info a {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.cart-info a:hover {
    color: var(--primaryColor);
}

/* Filters & Navigation */
.market-controls {
    margin-bottom: 40px;
}

.market-toolbar {display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 16px; padding: 8px 14px; background: #1b2022; border-bottom: 1px solid #465052;}
.market-categories {display: flex; flex: 1 1 460px; flex-wrap: wrap; align-items: center; gap: 0 16px;}
.market-categories a {padding: 10px 0; color: #c4ced0; font-size: 13px; font-weight: 600; text-transform: uppercase;}
.market-categories a:hover, .market-categories a.active {color: #77dcdf;}
.market-categories a.active {box-shadow: inset 0 -2px #47c4c9;}
.market-wallet {margin-inline-start: auto; display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; color: #ffebbf; border: 1px solid #70654a; white-space: nowrap; font-size: 14px; font-weight: 600;}
.market-wallet:hover, .market-wallet:focus-visible {color: #fff3d4; background: #343229;}
@media (max-width: 575px) {
    .market-toolbar {flex-direction: column-reverse; gap: 0; align-items: stretch;}
    .market-categories {flex: auto;}
}

.market-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.3); /* Lekkie tło pod paskiem wyszukiwania */
    padding: 15px;
    border-radius: 4px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}

.category-header i {
    color: var(--primaryColor);
}

.search-inputs {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.search-inputs input,
.search-inputs select {
    background: rgba(0,0,0,0.6); /* Ciemniejsze tło inputów */
    border: 1px solid #444;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    min-width: 200px;
    outline: none;
}

.search-inputs input::placeholder {
    color: #888;
}

.search-inputs input:focus,
.search-inputs select:focus {
    border-color: var(--primaryColor);
}

/* Items Grid (Full Page) */
.market-grid-full {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 25px;
}

.market-item-card {
    background: rgba(16, 19, 20, 0.85);
    border: 1px solid #282d30;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.market-item-card:hover {
    border-color: var(--primaryColor);
    box-shadow: 0 0 20px rgba(43, 183, 188, 0.15);
    transform: translateY(-5px);
}

/* POPRAWIONE BADGES (WSTĄŻKI) - IDEALNIE WYCENTROWANE */
.item-badge {
    position: absolute;
    top: 15px;
    left: -32px;
    width: 120px; /* Szerokość pozwala na wycentrowanie tekstu */
    background: var(--primaryColor);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 0;
    transform: rotate(-45deg);
    z-index: 5;
    text-transform: uppercase;
    text-align: center; /* Klucz do wycentrowania */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.item-badge.sale {
    background: #ff4757;
    color: #fff;
}

.item-img-wp {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.6) 80%);
    border-bottom: 1px solid #282d30;
    padding: 20px;
}

.item-img-wp img {
    max-height: 100px;
    max-width: 100%;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
    transition: transform 0.3s;
}

.market-item-card:hover .item-img-wp img {
    transform: scale(1.1);
}

.item-details { padding: 20px; text-align: center; }
.item-details h4 {
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    min-height: 2.8em;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}
.item-stats { font-size: 14px; color: #c1ccce; margin-bottom: 12px; }
.offer-description p, .offer-dialog .offer-copy {
    color: #d8e1e2;
    font-size: 16px;
    line-height: 1.65;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin: 16px 0 0;
}
.offer-dialog {
    position: fixed; inset: 0; margin: auto;
    width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
    padding: clamp(20px, 5vw, 32px); background: #171d1f; color: #fff;
    border: 1px solid #485558; border-top: 3px solid #41c6cb;
    box-shadow: 0 16px 64px #0009;
}
.offer-dialog::backdrop { background: rgb(5 10 12 / 72%); }
.offer-dialog h2 { margin: 0 40px 20px 0; font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
.offer-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; color: #b7c8ca; font-size: 27px; line-height: 1; }
.offer-close:hover { color: #fff; }
.offer-dialog dl { margin: 0; border-block: 1px solid #344245; padding: 8px 0; }
.offer-dialog dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 3px 0; }
.offer-dialog dt { color: #b6c4c6; font-weight: 400; }
.offer-dialog dd { color: #fff1cc; margin: 0; font-weight: 700; }

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: #FFF4D2;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.buy-btn-full {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--primaryColor);
    color: var(--primaryColor);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.buy-btn-full:hover {
    background: var(--primaryColor);
    color: #fff;
}

/* Pagination */
.market-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.market-pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    color: #ccc;
    background: rgba(0,0,0,0.6);
    font-weight: 700;
    transition: 0.3s;
}

.market-pagination a.active,
.market-pagination a:hover {
    border-color: var(--primaryColor);
    background: var(--primaryColor);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .market-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }
    .market-user-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    .user-credits {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .market-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-inputs {
        flex-direction: column;
        width: 100%;
    }
    .search-inputs input, .search-inputs select {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .market-grid-full {
        grid-template-columns: 1fr;
    }
}

/* ============================
   DOWNLOAD PAGE STYLES (REDESIGN)
   ============================ */

.download-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* Main Client Card */
.client-download-card {
    background: linear-gradient(145deg, rgba(20, 24, 26, 0.9) 0%, rgba(10, 12, 13, 0.95) 100%);
    border: 1px solid #2d3335;
    padding: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(43, 183, 188, 0.1);
    position: relative;
    overflow: hidden;
}

.client-download-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primaryColor);
}

.client-info h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.client-info p {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.client-meta {
    display: flex;
    gap: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-item span {
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
}

.meta-item strong {
    color: var(--primaryColor);
    font-size: 16px;
}

.client-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}

.dl-mirror-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.3s;
    border-radius: 2px;
}

.dl-mirror-btn i {
    font-size: 16px;
}

.dl-mirror-btn:hover {
    background: var(--primaryColor);
    border-color: var(--primaryColor);
    color: #000;
    transform: translateX(-5px);
}

/* Requirements Table */
.req-section {
    margin-bottom: 60px;
}

.section-label {
    font-size: 20px;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.section-label i { color: var(--primaryColor); }

.req-table-wp {
    background: rgba(16, 19, 20, 0.6);
    border: 1px solid #282d30;
}

.req-table {
    width: 100%;
    border-collapse: collapse;
}

.req-table th, .req-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}

.req-table th {
    background: rgba(0,0,0,0.3);
    color: var(--primaryColor);
    text-transform: uppercase;
    font-weight: 700;
    width: 20%;
}

.req-table td {
    color: #aaa;
}

.req-table td strong {
    color: #fff;
}

/* Drivers Grid */
.drivers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.driver-card {
    background: #101314;
    border: 1px solid #282d30;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.driver-card:hover {
    border-color: var(--primaryColor);
    transform: translateY(-5px);
}

.driver-card i {
    font-size: 32px;
    color: #444;
    margin-bottom: 5px;
    transition: 0.3s;
}

.driver-card:hover i { color: var(--primaryColor); }

.driver-card h5 {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.driver-card span {
    font-size: 12px;
    color: #666;
}

/* Responsive Download */
@media (max-width: 992px) {
    .client-download-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .client-download-card::before {
        width: 100%;
        height: 4px;
    }
    .client-meta {
        justify-content: center;
        margin-bottom: 20px;
    }
    .drivers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .drivers-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   RANKING PAGE STYLES (FIXED: SHARP CORNERS)
   ============================ */

/* Tabs - Sharp & Modern */
.ranking-tabs-wp {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: rgba(0,0,0,0.6);
    padding: 0; /* Usunięto padding */
    width: fit-content;
    margin-inline: auto;
    border: 1px solid #282d30;
    border-radius: 0; /* BRAK ZAOKRĄGLEŃ */
}

.rank-tab {
    padding: 15px 40px;
    background: transparent;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 0; /* BRAK ZAOKRĄGLEŃ */
    cursor: pointer;
    transition: 0.2s;
    border: none;
    border-right: 1px solid #282d30;
    position: relative;
}

.rank-tab:last-child {
    border-right: none;
}

.rank-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.rank-tab.active {
    background: var(--primaryColor);
    color: #000;
    font-weight: 800;
}

/* Dodatek wizualny do aktywnego taba (trójkącik na dole) */
.rank-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: var(--primaryColor) transparent transparent transparent;
}

.ranking-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.ranking-content.active {
    display: block;
}

.ranking-table-wp {
    background: rgba(16, 19, 20, 0.9);
    border: 1px solid #282d30;
    border-top: 3px solid var(--primaryColor);
    padding: 0;
    overflow-x: auto; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border-radius: 0; /* BRAK ZAOKRĄGLEŃ */
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    background: #0b0d0e;
}

.ranking-table thead th {
    text-align: left;
    color: #666;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 20px;
    border-bottom: 1px solid #282d30;
}

.ranking-table tbody tr {
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.ranking-table tbody tr:hover {
    background: rgba(43, 183, 188, 0.05);
}

.ranking-table td {
    padding: 15px 20px;
    color: #ccc;
    font-size: 14px;
    vertical-align: middle;
}

.rank-num {
    width: 50px;
    text-align: center;
    font-weight: 700;
    color: #555;
    font-size: 16px;
}

.rank-top-1 .rank-num { color: #FFD700; font-size: 20px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.rank-top-2 .rank-num { color: #C0C0C0; font-size: 18px; }
.rank-top-3 .rank-num { color: #CD7F32; font-size: 18px; }

.rank-top-1 td { background: linear-gradient(90deg, rgba(255, 215, 0, 0.05), transparent); }

.rank-name {
    color: #fff;
    font-weight: 700;
}
.rank-top-1 .rank-name { color: #FFD700; }

.char-class {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
}
.char-class img {
    width: 20px;
    height: 20px;
}

.stat-val {
    font-weight: 700;
    color: #fff;
    text-align: center;
}
.stat-val.highlight {
    color: var(--primaryColor);
}

.online-status {
    width: 8px;
    height: 8px;
    /* Kwadratowe statusy zamiast kółek dla ostrości */
    transform: rotate(45deg); 
    margin: 0 auto;
}
.online-status.on { background: #00ff88; box-shadow: 0 0 5px #00ff88; }
.online-status.off { background: #ff4757; opacity: 0.5; }

/* ============================
   NEWS PAGES STYLES (NEW)
   ============================ */

.news-layout {
    display: flex;
    gap: 40px;
}

.news-main {
    flex: 1;
}

.news-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* News List Item (Card) */
.news-list-item {
    display: flex;
    background: rgba(16, 19, 20, 0.8);
    border: 1px solid #282d30;
    margin-bottom: 25px;
    transition: 0.3s;
    height: 220px;
    overflow: hidden;
}

.news-list-item:hover {
    border-color: var(--primaryColor);
    transform: translateX(5px);
    background: rgba(16, 19, 20, 1);
}

.news-thumb {
    width: 35%;
    position: relative;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-list-item:hover .news-thumb img {
    transform: scale(1.1);
}

.news-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primaryColor);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 2;
}

.news-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #282d30;
}

.news-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-date i { color: var(--primaryColor); }

.news-content h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-content h3 a {
    color: #fff;
    transition: 0.3s;
}
.news-content h3 a:hover { color: var(--primaryColor); }

.news-content p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primaryColor);
    display: flex;
    align-items: center;
    gap: 5px;
}
.read-more-btn:hover { gap: 10px; color: #fff; }

/* Single News Article */
.single-news-wp {
    background: rgba(16, 19, 20, 0.8);
    border: 1px solid #282d30;
    padding: 40px;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
    font-family: var(--heading-font);
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
}
.article-meta span i { color: var(--primaryColor); margin-right: 5px; }

.article-image {
    width: 100%;
    margin-bottom: 30px;
    border: 1px solid #282d30;
}

.article-body {
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
}

.article-body h2, .article-body h3 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: square;
    color: #aaa;
}
.article-body li { margin-bottom: 5px; }

.article-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #444;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.back-btn:hover {
    background: var(--primaryColor);
    border-color: var(--primaryColor);
    color: #000;
}

/* Sidebar */
.widget-box {
    background: rgba(16, 19, 20, 0.8);
    border: 1px solid #282d30;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 3px solid var(--primaryColor);
    padding-left: 10px;
}

.side-links li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}
.side-links li:last-child { border: none; padding: 0; margin: 0; }

.side-links a {
    color: #888;
    font-size: 14px;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
}
.side-links a:hover { color: var(--primaryColor); padding-left: 5px; }
.side-links span { font-size: 12px; color: #555; }

/* Responsive News */
@media (max-width: 992px) {
    .news-layout { flex-direction: column; }
    .news-sidebar { width: 100%; }
    .news-list-item { flex-direction: column; height: auto; }
    .news-thumb { width: 100%; height: 200px; }
    .news-content { border-left: none; border-top: 1px solid #282d30; }
}

/* ============================
   RULES / TERMS PAGE
   ============================ */

.rules-layout {
    display: flex;
    gap: 40px;
}

.rules-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.rules-nav a {
    display: block;
    padding: 15px 20px;
    background: rgba(16, 19, 20, 0.8);
    border: 1px solid #282d30;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: 0.3s;
    font-size: 13px;
}

.rules-nav a:hover, .rules-nav a.active {
    background: var(--primaryColor);
    color: #000;
    border-color: var(--primaryColor);
    padding-left: 25px; /* Slight movement effect */
}

.rules-content-wp {
    flex: 1;
    background: rgba(16, 19, 20, 0.9);
    border: 1px solid #282d30;
    padding: 40px;
}

.rules-section {
    display: none;
    animation: fadeIn 0.5s ease;
}
.rules-section.active { display: block; }

.rules-section h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.rules-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

.rules-text ul {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}
.rules-text li { margin-bottom: 10px; }
.rules-text strong { color: var(--primaryColor); }

/* ============================
   FULL REGISTRATION PAGE
   ============================ */

.register-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(16, 19, 20, 0.95);
    border: 1px solid #282d30;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-top: 3px solid var(--primaryColor);
}

.reg-row {
    margin-bottom: 20px;
}

.reg-label {
    display: block;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.reg-input {
    width: 100%;
    background: #0b0d0e;
    border: 1px solid #333;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.reg-input:focus {
    border-color: var(--primaryColor);
    background: #121517;
}

.reg-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 25px;
}

.reg-checkbox input {
    accent-color: var(--primaryColor);
    width: 16px;
    height: 16px;
}

.reg-btn {
    width: 100%;
    padding: 15px;
    background: var(--primaryColor);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.reg-btn:hover {
    filter: brightness(1.1);
    letter-spacing: 1px;
}

/* ============================
   USER PANEL (MY ACCOUNT)
   ============================ */

.panel-layout {
    display: flex;
    gap: 30px;
}

/* Sidebar */
.panel-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.panel-user-card {
    background: rgba(16, 19, 20, 0.9);
    border: 1px solid #282d30;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.panel-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
    border: 2px solid var(--primaryColor);
    background: #000;
}
.panel-avatar img { width: 100%; height: 100%; object-fit: cover; }

.panel-user-card h4 { color: #fff; font-size: 18px; margin-bottom: 5px; }
.panel-status { color: #00ff88; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.panel-status.vip { color: #FFD700; }

.panel-stats-list {
    margin-top: 20px;
    text-align: left;
}
.p-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    font-size: 13px;
    color: #aaa;
}
.p-stat span { color: #fff; font-weight: 700; }
.p-stat span.gold { color: #FFF4D2; }

/* Panel Menu */
.panel-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(16, 19, 20, 0.8);
    border: 1px solid #282d30;
    border-left: 3px solid transparent;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    transition: 0.3s;
}

.panel-menu a i { width: 20px; text-align: center; }

.panel-menu a:hover, .panel-menu a.active {
    background: #15181a;
    color: #fff;
    border-left-color: var(--primaryColor);
}

.panel-menu a.logout { border-color: #ff4757; color: #ff4757; }
.panel-menu a.logout:hover { background: #ff4757; color: #fff; }

/* Panel Content Area */
.panel-main {
    flex: 1;
    background: rgba(16, 19, 20, 0.9);
    border: 1px solid #282d30;
    padding: 30px;
    min-height: 500px;
}

.panel-view {
    display: none;
    animation: fadeIn 0.3s ease;
}
.panel-view.active { display: block; }

.panel-title {
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 25px;
}

/* Character List */
.char-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.char-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}
.char-card:hover { border-color: var(--primaryColor); background: rgba(43, 183, 188, 0.05); }

.char-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #444;
}
.char-img img { width: 100%; height: 100%; object-fit: contain; }

.char-info h5 { color: #fff; font-size: 16px; margin-bottom: 5px; }
.char-info p { color: #888; font-size: 12px; margin-bottom: 10px; }
.char-info p strong { color: var(--primaryColor); }

.char-actions {
    display: flex;
    gap: 5px;
}
.c-btn {
    padding: 5px 10px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid #444;
    color: #aaa;
    transition: 0.2s;
}
.c-btn:hover { border-color: var(--primaryColor); color: var(--primaryColor); }

/* Stats Form */
.stats-form {
    max-width: 400px;
}
.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.02);
    padding: 10px 15px;
    border: 1px solid #333;
}
.stat-name { color: #ccc; font-weight: 700; font-size: 14px; }
.stat-input input {
    background: transparent;
    border: none;
    color: #fff;
    text-align: right;
    width: 80px;
    font-weight: 700;
}

/* VIP Card */
.vip-promo {
    background: linear-gradient(45deg, #2c3e50, #000000);
    padding: 30px;
    text-align: center;
    border: 1px solid #ffd700;
}
.vip-promo h3 { color: #ffd700; margin-bottom: 10px; }
.vip-promo p { color: #fff; margin-bottom: 20px; }

/* Responsive */
@media (max-width: 992px) {
    .rules-layout, .panel-layout { flex-direction: column; }
    .rules-sidebar, .panel-sidebar { width: 100%; }
    .char-list-grid { grid-template-columns: 1fr; }
}

/* Zmiana stylu przycisku rejestracji na taki jak na głównej */
.reg-submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    padding: 15px 30px;
    background: url('../images/download-btn.png') no-repeat;
    background-size: 100% 100%;
    color: #0b0d0e; /* Ciemny tekst jak na przycisku download */
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    filter: drop-shadow(0px 4px 0px rgba(0,0,0,0.5));
}

.reg-submit-btn:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0px 6px 0px rgba(0,0,0,0.5)) brightness(1.1);
}
/* =========================================
   FIXED TAB TRANSITIONS (NO JUMPING)
   ========================================= */

/* Nadpisujemy style dla kontenerów treści w panelu, rankingu i zasadach */
.panel-view, 
.ranking-content, 
.rules-section {
    display: none; /* Domyślnie ukryte */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Klasa .active dodawana przez JS */
.panel-view.active, 
.ranking-content.active, 
.rules-section.active {
    display: block; /* Pokaż element */
    /* Małe opóźnienie dla opacity, żeby przeglądarka zdążyła nadać display:block */
    animation: smoothFadeIn 0.5s forwards; 
}

@keyframes smoothFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FIX: ALERT BOX COLOR (OVERVIEW)
   ========================================= */
.panel-alert {
    background: rgba(0, 0, 0, 0.3); /* Ciemne tło zamiast szarego */
    border: 1px solid #282d30;
    border-left: 3px solid var(--primaryColor); /* Turkusowy akcent */
    padding: 15px 20px;
    color: #ccc;
    margin-bottom: 20px;
}

.panel-alert strong {
    color: #fff;
    margin-right: 5px;
}

/* =========================================
   RESPONSIVE / MOBILE FIXES
   ========================================= */

@media (max-width: 992px) {
    /* 1. Panel Layout - Stack vertically on tablets/mobile */
    .panel-layout {
        flex-direction: column;
    }

    /* 2. Sidebar full width */
    .panel-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    /* 3. User Card - Horizontal layout on mobile for better space usage */
    .panel-user-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        text-align: left;
    }
    .panel-avatar {
        margin: 0; /* Reset auto margin */
        width: 60px;
        height: 60px;
    }
    
    /* 4. Panel Menu - Grid style on mobile */
    .panel-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        margin-top: 15px;
    }
    .panel-menu a {
        text-align: center;
        justify-content: center;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    /* Header Title - Center and stack */
    .subpage-title-wp {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .breadcrumbs {
        font-size: 12px;
    }

    /* User card back to column on very small screens */
    .panel-user-card {
        flex-direction: column;
        text-align: center;
    }
    .panel-avatar { margin: 0 auto 10px auto; }

    /* Character list - 1 column */
    .char-list-grid {
        grid-template-columns: 1fr;
    }

    /* Menu - 1 column on very small screens (optional, easier to tap) */
    .panel-menu {
        grid-template-columns: 1fr;
    }
    
    /* Main Panel Padding */
    .panel-main {
        padding: 20px;
    }
}