/* =========================================
   1. RESET I PODSTAWOWE USTAWIENIA
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body.tibia-theme {
    color: #aeaeae;
    font-family: 'Roboto', sans-serif;
    background: #000 url('/assets/img/background.jpg') no-repeat center top fixed;
    background-size: cover;
}

h1, h2, h3, .box-header, .zbot-logo, .horizontal-menu a, .btn-gold-big, .btn-nav-login {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

a { text-decoration: none; color: #aeaeae; transition: 0.3s; }
a:hover { color: #f1c40f; }

.main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. NAGŁÓWEK I LOGO
   ========================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo-area { display: flex; align-items: center; }

.zbot-logo {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Panel użytkownika i logowanie */
.user-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.user-panel input {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #444 !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    color: #fff !important;
    font-size: 12px;
    width: 110px;
    height: 32px;
    transition: 0.3s;
}

.user-panel input:focus {
    border-color: #f1c40f !important;
    background: rgba(0, 0, 0, 0.8) !important;
    outline: none;
}

.nav-login-form { display: flex; align-items: center; gap: 8px; }

.btn-nav-login {
    background: linear-gradient(180deg, #f1c40f 0%, #a67c00 100%);
    border: none;
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-nav-login:hover { filter: brightness(1.2); box-shadow: 0 0 10px rgba(241, 196, 15, 0.4); }

.welcome-msg { color: #eee; font-size: 0.95em; }
.welcome-msg strong { color: #f1c40f; }
.sep { color: #444; }
.link-register, .logout-link { font-size: 11px; font-weight: bold; text-transform: uppercase; }
.acp-link { color: #ff4500; font-weight: bold; margin-left: 5px; text-shadow: 0 0 10px rgba(255, 69, 0, 0.4); }

/* =========================================
   3. NAWIGACJA GŁÓWNA
   ========================================= */
.horizontal-menu {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-top: 2px solid #c5a059;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.horizontal-menu ul { display: flex; list-style: none; justify-content: center; }

.horizontal-menu a {
    display: block;
    padding: 18px 30px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.9em;
}

.horizontal-menu li.active a, .horizontal-menu a:hover {
    color: #f1c40f;
    background: rgba(197, 160, 89, 0.05);
}

/* =========================================
   4. UKŁAD TREŚCI (BOXES)
   ========================================= */
.main-content { flex: 1; width: 100%; }

.tibia-box {
    background-color: rgba(15, 15, 15, 0.92);
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    overflow: hidden;
    backdrop-filter: blur(3px);
}

.box-header {
    background: linear-gradient(180deg, #252525 0%, #111 100%);
    color: #f1c40f;
    padding: 15px 20px;
    border-bottom: 2px solid #c5a059;
    letter-spacing: 2px;
    text-shadow: 2px 2px 2px #000;
}

.box-content { padding: 30px; }

/* Home / Welcome */
.welcome-text { text-align: center; }
.welcome-text h2 { color: #fff; margin-bottom: 20px; font-size: 2em; }
.welcome-text p { font-size: 1.1em; line-height: 1.8; max-width: 700px; margin: 0 auto 25px; }

.hero-title h1 { font-size: 3em; margin-bottom: 10px; letter-spacing: 5px; text-shadow: 0 0 20px rgba(197, 160, 89, 0.4); }
.subtitle { font-style: italic; color: #f1c40f; margin-bottom: 40px; font-size: 1.2em; }
.gold-text { color: #f1c40f; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.feature-item { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: 0.3s; 
}
.feature-item:hover { background: rgba(241, 196, 15, 0.05); border-color: rgba(241, 196, 15, 0.2); }
.feature-item .icon { font-size: 2em; display: block; margin-bottom: 10px; }
.feature-item h3 { color: #fff; margin-bottom: 10px; }
.feature-item p { font-size: 0.85em; color: #888; }

/* Notice / Alert Box */
.notice-box {
    background: rgba(15, 14, 14, 0.801);
    border: 1px dashed #ff4444;
    padding: 20px;
    border-radius: 4px;
    margin: 30px auto;
    max-width: 800px;
}
.notice-box p { color: #ffaaaa; font-size: 0.95em; margin: 0; }
.notice-box strong { color: #fff; text-decoration: underline; }

/* =========================================
   5. PRZYCISKI
   ========================================= */
.action-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }

.btn-gold-big {
    background: linear-gradient(180deg, #f1c40f 0%, #a67c00 100%);
    color: #000;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
    border: 1px solid #f1c40f;
    cursor: pointer;
}

.btn-gold-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
    background: #fff;
    border-color: #fff;
}

.btn-outline-big {
    border: 1px solid #444;
    color: #aeaeae;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline-big:hover { border-color: #f1c40f; color: #f1c40f; }
.full-width { width: 100%; }

/* =========================================
   6. SKRYPTY (SCRIPTS)
   ========================================= */
.scripts-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.scripts-header {
    border-left: 4px solid #f1c40f;
    padding: 10px 20px;
    margin-bottom: 40px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    border-radius: 0 4px 4px 0;
}

.scripts-header h2 { font-size: 1.8em; text-shadow: 2px 2px 4px #000; color: #fff; }

.scripts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.script-card {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* <-- DODANE: Tworzy bezpieczny odstęp między tekstem a przyciskiem */
    transition: all 0.3s ease;
    min-height: 280px;
    backdrop-filter: blur(10px);
}

/* DODANE: Trochę więcej oddechu dla linii tekstu */
.script-card p {
    line-height: 1.5; 
}

.script-card.licensed { border-color: rgba(241, 196, 15, 0.5); }
.script-card:hover { transform: translateY(-8px); border-color: #f1c40f; box-shadow: 0 15px 40px rgba(0,0,0,0.8); }

.version-tag {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.download-btn {
    background: linear-gradient(180deg, #f1c40f 0%, #a67c00 100%);
    color: #000;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
}

.no-license-msg {
    background: rgba(40, 40, 40, 0.5);
    color: #666;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    border: 1px dashed #444;
}

/* =========================================
   7. PORADNIKI (GUIDES)
   ========================================= */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.guide-main-card { grid-column: span 2; min-height: auto !important; }
.guide-side-card { min-height: auto !important; }
.guide-header-row { display: flex; gap: 20px; align-items: center; margin-bottom: 25px; }
.guide-steps { display: flex; flex-direction: column; gap: 15px; }
.step { display: flex; align-items: center; gap: 15px; background: rgba(255, 255, 255, 0.03); padding: 12px 18px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.05); }
.step-num { background: #f1c40f; color: #000; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; }
.divider { border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 20px 0; }
code { background: #000; color: #f1c40f; padding: 2px 6px; border-radius: 4px; font-family: monospace; }
.guides-footer {
    text-align: center;
    margin-top: 50px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.7); /* Ciemne, półprzezroczyste tło */
    backdrop-filter: blur(5px);       /* Rozmycie tła */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.guides-footer p {
    color: #888;
    font-size: 0.9em;
    margin: 0;
    letter-spacing: 1px;
}

.guides-footer strong {
    color: #f1c40f; /* Podświetlenie Giveria.com na złoto */
}
/* W sekcji 7. PORADNIKI (GUIDES) */

.guide-side-card {
    min-height: auto !important;
    padding: 25px !important; /* Większy padding dla lepszego oddechu */
    background: rgba(10, 10, 10, 0.9) !important; /* Solidniejsze tło jak na screenie */
}

.side-section h3 {
    color: #f1c40f;
    margin-bottom: 12px;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #000;
}

.side-section p {
    font-size: 0.9em; /* Nieco większy niż poprzednio dla czytelności */
    color: #bbb;
    line-height: 1.6;
}

/* Kontener dla lepszego ułożenia */
.discord-tag-container {
    margin-top: 10px;
}

.discord-tag {
    display: inline-flex; /* Zmieniono na flex dla wyrównania ikony */
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: bold;
    background: rgba(88, 101, 242, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    font-size: 0.95em;
    transition: 0.3s;
}

.discord-tag:hover {
    background: rgba(88, 101, 242, 0.4);
    border-color: rgba(88, 101, 242, 0.6);
    transform: scale(1.02);
}

/* Styl ikonki SVG */
.discord-icon {
    width: 18px;
    height: 18px;
    color: #5865F2; /* Oryginalny kolor Discorda */
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}


/* --- PROFILE PAGE LAYOUT --- */

/* Główny kontener profilu z większym odstępem od góry */
.profile-container {
    padding-top: 60px;
    padding-bottom: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Nagłówek sekcji profilu */
.profile-header {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 4px solid #f1c40f;
}

.profile-header h2 {
    font-size: 2.2rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Styl boksów w profilu - dopasowany do tibia-box */
.profile-box {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    height: 100%;
    margin-bottom: 30px; /* Odstęp między boksami na mobile */
}

.profile-box-header {
    background: rgba(30, 30, 30, 0.5);
    padding: 15px 25px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
    color: #f1c40f;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-box-content {
    padding: 30px; /* Duży padding dla czytelności */
}

/* Formularze i Inputy */
.profile-group {
    margin-bottom: 25px; /* Większy odstęp między polami */
}

.profile-label {
    display: block;
    color: #888;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.tibia-input-profile {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    color: #fff;
    border-radius: 4px;
    transition: 0.3s;
}

.tibia-input-profile:focus {
    border-color: #f1c40f;
    outline: none;
    background: rgba(0, 0, 0, 0.6);
}

/* Strefa niebezpieczna */
.danger-zone {
    margin-top: 40px;
    padding: 20px;
    border: 1px dashed rgba(231, 76, 60, 0.5);
    border-radius: 4px;
    background: rgba(231, 76, 60, 0.05);
}

.danger-zone h4 {
    color: #e74c3c;
    margin-bottom: 10px;
}

/* Status licencji - odliczanie */
.license-display {
    text-align: center;
    padding: 20px 0;
}

.countdown-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-box .time {
    font-size: 2rem;
    color: #fff;
    font-family: 'monospace';
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

/* Przyciski */
.btn-profile-gold {
    background: linear-gradient(to bottom, #f1c40f, #d4ac0d);
    color: #000;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

.btn-profile-gold:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}
/* Wyświetlanie nicku zamiast inputa */
.profile-display-info {
    margin-bottom: 35px; /* Duży odstęp od formularza poniżej */
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-value {
    font-size: 1.4rem;
    color: #f1c40f; /* Złoty nick jak w nawigacji */
    font-weight: bold;
    margin: 5px 0 0 0;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

/* Odstępy w formularzu */
.profile-form-spacing {
    margin-top: 20px;
}

.profile-group {
    margin-bottom: 25px !important; /* Wymuszony odstęp między label/input a przyciskiem */
}

.profile-label {
    display: block;
    color: #888;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Przycisk - dodajemy mu oddech od góry */
.btn-profile-gold {
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Link usuwania - poprawa widoczności */
.danger-link {
    color: #ff4444 !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.danger-link:hover {
    border-bottom: 1px solid #ff4444;
    filter: brightness(1.2);
}
/* =========================================
   8. BŁĘDY I AUTORYZACJA
   ========================================= */
/* --- ERROR PAGE STYLES --- */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Środek ekranu */
    width: 100%;
}

.error-glass-box {
    position: relative;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 60px 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Duży napis 404 w tle */
.error-code-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 1;
}

.error-title {
    color: #fff;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.error-message {
    color: #888;
    margin-bottom: 30px;
}

/* Przyciski obok siebie */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-outline-big {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline-big:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Styl dla kontenera rejestracji */
.small-center {
    max-width: 500px;
    margin: 40px auto;
}

.form-group-custom {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group-custom label {
    color: #f1c40f;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* Nowoczesny input w stylu Tibijskim */
.tibia-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    padding: 12px 15px !important;
    color: #fff !important;
    font-family: 'Roboto', sans-serif;
    transition: 0.3s;
}

.tibia-input:focus {
    border-color: #f1c40f !important;
    background: rgba(20, 20, 20, 0.8) !important;
    outline: none;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
}

/* Poprawka dla tekstu pomocniczego */
.info-wrapper {
    margin-top: 5px;
}

.pulse-text {
    font-size: 0.75rem;
    color: #ff4444;
}

/* Stylowanie komunikatów o błędach (opcjonalnie) */
.error-msg-box {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ANIMACJA PULSOWANIA */
.pulse-text { animation: pulseAnimation 2s infinite; font-weight: bold; }
@keyframes pulseAnimation {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.98); color: #ff4444; }
}

/* =========================================
   9. STOPKA I MEDIA QUERIES
   ========================================= */
.main-footer { padding: 40px 0; text-align: center; background: rgba(0, 0, 0, 0.8); border-top: 1px solid #222; margin-top: auto; }

@media (max-width: 1100px) {
    .guides-grid, .scripts-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-main-card { grid-column: span 1; }
}

@media (max-width: 800px) {
    .features-grid, .scripts-grid, .guides-grid { grid-template-columns: 1fr; }
    .hero-title h1 { font-size: 2em; }
    .main-header { flex-direction: column; gap: 20px; }
}

@media (max-width: 600px) {
    .error-actions { flex-direction: column; }
    .error-code-bg { font-size: 120px; }
}

.popout-alert {
    position: fixed;
    top: 30px;
    right: -400px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-left: 5px solid #2ecc71;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.popout-alert.show {
    right: 30px;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon {
    color: #2ecc71;
    font-size: 20px;
    font-weight: bold;
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #2ecc71;
    width: 100%;
    animation: alert-timeout 5s linear forwards;
}

@keyframes alert-timeout {
    from { width: 100%; }
    to { width: 0%; }
}

.popout-alert.alert-error { border-left-color: #ff4444; }
.popout-alert.alert-error .alert-icon { color: #ff4444; }
.popout-alert.alert-error .alert-progress { background: #ff4444; }

/* Własny styl dla list punktowanych */
.tibia-list {
    list-style-type: none; /* Usuwamy domyślne kropki przeglądarki */
    padding-left: 0;
    margin: 0;
}

.tibia-list li {
    position: relative;
    padding-left: 20px; /* Miejsce na naszą własną kropkę */
    margin-bottom: 8px; /* Odstęp między punktami */
    color: #bbb;
}

.tibia-list li:last-child {
    margin-bottom: 0;
}

/* Tworzymy własną złotą kropkę */
.tibia-list li::before {
    content: "•"; /* Znak kropki */
    color: #f1c40f; /* Złoty kolor z Twojego motywu */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    line-height: 1.4; /* Wyrównanie kropki do tekstu */
}