/* ==========================================================================
   1. PROMĚNNÉ A KOŘENOVÉ NASTAVENÍ
   ========================================================================== */
:root {
    --bg-dark: #181828;
    --bg-panel: #232346;
    --bg-card: #18182a;
    --bg-card-hover: #232346;
    --primary-gradient: linear-gradient(135deg, #4a6cf7 0%, #5a3fa2 100%);
    --accent: #4a6cf7;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --input-bg: #18182a;
    --input-border: #35355a;
    --success: #4ade80;
    --error: #f87171;
    --facebook: #1877F2;
    --google: #DB4437;
}

/* ==========================================================================
   2. GLOBÁLNÍ RESET A ZÁKLADNÍ STYLY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-dark);
    line-height: 1.6;
    display: block; 
    min-height: 100vh;
    padding-top: 0; 
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    filter: brightness(1.2);
    text-decoration: none;
}

/* ==========================================================================
   3. HORIZONTÁLNÍ SCROLL - DESKTOP LOGIC
   ========================================================================== */

.main-container {
    width: 100%;
    display: block;
    overflow: visible; 
    position: relative;
    margin-top: 64px; /* Odsazení pod fixním headerem */
}

.horizontal-scroll-wrapper {
    position: relative;
    width: 100%;
    height: 450vh; /* Délka virtuálního scrollu */
}

.horizontal-sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 64px; 
    height: calc(100vh - 64px); 
    width: 100%;
    overflow: hidden; 
    display: flex;
    align-items: center; 
    z-index: 10;
}

.horizontal-content-strip {
    display: flex;
    width: 300vw; 
    height: 100%;
    will-change: transform;
}

/* --- Panely --- */
.pane {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    /* Spotlight gradient */
    background: linear-gradient(
        to right, 
        var(--bg-dark) 0%, 
        var(--bg-panel) 25%, 
        var(--bg-panel) 75%, 
        var(--bg-dark) 100%
    );
}

/* ==========================================================================
   VISUAL STYLE PANELŮ (Angled Gradient)
   ========================================================================== */

.pane {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 64px; 
    box-sizing: border-box;
    position: relative;
    border: none;
    outline: none;
    box-shadow: none !important;
}

/* Sjednocený lineární gradient pro VŠECHNY sekce:
   - Začíná čistě tmavou (bg-dark)
   - Rychle přejde do barvy panelu (bg-panel) ve středu, kde je obsah
   - Rychle se vrátí do tmavé (bg-dark) na konci sekce
*/
.pane.hero-section,
.pane.stats-section,
.pane.about-section {
    background: linear-gradient(
        to right, 
        var(--bg-dark) 0%, 
        var(--bg-panel) 25%, 
        var(--bg-panel) 75%, 
        var(--bg-dark) 100%
    );
}

/* Odstranění jakýchkoliv pozůstatků šikmých gradientů nebo stínů, 
   které by mohly narušovat plynulost spojů.
*/
.pane::before, .pane::after {
    display: none !important;
}

/* Zbytek stylů */
.main-header-content { position: relative; z-index: 20; max-width: 800px; margin: 0 auto; text-align: center; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 2rem; }
.stat-card { background: rgba(255,255,255,0.02); padding: 3rem; border-radius: 30px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(5px); display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: clamp(5rem, 12vw, 9rem); font-weight: 900; line-height: 1; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 20px rgba(74, 108, 247, 0.5)); }
.stat-label { font-size: 1.2rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; margin-top: 1rem; }
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Mírně menší mezera, aby se vešly tři */
    margin: 3.5rem 0;
    justify-content: center;
    width: 100%;
    max-width: 1200px; /* Trochu širší pro 3 karty */
}
.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--input-border);
    padding: 2rem;
    border-radius: 20px;
    flex: 1;
    min-width: 280px; /* Zmenšeno, aby se lépe skládaly */
    max-width: 380px; /* Zmenšeno pro symetrii tří karet */
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.feature-item:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--bg-panel); }
.feature-item i {
    font-size: 2.5rem; /* Trochu větší ikony pro AI look */
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: block;
}
.custom-list { list-style: none; margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; text-align: left; width: 100%; max-width: 800px; }
.custom-list li { display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.custom-list li i { color: var(--success); }
.pane.about-section {
    display: flex;
    align-items: center;      /* Vertikální centr */
    justify-content: center;  /* Horizontální centr */
    padding: 80px 2rem;       /* Horní padding kvůli headeru */
}

.about-content {
    max-width: 1100px;        /* Ideální šířka pro čtení */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;      /* Vycentruje nadpisy a texty na střed */
    text-align: center;       /* Text na střed */
    animation: fadeIn 0.8s ease-out;
}

/* Úprava mřížky karet, aby byla vždy uprostřed */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 3.5rem 0;
    justify-content: center;  /* Vycentruje karty, pokud jsou jen dvě */
    width: 100%;
}

