:root {
    --bg-main: #0b0d14;
    --bg-alt: #111422;
    --card-bg: #181c2e;
    --border-color: #272d47;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #22d3ee;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* OLDALAK KEZELÉSE */
.page-section {
    display: none;
    flex-grow: 1;
    padding-top: 90px;
}

.page-section.active {
    display: block;
}

/* NAVBAR & ELRENDEZÉS */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 13, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* AUTH & USER STYLES */
.mc-login-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}

.mc-login-btn:hover {
    transform: translateY(-2px);
}

.user-badge-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 20px;
}

.user-head {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.user-details {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.user-uname {
    font-weight: bold;
    color: #fff;
}

.user-coins {
    color: #f59e0b;
    font-weight: bold;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 4px;
}

.ip-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.copy-badge {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* HAMBURGER GOMB */
.hamburger {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* LEGÖRDÜLŐ MENÜ (Mobil & Tablet) */
.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.nav-menu.active {
    display: block;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 16px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.nav-menu li:last-child a {
    border-bottom: none;
}

.nav-menu li a:hover, .nav-menu li a.active {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
    padding-left: 28px;
}

/* HERO SECTION */
.hero {
    padding: 80px 20px 60px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.18) 0%, rgba(11, 13, 20, 1) 70%);
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--card-bg);
    color: #fff;
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    border-color: var(--text-muted);
}

/* SZAKASZOK & KÁRTYÁK */
.section {
    padding: 40px 20px 80px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.p2w-disclaimer {
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.p2w-disclaimer h3 {
    color: #f87171;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.p2w-disclaimer p {
    color: #fca5a5;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.p2w-disclaimer span {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rule-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
}

.rule-card h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.rule-card ul {
    list-style: none;
}

.rule-card li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 18px;
}

.rule-card li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.shop-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.shop-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.rank-badge {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.rank-badge.vip { color: #38bdf8; }
.rank-badge.stars { color: #facc15; }
.rank-badge.moon { color: #c084fc; }
.rank-badge.night { color: #f43f5e; }

.price {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.rank-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.rank-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.shop-btn {
    width: 100%;
    text-align: center;
    background: var(--bg-main);
    color: #fff;
    border: 1px solid var(--border-color);
}

.ultra-btn {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    border: none;
}

/* FORM / TAGFELVÉTEL */
.apply-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    flex: 1 1 auto;
    text-align: center;
    max-width: 250px;
}

.tab-btn.active {
    color: #fff;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.apply-tab-content {
    display: none;
    max-width: 700px;
    margin: 0 auto;
}

.apply-tab-content.active {
    display: block;
}

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
}

.form-card h3 {
    font-size: 1.1rem;
    margin: 24px 0 16px;
    color: var(--accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.form-card h3:first-child { margin-top: 0; }

.field-group { margin-bottom: 18px; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

input[type="text"], input[type="number"], textarea {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

input:focus, textarea:focus { border-color: var(--primary); }

.logic-list {
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.code-box {
    background: var(--bg-main);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 8px;
    word-break: break-all;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
}

.submit-btn:hover { background: var(--primary-hover); }

/* MODAL STYLES */
.login-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.login-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    padding: 24px;
    border-radius: 12px;
    max-width: 380px;
    width: 100%;
    text-align: center;
}

/* LÁBLÉC */
footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

/* =======================================================
   RESPONSIVE SZABÁLYOK (Mobil Álló & Fekvő Nézet)
   ======================================================= */

/* Kisebb kijelzők és telefonok (álló ÉS fekvő módban is) */
@media (max-width: 900px) {
    .nav-container {
        padding: 10px 16px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .nav-right {
        gap: 6px;
    }

    /* Elrejtjük az IP feliratát mobilon, csak a gomb gomb látszódik */
    .ip-btn span#ipText {
        display: none;
    }

    .ip-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .mc-login-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .user-badge-box {
        padding: 4px 8px;
    }

    .user-uname {
        max-width: 65px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-head {
        width: 24px;
        height: 24px;
    }

    /* Legördülő hamburger menü igazítása mobil kijelzőn */
    .nav-menu {
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }

    .hero {
        padding: 60px 16px 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .form-card {
        padding: 16px;
    }

    .tab-btn {
        max-width: 100%;
        width: 100%;
    }
}

/* Kifejezetten kis képernyős álló telefonokhoz */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .copy-badge {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .hamburger {
        padding: 8px;
    }
}