/* --- VARIABILE & RESET --- */
:root {
    --brown-dark: #2c1a0e;
    --brown-mid: #5c3d2e;
    --brown-btn: #7a5c4a;
    --brown-btn-hover: #5c3d2e;
    --accent-light: #e8d5c4;
    --card-bg: #fff8f3;
    --text-muted: #8a7060;
    --bg: #ede0d4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: #e8dcc8;
    color: #333;
    min-height: 100vh;
}

/* --- TOP BANNER --- */
.top-banner {
    background-color: #2c1a0e;
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    letter-spacing: 2px;
    text-align: center;
    padding: 7px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 50px;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid #e8ddd5;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text small {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.logo-text strong {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--brown-dark);
}

nav { display: flex; align-items: center; gap: 28px; }

nav a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    color: var(--brown-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

nav a:hover { color: var(--brown-btn); }

.btn-admin {
    background: #f0e8df;
    border: 1px solid #d4c4b8;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--brown-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.2s;
}

.btn-admin:hover { background: #e0d0c4; }

.nav-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--brown-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    letter-spacing: 1px;
    color: var(--brown-dark);
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-outline:hover { background: var(--brown-dark); color: #fff; }

.btn-filled {
    background: var(--brown-dark);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-filled:hover { background: var(--brown-mid); }

/* --- CONTAINER PRINCIPAL --- */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 60px;
    min-height: calc(100vh - 110px);
}

/* --- CARD REGISTER --- */
.card {
    display: flex;
    width: 1000px;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-section {
    flex: 1;
    background-image: url('fundal.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.image-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.overlay-content {
    position: relative;
    z-index: 1;
}

.overlay-content { width: 100%; }

.tagline {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
    color: #fff;
}

.overlay-content h1 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 30px 0;
    font-weight: 700;
    color: #fff;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-content li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    color: #fff;
    font-size: 13px;
}

.overlay-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fff;
}

/* --- FORM SECTION --- */
.form-section {
    flex: 1;
    background: #fff;
    padding: 60px;
}

.form-tagline {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    color: var(--brown-dark);
    margin-bottom: 8px;
}

.form-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 16px;
}

.form-row .input-group { margin-bottom: 0; }

.input-group label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.input-group input {
    border: 1px solid #e0d5ce;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border 0.2s;
    background: #fdfaf8;
    color: #333;
}

.input-group input::placeholder { color: #c5b5aa; }
.input-group input:focus { border-color: var(--brown-btn); }

.info-box {
    background: #faf5f0;
    border: 1px solid #e8d5c4;
    padding: 11px 14px;
    font-size: 11.5px;
    color: var(--text-muted);
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    background: var(--brown-dark);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover { background: var(--brown-mid); }

.footer-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 18px;
}

.footer-text a { color: var(--brown-btn); text-decoration: none; font-weight: 500; }

/* --- ADMIN PANEL --- */
.admin-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.admin-title {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    color: var(--brown-dark);
    margin-top: 6px;
}

.admin-stats { display: flex; gap: 16px; }

.stat-box {
    background: var(--brown-dark);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.7;
    text-transform: uppercase;
}

.table-wrapper {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--accent-light);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table thead {
    background: var(--brown-dark);
    color: rgba(255,255,255,0.85);
}

.admin-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0e8e0;
    color: #444;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fdf8f5; }

.id-badge {
    background: var(--accent-light);
    color: var(--brown-dark);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.ip-code {
    background: #f5f0eb;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    color: var(--brown-mid);
}

.btn-delete {
    background: transparent;
    border: 1.5px solid #e0b0b0;
    color: #c0392b;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: 0.2s;
}

.btn-delete:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.empty-state {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- MAGAZIN --- */
.shop-header {
    text-align: center;
    padding: 60px 20px 20px;
}

.shop-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 38px;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.shop-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 30px 60px;
    align-items: start;
}

.product-card {
    background: transparent;
    border-radius: 20px;
    padding: 25px;
    box-shadow: none;
    border: none;
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card .btn-buy {
    margin-top: auto;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
    display: block;
    object-fit: contain;
    background: transparent;
}

.product-tag {
    font-size: 9px;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--brown-dark);
    margin-bottom: 10px;
    min-height: 50px;
}

.product-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
    min-height: 60px;
}

.price-tag {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 16px;
}

.btn-buy {
    display: block;
    width: 100%;
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn-buy:hover { background: #a93226; }

.discord-cta {
    text-align: center;
    padding: 60px 20px 80px;
    max-width: 600px;
    margin: 0 auto;
}

.discord-cta h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--brown-dark);
    margin-bottom: 12px;
}

.discord-cta p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-discord-big {
    display: inline-block;
    background: #5865F2;
    color: #fff;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-discord-big:hover { background: #4752c4; }

/* --- HERO ACASA --- */
.hero-section {
    background-image: url('fundal.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

/* --- NAV SALUT --- */
.nav-salut {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--brown-dark, #5c3d2e);
    letter-spacing: 0.5px;
    padding: 0 8px;
}

/* --- RESPONSIVE MOBIL --- */
@media (max-width: 768px) {
    .top-banner { display: none; }

    .navbar {
        flex-direction: column;
        gap: 14px;
        padding: 14px 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-divider { display: none; }

    /* Hero acasa */
    .hero-content h1 { font-size: 32px !important; }

    /* Card register/login */
    .card {
        flex-direction: column;
        max-width: 100%;
    }

    .image-section {
        min-height: 200px;
    }

    .form-section {
        padding: 30px 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Magazin grid */
    .shop-container {
        grid-template-columns: 1fr;
        padding: 20px 16px 40px;
    }

    .shop-header h1 { font-size: 26px; }

    /* Despre */
    .card[style*="flex-direction: row"] {
        flex-direction: column !important;
    }

    /* Admin */
    .admin-wrapper { padding: 0 16px; }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .admin-table { font-size: 11px; }
    .admin-table th, .admin-table td { padding: 10px 10px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 24px !important; }

    .btn-filled, .btn-outline {
        padding: 8px 12px;
        font-size: 10px;
    }
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-switcher a {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.lang-switcher a:hover { color: var(--brown-dark); border-color: var(--brown-dark); }

.lang-switcher a.lang-active {
    color: var(--brown-dark);
    border-color: var(--brown-dark);
    font-weight: 700;
}

/* --- REDCORE --- */
.redcore-container {
    max-width: 1000px;
    margin: 50px auto;
    background: #E8DCC8;
    border-radius: 20px;
    padding: 40px;
}

.header-banner {
    background: url('/fundal.png') center;
    background-size: cover;
    padding: 40px;
    border-radius: 15px;
    color: white;
    margin-bottom: 30px;
    position: relative;
}

.header-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    border-radius: 15px;
}

.header-banner > * { position: relative; z-index: 1; }

.section-title {
    font-family: 'Cinzel', serif;
    border-bottom: 1px solid #4A3427;
    padding-bottom: 10px;
    margin-top: 30px;
    color: #4A3427;
}

.grid-ips {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.input-field {
    padding: 12px;
    border: 1px solid #4A3427;
    border-radius: 5px;
    background: #FDF9F0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    width: 100%;
}

.license-box {
    background: #FDF9F0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border: 1px solid #4A3427;
    gap: 16px;
}

.license-box code {
    font-size: 13px;
    color: #4A3427;
    word-break: break-all;
}

.status-active {
    color: #2D5A27;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-group {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    transition: 0.2s;
}

.btn-update { background: #4A3427; color: white; }
.btn-update:hover { background: #2D1B14; }
.btn-generate { background: #2D1B14; color: white; }
.btn-generate:hover { background: #4A3427; }
