:root {
    --primary: #9333EA;
    --primary-hover: #7E22CE;
    --bg-body: #F5F5F5;
    --bg-card: #FFFFFF;
    --text-main: #1F2937;
    --text-dim: #6B7280;
    --border: rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --success: #10B981;
    --danger: #EF4444;
}

[data-theme="dark"] {
    --bg-body: #111827;
    --bg-card: #1F2937;
    --text-main: #F3F4F6;
    --text-dim: #9CA3AF;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(31, 41, 55, 0.8);
    --nav-bg: rgba(17, 24, 39, 0.9);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

.bg-animation { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; filter: blur(90px); opacity: 0.3; animation: float 10s infinite ease-in-out; }
.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -150px; left: -150px; }
.blob-2 { width: 400px; height: 400px; background: #C084FC; bottom: -100px; right: -100px; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 50px); } }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.navbar { background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.4rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.logo-icon { background: var(--primary); color: white; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.highlight { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-btn-group { display: flex; align-items: center; gap: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; cursor: pointer; border: none; gap: 8px; transition: 0.3s; }
.btn-login { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 1px solid var(--text-dim); color: var(--text-main); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); padding: 5px 10px; font-size: 0.8rem; border-radius: 5px; }
.btn-danger:hover { background: var(--danger); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }
.w-100 { width: 100%; }

