/* ==========================================================================
   1. CZCIONKI, ZMIENNE GLOBALNE I RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gold: #C59B4B;
    --primary-gold-light: #E5C173;
    --bduel-gold: #C59B4B;

    --kick-green: #53fc18; 
    --twitch-gold: #C59B4B;
    --youtube-red: #FF0000;
    --discord-gold: #C59B4B;
    --raid-gold-accent: #C59B4B;
    --raid-gold-main: #C59B4B;
    
    --tibia-blue: #00A3FF;
    --tibia-dark-blue: #002D5A;
    --xp-orange: #faa61a;
    
    --success: #39ff14;
    --danger: #ff1439;
    --info: #E5C173;
    
    --bg-dark: #0C0C0C;
    --bg-panel: #141414;
    --text-main: #E5C173;
    --text-muted: #474747;
}

/* Globalne nadpisania dla elementów nawigacyjnych Bootstrap (jeśli są używane w szablonach) */
.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link,
.nav-link.active {
    background-color: var(--primary-gold) !important;
    color: #000 !important;
}
.nav-link:hover {
    color: var(--primary-gold-light) !important;
}

body {
    margin: 0; 
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    background-color: #060606;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -0.2px;
    position: relative;
}

/* Klasa pomocnicza dla układu dashboardu z sidebar-em */
body.dashboard-layout {
    display: flex;
}

/* --- OPTYMALIZACJA TŁA (GŁADKIE TŁO BEZ BANDINGU) --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at top center, oklch(0.18 0.03 76) 0%, oklch(0.05 0 0) 80%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    width: 200%; height: 200%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.025;
    z-index: -1;
    pointer-events: none;
    animation: noise-grain 0.2s infinite;
}

/* ==========================================================================
   2. ELEMENTY GLOBALNE (SCROLLBAR, ANIMACJE, POŚWIATY)
   ========================================================================== */
::-webkit-scrollbar { 
    width: 6px; 
}
::-webkit-scrollbar-track { 
    background: #060606; 
}
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #B3893E, #E5C173); 
    border-radius: 10px; 
}

