/* =========================================
   1. CONFIGURARE GENERALĂ & VARIABILE
   ========================================= */
:root {
    --primary-navy: #0f172a;       /* Albastru Inchis */
    --accent-gold: #c2a45e;        /* Auriu Mat */
    --bg-light: #f8fafc;           /* Fundal */
    --text-dark: #1e293b;          /* Text Principal */
    --text-grey: #64748b;          /* Text Secundar */
    --success-green: #10b981;      /* Verde Status */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, .brand-logo, .brand, .hero-title, .card-name, .domain-hero h1 {
    font-family: 'Playfair Display', serif;
}


/* =========================================
   2. HEADER & NAVIGARE (Reparat)
   ========================================= */
header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo (suportă ambele variante HTML) */
.brand-logo, .brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-decoration: none;
}
.brand-logo span, .brand span { color: var(--accent-gold); }

/* Meniul Desktop */
.desktop-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover { color: var(--primary-navy); }
.nav-link::after {
    content: ''; display: block; width: 0; height: 2px;
    background: var(--accent-gold); transition: width .3s;
    position: absolute; bottom: -5px; left: 0;
}
.nav-link:hover::after { width: 100%; }

.nav-link.active { font-weight: 600; color: var(--primary-navy); }

/* Zona Dreapta Header */
.header-right { display: flex; align-items: center; gap: 20px; }

.nav-phone {
    font-weight: 600; color: var(--primary-navy); text-decoration: none;
    background: #f1f5f9; padding: 8px 16px; border-radius: 30px;
    font-size: 0.9rem; transition: 0.3s;
}
.nav-phone:hover { background: var(--primary-navy); color: white; }

/* Buton Hamburger (Mobil) */
.mobile-menu-btn {
    display: none; /* Ascuns pe desktop */
    font-size: 1.5rem; cursor: pointer; color: var(--primary-navy);
}

/* MENIUL MOBIL (Overlay) - Aici era problema */
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.98); /* Navy opac */
    z-index: 1000;
    display: none; /* CRITIC: Ascuns default */
    justify-content: center;
    align-items: center;
}

.mobile-nav-content {
    text-align: center; display: flex; flex-direction: column; gap: 30px;
}

.mobile-nav-content a {
    color: white; font-family: 'Playfair Display', serif;
    font-size: 1.8rem; text-decoration: none;
}

.close-btn {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 3rem; cursor: pointer;
}

/* Link-ul "Inapoi" (Pt pagina produs) */
.back-link { text-decoration: none; color: var(--text-grey); font-size: 0.9rem; }
.back-link:hover { color: var(--primary-navy); }

/* =========================================
   3. HOMEPAGE - HERO & CARDURI
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1e293b 100%);
    color: white; padding: 60px 5%; text-align: center;
    border-bottom: 4px solid var(--accent-gold);
}

.hero-title { font-size: 2.5rem; margin-bottom: 10px; }
.hero-subtitle { font-size: 1.1rem; color: #cbd5e1; max-width: 700px; margin: 0 auto 30px auto; }

.hero-btn {
    background-color: var(--accent-gold); color: white;
    padding: 12px 30px; text-decoration: none; border-radius: 4px;
    font-weight: 600; transition: all 0.3s;
}
.hero-btn:hover { background-color: #a3863d; }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-title { text-align: center; margin-bottom: 30px; color: var(--primary-navy); }

/* Carduri Featured */
.featured-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; margin-bottom: 60px;
}

