:root {
    --bg-main: #f8fafc;
    --bg-navbar: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --primary: #eab308; /* Piękny cytrynowy złoty kolor */
    --primary-hover: #ca8a04;
    --primary-light: #fef9c3;
    --paynow-color: #6366f1; /* Nowoczesny fiolet Paynow */
    --paynow-hover: #4f46e5;
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* NAVBAR (Logo po lewej stronie, linki po prawej) */
.navbar {
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo-container {
    display: flex;
    align-items: center;
}

.server-logo {
    height: 48px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
    padding: 8px 4px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* HERO SECTION (Elegancki czysty biały/jasny styl) */
.hero-section {
    background: radial-gradient(100% 100% at 50% 0%, rgba(234, 179, 8, 0.06) 0%, rgba(248, 250, 252, 0) 100%), #ffffff;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    padding: 80px 20px;
}

.badge {
    background-color: var(--primary-light);
    color: #854d0e;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-section h1 span {
    color: var(--primary);
    position: relative;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* SEKCJE NAGŁÓWKÓW */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-icon-color {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}

/* SIATKA SKLEPU */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.shop-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.card-image-box {
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f5f9;
    position: relative;
}

.pack-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #10b981;
    color: white;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Tła tematyczne dla rang */
.vip-theme { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #1e40af; }
.svip-theme { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); color: #991b1b; }
.mvip-theme { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #6b21a8; }
.lemon-theme { background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%); color: #854d0e; }
.key-box { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); }

.rank-icon {
    max-height: 160px;
    max-width: 160x;
    object-fit: contain;
}

.icon-fallback {
    display: none;
    font-size: 40px;
}

.card-body {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rank-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.rank-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: auto;
}

.rank-price span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-buy {
    background-color: var(--text-primary);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-buy:hover {
    background-color: #1e293b;
}

/* ETSTETYCZNY BIAŁY MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-window {
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-pretitle {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #ef4444;
}

.modal-body {
    padding: 28px;
}

/* Nowoczesne grupy inputów */
.modern-input-group {
    margin-bottom: 24px;
}

.modern-input-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.modern-input-group input[type="text"] {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.modern-input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.12);
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Customowy Checkbox */
.modern-checkbox-container {
    margin-top: 16px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #e2e8f0;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}

/* Stopka Modalu */
.modal-footer {
    padding: 20px 28px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    background: none;
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background-color: #e2e8f0;
}

.btn-paynow {
    background-color: var(--paynow-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.btn-paynow:hover {
    background-color: var(--paynow-hover);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* ZAKŁADKI REGULAMIN / KONTAKT */
.tab-content {
    display: none;
}

.active-tab {
    display: block;
}

.content-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.content-box h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.alert-info {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 8px;
    color: #78350f;
    margin-bottom: 24px;
}

.styled-list {
    padding-left: 20px;
}

.styled-list li {
    margin-bottom: 12px;
    font-weight: 500;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background-color: #f8fafc;
}

.contact-list i {
    font-size: 24px;
    color: var(--primary);
}
/* ZAKŁADKA ZESPÓŁ */
.team-container {
    padding: 30px;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.team-tier-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.team-tier-title:first-child {
    margin-top: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.center-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    max-width: 260px; /* Przydatne dla center-grid */
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-skin {
    height: 180px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
}

.team-role {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.team-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}
/* Grafika Rangi (Zamiast tekstu) */
.team-role-img {
    height: 28px; /* Reguluj tę wartość, by powiększyć/pomniejszyć plakietkę rangi */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px auto; /* Wyśrodkowanie i odstęp od nicku na dole */
}
/* ========================================= */
/* STYLE DLA NOWEGO WYBORU TRYBÓW I SKLEPU */
/* ========================================= */

.disabled-mode {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.disabled-mode:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--border-color) !important;
}

.disabled-btn {
    background-color: #94a3b8 !important;
    color: #cbd5e1 !important;
    cursor: not-allowed;
}

.active-mode {
    cursor: pointer;
    border: 2px solid transparent;
}

.active-mode:hover {
    border-color: var(--primary) !important;
}

/* Wygląd panelu z nazwą trybu */
.selected-mode-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.selected-mode-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-mode-info h2 span {
    color: var(--primary);
}

/* Wymuszamy domyślne chowanie fallback-u przycisków i ikon */
.mode-card .card-image-box img {
    margin-bottom: 0;
}