:root {
    --bg-main: #030303;
    --bg-nav: rgba(3, 3, 3, 0.75);
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --accent: #e11d48;
    --accent-hover: #be123c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --nav-height: 80px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-pill: 99px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.text-gradient { background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Scroll Animációk */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: var(--transition); transition-duration: 0.8s; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }
.grid-3 > .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.grid-3 > .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Toast */
.toast-container { position: fixed; top: 30px; left: 50%; transform: translateX(-50%); z-index: 9999; pointer-events: none; display: flex; flex-direction: column; gap: 12px; }
.toast { background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(10px); color: white; padding: 14px 28px; border-radius: var(--radius-pill); border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.5); font-weight: 500; font-size: 0.95rem; animation: toastIn 0.4s forwards, toastOut 0.4s 3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-20px) scale(0.9); } }

/* Navigáció */
.navbar { position: fixed; top: 0; width: 100%; height: var(--nav-height); background: var(--bg-nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.25rem; font-weight: 800; color: white; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: white; }

/* Cart Button */
.cart-btn { background: transparent; border: 1px solid var(--border); color: white; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; position: relative; transition: var(--transition); display: flex; justify-content: center; align-items: center; }
.cart-btn:hover { background: var(--surface); border-color: rgba(255,255,255,0.2); }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Hero & Tech Grid */
.hero { padding: 180px 0 120px; position: relative; text-align: center; }
.hero-bg-grid { position: absolute; inset: 0; background-size: 40px 40px; background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px); mask-image: linear-gradient(to bottom, black 20%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%); z-index: -2; }
.hero-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 70vw; height: 500px; background: radial-gradient(ellipse at top, rgba(225, 29, 72, 0.15) 0%, transparent 60%); z-index: -1; }
.hero-badge { background: rgba(255,255,255,0.03); color: var(--text-muted); padding: 8px 20px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); margin-bottom: 32px; display: inline-block; backdrop-filter: blur(10px); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 24px; }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 580px; margin: 0 auto 48px; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; }

/* Glass Kártyák */
.glass-card { background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 40px; }

/* Szekciók */
.section { padding: 120px 0; }
.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 64px; text-align: center; letter-spacing: -0.02em; }
.left-align { text-align: left; margin-bottom: 24px; }

/* About */
.about-wrapper { max-width: 800px; margin: 0 auto; }
.about-wrapper p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.8; }
.stats-row { display: flex; gap: 48px; border-top: 1px solid var(--border); padding-top: 32px; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 800; color: white; line-height: 1; margin-bottom: 8px; }
.stat-item span { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* Szolgáltatások */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 16px; }
.service-card { transition: var(--transition); display: flex; flex-direction: column; position: relative; }
.service-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-6px); }

/* --- A JAVÍTOTT KIEMELT KÁRTYA ÉS CÍMKE --- */
.highlight-card { 
    border-color: rgba(225, 29, 72, 0.3); 
    position: relative; 
    /* NINCS overflow: hidden, hogy a gomb kiloghasson! */
}
.highlight-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: radial-gradient(circle at top right, rgba(225, 29, 72, 0.1), transparent 50%); 
    pointer-events: none; 
    border-radius: var(--radius-md); /* Ez tartja a fényt a kereten belül */
}
.service-tag { 
    position: absolute; 
    top: -14px; /* Felhúzza a kártya keretére */
    right: 24px; 
    background: var(--accent); 
    color: white; 
    font-size: 0.75rem; 
    font-weight: 800; 
    padding: 6px 16px; 
    border-radius: var(--radius-pill); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4); 
    z-index: 10; 
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; margin-top: 8px; }
.price { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 20px; }
.service-card p { flex-grow: 1; color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }

/* Gombok */
.btn { padding: 14px 32px; border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 0.95rem; border: none; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: white; border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: white; }
.btn-outline:hover { background: white; color: black; }
.btn-block { width: 100%; margin-top: auto; }