.domain-card {
    background: white; border-radius: 8px; padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0; text-align: center;
    transition: transform 0.2s; position: relative; overflow: hidden;
}
.domain-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent-gold);
}
.domain-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.card-name { font-size: 2rem; color: var(--primary-navy); margin-bottom: 5px; }
.card-tag { 
    background: #f1f5f9; color: var(--text-grey); 
    padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; text-transform: uppercase;
}
.card-price { font-size: 1.5rem; color: var(--primary-navy); font-weight: 700; margin: 20px 0; display: block; }
.card-action{font-size: 1.2rem; color: #64748b;}
.card-btn {
    display: inline-block; border: 1px solid var(--primary-navy); color: var(--primary-navy);
    padding: 8px 20px; border-radius: 4px; text-decoration: none; font-weight: 500; transition: 0.2s;
}
.card-btn:hover { background: var(--primary-navy); color: white; }

/* =========================================
   4. STILIZARE TABEL (DATATABLES)
   ========================================= */
.table-container {
    background: white; padding: 30px; border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

table.dataTable { border-collapse: collapse !important; width: 100% !important; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { margin-bottom: 20px; color: var(--text-grey); }
.dataTables_wrapper .dataTables_filter input { border: 1px solid #cbd5e1; padding: 8px; border-radius: 4px; outline: none; margin-left: 10px; }

table.dataTable thead th {
    background: white; border-bottom: 2px solid #e2e8f0 !important;
    color: var(--text-grey); text-transform: uppercase; font-size: 0.8rem; padding: 15px !important;
}
table.dataTable tbody td { padding: 15px !important; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }

/* Coloane Tabel */
.td-name { font-weight: 700; font-size: 1.1rem; color: var(--primary-navy); }
.td-cat { color: var(--text-grey); font-size: 0.9rem; }
.td-price { font-family: 'Inter', monospace; font-weight: 600; color: var(--text-dark); text-align: right; }

.btn-list-action {
    color: var(--primary-navy); text-decoration: none; font-weight: 600;
    font-size: 0.9rem; border: 1px solid #e2e8f0; padding: 6px 12px; border-radius: 4px; transition: 0.2s;
}
.btn-list-action:hover { background: var(--primary-navy); color: white; border-color: var(--primary-navy); }

/* =========================================
   5. PAGINA PRODUS (DEAL ROOM)
   ========================================= */
.deal-container {
    max-width: 1100px; margin: 40px auto; padding: 0 20px;
    display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 60px;
}

.domain-hero h1 { font-size: 4rem; color: var(--primary-navy); margin-bottom: 10px; line-height: 1; }

.badges-row { margin-bottom: 40px; }
.badge {
    display: inline-block; background: #e2e8f0; color: var(--text-grey);
    padding: 5px 12px; border-radius: 4px; font-size: 0.85rem; margin-right: 10px; text-transform: uppercase;
}
.badge.gold { background: #fdf6e7; color: #b4860b; border: 1px solid #fceebf; }

.investment-pitch {
    background: white; padding: 30px; border-left: 4px solid var(--accent-gold); margin-bottom: 40px;
}
.pitch-title { font-weight: 700; margin-bottom: 15px; color: var(--primary-navy); font-size: 1.2rem; }
.pitch-text { color: #475569; line-height: 1.7; margin-bottom: 15px; }

.tech-specs { margin-top: 50px; border-top: 1px solid #e2e8f0; padding-top: 30px; }
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.spec-label { color: var(--text-grey); }
.spec-value { font-weight: 600; color: var(--primary-navy); }

/* Formular Sticky */
.offer-box {
    background: white; padding: 35px; border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0;
    position: sticky; top: 100px; height: fit-content;
}
.status-dot { height: 10px; width: 10px; background-color: var(--success-green); border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-text { color: var(--success-green); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.form-input {
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; transition: 0.2s;
}
.form-input:focus { border-color: var(--primary-navy); outline: none; box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1); }

.btn-submit {
    width: 100%; background-color: var(--primary-navy); color: white;
    padding: 14px; border: none; border-radius: 6px; font-size: 1.1rem; font-weight: 600; cursor: pointer; margin-top: 10px;
}
.btn-submit:hover { background-color: #1e293b; transform: translateY(-2px); }

.secure-note { text-align: center; font-size: 0.8rem; color: var(--text-grey); margin-top: 15px; }

/* =========================================
   6. FOOTER & RESPONSIVE
   ========================================= */
footer {
    background: white; border-top: 1px solid #e2e8f0; text-align: center;
    padding: 30px; margin-top: 50px; color: var(--text-grey); font-size: 0.9rem;
}
.trust-badges i { margin: 0 5px; font-size: 1.5rem; color: #94a3b8; }

@media (max-width: 768px) {
    /* Meniu */
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-phone { display: none; } /* Ascundem telefonul din header pe ecrane mici */
    
    /* Layout */
    .deal-container { grid-template-columns: 1fr; gap: 30px; }
    .domain-hero h1 { font-size: 2.8rem; }
    .offer-box { position: relative; top: 0; }
    .hero-title { font-size: 2rem; }
}

/* --- STILURI PENTRU PAGINA INFO (AVANTAJE) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-navy);
}

/* Iconița din fiecare card */
.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: inline-block;
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.benefit-text {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Accent subtil sus */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-navy);
    opacity: 0;
    transition: opacity 0.3s;
}

.benefit-card:hover::before {
    opacity: 1;
}


/* --- STILURI PENTRU HEADER TABEL (Selector + Căutare) --- */

/* Containerul de sus (Selector Stânga - Căutare Dreapta) */
.dt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px; /* Spatiu pana la tabel */
    flex-wrap: wrap;
    gap: 15px;
}

/* Containerul de jos (Info Stânga - Paginare Dreapta) */
.dt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px; /* Spatiu dupa tabel */
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-grey);
}

/* Selectorul de număr (Dropdown) */
.dataTables_length label {
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.dataTables_length select {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 10px;
    color: var(--primary-navy);
    font-family: 'Inter', sans-serif;
    background-color: white;
    cursor: pointer;
    outline: none;
}

.dataTables_length select:focus {
    border-color: var(--primary-navy);
}

/* Bara de Căutare */
.dataTables_filter input {
    margin-left: 0 !important;
    padding: 10px 15px !important;
    width: 280px; /* O facem puțin mai lată */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.dataTables_filter input:focus {
    background: white;
    border-color: var(--primary-navy);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .dt-header, .dt-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .dataTables_filter input {
        width: 100%; /* Pe mobil ocupa toata latimea */
        margin-top: 10px;
    }
    .dataTables_length {
        text-align: center;
        width: 100%;
    }
}

/* --- FIX FINAL PENTRU SUPRAPUNERE BUTON MOBIL --- */
@media (max-width: 600px) {
    /* 1. Facem loc in stanga pentru butonul verde */
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:first-child {
        padding-left: 45px !important; /* Impingem textul la dreapta */
        position: relative;
    }

    /* 2. Pozitionam butonul verde perfect in acel spatiu liber */
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
        left: 10px !important; /* Butonul sta la 10px de margine */
        top: 50% !important;   /* Centrat vertical */
        transform: translateY(-50%); /* Ajustare fina centru */
        display: block;
        position: absolute;
    }
    
    /* 3. Ne asiguram ca numele domeniului nu se sparge urat */
    .td-name {
        display: inline-block;
        vertical-align: middle;
        word-break: break-word; /* Daca e un domeniu foarte lung, il rupem */
    }
}

/* --- CLASA UTILITARĂ H2 (Visual Only) --- */
.strong {
    font-family: 'Playfair Display', serif; /* Fontul Premium al site-ului */
    font-size: 1.7rem;           /* Dimensiune standard H2 (aprox 32px) */
    font-weight: 700;          /* Bold */
    color: var(--primary-navy); /* Albastrul Corporate */
    line-height: 1.3;          /* Spațiere corectă între rânduri */
    margin-bottom: 20px;       /* Spațiu dedesubt */
    display: block;            /* Se comportă ca un bloc (ocupă tot rândul) */
}

/* Ajustare automată pentru mobil (ca să nu fie prea mare) */
@media (max-width: 768px) {
    .h2-style {
        font-size: 1.6rem;
    }
}

/* --- STILURI NOI: FIȘA DE PRODUS (Structured Data) --- */

/* 1. Header-ul de Categorie (Badge Elegant) */
.category-badge-large {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    color: var(--primary-navy);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}
.category-badge-large i { margin-right: 8px; color: var(--accent-gold); }

/* 2. Descrierea Principală (Lead Text) */
.domain-lead-text {
    font-size: 1.1rem;
    color: #334155; /* Un gri mai închis pentru lizibilitate */
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
}

/* 3. Grid-ul de Valoare (Motivație vs Oportunitate) */
.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Două coloane egale */
    gap: 30px;
    margin-bottom: 40px;
}

/* Cardurile individuale din Grid */
.value-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.2s;
}

/* Linia de accent colorată (Stânga - Motivație / Dreapta - Oportunitate) */
.value-card.motivation { border-top: 4px solid var(--primary-navy); }
.value-card.opportunity { border-top: 4px solid var(--accent-gold); }

.value-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive: Pe mobil le punem una sub alta */
@media (max-width: 768px) {
    .value-grid { grid-template-columns: 1fr; }
}
