/* Ascunde scrollbarul (functional dar invizibil) */
::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

/* Resetare margini de baza */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overscroll-behavior: none; /* fara efectul de "tragere" cand dai scroll peste margini */
}

/* Fundal pagina - gradient antracit */
body {
    background: linear-gradient(160deg, #1e1e1e 0%, #111111 50%, #080808 100%);
    background-attachment: fixed;
    background-color: #080808;
    min-height: 100%;
    color: #c8c8c8;
}

/* Bara de navigare */
.navbar {
    background-color: rgba(5, 5, 5, 0.98);
    border-bottom: 2px solid #2a2a2a;
    display: flex;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.9);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar a {
    color: #909090;
    text-decoration: none;
    padding: 20px 25px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.navbar a:hover, .navbar a.active {
    color: #d0d0d0;
    background-color: rgba(255,255,255,0.04);
}

/* Container inregistrare - form aproape de video */
.container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 55px 20px 80px;
}

/* Panoul de inregistrare/login */
.login-panel {
    background-color: rgba(10, 10, 10, 0.94);
    border: 1px solid #2e2e2e;
    padding: 30px;
    width: 350px;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
}

.login-panel h2 {
    margin-top: 0;
    color: #a0a0a0;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid #222222;
    padding-bottom: 15px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: rgba(0,0,0,0.6);
    border: 1px solid #222222;
    color: #fff;
    box-sizing: border-box;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #a0a0a0;
    box-shadow: 0 0 5px rgba(160,160,160,0.25);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #1a1a1a;
    border: 1px solid #2e2e2e;
    color: #c8c8c8;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    margin-top: 10px;
    text-decoration: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.btn-login:hover {
    background-color: #242424;
    border-color: #a0a0a0;
    color: #e0e0e0;
}

.eroare {
    color: #ff5252;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    background: rgba(255,82,82,0.1);
    padding: 8px;
    border: 1px solid #ff5252;
}

/* ============================================================
   HEADER VIDEO
   ============================================================ */
.video-header {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


#headerVideo {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    /* baza videoclipului se dizolva lin in fundal (lasa luna/stelele sa apara) */
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, rgba(0,0,0,0.5) 86%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 68%, rgba(0,0,0,0.5) 86%, transparent 100%);
}

.main-logo {
    max-width: 400px;
    filter: drop-shadow(0 0 12px rgba(160,160,160,0.35));
    z-index: 10;
    position: relative;
}

/* ============================================================
   UTILITARE GENERALE
   ============================================================ */
html { height: 100%; }

.hint { color: #6a6a6a; font-size: 13px; line-height: 1.5; }
.hint a { color: #a0a0a0; text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.container-top {
    align-items: flex-start;
    padding-top: 60px;
    height: auto;
    min-height: calc(100vh - 60px);
}
.panel-larg { width: 420px; max-width: 90%; }

/* Centrat cu padding - dupa header compact */
.login-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 50px 20px;
}

/* Pagina generala */
.page {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #222222;
    padding-bottom: 18px;
    margin-bottom: 30px;
}

.page-head h1 {
    margin: 0;
    color: #a0a0a0;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.count-badge {
    background: rgba(10,10,10,0.85);
    border: 1px solid #2e2e2e;
    padding: 10px 18px;
    color: #c8c8c8;
    font-size: 14px;
}
.count-num { color: #a0a0a0; font-weight: bold; font-size: 18px; }

/* ---------- Credentiale (cont_creat) ---------- */
.credentiale {
    background: rgba(0,0,0,0.5);
    border: 1px solid #222222;
    padding: 15px;
    margin: 18px 0;
}
.cred-rand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #1a1a1a;
    gap: 10px;
}
.cred-rand:last-child { border-bottom: none; }
.cred-rand span { color: #6a6a6a; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.cred-rand strong { color: #fff; word-break: break-all; text-align: right; }
.cred-parola { color: #a0a0a0 !important; font-family: 'Courier New', monospace; letter-spacing: 1px; }

.avertisment {
    background: rgba(160,160,160,0.05);
    border: 1px solid #3c3c3c;
    color: #b0b0b0;
    padding: 12px;
    font-size: 13px;
    margin: 15px 0;
    line-height: 1.5;
}

.btn-secundar {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #2e2e2e;
    color: #6a6a6a;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    transition: 0.3s;
    box-sizing: border-box;
}
.btn-secundar:hover { border-color: #a0a0a0; color: #a0a0a0; }

/* ---------- Lista jucatori ---------- */
.search-box {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #222222;
    color: #fff;
    box-sizing: border-box;
    margin-bottom: 25px;
    outline: none;
}
.search-box:focus { border-color: #a0a0a0; }

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10,10,10,0.85);
    border: 1px solid #2e2e2e;
    padding: 12px 14px;
    transition: 0.25s;
}
.player-card:hover { border-color: #a0a0a0; transform: translateY(-2px); }
.player-avatar {
    width: 40px; height: 40px;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid #a0a0a0;
    color: #a0a0a0;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 18px;
    border-radius: 50%;
}
.player-name { color: #c8c8c8; font-weight: bold; word-break: break-word; }

/* ---------- Donatii ---------- */
.don-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}
.don-box {
    background: rgba(10,10,10,0.85);
    border: 1px solid #2e2e2e;
    padding: 25px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}
.don-box h3 {
    margin: 0 0 18px;
    color: #a0a0a0;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid #222222;
    padding-bottom: 12px;
}
.don-label { display: block; color: #6a6a6a; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 6px; }
.don-input {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #222222;
    color: #fff;
    box-sizing: border-box;
    outline: none;
}
.don-input:focus { border-color: #a0a0a0; }
.don-amounts { display: flex; gap: 8px; }
.amount-btn {
    flex: 1;
    padding: 12px 0;
    background: rgba(0,0,0,0.4);
    border: 1px solid #222222;
    color: #c8c8c8;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}
.amount-btn:hover { border-color: #a0a0a0; }
.amount-btn.active { background: #1a1a1a; border-color: #a0a0a0; color: #e0e0e0; }
.don-mesaj { margin-top: 14px; font-size: 13px; min-height: 18px; }
.don-mesaj.verde { color: #4caf50; }
.don-mesaj.rosu  { color: #ff5252; }

/* Separator "sau" intre metode de plata */
.don-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: #444444;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.don-separator::before,
.don-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #252525;
}

/* Buton Revolut - arata ca un buton real */
.btn-revolut {
    width: 100%;
    padding: 14px;
    background: #1e1e1e;
    border: 1px solid #505050;
    color: #d8d8d8;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    box-sizing: border-box;
    display: block;
    text-align: center;
}
.btn-revolut:hover {
    background: #2a2a2a;
    border-color: #c8c8c8;
    color: #ffffff;
}

/* Casuta info dupa click Revolut */
.rev-info-box {
    background: rgba(160,160,160,0.06);
    border: 1px solid #383838;
    border-left: 3px solid #a0a0a0;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #909090;
    line-height: 1.6;
}

/* TOP 10 donatori */
.top-list { list-style: none; margin: 0; padding: 0; }
.top-rand { margin-bottom: 16px; }
.top-info { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.top-loc { color: #a0a0a0; font-weight: bold; width: 32px; }
.top-nume { color: #fff; font-weight: bold; flex: 1; word-break: break-word; }
.top-proc { color: #a0a0a0; font-weight: bold; }
.top-bar { height: 8px; background: rgba(0,0,0,0.5); border: 1px solid #1a1a1a; overflow: hidden; }
.top-fill { height: 100%; background: linear-gradient(90deg, #2e2e2e, #a0a0a0); transition: width 0.6s ease; }
.top-suma { color: #6a6a6a; font-size: 12px; margin-top: 3px; text-align: right; }

/* ---------- Admin ---------- */
.flash {
    background: rgba(76,175,80,0.12);
    border: 1px solid #4caf50;
    color: #a5d6a7;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}
.admin-stats { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 25px; }
.stat-card {
    flex: 1; min-width: 140px;
    background: rgba(10,10,10,0.85);
    border: 1px solid #2e2e2e;
    padding: 20px;
    text-align: center;
}
.stat-num { color: #a0a0a0; font-size: 28px; font-weight: bold; }
.stat-lbl { color: #6a6a6a; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; margin-top: 5px; }
.admin-form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-form-inline .don-input { width: auto; flex: 1; min-width: 150px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px; text-align: left; border-bottom: 1px solid #1a1a1a; }
.admin-table th { color: #a0a0a0; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.admin-table td { color: #c8c8c8; }
.actiuni { display: flex; gap: 8px; }
.actiuni form { margin: 0; }
.mini-btn {
    background: #1a1a1a; border: 1px solid #2e2e2e; color: #c8c8c8;
    padding: 6px 10px; cursor: pointer; font-size: 11px; transition: 0.2s;
}
.mini-btn:hover { border-color: #a0a0a0; color: #e0e0e0; }
.mini-btn.rosu:hover { border-color: #ff5252; color: #ff5252; }
code { background: rgba(0,0,0,0.5); padding: 2px 6px; color: #a0a0a0; font-size: 12px; }

/* ============================================================
   PAGINA ACASA
   ============================================================ */

.home-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 30px;
    max-width: 1280px;
    margin: 40px auto 80px;
    padding: 0 25px;
    align-items: start;
}

.home-panel {
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid #2e2e2e;
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.home-panel:last-child { margin-bottom: 0; }

.home-panel h3 {
    margin: 0 0 15px;
    color: #a0a0a0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #222222;
    padding-bottom: 11px;
}

.home-logged-in {
    text-align: center;
    padding: 8px 0 4px;
}
.home-logged-in .nick {
    color: #c8c8c8;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 16px;
    display: block;
}
.home-logged-in .nick span { color: #d0d0d0; }

/* Lista top jucatori in home */
.home-players-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}
.home-player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #181818;
}
.home-player-row:last-child { border-bottom: none; }
.hp-nr {
    color: #3c3c3c;
    font-size: 11px;
    width: 16px;
    text-align: right;
    flex-shrink: 0;
}
.hp-avatar {
    width: 28px; height: 28px;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    color: #787878;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 13px;
    border-radius: 50%;
}
.hp-name { color: #c8c8c8; font-size: 13px; }

.btn-all-players {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    background: transparent;
    border: 1px solid #2e2e2e;
    color: #787878;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    transition: 0.3s;
    box-sizing: border-box;
}
.btn-all-players:hover {
    background: #1a1a1a;
    border-color: #a0a0a0;
    color: #c8c8c8;
}

/* Sectiunea de updates */
.updates-title {
    color: #c8c8c8;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #2e2e2e;
}

.update-card {
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid #2e2e2e;
    border-left: 3px solid #a0a0a0;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.update-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.update-name {
    color: #c8c8c8;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.update-date {
    color: #484848;
    font-size: 11px;
    font-weight: bold;
    background: rgba(0,0,0,0.4);
    padding: 3px 10px;
    border: 1px solid #222222;
}

.update-list {
    margin: 0;
    padding: 0 0 0 16px;
    list-style: disc;
}
.update-list li {
    color: #888888;
    font-size: 14px;
    padding: 3px 0;
    line-height: 1.6;
}

/* ============================================================
   ANIMATII DE APARITIE (reveal la scroll)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.vizibil {
    opacity: 1;
    transform: none;
}

/* ============================================================
   PAGINA CONT (auth) - luna 3D + toggle + cursor
   ============================================================ */

/* Scena auth: cardul e tras in sus peste baza videoclipului */
.auth-scene {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -160px;
    padding: 0 20px 90px;
    box-sizing: border-box;
}

/* Canvas-ul cu luna si stelele - fundal global, in spatele tot continutului */
.moon-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: block;
    pointer-events: none;
}

/* Glow care urmareste cursorul (peste luna, sub continut) */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 380px; height: 380px;
    margin: -190px 0 0 -190px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle, rgba(150,170,200,0.10) 0%, rgba(150,170,200,0) 70%);
    transform: translate(-500px, -500px);
}

/* Wrapper cu perspectiva pentru tilt */
.auth-wrap {
    position: relative;
    z-index: 2;
    perspective: 1100px;
}

/* Cardul de autentificare (glass) */
.auth-card {
    width: 360px;
    max-width: 92vw;
    padding: 32px 30px;
    background: rgba(12, 13, 17, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), inset 0 0 40px rgba(120, 140, 170, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    animation: cardIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

/* Toggle (tabs) */
.auth-tabs {
    position: relative;
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #242424;
    margin-bottom: 26px;
}
.auth-tab-indicator {
    position: absolute;
    top: 0; left: 0;
    width: 50%;
    height: 100%;
    background: #1c1c20;
    border: 1px solid #4a4a4a;
    box-sizing: border-box;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
}
.auth-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 13px 0;
    background: transparent;
    border: none;
    color: #6c6c6c;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: color 0.3s;
    font-family: inherit;
}
.auth-tab.active { color: #e0e0e0; }

/* Containerul formularelor (inaltime animata din JS) */
.auth-forms {
    position: relative;
    min-height: 250px; /* fallback daca JS e dezactivat */
    transition: height 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    overflow: hidden;
}
.auth-panel {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
/* implicit: login vizibil, register ascuns la dreapta */
.auth-panel[data-panel="login"]    { opacity: 1; transform: translateX(0); }
.auth-panel[data-panel="register"] { opacity: 0; transform: translateX(35px); pointer-events: none; }
/* mod register */
.auth-card.is-register .auth-panel[data-panel="login"]    { opacity: 0; transform: translateX(-35px); pointer-events: none; }
.auth-card.is-register .auth-panel[data-panel="register"] { opacity: 1; transform: translateX(0); pointer-events: auto; }

/* Inputurile din card mostenesc stilul .form-group input */

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 2;
    margin-top: 70px;
    border-top: 1px solid #222222;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 42px 24px 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}
.footer-brand {
    color: #cfcfcf;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.footer-text {
    color: #707070;
    font-size: 13px;
    line-height: 1.7;
    max-width: 360px;
    margin: 0;
}
.footer-col h4 {
    color: #9a9a9a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 14px;
}
.footer-col a {
    display: block;
    color: #888888;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 0;
    transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover {
    color: #d4d4d4;
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #5a5a5a;
    font-size: 12px;
    padding: 16px 20px;
    letter-spacing: 0.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .home-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .don-layout { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 20px; }
    .home-layout { padding: 0 15px; margin-top: 25px; }
    .auth-card { transform: none !important; } /* fara tilt pe mobil */
    .cursor-glow { display: none; }
    .auth-scene { margin-top: -70px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-text { max-width: none; }
    .footer-col a:hover { padding-left: 0; }
}