.bg-glow {
    position: fixed;
    width: 500px; height: 500px;
    background: #2D1F0B;
    filter: blur(180px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -2;
    top: -10%; left: -10%;
    animation: float-bg 22s infinite ease-in-out alternate;
    pointer-events: none;
}
.bg-glow.gold-glow { 
    background: #1C1406; 
    right: -15%; 
    top: 35%; 
    left: auto; 
    animation-delay: -11s; 
    opacity: 0.12; 
}

@keyframes float-bg {
    0% { transform: translateY(0px) translateX(0px) scale(1); }
    100% { transform: translateY(30px) translateX(20px) scale(1.02); }
}

@keyframes noise-grain {
    0% { transform: translate(0,0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 2%); }
    30% { transform: translate(-2%, -2%); }
    40% { transform: translate(1%, 3%); }
    50% { transform: translate(-1%, 1%); }
    60% { transform: translate(-3%, -1%); }
    70% { transform: translate(2%, 1%); }
    80% { transform: translate(1%, -2%); }
    90% { transform: translate(-1%, 3%); }
    100% { transform: translate(0, 0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   3. NAWIGACJA (NAVBAR, TOPBAR)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: rgba(6, 6, 6, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 193, 115, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3em;
    font-weight: 800;
    color: var(--primary-gold);
    text-shadow: 0 0 15px rgba(197, 155, 75, 0.4);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.navbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #B3893E;
    box-shadow: 0 0 15px rgba(179, 137, 62, 0.3);
}

.topbar {
    background: rgba(12, 12, 12, 0.75) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(197, 155, 75, 0.2);
    padding: 3px 40px !important;
    margin: 0 -40px 25px -40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.topbar h1 { 
    margin: 0; 
    font-size: 1.6em; 
    line-height: 1.2; 
    color: #f1f894;
    text-shadow: 0 0 25px rgba(255, 251, 0, 0.842);
}
.topbar p { margin: 2px 0 0 0; font-size: 0.9em; color: #ffffff }
.topbar-actions { display: flex; gap: 10px; margin-top: 5px;}

.user-greeting { 
    display: none; 
    color: #888; 
    font-weight: 400; 
}
@media(min-width: 600px) { 
    .user-greeting { display: inline; } 
}

/* ==========================================================================
   4. PRZYCISKI
   ========================================================================== */
.btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78em;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #E5C173 0%, #B3893E 100%);
    color: #060606 !important;
    box-shadow: 0 4px 15px rgba(179, 137, 62, 0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(179, 137, 62, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(229, 193, 115, 0.03);
    color: #E5C173 !important;
    border: 1px solid rgba(229, 193, 115, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-secondary:hover {
    background: rgba(229, 193, 115, 0.08);
    border-color: rgba(229, 193, 115, 0.5);
    color: #fff !important;
    box-shadow: 0 6px 25px rgba(179, 137, 62, 0.15);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(255, 46, 81, 0.04);
    color: #ff2e51 !important;
    border: 1px solid rgba(255, 46, 81, 0.2);
}
.btn-danger:hover {
    background: #ff2e51;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(255, 46, 81, 0.3);
    transform: translateY(-1px);
    border-color: transparent;
}

.btn-dashboard {
    color: var(--bg-dark);
    background-color: var(--bduel-gold);
    text-decoration: none;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-dashboard:hover {
    background-color: var(--text-main);
    transform: translateY(-2px);
}

.streamer-menu-btn {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid rgba(197, 155, 75, 0.2);
    color: var(--primary-gold-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}
.streamer-menu-btn:hover {
    background: rgba(197, 155, 75, 0.08);
    border-color: var(--primary-gold-light);
}
.streamer-menu-btn.active {
    background: rgba(197, 155, 75, 0.2);
    border-color: var(--primary-gold);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(197, 155, 75, 0.3);
}

/* ==========================================================================
   5. STRONA GŁÓWNA (LANDING PAGE - HERO, STATS, FEATURES)
   ========================================================================== */
.hero {
    text-align: center;
    padding: 50px 20px 30px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.hero h1 {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    background: linear-gradient(180deg, #FFFFFF 20%, #8d6307 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.hero p {
    font-size: 1.15em;
    color: #A6A6A6;
    line-height: 1.6;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.stats-container { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin-top: 40px; 
    flex-wrap: wrap; 
}
.stat-box {
    background: rgba(15, 15, 15, 0.4);
    border-radius: 16px;
    padding: 8px 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(229, 193, 115, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 193, 115, 0.3);
}
.stat-number { 
    font-size: 1.1em; 
    font-weight: 800; 
    letter-spacing: -1px; 
    color: #E5C173; 
    background: linear-gradient(135deg, #FFF, #E5C173); 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
}
.stat-label { 
    color: #6C6C6C; 
    font-size: 0.75em; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-weight: 700; 
    margin-top: 4px; 
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1340px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.feature-card {
    background: rgba(18, 18, 18, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255,255,255,0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--x, 0px) var(--y, 0px), rgba(229, 193, 115, 0.08), transparent 50%);
    z-index: -1; opacity: 0; transition: opacity 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 193, 115, 0.25);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 { color: #fff; font-size: 1.15em; font-weight: 700; margin: 0 0 10px 0; display: flex; align-items: center; gap: 10px; }
.feature-card p { color: #929292; font-size: 0.9em; line-height: 1.6; margin: 0; font-weight: 300; }

/* ==========================================================================
   6. PANEL ZARZĄDZANIA (DASHBOARD LAYOUT, SIDEBAR, SEKCJE)
   ========================================================================== */
.sidebar {
    width: 260px;
    background-color: var(--bg-panel);
    border-right: 1px solid rgba(197, 155, 75, 0.2);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}
.sidebar-link {
    display: block;
    padding: 10px 25px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
}
.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(197, 155, 75, 0.15);
    border-left: 3px solid var(--primary-gold);
    color: #fff;
    text-shadow: 0 0 10px rgba(197, 155, 75, 0.4);
}

.main-content {
    flex: 1;
    padding: 0 40px 30px 40px;
    width: 100%;
}

.dashboard-container { padding: 0 40px 40px 40px; width: 100%; position: relative; z-index: 10; }
.dashboard-header { position: relative; margin-top: 15px; margin-bottom: 20px; }
.dashboard-title { font-size: 2em; font-weight: 800; letter-spacing: -1px; margin-bottom: 0px; color: #fff; line-height: 1.2; }
.dashboard-subtitle { color: #888888; font-size: 0.9em; font-weight: 300; margin-bottom: 10px; }

.dashboard-header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .dashboard-header-actions { position: static; margin-top: 15px; justify-content: flex-start; }
}

/* --- SIATKA STATYSTYK I KARTY --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    margin-bottom: 0 !important;
    text-align: center;
    padding: 8px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card .stat-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.stat-card .stat-value {
    font-size: 1.4em;
    font-weight: 800;
}

.stat-card .stat-label {
    margin: 5px 0 0 0;
    color: rgba(229, 193, 115, 0.7);
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kolory pomocnicze dla statystyk */
.color-blue { color: var(--info); text-shadow: 0 0 15px rgba(0, 163, 255, 0.3); }
.color-gold { color: var(--primary-gold-light); text-shadow: 0 0 15px rgba(197, 155, 75, 0.3); }

.icon-blue { filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.4)); }
.icon-gold { filter: drop-shadow(0 0 10px rgba(197, 155, 75, 0.4)); }

/* --- UKŁADY ZAKŁADEK (DLA STREAMER APP I INNYCH) --- */
.tab-layout { display: flex; flex-direction: row; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.tab-main { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 20px; }
.tab-sidebar { width: 250px; min-width: 200px; }
.sticky-sidebar { position: sticky; top: 20px; }
.sidebar-box { background: rgba(0,0,0,0.4); border: 1px solid rgba(197, 155, 75, 0.15); border-radius: 8px; padding: 15px; }

/* --- WEWNĘTRZNE KARTY (INNER CARDS) --- */
.inner-card { background: rgba(20, 20, 20, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 20px; margin-bottom: 25px; }
.inner-card:last-child { margin-bottom: 0; }
.inner-card h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.2em; }
.inner-card p { color: #808080; font-size: 0.9em; margin-bottom: 15px; }
.inner-card label { display: block; margin-bottom: 8px; font-weight: bold; }

.inner-card.gold-border { border-color: rgba(197, 155, 75, 0.15); }
.inner-card.gold-border h3 { color: var(--primary-gold-light); }
.inner-card.info-border { border-color: rgba(197, 155, 75, 0.2); }
.inner-card.info-border h3 { color: var(--info); }

/* --- KARTY I GRUPY --- */
.setting-group, .card {
    background: rgba(15, 15, 15, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 155, 75, 0.15) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s ease;
    margin-bottom: 25px;
}
.setting-group:hover, .card:hover { border-color: rgba(197, 155, 75, 0.4) !important; }

.section-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bduel-gold);
    padding-bottom: 10px;
}
.section-header-admin { color: #E5C173; font-weight: 700; font-size: 1.15em; margin-top: 20px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1.5px; }
.section-header-other { color: #B3893E; font-weight: 700; font-size: 1.15em; margin-top: 35px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1.5px; }

/* --- GILDIE GRID --- */
.guilds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}
.guild-card {
    background: rgba(14, 14, 14, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.02);
}
.guild-card:hover {
    border-color: rgba(229, 193, 115, 0.35);
    transform: translateY(-4px);
}
.guild-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 14px;
    border: 2px solid rgba(229, 193, 115, 0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.guild-card:hover .guild-icon { border-color: #E5C173; }
.guild-icon-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #B3893E, #E5C173);
}
.guild-name { font-size: 1.1em; font-weight: 700; color: #fff; margin-bottom: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.premium-badge {
    display: inline-block;
    background: rgba(255, 170, 0, 0.06);
    border: 1px solid rgba(255, 170, 0, 0.25);
    padding: 4px 12px;
    border-radius: 30px;
    color: #ffaa00; font-size: 0.7em; font-weight: 800; margin-top: -6px; margin-bottom: 10px; letter-spacing: 0.5px;
}

/* ==========================================================================
   7. FORMULARZE, ZAKŁADKI, TABELE
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

input[type="text"], input[type="number"], select, textarea, .form-control {
    width: 100%;
    box-sizing: border-box;
    background: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid rgba(197, 155, 75, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 12px !important;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus, .form-control:focus { 
    border-color: var(--info) !important; 
    outline: none; 
}

/* --- TABS --- */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(197, 155, 75, 0.2);
}
.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: rgba(229, 193, 115, 0.6);
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.tab-btn:hover { background: rgba(197, 155, 75, 0.08); color: var(--primary-gold-light); }
.tab-btn:focus { outline: none; }

.tab-btn.active {
    background: linear-gradient(135deg, rgba(197, 155, 75, 0.35) 0%, rgba(197, 155, 75, 0.1) 100%);
    color: var(--primary-gold-light);
    border: 1px solid var(--primary-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(229, 193, 115, 0.1);
}

/* --- TABELE --- */
.table-container { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
th {
    color: var(--bduel-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
}
tr:hover { background-color: rgba(255, 255, 255, 0.02); }

/* --- PREMIUM LOCK --- */
.locked-premium {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    border: 1px solid #ffaa00 !important;
    border-radius: 8px;
}
.locked-premium::after {
    content: "🔒 Premium";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ffaa00;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

/* ==========================================================================
   8. CHOICES.JS CUSTOM THEME
   ========================================================================== */
.choices__inner {
    background-color: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid rgba(197, 155, 75, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    min-height: 44px;
}
.choices__input { background-color: transparent !important; color: #fff !important; }
.choices__list--dropdown {
    background-color: #141414 !important;
    border: 1px solid rgba(197, 155, 75, 0.3) !important;
    color: #fff !important;
    z-index: 9999;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: rgba(197, 155, 75, 0.25) !important;
    color: #fff !important;
}
.choices__item--choice.is-selected { display: none !important; }
.choices[data-type*="select-multiple"] .choices__inner .choices__item {
    background-color: var(--primary-gold) !important;
    border: 1px solid var(--primary-gold-light) !important;
    color: #000 !important;
    border-radius: 6px;
}

/* ==========================================================================
   9. STRONA RESTARTU I STATUSU + STOPKA
   ========================================================================== */
.status-page {
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.status-title {
    color: var(--info);
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.status-card {
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: left;
    background: rgba(20, 20, 20, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(197, 155, 75, 0.3);
    margin-bottom: 20px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(197, 155, 75, 0.2);
    border-top-color: var(--info);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

footer { 
    text-align: center; 
    padding: 30px 20px; 
    color: #444; 
    border-top: 1px solid rgba(229, 193, 115, 0.05); 
    margin-top: 50px; 
    position: relative; 
    z-index: 10; 
    font-size: 0.85em; 
}

/* ==========================================================================
   10. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; flex-direction: column; gap: 12px; text-align: center; }
    .navbar-actions, .navbar-actions > div { flex-direction: column; width: 100%; gap: 12px !important; }
    .hero { padding: 40px 20px 20px; }
    .hero h1 { font-size: 2.3em; }
    .hero p { font-size: 1em; margin-bottom: 25px; }
    .features { padding: 20px 15px; grid-template-columns: 1fr; gap: 15px; }
    .dashboard-container, .main-content { padding: 20px 15px; }
    .guilds-grid { grid-template-columns: 1fr; gap: 15px; }
    body.dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
}

/* ==========================================================================
   11. STYLE PRZENIESIONE Z INDEX.EJS
   ========================================================================== */
.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-greeting strong {
    color: #E5C173;
    font-weight: 600;
}

.navbar .btn,
.hero .btn-secondary,
.hero .btn-primary {
    padding: 8px 18px; /* Domyślne dla navbar */
}

.hero .btn {
    padding: 12px 28px; /* Nadpisanie dla hero */
}

.guild-card.guild-preview {
    background: rgba(10, 10, 10, 0.25);
}

.guild-card.guild-preview .guild-icon,
.guild-card.guild-preview .guild-icon-placeholder {
    opacity: 0.6;
}

.guild-card.guild-preview .guild-name {
    color: #777;
}

.guild-card.guild-preview .premium-badge {
    opacity: 0.7;
}

.guild-card .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.empty-guilds-container {
    grid-template-columns: 1fr;
}

.empty-guilds-card {
    text-align: center;
    padding: 50px 20px;
    background: rgba(14, 14, 14, 0.3);
    border-radius: 16px;
    border: 1px dashed rgba(229, 193, 115, 0.25);
}

.empty-guilds-card h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 8px;
}

.empty-guilds-card p {
    color: #777;
    margin-bottom: 25px;
    font-size: 0.95em;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

#payment-success-popup {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(14, 14, 14, 0.95);
    border: 1px solid rgba(229, 193, 115, 0.3);
    color: #fff;
    padding: 18px 26px;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(15px);
    border-left: 5px solid #E5C173;
}

#payment-success-popup .popup-icon {
    font-size: 2em;
    line-height: 1;
}

#payment-success-popup .popup-title {
    color: #E5C173;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

#payment-success-popup #payment-success-desc {
    color: #999;
    font-size: 0.9em;
}

/* ==========================================================================
   12. STYLE PRZENIESIONE Z TIBIA_TOOLS.EJS
   ========================================================================== */
#tibia-merged.setting-group {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.tibia-panel {
    background: rgba(20, 15, 5, 0.8);
    border: 1px solid rgba(197, 155, 75, 0.3);
    border-radius: 8px;
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.tibia-panel-danger { border-color: rgba(255, 20, 57, 0.3); }
.tibia-panel-warning { border-color: rgba(250, 166, 26, 0.3); }

.tibia-title-gold-accent { color: #E5C173; margin-top: 0; margin-bottom: 5px; text-shadow: 0 0 10px rgba(229, 193, 115, 0.3); }
.tibia-title-gold-bright { color: #E5C173; margin-top: 0; margin-bottom: 15px; }
.tibia-title-red { color: #ff1439; margin-top: 0; margin-bottom: 5px; }
.tibia-title-gold { color: #ffcc00; margin-top: 0; }
.tibia-title-drome { color: #C59B4B; margin: 0 0 5px 0; }
.tibia-text-muted { color: rgba(229, 193, 115, 0.6); font-size: 0.9em; margin-bottom: 15px; }

.tibia-panel select, 
.tibia-panel input[type="text"], 
.tibia-panel input[type="number"], 
.tibia-panel textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #4f545c;
    border-radius: 4px;
    background: #2f3136;
    color: white;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.tibia-panel .tibia-input-no-margin {
    margin-bottom: 0;
}

.tibia-btn-test-green { border: 1px solid #C59B4B !important; color: #C59B4B; background: transparent; }
.tibia-btn-test-gold-alt { border: 1px solid #C59B4B !important; color: #C59B4B; background: transparent; }
.tibia-btn-test-red { border: 1px solid #ff1439 !important; color: #ff1439; background: transparent; }
.tibia-btn-test-gold { border: 1px solid #ffcc00 !important; color: #ffcc00; background: transparent; }

.tibia-btn-save { background-color: #C59B4B !important; color: black !important; }

.tibia-table-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(197, 155, 75, 0.3);
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.tibia-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9em;
}

.tibia-table thead {
    background: rgba(197, 155, 75, 0.15);
    background: rgba(197, 155, 75, 0.15);
    position: sticky;
    top: 0;
    z-index: 1;
}

.tibia-table th {
    padding: 12px;
    color: #fff;
    border-bottom: 1px solid rgba(197, 155, 75, 0.3);
    border-bottom: 1px solid rgba(197, 155, 75, 0.3);
}

.tibia-table tr { border-bottom: 1px solid rgba(197, 155, 75, 0.2); }
.tibia-table tr { border-bottom: 1px solid rgba(197, 155, 75, 0.2); }
.tibia-table td { padding: 10px; }

.tibia-flex-container { display: flex; gap: 20px; flex-wrap: wrap; }
.tibia-flex-item-large { flex: 2; min-width: 300px; }
.tibia-flex-item-small { flex: 1; min-width: 250px; }

.boosted-preview-box {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.boosted-item { flex: 1; text-align: center; }
.boosted-item-sep { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.boosted-item img { max-height: 64px; margin-bottom: 10px; }
.boosted-item-name { font-weight: 700; color: #fff; display: block; }

/* ==========================================================================
   13. PIONOWY UKŁAD ZAKŁADEK (PRAWY SIDEBAR - TIBIA TOOLS)
   ========================================================================== */
.tibia-nav-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.tibia-nav-btn {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    background: rgba(12, 12, 12, 0.6);
    border: 1px solid rgba(197, 155, 75, 0.15);
    color: var(--primary-gold-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.tibia-nav-btn:hover {
    background: rgba(197, 155, 75, 0.08);
    border-color: rgba(197, 155, 75, 0.4);
    color: #fff;
}

.tibia-nav-btn.active {
    background: rgba(197, 155, 75, 0.2);
    border-color: var(--primary-gold);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(197, 155, 75, 0.2);
}