/* Folyamat */
.process-container { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.step-row { display: flex; align-items: flex-start; gap: 24px; }
.step-num { width: 40px; height: 40px; background: rgba(225, 29, 72, 0.1); border: 1px solid rgba(225, 29, 72, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.step-text h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step-text p { color: var(--text-muted); font-size: 0.95rem; }
.step-line { width: 2px; height: 40px; background: var(--border); margin-left: 19px; }

/* Űrlapok */
.contact-wrapper { max-width: 540px; margin: 0 auto; }
.contact-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.clean-input { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--border); padding: 16px 20px; border-radius: var(--radius-sm); color: white; outline: none; transition: var(--transition); font-size: 1rem; margin-bottom: 16px; }
.clean-input:focus { border-color: var(--accent); background: rgba(225, 29, 72, 0.02); }
textarea.clean-input { resize: vertical; min-height: 120px; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2000; }
.modal { position: absolute; right: 0; top: 0; height: 100%; width: 100%; max-width: 440px; background: #080808; border-left: 1px solid var(--border); display: flex; flex-direction: column; animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-header { padding: 32px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.3rem; font-weight: 700; }
.close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; transition: var(--transition); }
.close-btn:hover { color: white; transform: rotate(90deg); }
.modal-body { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.checkout-step { display: none; flex-direction: column; height: 100%; animation: fadeIn 0.3s ease; overflow-y: auto; }
.checkout-step.active { display: flex; }
.step-padding { padding: 32px; display: flex; flex-direction: column; height: 100%; }

/* Kosár elemek */
.cart-items { padding: 32px; flex-grow: 1; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); gap: 12px; }

/* Törlés Gomb Design */
.remove-btn { 
    background: rgba(225, 29, 72, 0.08); 
    color: var(--accent); 
    border: 1px solid rgba(225, 29, 72, 0.2);
    padding: 8px 16px; 
    border-radius: var(--radius-pill); 
    cursor: pointer; 
    font-size: 0.8rem; 
    font-weight: 600;
    transition: var(--transition); 
    text-decoration: none; 
    flex-shrink: 0;
}
.remove-btn:hover { 
    background: var(--accent); 
    color: white; 
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.cart-footer { padding: 32px; background: #030303; border-top: 1px solid var(--border); margin-top: auto; }
.total-row { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.checkout-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 32px; }

/* Fizetési módok */
.payment-options { display: flex; flex-direction: column; gap: 16px; }
.payment-option input { display: none; }
.payment-box { display: flex; gap: 16px; border: 1px solid var(--border); padding: 20px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.pay-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text-muted); flex-shrink: 0; margin-top: 2px; position: relative; }
.payment-option input:checked + .payment-box { border-color: var(--accent); background: rgba(225, 29, 72, 0.05); }
.payment-option input:checked + .payment-box .pay-radio { border-color: var(--accent); }
.payment-option input:checked + .payment-box .pay-radio::after { content:''; position:absolute; inset: 4px; background: var(--accent); border-radius: 50%; }
.payment-title { display: block; font-weight: 600; margin-bottom: 4px; color: white; }
.payment-desc { display: block; font-size: 0.85rem; color: var(--text-muted); }

/* Siker oldal */
.success-content { padding: 40px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.success-icon { width: 80px; height: 80px; background: rgba(34, 197, 94, 0.1); color: #22c55e; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.success-icon svg { width: 40px; height: 40px; }
.order-id { color: var(--text-muted); margin: 8px 0 32px; }
.address-box { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; width: 100%; margin-bottom: 32px; text-align: left; }
.success-note { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }

footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--text-muted); font-size: 0.9rem; }
.footer-logo { font-weight: 800; color: white; }

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* --- Teljeskörű Mobilos Finomhangolás --- */
@media (max-width: 768px) {
    .navbar { height: 70px; }
    .nav-links { display: none; }
    .cart-btn { width: 40px; height: 40px; }
    
    .hero { padding: 140px 0 80px; }
    .hero-bg-grid { background-size: 30px 30px; }
    .hero h1 { font-size: 2.8rem; }
    
    .section { padding: 80px 0; }
    .section-title { font-size: 2rem; margin-bottom: 48px; }
    
    /* Plusz tér a grid tetejére, hogy a címke mobilon is elférjen */
    .grid-3 { gap: 20px; padding-top: 14px; } 
    .glass-card { padding: 32px; }
    .service-card { text-align: center; }
    .service-card p { margin-bottom: 24px; }
    
    .stats-row { flex-direction: column; gap: 24px; text-align: center; border: none; padding-top: 0; }
    .about-card p { text-align: center; }
    .left-align { text-align: center; }

    .step-row { gap: 16px; }
    .step-text h3 { font-size: 1.1rem; }
    
    .contact-form { gap: 12px; }
    
    .modal { max-width: 100%; } 
    .modal-header { padding: 24px; }
    .cart-items { padding: 24px; }
    .step-padding { padding: 24px; }
    
    .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; gap: 12px; }
    .hero-buttons .btn { width: 100%; }
    
    .checkout-actions { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
    .checkout-actions .btn { width: 100%; order: 1; }
    .checkout-actions #btnBackToCart, .checkout-actions #btnBackToDetails { order: 2; } 
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .price { font-size: 1.8rem; }
    .clean-input { padding: 14px 16px; font-size: 0.95rem; }
    .remove-btn { padding: 6px 12px; font-size: 0.75rem; }
    .cart-item div[style*="font-weight: 600"] { font-size: 0.95rem; }
}