.theme-switch { position: relative; width: 50px; height: 26px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px; cursor: pointer; display: flex; align-items: center; padding: 2px; transition: 0.3s; }
.theme-switch i { position: absolute; font-size: 12px; transition: 0.3s; top: 6px; }
.theme-switch .fa-sun { left: 7px; color: #F59E0B; opacity: 1; }
.theme-switch .fa-moon { right: 7px; color: #6366F1; opacity: 0; }
.theme-knob { width: 20px; height: 20px; background: var(--text-main); border-radius: 50%; transition: 0.3s; z-index: 2; }
[data-theme="dark"] .theme-switch .fa-sun { opacity: 0; }
[data-theme="dark"] .theme-switch .fa-moon { opacity: 1; }
[data-theme="dark"] .theme-knob { transform: translateX(24px); background: #fff; }

#nav-cart { display: none; }
#nav-cart a { color: var(--text-main); font-weight: 600; }
#nav-cart a i { color: var(--primary); }

/* Hero */
.hero { padding: 120px 0 80px; min-height: 85vh; display: flex; align-items: center; }
.hero-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.15; margin-bottom: 25px; color: var(--text-main); }
.hero-sub { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 40px; max-width: 90%; }
.hero-cta { display: flex; gap: 15px; flex-wrap: wrap; }

/* Chat */
.chat-mockup { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); max-width: 100%; height: 400px; display: flex; flex-direction: column; }
.chat-header { background: rgba(0,0,0,0.05); padding: 15px; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F56; } .yellow { background: #FFBD2E; } .green { background: #27C93F; }
.chat-body { padding: 25px; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; flex-grow: 1; justify-content: flex-end; }
.msg { padding: 12px 18px; border-radius: 12px; font-size: 0.95rem; max-width: 85%; line-height: 1.4; opacity: 0; transform: translateY(10px); animation: fadeInMsg 0.3s forwards; white-space: pre-wrap; word-break: break-word; }
.msg.bot { background: rgba(147, 51, 234, 0.1); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg.user { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
@keyframes fadeInMsg { to { opacity: 1; transform: translateY(0); } }
.typing-indicator { display: flex; gap: 4px; padding: 15px 18px; background: rgba(147, 51, 234, 0.1); border-radius: 12px; align-self: flex-start; border-bottom-left-radius: 2px; width: fit-content; }
.typing-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; opacity: 0.6; animation: typingBounce 1.4s infinite ease-in-out both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* Sleep Section */
.sleep-section { padding: 100px 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 20px; color: var(--text-main); }
.section-sub { text-align: center; color: var(--text-dim); max-width: 600px; margin: 0 auto 60px; }
.timeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.timeline-card { background: var(--bg-body); padding: 30px; border-radius: 16px; border: 1px solid var(--border); position: relative; overflow: hidden; transition: 0.3s; }
.timeline-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.time-badge { display: inline-block; background: var(--primary); color: white; padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: bold; margin-bottom: 15px; }
.timeline-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.timeline-card p { color: var(--text-dim); font-size: 0.9rem; }
.timeline-icon { position: absolute; bottom: -10px; right: -10px; font-size: 5rem; opacity: 0.05; color: var(--text-main); transform: rotate(-15deg); }

/* Features */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-item { background: var(--glass); padding: 40px; border-radius: 20px; border: 1px solid var(--border); transition: 0.3s; text-align: center; }
.feature-item:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.feature-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.feature-item h4 { margin-bottom: 10px; color: var(--text-main); }
.feature-item p { color: var(--text-dim); }

/* Pricing */
.pricing-section { padding: 100px 0; }
.pricing-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
    .pricing-section h1 { font-size: 3rem; }
    .pricing-section .section-sub-text { margin-bottom: 8vh !important; display: block; }
}
.price-card { background: var(--glass); padding: 30px 20px; border-radius: 20px; border: 1px solid var(--border); text-align: center; display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.price-card.featured { border: 2px solid var(--primary); transform: scale(1.05); z-index: 2; background: var(--bg-card); box-shadow: var(--shadow); }
.price { font-size: 2rem; font-weight: 800; margin: 10px 0; color: var(--text-main); }
.price span { font-size: 0.9rem; color: var(--text-dim); font-weight: 400; }
.fake-price { font-size: 0.85rem; color: var(--danger); text-decoration: line-through; margin-top: 10px; opacity: 0.8; }
.badge { position: absolute; top: -12px; right: 50%; transform: translateX(50%); background: var(--primary); color: white; padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 0.75rem; white-space: nowrap; }
.features-list { text-align: left; margin: 20px 0; list-style: none; width: 100%; padding: 0 10px; }
.features-list li { margin-bottom: 10px; font-size: 0.85rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; color: var(--text-dim); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.cart-form, .cart-summary { background: var(--glass); padding: 30px; border-radius: 20px; border: 1px solid var(--border); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.pay-method { border: 1px solid var(--border); padding: 15px; border-radius: 10px; text-align: center; cursor: pointer; transition: 0.3s; background: rgba(0,0,0,0.02); display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-dim); }
.pay-method:hover, .pay-method.active { border-color: var(--primary); background: rgba(147, 51, 234, 0.05); color: var(--primary); }
.pay-method.apple-pay { display: none; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 15px; color: var(--text-main); align-items: center; }
.total-row { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: bold; color: var(--primary); margin-top: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-dim); font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; background: var(--bg-body); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); margin-bottom: 20px; }
.form-group input:focus { border-color: var(--primary); outline: none; }

/* Payment Modal */
.payment-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 9999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.payment-modal-overlay.open { display: flex; opacity: 1; }
.payment-modal { background: var(--bg-card); border: 1px solid var(--border); width: 90%; max-width: 500px; padding: 40px; border-radius: 20px; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s ease; }
.payment-modal-overlay.open .payment-modal { transform: scale(1); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: var(--text-dim); cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--danger); }
.payment-qr-img { width: 250px; height: 250px; object-fit: contain; border-radius: 10px; margin: 20px 0; border: 2px solid white; background: white; padding: 10px; }
.account-number-box { background: rgba(147, 51, 234, 0.1); border: 1px solid var(--primary); padding: 15px; border-radius: 10px; margin: 20px 0; font-family: monospace; font-size: 1.2rem; color: var(--text-main); cursor: pointer; position: relative; }
.account-number-box:hover { background: rgba(147, 51, 234, 0.2); }
.account-number-box::after { content: 'Klikni pro zkopírování'; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: var(--text-dim); opacity: 0; transition: 0.3s; }
.account-number-box:hover::after { opacity: 1; bottom: -25px; }
.loader-spinner { border: 4px solid rgba(255, 255, 255, 0.1); border-left-color: var(--primary); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Contact & Footer */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 50px; }
.contact-form-card { background: var(--glass); padding: 40px; border-radius: 20px; border: 1px solid var(--border); }
.footer { background: var(--bg-card); padding: 60px 0 20px; margin-top: 80px; border-top: 1px solid var(--border); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { margin-bottom: 20px; color: var(--text-main); }
.footer-col ul { list-style: none; } .footer-col ul li { margin-bottom: 10px; } .footer-col a { color: var(--text-dim); text-decoration: none; }
.copyright { text-align: center; color: var(--text-dim); font-size: 0.9rem; border-top: 1px solid var(--border); padding-top: 20px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 35px; height: 35px; border-radius: 50%; background: var(--bg-body); display: flex; align-items: center; justify-content: center; color: var(--text-dim); border: 1px solid var(--border); transition: 0.3s; }
.social-links a:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-3px); }

/* FOMO */
.fomo-popup { position: fixed; bottom: 20px; left: 20px; background: var(--bg-card); border: 1px solid var(--primary); padding: 15px; border-radius: 12px; display: flex; gap: 15px; align-items: center; box-shadow: var(--shadow); transform: translateX(-150%); transition: transform 0.5s ease; z-index: 9999; max-width: 300px; }
.fomo-popup.show { transform: translateX(0); }
.fomo-icon { background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.fomo-title { font-weight: bold; font-size: 0.9rem; color: var(--primary); margin: 0; }
.fomo-text { font-size: 0.85rem; margin: 2px 0; color: var(--text-main); }

/* Mobile */
.mobile-menu-btn { display: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 900px) {
    .pricing-section h1 { font-size: 1.8rem !important; line-height: 1.2; }
    .nav-links { position: fixed; top: 70px; left: 0; width: 100%; background: var(--bg-card); flex-direction: column; align-items: flex-start; padding: 20px; gap: 20px; border-bottom: 1px solid var(--border); display: none; box-shadow: var(--shadow); }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .nav-btn-group { display: none; }
    .mobile-nav-items { display: flex; flex-direction: column; width: 100%; gap: 15px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-cta { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .cart-layout, .contact-wrapper, .footer-content { grid-template-columns: 1fr; }
    .price-card.featured { transform: scale(1); margin: 0; }
}
@media (min-width: 901px) { .mobile-nav-items { display: none; } .nav-btn-group { display: flex; } }