/* Color Variables - Konszolidált */
:root {
    --neon-green: #00ff88;
    --neon-glow: rgba(0, 255, 136, 0.7);
    --bg-dark: #070B0F;
    --card-dark: #0F1419;
    --card-light: #151A22; /* Hozzáadva a header-status card-hoz */
    --text-muted: #8899AA;
    --red: #ff4d6a;
}

/* Global Styles */
body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-dark);
    color: white;
    min-height: 100vh;
    line-height: 1.6;
    /* Finom háttér gradiens */
    background-image: radial-gradient(circle at 50% 10%, var(--card-light) 0%, var(--bg-dark) 60%);
}
/* Külön osztály a Login/Register oldalak központi elrendezéséhez */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Linkek */
a {
    color: var(--neon-green);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: white;
}
/* Container */
.container {
    max-width: 1200px;
    width: 95%;
    margin: 30px auto;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Létrehozó 1/3, lista 2/3 */
    gap: 30px;
}

/* Kártya stílus */
.card {
    background: var(--card-dark);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    height: fit-content;
}

/* Login/Register Card specifikus méretezés (a fenti .card-ot használja) */
.auth-page .card {
    max-width: 400px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.15);
}
/* Navigáció */
.nav {
    padding: 16px 28px;
    font-size: 22px; 
    font-weight: 700;
    display: flex;
    justify-content: space-between; /* Helyes beállítás a space-between-re */
    align-items: center;
    gap: 10px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}
.logo {
    display: flex;
    align-items: center;
    gap: 5px; 
}
/* Logó Javítás: "S" nagyobb legyen */
.logo-pill { 
    font-size: 1.5em; /* 50%-kal nagyobb az alap 22px-nél */
    font-weight: 900; 
    color: var(--neon-green); 
    text-shadow: 0 0 8px var(--neon-glow); 
    line-height: 1;
}
.logo-text { 
    font-size: 26px; 
    font-weight: 900; 
    letter-spacing: 0.08em; 
    color: white; /* Meghagyjuk a színt */
}

/* Nav Akciók (Dashboard) */
.user-info { 
    font-weight: 600; 
    color: var(--neon-green); 
    font-size: 14px; 
}
.logout-btn {
    background: var(--card-dark);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
}
.logout-btn:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}
/* Címek */
h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-glow);
    margin: 0;
    margin-bottom: 10px;
}
h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
}
.auth-page h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-glow);
    margin-bottom: 30px;
}

/* Header Státusz Szekció */
.header-status {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}
.status-card {
    background: var(--card-light);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 150px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.status-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
}
.value-highlight {
    font-size: 24px;
    font-weight: 800;
    color: var(--neon-green);
    margin: 5px 0 0 0;
}
/* Űrlap elemek */
label {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 6px;
    margin-top: 15px;
    font-weight: 600;
}
.input, .domain-select, input[type="email"], input[type="password"] {
    width: 100%;
    padding: 14px; /* A 14px és 16px közül a 14-et használom a konzisztenciához */
    background: #0D1014;
    color: white;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
    margin-bottom: 12px; /* Az inputnak kell egy kis alulmargó */
}
.input:focus, .domain-select:focus, input[type="email"]:focus, input[type="password"]:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Subdomain Előnézet */
.input-row { display: flex; gap: 10px; margin-bottom: 10px; }
.subdomain-display {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--neon-green);
    background: #0D1014;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0; /* Ne zsugorodjon */
}
.subdomain-display span { opacity: 0.8; }

/* Rekord típus választó */
.record-type {
    display: flex;
    gap: 10px;
    margin: 10px 0 20px;
}
.record-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #0D1014;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.record-btn.active {
    border-color: var(--neon-green);
    box-shadow: inset 0 0 8px rgba(0, 255, 136, 0.4);
    color: var(--neon-green);
    background: #05090d;
}