/* Zarovnání seznamu s ikonkami na střed celé sekce */
.custom-list {
    list-style: none;
    padding: 0;
    display: inline-grid;     /* Změna na inline-grid pro lepší centrování */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    text-align: left;         /* Text uvnitř řádku vlevo */
    margin: 2rem auto 0 auto;
    max-width: 900px;
    width: 100%;
}

.services-intro {
    margin-top: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   4. HEADER / NAVBAR PILL DESIGN (VŽDY STICKY)
   ========================================================================== */
header {
    background: var(--bg-panel);
    width: 100%;
    position: fixed; /* Header je fixní a zůstává nahoře */
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--input-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 0.6rem 0;
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-bar-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-bar-user ul {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.nav-bar-user a, 
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--input-border);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bar-user a:hover, 
.dropdown-trigger:hover {
    background: rgba(74, 108, 247, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

.nav-cta {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.nav-bar-user i { font-size: 1.1rem; color: var(--accent); }
.nav-cta i { color: #fff; }

.main-cta-btn {
    display: inline-block;
    background: var(--primary-gradient) !important;
    color: #fff !important;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.main-cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(74, 108, 247, 0.5);
    filter: brightness(1.1);
}

/* --- Dropdown --- */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--bg-panel);
    min-width: 220px;
    border-radius: 18px;
    border: 1px solid var(--input-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: none; 
    flex-direction: column;
    padding: 8px 0;
    z-index: 9999;
    animation: slideDown 0.2s ease-out;
}

.dropdown-menu li { list-style: none; width: 100%; }

.dropdown-menu li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--text-main) !important;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent) !important;
}

.dropdown-header {
    padding: 10px 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.divider {
    height: 1px;
    margin: 12px 0;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
    box-shadow: 0 0 8px rgba(74, 108, 247, 0.4); 
    opacity: 0.6;
    width: 100%;
    display: block;
    border: none;
}

.logout-link { color: #ff5f5f !important; }
.logout-link:hover { background: rgba(255, 95, 95, 0.1) !important; }

/* ==========================================================================
   5. MODALY (Login / Register / Forms)
   ========================================================================== */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center; 
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-panel);
    color: var(--text-main);
    padding: 2.5rem;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

.close {
    position: absolute; right: 1.2rem; top: 1rem;
    font-size: 1.8rem; cursor: pointer;
    color: var(--text-main); opacity: 0.6;
}

.modal-content input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    margin-bottom: 1.2rem;
}

.modal-content button[type="submit"] {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.social-login-row { display: flex; gap: 0.8rem; margin-bottom: 1.2rem; justify-content: center; }
.social-btn { width: 42px; height: 42px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.social-btn.facebook { background: var(--facebook); color: white; }
.social-btn.google { background: var(--google); color: white; }

/* ==========================================================================
   6. OSTATNÍ (Profile, Footer, Request, etc.)
   ========================================================================== */
.request-container {
    max-width: 650px;
    width: 100%;
    margin: 2rem auto;
    padding: 3rem;
    background: var(--bg-panel);
    border-radius: 30px;
    border: 1.2px solid var(--input-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

input, textarea, select {
    background: var(--input-bg);
    color: var(--text-main);
    border: 1.2px solid var(--input-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    outline: none;
    width: 100%;
}

input:focus, textarea:focus { border-color: var(--accent); }

.site-footer {
    background: var(--bg-panel);
    color: var(--text-main);
    padding: 4rem 1rem 2rem 1rem;
    margin-top: auto;
    border-top: 1px solid var(--input-border);
    /* Footer taky chytne snap, pokud je potřeba */
    scroll-snap-align: end; 
}

.footer-columns { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: center; max-width: 1200px; margin: 0 auto 3rem auto; }
.footer-col { min-width: 200px; text-align: left; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 1.2rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; color: var(--text-muted); }

/* Animace */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   7. DESIGN ŽÁDOSTI O WEB (Modern Request Page)
   ========================================================================== */

.request-page .main-container {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(circle at top right, rgba(74, 108, 247, 0.05), transparent);
}

.request-wrapper {
    width: 100%;
    max-width: 800px;
}

.request-card {
    background: var(--bg-panel);
    border: 1px solid var(--input-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.request-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.request-header i {
    font-size: 3rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 1rem;
}

.request-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.request-header p {
    color: var(--text-muted);
}

/* --- Formuáře --- */
.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modern-form .form-group {
    margin-bottom: 1.5rem;
}

.modern-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form input, 
.modern-form select, 
.modern-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid var(--input-border);
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.modern-form input:focus, 
.modern-form select:focus, 
.modern-form textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
    outline: none;
    box-shadow: 0 0 15px rgba(74, 108, 247, 0.2);
}

.modern-form select option {
    background-color: var(--bg-panel); /* Tmavé pozadí seznamu */
    color: var(--text-main);           /* Světlý text */
    padding: 10px;
}

.modern-form select option:checked,
.modern-form select option:hover {
    background-color: var(--accent) !important;
    color: #fff !important;
}

.modern-form select {
    cursor: pointer;
    appearance: none; /* Odstraní nativní šipku pro vlastní styling (volitelné) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234a6cf7' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 12px;
    padding-right: 3rem; /* Prostor pro novou šipku */
}

.domain-input-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.domain-input-group input {
    border-radius: 14px 0 0 14px;
    border-right: none;
}

.domain-suffix {
    background: var(--input-border);
    padding: 0.7rem 1rem; 
    border-radius: 0 12px 12px 0; 
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    border: 1.5px solid var(--input-border);
    display: flex;
    align-items: center;
    white-space: nowrap; 
}

/* --- Čipy (Checkbox výběr) --- */
.features-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--input-border);
}

.chip {
    position: relative; /* Důležité pro pozicování tooltipu */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--input-border);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

/* Skrytý nativní checkbox */
.chip input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

/* Hover stav */
.chip:hover {
    background: rgba(74, 108, 247, 0.08);
    border-color: var(--accent);
    color: var(--text-main);
    transform: translateY(-2px);
}

.chip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.chip .tooltip-text {
    width: 180px; /* O něco užší pro moduly */
    bottom: 150%; /* O kousek výš než standardní tooltip */
    text-align: center;
    font-weight: 500;
}

/* AKTIVNÍ STAV (Když je checkbox zaškrtnutý) */
.chip:has(input:checked) {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.4);
}

/* Stylování ikony uvnitř čipu */
.chip i {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.chip:has(input:checked) i {
    color: white;
}

/* --- Status zprávy --- */
.status-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.status-msg.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-msg.success a {
    margin-left: auto;
    color: #4ade80;
    font-weight: 700;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    gap: 10px;
    padding: 1.2rem;
}

/* --- Styl pro Tooltip --- */
.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1;
}

.info-tooltip i:hover {
    color: var(--accent);
}

.tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: var(--bg-card);
    color: var(--text-main);
    text-align: left;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* Zobrazí se nad ikonkou */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: none; /* Zruší uppercase z labelu, pokud tam je */
    letter-spacing: normal;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Šipka tooltipu */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--input-border) transparent transparent transparent;
}

/* Hover efekt */
.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.features-selection {
    overflow: visible !important;
}

/* ==========================================================================
   8. MODERN ADMIN DASHBOARD (EQUAL HEIGHT & CENTERED)
   ========================================================================== */

.zunix-app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    
    /* KLÍČOVÁ ZMĚNA: stretch zajistí stejnou výšku karet */
    align-items: stretch; 
    
    /* KLÍČOVÁ ZMĚNA: toto vycentruje celý řádek karet vertikálně v okně */
    align-content: center; 
    
    justify-content: center;
    padding: 40px;
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* KARTY */
.admin-dashboard-card {
    background: #1a1c2e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    
    /* Flex nastavení pro obsah karty */
    display: flex;
    flex-direction: column;
    
    /* Výškové limity */
    min-height: 500px; 
    max-height: 80vh; /* Aby se vešly na obrazovku */
    overflow-y: auto; /* Scroll jen uvnitř karty, ne celé stránky */
}

/* Specifické šířky */
.admin-dashboard-card:first-child { 
    flex: 1 1 450px; /* Levá karta (žádosti) */
} 

.admin-dashboard-card:last-child { 
    flex: 1.5 1 650px; /* Pravá karta (správa) je širší */
}

/* --- Zbytek stylů zůstává beze změny --- */
.admin-main-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-info { display: flex; align-items: center; gap: 20px; }
.accent-icon { font-size: 2.5rem; color: var(--accent); }

.admin-request-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.2s;
}
.admin-request-row:hover { transform: scale(1.01); }
.admin-request-row .col-user { margin-bottom: 15px; }
.admin-request-row .col-details { margin-bottom: 20px; color: #b0b3c8; font-size: 0.9rem; }

.admin-table-wrapper {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    border: 1px solid var(--input-border);
    overflow: hidden;
    /* Důležité: aby se tabulka roztáhla */
    flex: 1; 
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 15px 20px; text-align: left; background: rgba(255, 255, 255, 0.03); color: var(--accent); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.admin-table td { padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); vertical-align: middle; }

.admin-action-ui { display: flex; flex-direction: column; gap: 10px; }
.btn-group-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-approve-lg { background: var(--primary-gradient); color: #fff; border: none; padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn-reject-lg { background: rgba(248, 113, 113, 0.1); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.2); padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn-reject-lg:hover { background: #f87171; color: white; }

.zunix-action-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: white; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.zunix-action-btn:hover { background: rgba(255, 255, 255, 0.15); }

.msg-input-wrapper { display: flex; background: rgba(0,0,0,0.2); border: 1px solid var(--input-border); border-radius: 10px; overflow: hidden; }
.msg-input { background: transparent !important; border: none !important; padding: 8px 12px !important; font-size: 0.8rem !important; flex: 1; }
.btn-send-msg { background: var(--accent); color: white; border: none; padding: 0 12px; }

.empty-msg { text-align: center; color: #555; padding: 40px; margin: auto; }

/* ==========================================================================
   9. USER WEBSITES LIST
   ========================================================================== */

.web-list-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.web-list-header {
    margin-bottom: 30px;
}

.web-list-header h1 {
    color: #fff;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.web-list-header p {
    color: #888;
    margin-top: 10px;
}

.web-table-wrapper {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.web-table {
    width: 100%;
    border-collapse: collapse;
}

.web-table th, 
.web-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
}

.web-table th {
    background: #141414;
    color: #6366f1;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.web-table tr:last-child td {
    border-bottom: none;
}

.web-table tr:hover {
    background: #121212;
}

/* Status & Text styles */
.subdomain-text {
    color: #fff;
    font-size: 1.05rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #222;
    color: #aaa;
}

.status-active {
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.2);
}

.date-cell {
    color: #666;
    font-size: 0.9rem;
}

.empty-table-msg {
    text-align: center;
    color: #555;
    padding: 50px !important;
    font-style: italic;
}

/* Visit Button */
.btn-visit {
    background: #4f46e5;
    color: white;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-visit:hover {
    background: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* ==========================================================================
   10. ZUNIX DASHBOARD & TABLES (MOJE-WEBY.PHP)
   ========================================================================== */

.zunix-app-body {
    background-color: #0b0d17; /* Sjednocení s tmavým pozadím */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-container {
    flex: 1; /* Vyplní prostor mezi headerem a footerem */
    display: flex;
    align-items: center;      /* Vertikální vycentrování karty */
    justify-content: center;   /* Horizontální vycentrování karty */
    padding: 40px 20px;
    width: 100%;
}

.dashboard-card {
    background: #1a1c2e; /* Barva karty z screenshotu */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 1100px; /* Maximální šířka karty */
    margin: 0 auto;
}

/* Úprava headeru uvnitř karty, aby tlačítko nebylo nalepené */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 25px;
    gap: 20px;
}

/* Nový styl pro stav "pending" (žlutý/oranžový) */
.pill-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Zbytek tabulky zůstává stejný pro zachování designu */
.table-responsive {
    overflow-x: auto;
}

.zunix-table {
    width: 100%;
    border-collapse: collapse;
}

.zunix-table th {
    text-align: left;
    padding: 15px 20px;
    color: #64677a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zunix-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.zunix-action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.zunix-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Detaily řádků */
.subdomain-info {
    font-family: 'Inter', sans-serif;
}

.subdomain-label {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.subdomain-suffix {
    color: #4f46e5;
    font-weight: 500;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pill-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.date-text {
    color: #8b8ea8;
    font-size: 0.9rem;
}

/* Akční tlačítko */
.zunix-action-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zunix-action-btn:hover {
    background: #fff;
    color: #1a1c2e;
}

.text-right { text-align: right; }

/* Prázdný stav */
.table-empty-state {
    text-align: center;
    padding: 60px !important;
}

.table-empty-state i {
    font-size: 3rem;
    color: #2a2d45;
    display: block;
    margin-bottom: 15px;
}

.table-empty-state p {
    color: #64677a;
    margin-bottom: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Plynulé scrollování na iOS */
}

/* ==========================================================================
   11. STRÁNKA SPRÁVY WEBU & MOJE WEBY (Zunix Dashboard)
   ========================================================================== */

.zunix-app-body {
    background-color: #0b0d17;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    
    /* 1. Zrušíme tvrdé centrování, které ořezává vrch */
    /* justify-content: center;  <-- SMAZÁNO */
    /* align-items: center;      <-- SMAZÁNO */
    
    /* 2. Přidáme bezpečné odsazení shora, aby to nelezlo pod Header */
    /* Header má cca 60-70px, dáme 100px pro vzdušnost */
    padding-top: 100px; 
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    
    width: 100%;
}

.dashboard-card {
    background: #1a1c2e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    
    width: 100%;
    max-width: 1200px;
    
    /* 3. "Magické" centrování */
    /* 'auto' ve Flexboxu zajistí, že se karta vycentruje, když je místo,
       ale ZASTAVÍ SE o padding nahoře, když místo není (takže se neschová). */
    margin: auto; 
}

/* Zbytek CSS (Header, Karty, Tlačítka...) zůstává stejný */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 25px;
    gap: 20px;
}

.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-link { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin-bottom: 5px; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
}
.back-link:hover { color: #fff; }

.manage-title h1 { margin: 0; font-size: 1.8rem; line-height: 1.2; }

.live-link { 
    background: rgba(74, 108, 247, 0.1); 
    color: var(--accent); 
    padding: 8px 16px; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    border: 1px solid rgba(74, 108, 247, 0.2); 
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.live-link:hover { background: var(--accent); color: white; }

/* 3 HLAVNÍ MOŽNOSTI */
.manage-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.manage-option-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.manage-option-card:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(255,255,255,0.04); }
.manage-option-card.active { border-color: var(--accent); background: rgba(74, 108, 247, 0.05); }

.icon-wrapper {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: white;
}
.gradient-1 { background: linear-gradient(135deg, #FF9966, #FF5E62); }
.gradient-2 { background: linear-gradient(135deg, #56CCF2, #2F80ED); }
.gradient-3 { background: linear-gradient(135deg, #8E2DE2, #4A00E0); }

.manage-option-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.manage-option-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; line-height: 1.5; }

.btn-select {
    background: transparent; border: 1px solid var(--input-border); color: var(--text-main); padding: 10px 24px; border-radius: 50px; cursor: pointer; transition: 0.2s; font-size: 0.9rem; font-weight: 500; margin-top: auto;
}
.manage-option-card:hover .btn-select { background: var(--accent); border-color: var(--accent); color: white; }
.btn-select.disabled { opacity: 0.5; cursor: not-allowed; }

/* ŠABLONY */
.templates-wrapper { padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.section-title { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 0.9rem; }

.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.template-item {
    background: #151520; border: 1px solid var(--input-border); border-radius: 16px; padding: 16px; text-align: center; transition: 0.3s; display: flex; flex-direction: column;
}
.template-item:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.template-item h4 { font-size: 0.95rem; margin: 15px 0 5px; color: #fff; font-weight: 600; }
.template-item p { font-size: 0.8rem; color: #888; margin-bottom: 15px; line-height: 1.4; flex-grow: 1; }

.btn-use-template {
    width: 100%; padding: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.2s; font-size: 0.85rem;
}
.btn-use-template:hover { background: var(--accent); color: white; }

/* PREVIEWS */
.preview-box { width: 100%; height: 130px; background: #0f0f13; border-radius: 8px; position: relative; overflow: hidden; margin-bottom: 5px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.03); }
/* (Styly pro miniatury vizitka, landing atd. zůstávají stejné...) */
.vizitka-preview .mini-content { text-align: center; }
.vizitka-preview .mini-avatar { width: 32px; height: 32px; background: #4a6cf7; border-radius: 50%; margin: 0 auto 6px; }
.vizitka-preview .mini-line { width: 60px; height: 4px; background: #333; margin: 0 auto 5px; border-radius: 2px; }
.vizitka-preview .mini-btn { width: 50px; height: 6px; background: #222; margin: 0 auto; border-radius: 2px; border: 1px solid #333; }
.landing-preview { flex-direction: column; padding: 0; }
.landing-preview .mini-hero { width: 100%; height: 60%; background: linear-gradient(135deg, #2c3e50, #205579); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.landing-preview .mini-hero::after { content: ''; width: 40px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.landing-preview .mini-cols { display: flex; gap: 6px; }
.landing-preview .mini-cols span { width: 25px; height: 25px; background: #222; display: block; border-radius: 3px; }
.portfolio-preview .mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 15px; width: 100%; height: 100%; box-sizing: border-box; }
.portfolio-preview .mini-grid div { background: #2a2a2a; border-radius: 4px; }
.coming-soon-preview { background: radial-gradient(circle at center, #2e3b5e, #111); flex-direction: column; }
.coming-soon-preview .mini-center-text { width: 70px; height: 6px; background: rgba(255,255,255,0.4); margin-bottom: 12px; border-radius: 4px; }
.coming-soon-preview .mini-loader { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.1); border-top: 2px solid #fff; border-radius: 50%; }
.blog-preview { background: #e0e0e0; align-items: flex-start; padding: 15px; flex-direction: column; }
.blog-preview .mini-text-block { width: 60%; height: 12px; background: #333; margin-bottom: 12px; border-radius: 2px; }
.blog-preview .mini-text-lines { width: 100%; height: 50px; background: linear-gradient(#bbb 1px, transparent 1px); background-size: 100% 8px; }

/* ==========================================================================
   X. RESPONSIVNÍ ÚPRAVY PRO MOBILNÍ ZAŘÍZENÍ
   ========================================================================== */
@media (max-width: 768px) {
    /* Zrušení horizontálního chování */
    .horizontal-scroll-wrapper {
        height: auto !important; /* Wrapper se přizpůsobí obsahu */
    }

    .horizontal-sticky-container {
        position: relative !important; /* Zruší "přibití" na obrazovce */
        top: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .horizontal-content-strip {
        flex-direction: column !important; /* Sekce půjdou pod sebe */
        width: 100% !important;
        transform: none !important; /* Vypne JS posun */
    }

    .pane {
        width: 100% !important;
        min-height: 100vh; /* Každá sekce aspoň na celou obrazovku */
        height: auto !important;
        padding: 4rem 1.5rem !important;
        /* Změna gradientu na vertikální pro hezké napojení pod sebou */
        background: linear-gradient(
            to bottom, 
            var(--bg-dark) 0%, 
            var(--bg-panel) 20%, 
            var(--bg-panel) 80%, 
            var(--bg-dark) 100%
        ) !important;
    }

    .nav-bar-user a span { display: none; }
    .footer-columns { flex-direction: column; text-align: center; }
    .stat-number { font-size: 4rem; }
    
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        max-width: 100%;
        width: 100%;
    }
    
    .modern-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .request-card {
        padding: 1.5rem;
    }
    
    .request-header h1 {
        font-size: 1.7rem;
    }

    .tooltip-text {
        left: auto;
        right: 0;
        transform: translateX(0);
        width: 220px;
    }

    .tooltip-text::after {
        left: auto;
        right: 10px;
    }

    .info-tooltip:hover .tooltip-text {
        transform: translateY(-5px);
    }
    .header-title-group h1 {
        font-size: 1.4rem !important;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .main-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-container {
        /* Na mobilech zrušíme striktní centrování, aby šlo scrollovat */
        justify-content: flex-start; 
        padding-top: 80px; /* Větší odsazení od fixního headeru */
    }
}

