/* =========================================
   ZÁKLADNÉ NASTAVENIA
   ========================================= */
:root {
    --primary: #d4af37;
    --primary-light: #e6c35c;
    --primary-dark: #a8861f;
    --bg: #0a0a0a;
    --muted: #a69f8c;
    --card: #141414;
    --text: #efe9d8;
    --gold: #e6c35c;
    --gold-grad: linear-gradient(135deg, #8f6b14 0%, #d4af37 28%, #f6e08f 50%, #d4af37 72%, #9a7618 100%);
    --glass-border: rgba(212, 175, 55, 0.16);
    --glow-blue: rgba(212, 175, 55, 0.28);
    --glow-purple: rgba(246, 224, 143, 0.30);
    --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; scroll-behavior: smooth; }

/* Kompenzácia sticky headera pri anchor scrollovaní (#pricing, #contact, atď.) */
html { scroll-padding-top: 80px; }

body {
    font-family: 'Montserrat', 'Inter', sans-serif;
    margin: 0;
    color: var(--text);
    background: radial-gradient(1200px 600px at 50% -10%, #1b1608 0%, #0a0a0a 55%) fixed, #0a0a0a;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { height: 38px; width: auto; display: block; }

/* Desktop Menu */
.nav { display: flex; align-items: center; }
.nav a {
    color: var(--text);
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.nav a:hover,
.nav a.active { color: var(--primary-light); }

/* Hamburger Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
}
.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-light);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #b38a1d 0%, #f6e08f 45%, #d4af37 70%, #f6e08f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #eee;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}
.btn { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.btn.primary { background: var(--gold-grad); background-size: 160% 100%; background-position: 0 0; color: #120d02; font-weight: 700; box-shadow: 0 4px 18px rgba(212,175,55,0.18); }
.btn.primary:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.38);
}

/* =========================================
   FEATURES (2 STĹPCE)
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 50px 0;
}

.feature-card {
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: all 0.35s ease;
}
.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 28px var(--glow-blue), 0 8px 32px rgba(0,0,0,0.5);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: rgba(212,175,55,0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
    transition: all 0.35s ease;
}
.feature-card:hover .feature-icon {
    background: rgba(212,175,55,0.22);
    box-shadow: 0 0 15px var(--glow-blue);
}

.feature-content h3 { font-size: 1.05rem; margin: 0 0 8px 0; }
.feature-content p { color: var(--muted); margin: 0; font-size: 0.9rem; line-height: 1.6; }

/* =========================================
   CENNÍK
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--card);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all 0.3s ease;
}
.card:hover {
    border-color: rgba(212,175,55,0.45);
    box-shadow: 0 0 20px rgba(212,175,55,0.15);
}

@keyframes borderGlow {
    0%   { border-color: var(--primary); box-shadow: 0 0 10px var(--glow-blue), 0 4px 30px rgba(0,0,0,0.3); }
    50%  { border-color: #f6e08f;        box-shadow: 0 0 28px var(--glow-purple), 0 4px 30px rgba(0,0,0,0.3); }
    100% { border-color: var(--primary); box-shadow: 0 0 10px var(--glow-blue), 0 4px 30px rgba(0,0,0,0.3); }
}

.card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
    background: rgba(212,175,55,0.05);
    animation: borderGlow 3s ease-in-out infinite;
}

.price { font-family: var(--font-display); font-size: 3rem; font-weight: 700; margin: 20px 0; letter-spacing: -0.01em; font-variant-numeric: lining-nums; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.card-features { list-style: none; padding: 0; margin: 30px 0; text-align: left; }
.card-features li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Pricing Tabs */
.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.pricing-tabs-inner {
    display: inline-flex;
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 5px;
    gap: 4px;
}
.tab-btn {
    padding: 10px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    background: transparent;
    color: var(--muted);
}
  .tab-btn.active {
    background: var(--gold-grad);
    color: #120d02;
}

/* =========================================
   KONTAKT
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    margin-top: 50px;
}

.form-group { margin-bottom: 15px; }

input, textarea, select {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
input::placeholder, textarea::placeholder { color: var(--muted); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 60px;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-link:hover { color: var(--primary-light); }

.footer-admin {
    color: rgba(148,163,184,0.4);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s;
}
.footer-admin:hover { color: var(--muted); }

/* =========================================
   CHANNELS GRID
   ========================================= */
.grid-channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.channel-item {
    background: rgba(255,255,255,0.05);
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

/* =========================================
   APP GRID
   ========================================= */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* =========================================
   TELEGRAM FLOAT BUTTON
   ========================================= */
.tg-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tg-bubble {
    background: #141414;
    color: var(--text);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    pointer-events: none;
    white-space: nowrap;
    position: relative;
}
.tg-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid #141414;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.tg-bubble.show { opacity: 1; transform: translateX(0); }

.tg-float {
    width: 60px;
    height: 60px;
    background: var(--gold-grad);
    color: #0a0a0a;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    animation: pulse-tg 2s infinite;
}
.tg-float:hover { transform: scale(1.1); filter: brightness(1.1); }
.tg-icon { width: 30px; height: 30px; fill: #0a0a0a; }

@keyframes pulse-tg {
    0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    70%  { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* =========================================
   FADE IN ANIMÁCIA
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   ÚDRŽBA OVERLAY
   ========================================= */
#obrazovka-udrzby { display: none; }
#obsah-stranky { display: none; }

body.udrzba {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(-45deg, #0a0a0a, #1d1707, #0a0a0a, #2a2008);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
body.udrzba #obsah-stranky,
body.udrzba .tg-container { display: none !important; }
body.udrzba #obrazovka-udrzby {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.35);
    padding: 60px 40px;
    text-align: center;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 8px 40px 0 rgba(212,175,55,0.15);
    animation: cardAppear 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.udrzba-loader-container { margin-bottom: 30px; display: flex; justify-content: center; }
.udrzba-loader {
    width: 50px; height: 50px;
    border: 5px solid rgba(212,175,55,0.2);
    border-top: 5px solid #e6c35c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.glass-card h1 {
    font-weight: 600; font-size: 2.5rem; margin-top: 0; margin-bottom: 15px;
    background: linear-gradient(to right, #f6e08f, #d4af37);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.glass-card p { font-weight: 300; font-size: 1.1rem; line-height: 1.6; opacity: 0.9; margin-bottom: 30px; color: #fff; }
.status-badge {
    display: inline-block; padding: 8px 20px;
    background: rgba(255,255,255,0.2); border-radius: 50px;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.2);
}

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cardAppear { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   PAYMENT MODAL
   ========================================= */
#pay-modal {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
#pay-modal-inner {
    background: #141414;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    margin: auto;
    box-sizing: border-box;
}

/* =========================================
   MEDIA QUERIES (MOBILY)
   ========================================= */
@media (max-width: 900px) {
    /* Mobile menu */
    .mobile-nav-toggle { display: block; }
    .nav {
        display: flex;
        position: fixed;
        top: 71px; left: 0; right: 0;
        width: 100%; max-width: 100%;
        background: rgba(8,8,8,0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        padding: 10px 0 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
    }
    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }
    .nav a {
        margin: 0; font-size: 1.1rem; width: 100%;
        text-align: center; padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav a:last-child { border-bottom: none; }
    .mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); }

    /* Layout */
    .contact-wrapper { grid-template-columns: 1fr; padding: 25px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .card.popular { transform: scale(1); border-width: 1px; }

    /* Features */
    .features-grid { gap: 10px; margin: 30px 0; }
    .feature-card { padding: 20px 15px; }
    .feature-icon { width: 50px; height: 50px; font-size: 1.8rem; margin-bottom: 12px; }
    .feature-content h3 { font-size: 1rem; margin: 5px 0; }
    .feature-content p { font-size: 0.85rem; }

    .hero { min-height: 60vh; padding-top: 40px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .grid-channels { grid-template-columns: repeat(2, 1fr); }

    #pay-modal { padding: 12px; align-items: flex-start; }
    #pay-modal-inner { padding: 20px 16px; border-radius: 14px; }
    #pay-modal-inner h2 { font-size: 1.1rem; }
}

@media (max-width: 400px) {
    .grid-channels { grid-template-columns: 1fr; }
    .price { font-size: 3rem; }
}


/* =========================================
   LUXURY LAYER (Komplet TV)
   ========================================= */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; margin: 0 0 10px; color: #f3e7bd; }
#pricing > div > h2::after { content: ''; display: block; width: 64px; height: 1px; margin: 16px auto 0; background: var(--gold-grad); }
h3 { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.feature-content h3 { font-size: 1.05rem; color: #f3e7bd; }
.card h3 { color: #f3e7bd; }
.site-header { border-bottom: 1px solid rgba(212,175,55,0.22); box-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 8px 30px rgba(0,0,0,0.5); }
.feature-card, .card, .contact-wrapper, .pricing-tabs-inner { background: linear-gradient(160deg, #181818 0%, #101010 100%); }
.feature-icon { background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.25); }
.card, .feature-card { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.btn { border-radius: 4px; }
input, textarea, select { border-radius: 4px; background: rgba(0,0,0,0.5); border-color: rgba(212,175,55,0.2); }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.card, .feature-card, .contact-wrapper { border-radius: 10px; }
.card-features li { border-bottom-color: rgba(212,175,55,0.10); }
.channel-item { background: rgba(212,175,55,0.04); }
.site-footer { background: #070707; }
::selection { background: #d4af37; color: #0a0a0a; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #3a2f10; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #d4af37; }
.logo-float { filter: drop-shadow(0 0 14px rgba(212,175,55,0.25)); }
@media (max-width: 900px) { .logo { height: 30px; } .nav a { font-size: 0.9rem; } }