/* Gombok - Általános (Dashboard/Auth) */
.btn {
    width: 100%;
    background: var(--neon-green);
    color: var(--bg-dark);
    padding: 14px 20px; /* Kissé kisebb, mint az auth oldalaké, hogy illeszkedjen a dashboardhoz */
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: none;
    margin-top: 25px; /* Hely az űrlap alján */
    box-shadow: 0 5px 15px var(--neon-glow);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Auth oldalak nagyobb gombja */
.auth-page .btn {
    padding: 16px 20px;
    font-size: 18px;
    margin-top: 10px; 
    letter-spacing: 1px;
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 5px 20px var(--neon-glow);
}
.auth-page .btn:hover { /* Auth gomb kicsit nagyobb lebegés */
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--neon-glow);
}

/* Buy Credit gomb (Header) */
.buy-credit-btn {
    padding: 12px 25px;
    margin-top: 0;
    width: auto;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    background: white;
    color: var(--bg-dark);
}
.buy-credit-btn:hover {
    background: #ccc;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Kisebb gombok (Edit/Delete) */
.btn-small {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-edit { background: var(--text-muted); color: var(--bg-dark); }
.btn-edit:hover { background: white; }
.btn-delete { background: var(--red); color: white; }
.btn-delete:hover { background: #ff7288; }
/* Domain lista táblázat */
#domainList {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 15px;
}
#domainList th {
    text-align: left;
    padding: 15px;
    color: var(--neon-green);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
    font-weight: 700;
}
#domainList td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
#domainList tr:hover {
    background: var(--card-light);
}
.record-type-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    background: rgba(0, 255, 136, 0.2);
    color: var(--neon-green);
}
.actions-cell {
    display: flex;
    gap: 10px;
}

/* Visszajelzés / Üzenet dobozok */
.result-box, .message-box {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    display: none;
    text-align: center;
}
.success { 
    border: 1px solid rgba(0, 255, 136, 0.5); 
    background: rgba(0, 255, 136, 0.1); 
    color: var(--neon-green); 
}
.error, .error-msg { 
    border: 1px solid rgba(255, 77, 106, 0.5); 
    background: rgba(255, 77, 106, 0.1); 
    color: var(--red); 
}
/* Modal / Szerkesztő felület */
.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding-top: 60px;
}
.modal-content {
    background: var(--card-dark);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--neon-green);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 50px var(--neon-glow);
}
.close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover, .close:focus {
    color: var(--neon-green);
    text-decoration: none;
    cursor: pointer;
}
/* Reszponzívitás */

/* 1000px alatt: Dashboard egy oszlopban */
@media (max-width: 1000px) {
    .dashboard-layout {
        grid-template-columns: 1fr; 
    }
}

/* 768px alatt: Navigáció és Státusz */
@media (max-width: 768px) {
    .header-status {
        flex-wrap: wrap;
        margin-bottom: 15px;
    }
    .status-card {
        min-width: unset;
        flex: 1 1 auto; /* Engedi, hogy kitöltsék a rendelkezésre álló helyet */
    }
    .buy-credit-btn {
        flex: 1 1 100%; /* Teljes szélességű gomb */
    }
}

/* 600px alatt: Mobilos elrendezés */
@media (max-width: 600px) {
    .nav { 
        padding: 15px 20px; 
    }
    .nav-actions { 
        flex-wrap: wrap; /* Engedjük, hogy a gombok alá ugorjanak */
    }
    .user-info {
        order: 2; /* Az email cím kerüljön a következő sorba */
        flex-basis: 100%; /* Teljes szélességet foglal el */
        text-align: right;
    }
    .logout-btn {
        order: 1;
        margin-left: auto; /* Jobbra igazítás */
    }

    .container { 
        width: 100%; 
        padding: 0 15px; 
    }
    
    /* Táblázat: elrejtjük az ismétlődő 'Type' oszlopot */
    #domainList th:nth-child(3), 
    #domainList td:nth-child(3) { 
        display: none; 
    } 
    #domainList th, #domainList td { 
        padding: 10px; 
        font-size: 14px; 
    }
    
    .modal-content {
        margin: 20px;
    }
    
    /* Hero szekció mobilon - ha az index.html-en is használod */
    .hero-section h1 { font-size: 42px; }
    .hero-section p { font-size: 18px; }
    .hero-section { padding: 80px 15px; }
    .cta-buttons a { margin: 5px; width: 80%; display: block; }

    /* Auth oldalak mobilon */
    .auth-page .card {
        padding: 30px;
    }
}
/* --- LANDING PAGE STÍLUSOK (index.html) --- */

