﻿/* --- ZÁKLADNÍ PROMĚNNÉ --- */
:root {
    --bg-main: #060b13; /* Mírně tmavší a modernější */
    --bg-secondary: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.5); /* Lepší viditelnost karet na tmavém pozadí */
    
    --color-primary: #3b82f6;
    --color-primary-glow: rgba(59, 130, 246, 0.4);
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & ZÁKLAD --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-main) 0%, #020617 100%);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

.text-blue { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mt-10 { margin-top: 10px; }

/* --- NAVIGACE --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 11, 19, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 20px; }
.logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.nav-links a:hover { color: var(--color-primary); }

.btn-nav { background: var(--color-primary); padding: 8px 20px; border-radius: 8px; box-shadow: 0 0 15px var(--color-primary-glow); }
.btn-nav:hover { background: #2563eb; box-shadow: 0 0 25px var(--color-primary-glow); color: white !important; }

/* --- HERO SEKCE --- */
.hero {
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative;
    background: linear-gradient(to bottom, rgba(6, 11, 19, 0.6), var(--bg-main)), url('https://images.unsplash.com/photo-1607513746994-51f730a44832?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat !important;
}
.hero h1 { font-size: 5rem; font-weight: 800; margin-bottom: 10px; text-shadow: 0 0 30px var(--color-primary-glow); }
.hero p { font-size: 1.2rem; color: var(--color-text-muted); max-width: 600px; margin: 0 auto 30px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Tlačítka */
.btn-primary, .btn-secondary, .btn-store {
    padding: 15px 35px; font-size: 1rem; font-weight: 600; border-radius: 12px; cursor: pointer; text-decoration: none; transition: var(--transition); border: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-primary { background: var(--color-primary); color: white; box-shadow: 0 10px 20px -10px var(--color-primary); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px -10px var(--color-primary); background: #2563eb; }

.btn-secondary { background: rgba(255, 255, 255, 0.05); color: white; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.w-100 { width: 100%; display: flex; }

/* --- SEKCE A KARTY --- */
.section { padding: 100px 0; }
.dark-bg { background-color: rgba(15, 23, 42, 0.5); }
.section-title { font-size: 3rem; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--color-text-muted); margin-bottom: 50px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }

.card {
    background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 40px; text-align: center;
    transition: var(--transition); backdrop-filter: blur(10px); position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.card:hover { transform: translateY(-10px); border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }

.card-icon { font-size: 2.5rem; margin-bottom: 20px; }
.placeholder-img { width: 100px; height: 100px; background: linear-gradient(135deg, #3b82f6, #1e3a8a); border-radius: 50%; margin: 0 auto 20px; box-shadow: 0 0 20px var(--color-primary-glow); }

.role { font-weight: 600; margin-top: 5px; font-size: 0.9rem; }
.role.owner { color: #ef4444; }
.role.admin { color: #f59e0b; }
.role.builder { color: #10b981; }

/* --- PRAVIDLA --- */
.rules-list { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 40px auto 0; }
.rule-item { display: flex; gap: 20px; background: var(--bg-card); padding: 25px; border-radius: 15px; align-items: flex-start; border-left: 4px solid var(--color-primary); transition: var(--transition); }
.rule-item:hover { transform: translateX(10px); background: rgba(255, 255, 255, 0.08); }
.rule-bullet { min-width: 35px; height: 35px; background: var(--color-primary); border-radius: 50%; box-shadow: 0 0 12px var(--color-primary-glow); display: flex; justify-content: center; align-items: center; color: white; }
.rule-item h4 { font-size: 1.2rem; margin-bottom: 5px; }
.rule-item p { color: var(--color-text-muted); font-size: 0.95rem; }
.rules-category { font-size: 1.8rem; color: var(--color-text); margin: 60px 0 20px; text-align: left; max-width: 800px; margin-left: auto; margin-right: auto; border-bottom: 2px solid rgba(255,255,255,0.05); padding-bottom: 10px; }

/* ========================================================= */
/* --- REDESIGN OBCHODU ---                                  */
/* ========================================================= */
.store-container { max-width: 1100px; }
.store-header { text-align: center; margin-bottom: 40px; }
.store-info-box { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 12px; padding: 20px; text-align: center; color: var(--color-text-muted); font-size: 0.95rem; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 800px; margin: 50px auto 0; }
.store-info-box i { font-size: 2rem; }

.pricing { align-items: center; } /* Aby prostřední karta mohla být větší */

.price-card { padding: 40px 30px; text-align: left; display: flex; flex-direction: column; position: relative; }
.price-card h3 { font-size: 2rem; margin-bottom: 5px; text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.price { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 30px; }
.price span { font-size: 1rem; color: var(--color-text-muted); font-weight: 400; }

.tier-icon { font-size: 3rem; text-align: center; margin-bottom: 20px; }

.tier-features { list-style: none; flex: 1; margin-bottom: 30px; }
.tier-features li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--color-text-muted); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.tier-features li i { font-size: 1.1rem; }

.btn-store { width: 100%; margin-top: auto; padding: 15px; font-weight: bold; border-radius: 12px; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }

/* TIER BAREVNÁ SCHÉMATA */
.tier-vip { border-top: 5px solid #3b82f6; }
.tier-vip .tier-icon { color: #3b82f6; text-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
.tier-vip .price { color: #3b82f6; }
.tier-vip .tier-features li i { color: #3b82f6; }
.btn-tier-vip { background: rgba(59, 130, 246, 0.1); border: 1px solid #3b82f6; color: #3b82f6; }
.btn-tier-vip:hover { background: #3b82f6; color: white; box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }

.tier-mvp { border-top: 5px solid #a855f7; transform: scale(1.05); z-index: 2; border-left: 1px solid rgba(168, 85, 247, 0.3); border-right: 1px solid rgba(168, 85, 247, 0.3); border-bottom: 1px solid rgba(168, 85, 247, 0.3); background: rgba(168, 85, 247, 0.05); box-shadow: 0 0 40px rgba(168, 85, 247, 0.15); }
.tier-mvp .tier-icon { color: #a855f7; text-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
.tier-mvp .price { color: #a855f7; }
.tier-mvp .tier-features li i { color: #a855f7; }
.btn-tier-mvp { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; border: none; box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.5); }
.btn-tier-mvp:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px rgba(168, 85, 247, 0.7); filter: brightness(1.1); }

.tier-dragon { border-top: 5px solid #ef4444; }
.tier-dragon .tier-icon { color: #ef4444; text-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
.tier-dragon .price { color: #ef4444; }
.tier-dragon .tier-features li i { color: #ef4444; }
.btn-tier-dragon { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; }
.btn-tier-dragon:hover { background: #ef4444; color: white; box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }

.badge-glow { position: absolute; top: 15px; right: -40px; background: #a855f7; color: white; font-size: 0.8rem; font-weight: bold; padding: 5px 45px; transform: rotate(45deg); box-shadow: 0 0 15px rgba(168, 85, 247, 0.5); letter-spacing: 1px; }

/* --- STRÁNKOVÁNÍ A OSTATNÍ --- */
.page-content { padding-top: 150px; }
.title-separator { width: 80px; height: 4px; background: var(--color-primary); margin: 15px auto 25px auto; border-radius: 2px; box-shadow: 0 0 10px var(--color-primary-glow); }

.admin-section-title { text-align: left; font-size: 2.2rem; margin-bottom: 5px; font-weight: 800; display: flex; align-items: center; gap: 15px; }
.admin-separator { margin: 10px 0 25px 0; margin-left: 0; }
.admin-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start; }
.admin-card { width: 200px; padding: 25px 15px; text-align: center; transition: var(--transition); background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.admin-card:hover { transform: translateY(-8px); border-color: var(--color-primary); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15); }
.admin-card h3 { font-size: 1.1rem; margin-top: 10px; }
.skin-3d { height: 120px; margin: 0 auto 15px; display: block; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5)); transition: var(--transition); }
.admin-card .skin-3d { height: 100px; margin: 0 auto 10px; }
.admin-card:hover .skin-3d, .card:hover .skin-3d { transform: scale(1.1) translateY(-5px); }

.rank-img { max-width: 96px; max-height: 35px; object-fit: contain; margin: 10px auto 0; display: block; }
.admin-card .rank-img { width: 72px; height: auto; display: block; margin: 5px auto 0; object-fit: contain; }
.rank-img.manager { transform: scale(1.3); } .rank-img.owner { transform: scale(1.0); } .rank-img.hadmin { transform: scale(1.3); } .rank-img.admin { transform: scale(1.0); } .rank-img.leader { transform: scale(1.1); } .rank-img.hhelper { transform: scale(1.4); } .rank-img.hbuilder { transform: scale(1.5); } .rank-img.shelper { transform: scale(1.4); } .rank-img.sbuilder { transform: scale(1.5); } .rank-img.helper { transform: scale(1.1); } .rank-img.builder { transform: scale(1.3); } .rank-img.thelper { transform: scale(1.4); } .rank-img.tbuilder { transform: scale(1.5); }

/* --- MODAL A FORMULÁŘE --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(6, 11, 19, 0.9); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-content { background: var(--bg-secondary); width: 100%; max-width: 400px; padding: 40px; position: relative; animation: modalFadeIn 0.3s ease-out forwards; border: 1px solid rgba(59, 130, 246, 0.3); box-shadow: 0 0 50px rgba(0,0,0,0.5); }
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
.close-btn { position: absolute; top: 15px; right: 20px; color: var(--color-text-muted); font-size: 28px; font-weight: bold; cursor: pointer; transition: var(--transition); }
.close-btn:hover { color: #ef4444; }

.btn-panel { background: #f59e0b; box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
.btn-panel:hover { background: #d97706; box-shadow: 0 0 25px rgba(245, 158, 11, 0.6); }

.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }
.panel-input { width: 100%; padding: 12px 15px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: var(--color-text); font-family: 'Poppins', sans-serif; outline: none; transition: var(--transition); }
.panel-input.with-icon { padding-left: 45px; }
.panel-input:focus { border-color: var(--color-primary); background: rgba(0, 0, 0, 0.4); box-shadow: 0 0 10px rgba(59, 130, 246, 0.2); }

.custom-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.2em; padding-right: 3rem; }
.custom-select option { background-color: var(--bg-secondary); color: var(--color-text); padding: 10px; }

/* --- PANEL --- */
.panel-body { overflow: hidden; height: 100vh; background: var(--bg-main); }
.panel-layout { display: flex; height: 100vh; width: 100vw; }
.sidebar { width: 280px; background: rgba(15, 23, 42, 0.8); border-right: 1px solid rgba(255, 255, 255, 0.05); padding: 20px; display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.sidebar-logo { text-align: center; margin-bottom: 30px; }
.user-info-mini { text-align: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 20px; }
.panel-skin-mini { height: 60px; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5)); margin-bottom: 10px; }
.panel-rank-mini { max-width: 70px; display: block; margin: 5px auto 0; }
.nav-category { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 600; margin: 15px 0 5px 10px; }

.side-btn { width: 100%; text-align: left; background: transparent; border: none; color: var(--color-text); padding: 12px 15px; border-radius: 8px; cursor: pointer; transition: var(--transition); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.side-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--color-primary); }
.side-btn.active { background: var(--color-primary); color: white; box-shadow: 0 4px 10px var(--color-primary-glow); }
.nav-badge { background: #ef4444; color: white; font-size: 0.75rem; font-weight: bold; padding: 2px 8px; border-radius: 20px; box-shadow: 0 0 10px rgba(239,68,68,0.5); margin-left: ; }

.panel-main { flex: 1; overflow-y: auto; padding: 40px; }
.panel-section { display: none; animation: fadeInSec 0.4s ease forwards; }
.panel-section.active { display: block; }
@keyframes fadeInSec { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.panel-title { font-size: 2.5rem; margin-bottom: 30px; font-weight: 800; }
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.profile-card { text-align: center; }
.profile-info ul { list-style: none; text-align: left; margin-top: 20px; }
.profile-info li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; gap: 10px; }

.ticket-list { display: flex; flex-direction: column; gap: 15px; }
.ticket-item { padding: 20px 25px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; border-left: 4px solid var(--color-primary); }
.ticket-item:hover { transform: translateY(-3px); }
.ticket-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.ticket-actions { display: flex; align-items: center; gap: 15px; }

.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.status-open { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-closed { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.btn-small { padding: 8px 15px; font-size: 0.85rem; border-radius: 8px; }

.ticket-chat { text-align: left; padding: 30px; }
.ticket-header-chat { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; margin-bottom: 20px; }
.chat-messages { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; padding-right: 15px; scroll-behavior: smooth; }
.chat-msg { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 15px; width: 100%; }
.chat-skin { width: 50px; height: 50px; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); border-radius: 8px; }
.msg-box { display: flex; flex-direction: column; width: 100%; flex: 1; }
.msg-info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.95rem; color: var(--color-text); }
.msg-time { font-size: 0.8rem; color: var(--color-text-muted); opacity: 0.7; }
.msg-rank { max-height: 20px; object-fit: contain; }
.msg-content { padding: 15px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); width: 100%; line-height: 1.6; }

.role-hrac .msg-content { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1); }
.role-helper .msg-content { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); }
.role-admin .msg-content { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
.role-vedeni .msg-content { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); }

.admin-actions { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 20px; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }