:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gold: #fbbf24;
    --package-bg: #1e1b4b;
    --package-border: #4f46e5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* --- GLOBÁLIS STABILIZÁLÁS (Messenger Fix) --- */
html, body {
    width: 100%;
    overflow-x: hidden;
    /* Megtiltjuk a böngészőnek, hogy magától nagyítson a szövegen */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- HEADER & NAV --- */
header {
    background: rgba(15, 23, 42, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    width: 100%;
}

a, img {
    user-select: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.logo span { color: var(--accent); }

.hamburger-btn { display: none; background: none; border: none; color: var(--text-main); font-size: 1.8rem; cursor: pointer; padding: 5px; margin-left: 10px; }

/* --- MOBIL MENÜ --- */
.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--primary); z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
}
.mobile-nav-overlay.open { transform: translateX(0); }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; font-size: 2rem; background: none; border: none; color: var(--text-muted); cursor: pointer; }
.mobile-nav-link { font-size: 1.5rem; margin: 15px 0; color: var(--text-main); text-decoration: none; font-weight: bold; cursor: pointer; border-bottom: 2px solid transparent; transition: 0.3s; }
.mobile-nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* --- HERO --- */
.hero { text-align: center; padding: 60px 20px 40px 20px; width: 100%; }
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- FILTER TABS (Desktop Alap) --- */
.filter-tabs {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 40px;
    background: var(--secondary); padding: 5px; border-radius: 50px;
    width: fit-content; margin-left: auto; margin-right: auto;
    border: 1px solid rgba(255,255,255,0.1); max-width: 100%; flex-wrap: wrap;
}
.filter-btn {
    background: transparent; border: none; color: var(--text-muted);
    padding: 12px 30px; border-radius: 40px; cursor: pointer;
    font-weight: 600; transition: all 0.2s; font-size: 1rem;
}
.filter-btn:hover { color: var(--text-main); }
.filter-btn.active { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

/* --- GRID & CARDS --- */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; padding-bottom: 80px; width: 100%; }

.card {
    background: var(--secondary); border-radius: 12px; padding: 25px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05); position: relative; display: flex; flex-direction: column;
    /* Flex gyermek védelem */
    min-width: 0;
}
.card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 30px rgba(0,0,0,0.4); z-index: 10; }
.card.package-card { background: var(--package-bg); border: 1px solid var(--package-border); }

.package-title { color: #a5b4fc; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; font-weight: bold; }
.card-badge { position: absolute; top: 15px; right: 15px; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; font-weight: bold; text-transform: uppercase; }
.badge-premium { background: var(--gold); color: #000; animation: goldPulse 2s infinite; }

.card-domain-list { list-style: none; margin: 15px 0 20px 0; padding: 0; }
.card-domain-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-family: monospace; font-size: 1.05rem; word-break: break-all; }

/* --- CARD TITLE (A legkritikusabb rész) --- */
.card h3 {
    margin-bottom: 10px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: clip;
    font-size: 1.4rem; 
    padding-right: 90px; 
    line-height: 1.3;
    display: block; 
    width: 100%;
    /* FONT BOOSTING VÉDELEM: */
    min-width: 0;
    max-height: 999999px; /* Ez a hack állítja meg az Android nagyítást */
}

.card p.desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; max-height: 999999px; }
.card-actions { margin-top: auto; }

/* --- GOMBOK --- */
.btn {
    display: inline-block; padding: 12px 20px; background: var(--accent); color: white;
    text-decoration: none; border-radius: 6px; font-weight: 600; text-align: center;
    width: 100%; transition: all 0.3s ease; border: none; cursor: pointer; position: relative; overflow: hidden;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); }
/* Csillanás effekt (Mobilon majd letiltjuk) */
.btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: 0.5s;
}
.btn:hover::after { left: 100%; }

.btn-outline {
    background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted);
    display: inline-block; padding: 10px 20px; border-radius: 6px; text-decoration: none;
}
.btn-outline:hover { border-color: var(--text-main); color: var(--text-main); }

/* --- RÉSZLETES OLDAL --- */
.detail-container { max-width: 800px; margin: 60px auto; padding: 0 20px; width: 100%; }
.detail-header { text-align: center; margin-bottom: 40px; }
.detail-header h1 {
    font-size: 3rem; margin-bottom: 10px; color: var(--accent);
    white-space: nowrap; overflow: hidden; text-overflow: clip;
    display: block; width: 100%; line-height: 1.2; padding: 0 5px;
    /* VÉDELEM: */
    min-width: 0; max-height: 999999px;
}

.action-box { background: var(--secondary); padding: 30px; border-radius: 12px; margin-top: 30px; border: 1px solid rgba(255,255,255,0.1); width: 100%; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); }
.form-control { width: 100%; padding: 12px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: white; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--accent); }
.alert { padding: 15px; background: var(--gold); color: black; border-radius: 6px; margin-bottom: 20px; font-weight: bold; }

/* --- TOOLTIP --- */
.wayback-wrapper { position: relative; display: inline-flex; justify-content: center; align-items: center; }
.info-icon { cursor: help; font-size: 1.2rem; color: var(--accent); position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 12px; width: 20px; display: flex; align-items: center; }
.tooltip-box { visibility: hidden; width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 6px; padding: 10px; position: absolute; z-index: 10; bottom: 140%; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s; font-size: 0.85rem; box-shadow: 0 5px 15px rgba(0,0,0,0.5); max-width: 90vw; }
.info-icon:hover + .tooltip-box, .info-icon:active + .tooltip-box { visibility: visible; opacity: 1; }
.tool-buttons { display: flex; gap: 15px; margin-top: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* --- SPEEDWEB SÁV --- */
.speedweb-banner {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(30, 41, 59, 0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 60px 20px; margin-top: 40px; text-align: center; position: relative;
}
.sw-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.sw-logo-img { max-width: 280px; height: auto; display: block; margin-bottom: 20px; transition: transform 0.3s ease; }
.sw-logo-img:hover { transform: scale(1.05) rotate(-1deg); }
.sw-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; color: #f8fafc; }
.sw-text { color: #94a3b8; margin-bottom: 30px; font-size: 1.1rem; max-width: 600px; line-height: 1.6; max-height: 999999px; }
.btn-speedweb {
    display: inline-flex; align-items: center; gap: 10px; background: transparent;
    border: 2px solid #fbbf24; color: #fbbf24; padding: 12px 35px; border-radius: 50px;
    font-weight: bold; text-decoration: none; transition: all 0.3s ease; text-transform: uppercase;
    letter-spacing: 1px; font-size: 0.9rem;
}
.btn-speedweb:hover { background: #fbbf24; color: #0f172a; box-shadow: 0 0 25px rgba(251, 191, 36, 0.4); transform: translateY(-3px); }

/* --- ANIMÁCIÓK --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes goldPulse { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); } }

/* --- FOLYAMAT OLDAL SPECIFIKUS --- */
.step-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    /* Desktopon: Szám balra, szöveg jobbra */
    padding: 30px 30px 30px 110px; 
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.step-number {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}
.step-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 10px; color: #fff; max-height: 999999px; }
.avdh-box { background: rgba(59, 130, 246, 0.1); border: 1px solid var(--accent); padding: 20px; border-radius: 8px; margin-top: 20px; }
.faq-item { margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 25px; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: bold; color: var(--text-main); margin-bottom: 8px; font-size: 1.1rem; max-height: 999999px; }
.faq-a { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-height: 999999px; }


/* --- RESPONSIVE (Mobil nézet & Messenger Fix) --- */
@media (max-width: 768px) {
    /* 1. Navbar */
    .navbar { padding: 0 10px; }
    .navbar .btn-outline { font-size: 0.85rem !important; padding: 6px 10px !important; white-space: nowrap; }
    .hamburger-btn { display: block; }
    
    /* 2. Hero & Szövegek */
    .hero h1 { font-size: 1.8rem; }
    .card-domain-list li { font-size: 0.9rem; }

    /* 3. Filter Sáv (Full Width - Containeren kívül) */
    .filter-tabs {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%; 
        margin: 0 0 30px 0; 
        padding: 15px 0;
        background: var(--secondary);
        border-radius: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-left: none;
        border-right: none;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }

    .filter-btn {
        flex: 0 1 auto;
        margin: 0;
        font-size: 0.85rem;
        padding: 8px 12px;
        text-align: center;
        white-space: nowrap;
        border-radius: 20px;
        min-width: 80px;
    }

    /* 4. MESSENGER GLITCH JAVÍTÁSOK */
    /* Letiltjuk a csillanásokat és 3D effekteket mobilon */
    .btn::after { display: none !important; content: none !important; }
    .speedweb-banner::before { display: none !important; }

    /* Animáció egyszerűsítése: csak áttűnés, mozgás nélkül */
    .reveal { transform: none !important; transition: opacity 0.5s ease !important; }
    .reveal.active { opacity: 1 !important; }

    /* Kártya stabilizálás */
    .card { transform: none !important; box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important; }
    .card:hover { transform: none !important; box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important; }

    /* 5. Folyamat oldal */
    .step-card { padding: 25px; padding-top: 70px; }
    .step-number { top: 15px; left: 20px; font-size: 3.5rem; }
    .step-title { font-size: 1.3rem; }
}