/* Navigáció (KIEGÉSZÍTÉS a Landing Page-hez) */
.nav-links {
  display: flex;
  gap: 20px;
  margin: 0 auto; /* Középre igazítás */
}
.nav-links a, .nav-auth a {
  text-decoration: none;
  font-weight: 600;
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s;
  padding: 5px 0;
}
.nav-links a:hover, .nav-auth a:hover {
  opacity: 1;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Fő CTA gomb a nav-auth-ban */
.register-link {
  background: var(--neon-green);
  color: var(--bg-dark);
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}
.register-link:hover {
  opacity: 1;
  filter: brightness(1.1);
}

/* HERO SZEKCIÓ */
.hero-section {
  text-align: center;
  padding: 100px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-section h1 {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: none; /* Felülírjuk a dashboard h1 shadow-t */
  color: white; /* Felülírjuk a dashboard h1 neon színt */
}
.hero-section h1 .green-text {
  color: var(--neon-green);
  text-shadow: 0 0 15px var(--neon-glow);
}
.hero-section p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.cta-buttons a {
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
  margin: 0 10px;
  transition: all 0.3s;
}
.main-cta {
  background: var(--neon-green);
  color: var(--bg-dark);
  box-shadow: 0 5px 20px var(--neon-glow);
}
.main-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--neon-glow);
}
.secondary-cta {
  border: 1px solid var(--text-muted);
  color: white;
}
.secondary-cta:hover {
  border-color: white;
}

/* TARTALMI SZEKCIÓK (Features / How It Works) */
.section {
    padding: 80px 0;
    text-align: center;
}
.section .container {
    margin: 0 auto;
}
.subheading {
    color: var(--neon-green);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}
.section h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}
.feature-card {
    /* Felülírja a dashboard card stílust: */
    background: var(--card-light);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
.feature-card h3 {
    color: var(--neon-green);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 16px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
}
footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 5px;
}

/* --- RESZPONZIVITÁS KIEGÉSZÍTÉS Landing Page-hez --- */
@media (max-width: 900px) {
    .hero-section h1 {
        font-size: 50px;
    }
    .nav-links {
        display: none; /* Mobilon elrejtjük a nav linkeket */
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .section h2 {
        font-size: 36px;
    }
}
@media (max-width: 600px) {
    .hero-section h1 {
        font-size: 36px;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .cta-buttons a {
        margin: 0;
    }
}
/* Toast notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
}

.toast.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.toast.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Toast notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
}

.toast.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.toast.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.toast.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.health-status {
  margin-top: 5px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border-left: 3px solid rgba(255,255,255,0.1);
}
/* Kis Health Check gomb */
.btn-tiny {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tiny:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

/* Health eredmény inline konténer */
.health-inline {
  display: inline-block;
  margin-left: 10px;
}

/* Health badge-ek inline stílus */
.health-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  color: rgba(255,255,255,0.8);
}

.health-badge-inline:hover {
  background: rgba(255,255,255,0.1);
  cursor: help;
}

.health-badge-inline strong {
  color: white;
}

/* Táblázat első cella több helyet kap */
#domainList td:first-child {
  min-width: 220px;
}
.uptime-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.uptime-stat-box {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.uptime-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.uptime-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #00f2fe;
}
