/* PBE România - Mobile-First Responsive Design - OPTIMIZED */
/* Soluții pentru problemele identificate din testare mobilă */

/* Global Reset și Overflow Control */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    -webkit-overflow-scrolling: touch;
}

/* Utility class pentru overflow control */
.overflow-x-hidden {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Container Control pentru a preveni overflow */
.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* Full Screen Hero Banner - curat și simplu */
.pbe-hero-banner {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('../../../bannere/imagine-banner.jpg') center/cover no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Overlay Container - pentru logo și navigare */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 15px 20px;
    width: 100%;
    max-width: 100%;
}

/* Logo PNG - Poziționat absolut în overlay cu animație pulse */
.pbe-logo-overlay {
    position: absolute;
    top: 10px; /* Coborât mai jos pentru spațiu de la top */
    left: 20px;
    z-index: 25;
    width: 160px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
    cursor: pointer;
    transform: rotate(-5deg);
    will-change: transform;
    animation: logo-pulse 2s ease-in-out infinite;
}

.pbe-logo-overlay:hover {
    transform: scale(1.05) rotate(-5deg);
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6));
    animation-play-state: paused;
}

/* Animația pulse pentru logo - restaurată din backup */
@keyframes logo-pulse {
    0%, 100% { 
        transform: rotate(-5deg) scale(1); 
        filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
    }
    50% { 
        transform: rotate(-5deg) scale(1.05); 
        filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
    }
}

/* Clasă pentru logo pulse - pentru compatibilitate cu backup */
.logo-pulse {
    animation: logo-pulse 2s ease-in-out infinite;
}

/* Navigation Overlay - poziționat în partea dreaptă */
.nav-overlay {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 24;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: calc(100vw - 200px); /* Previne overflow */
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    max-width: 100%;
}

/* Navigation Links */
.nav-link {
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

/* CTA Button în navigare */
.nav-cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white !important;
    text-decoration: none;
}

/* Auth Link */
.nav-auth-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

.nav-auth-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.3);
}

/* Mobile Menu Dropdown - FIX pentru Samsung A5 - poziționat la stânga */
.mobile-menu-dropdown {
    position: absolute;
    top: 0; /* La aceeași înălțime cu butonul */
    right: 50px; /* La stânga butonului, nu dedesubt */
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 15px;
    min-width: 200px;
    max-width: calc(100vw - 60px); /* Previne overflow */
    max-height: calc(100vh - 80px); /* Asigură că încape pe ecran */
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
    z-index: 30; /* Deasupra tuturor */
}

/* Ajustare pentru ecrane mici - meniul să nu iasă din viewport */
@media (max-width: 480px) {
    .mobile-menu-dropdown {
        right: 35px; /* Aproape de buton dar fără overflow */
        min-width: 180px;
        max-width: calc(100vw - 45px);
    }
}

/* Ajustare pentru ecrane foarte mici */
@media (max-width: 360px) {
    .mobile-menu-dropdown {
        right: 25px;
        min-width: 160px;
        max-width: calc(100vw - 35px);
        padding: 12px;
    }
}

.mobile-nav-link {
    display: block;
    color: #2d3748;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.mobile-nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #3182ce;
    text-decoration: none;
}

.mobile-auth-link {
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 10px;
    padding-top: 15px !important;
}

.mobile-nav-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    margin-top: 10px;
}

.mobile-nav-cta:hover {
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none;
}

/* Hero Content - OPTIMIZAT pentru mobile */
.hero-content {
    position: relative;
    z-index: 15;
    text-align: center;
    color: white;
    max-width: 90%;
    width: 100%;
    padding: 0 20px;
    margin-top: 80px;
    box-sizing: border-box;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
    line-height: 1.1;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    max-width: 100%;
    word-wrap: break-word;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: fadeInUp 1s ease-out 0.4s both;
    border: 2px solid transparent;
    font-size: 1.1rem;
    max-width: 90%;
    box-sizing: border-box;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
    border-color: rgba(255,255,255,0.3);
}

/* Stats Overlay - MAJOR OPTIMIZATION pentru mobile */
.stats-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 18;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.stats-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    overflow: visible;
}

.stat-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 16px 12px;
    min-width: 100px;
    max-width: calc(25% - 12px);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
    flex: 1;
}

.stat-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: white;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional styles pentru secțiuni */
.form-gradient { 
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%); 
}

.testimonial-card { 
    backdrop-filter: blur(10px); 
    background: rgba(255, 255, 255, 0.95); 
}

/* Responsive Container Fixes */
.max-w-6xl, .max-w-3xl, .max-w-2xl {
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* === RESPONSIVE DESIGN OPTIMIZED === */

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .pbe-logo-overlay {
        width: 140px;
        left: 20px;
        top: 5px; /* Ajustat pentru tablet */
    }
    
    /* Tablet pulse animation adjustment */
    @keyframes logo-pulse {
        0%, 100% { 
            transform: rotate(-5deg) scale(1); 
            filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
        }
        50% { 
            transform: rotate(-5deg) scale(1.05); 
            filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
        }
    }
    
    .nav-desktop {
        gap: 15px;
        padding: 6px 16px;
    }
    
    .nav-link, .nav-auth-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .nav-cta-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .stat-card {
        max-width: calc(25% - 10px);
    }
    
    /* TABLET PORTRAIT OPTIMIZATION - ridică banner-ul */
    .pbe-hero-banner {
        height: 105vh; /* Puțin mai mare pentru a compensa browser chrome */
        margin-top: -5vh; /* Ridică banner-ul în sus */
    }
    
    .stats-overlay {
        bottom: 30px; /* Mai sus pentru a fi vizibile */
    }
}

/* TABLET LANDSCAPE - ARANJAMENT 2 STANGA + 2 DREAPTA */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-content {
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* ARANJAMENT 2 STANGA + 2 DREAPTA pentru tablet landscape */
    .stats-overlay {
        bottom: 50%; /* Centrat vertical */
        left: 0;
        right: 0;
        transform: translateY(50%);
        padding: 0;
        width: 100%;
        z-index: 14; /* Sub conținutul principal */
    }
    
    .stats-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 40px;
        max-width: 100%;
        margin: 0;
        gap: 0;
    }
    
    /* Prima și a doua statistică - stânga */
    .stat-card:nth-child(1) {
        position: absolute;
        left: 40px;
        top: -30px;
    }
    
    .stat-card:nth-child(2) {
        position: absolute;
        left: 40px;
        top: 30px;
    }
    
    /* A treia și a patra statistică - dreapta */
    .stat-card:nth-child(3) {
        position: absolute;
        right: 40px;
        top: -30px;
    }
    
    .stat-card:nth-child(4) {
        position: absolute;
        right: 40px;
        top: 30px;
    }
    
    .stat-card {
        padding: 8px 10px;
        min-width: 90px;
        max-width: 120px;
        border-radius: 8px;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(10px);
        position: relative;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Mobile Styles - MAJOR OPTIMIZATIONS - NOKIA G20 FIXES */
@media (max-width: 768px) {
    /* Global mobile overflow prevention */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Container fixes */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Logo pentru mobile - POZITIE AJUSTATA pentru Nokia G20 */
    .pbe-logo-overlay {
        width: 95px; /* Micsorat pentru a nu acoperi textul */
        left: 8px; /* Mai aproape de margine */
        top: 2px; /* Mai sus pentru a elibera spatiu */
        transform: rotate(-2deg); /* Rotire mai mica */
    }
    
    /* Mobile pulse animation adjustment */
    @keyframes logo-pulse {
        0%, 100% { 
            transform: rotate(-2deg) scale(1); 
            filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
        }
        50% { 
            transform: rotate(-2deg) scale(1.05); 
            filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
        }
    }
    
    /* Ascunde navigarea desktop și afișează butonul mobile */
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Ajustează overlay-ul pentru mobile */
    .hero-overlay {
        padding: 5px 8px; /* Redus padding pentru mai mult spatiu */
    }
    
    .nav-overlay {
        top: 5px; /* Mai sus */
        right: 8px; /* Mai aproape de margine */
        max-width: calc(100vw - 120px); /* Mai mult spatiu */
    }
    
    /* Hero content pentru mobile - NOKIA G20 OPTIMIZAT */
    .hero-content {
        margin-top: 130px; /* MARIT pentru Nokia G20 - sa nu fie acoperit */
        padding: 0 10px; /* Redus padding lateral */
        max-width: 98%; /* Mai mult spatiu */
        z-index: 16; /* Asigura ca e deasupra */
    }
    
    .hero-title {
        font-size: 2rem; /* Mai mic pentru Nokia G20 */
        margin-bottom: 0.6rem;
        line-height: 1.05; /* Mai compact */
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Mai mult contrast */
    }
    
    .hero-subtitle {
        font-size: 0.9rem; /* Mai mic */
        margin-bottom: 1rem;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    }
    
    .hero-cta {
        padding: 10px 20px; /* Mai compact */
        font-size: 0.85rem;
        max-width: 80%;
        margin-bottom: 30px; /* MARIT spatiul pentru stats Nokia G20 */
        z-index: 17; /* Deasupra stats */
        position: relative;
    }
    
    /* Stats pentru mobile - POZITIONARE OPTIMIZATA Nokia G20 */
    .stats-overlay {
        bottom: 5px; /* Mai jos pentru a nu acoperi butonul */
        padding: 0 3px;
        width: calc(100% - 6px);
        z-index: 15; /* Sub buton */
    }
    
    .stats-grid {
        gap: 3px;
        width: 100%;
        justify-content: center;
    }
    
    .stat-card {
        padding: 6px 3px; /* Mai compact */
        min-width: 65px;
        max-width: calc(25% - 2px);
        flex: 1;
        border-radius: 6px;
        background: rgba(255,255,255,0.15); /* Mai transparent */
        backdrop-filter: blur(8px);
    }
    
    .stat-number {
        font-size: 0.85rem; /* Mai mic pentru Nokia G20 */
        margin-bottom: 1px;
    }
    
    .stat-label {
        font-size: 0.55rem; /* Mai mic */
    }
    
    /* Form grid fixes */
    .grid {
        width: 100%;
        overflow: hidden;
    }
    
    .grid > * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Landscape Mobile - ARANJAMENT 2 STANGA + 2 DREAPTA pentru a elibera centrul */
@media (max-width: 768px) and (orientation: landscape) {
    .pbe-hero-banner {
        height: 100vh;
    }
    
    .pbe-logo-overlay {
        width: 70px !important; /* Mai mic pentru mai mult spațiu */
        left: 6px !important;
        top: 2px !important;
        transform: rotate(-2deg) !important;
        animation: logo-pulse-landscape 2s ease-in-out infinite !important; /* Fix animația */
    }
    
    /* Landscape mobile pulse animation - FIXED */
    @keyframes logo-pulse-landscape {
        0%, 100% { 
            transform: rotate(-2deg) scale(1); 
            filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
        }
        50% { 
            transform: rotate(-2deg) scale(1.05); 
            filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
        }
    }
    
    .hero-overlay {
        padding: 4px 6px;
    }
    
    .nav-overlay {
        top: 4px;
        right: 6px;
        max-width: calc(100vw - 90px);
    }
    
    /* MENIU HAMBURGER și pe landscape */
    .nav-desktop {
        display: none !important; /* Forțează hamburger */
    }
    
    .mobile-menu-toggle {
        display: block !important;
        padding: 6px;
    }
    
    .hero-content {
        margin-top: 25px; /* Redus pentru mai mult spațiu */
        padding: 0 6px;
        max-width: 90%;
    }
    
    /* TEXT BANNER MICȘORAT pentru landscape Nokia */
    .hero-title {
        font-size: 1.3rem !important; /* Mult mai mic */
        margin-bottom: 0.2rem;
        line-height: 1.0;
    }
    
    .hero-subtitle {
        font-size: 0.65rem !important; /* Mult mai mic */
        margin-bottom: 0.5rem;
    }
    
    .hero-cta {
        padding: 6px 15px !important; /* Mai compact */
        font-size: 0.7rem !important; /* Mai mic */
        margin-bottom: 8px;
    }
    
    /* ARANJAMENT 2 STANGA + 2 DREAPTA pentru landscape mobile */
    .stats-overlay {
        bottom: 50%; /* Centrat vertical */
        left: 0;
        right: 0;
        transform: translateY(50%);
        padding: 0;
        width: 100%;
        z-index: 14; /* Sub conținutul principal */
    }
    
    .stats-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        max-width: 100%;
        margin: 0;
        gap: 0;
    }
    
    /* Grupul din stânga - 2 statistici */
    .stat-card:nth-child(1),
    .stat-card:nth-child(2) {
        margin-right: auto;
    }
    
    /* Grupul din dreapta - 2 statistici */
    .stat-card:nth-child(3),
    .stat-card:nth-child(4) {
        margin-left: auto;
    }
    
    /* Prima și a doua statistică - stânga cu spațiu */
    .stat-card:nth-child(1) {
        position: absolute;
        left: 15px;
        top: -35px; /* Mai mult spațiu */
    }
    
    .stat-card:nth-child(2) {
        position: absolute;
        left: 15px;
        top: 15px; /* Spațiu între ele */
    }
    
    /* A treia și a patra statistică - dreapta cu spațiu */
    .stat-card:nth-child(3) {
        position: absolute;
        right: 15px;
        top: -35px; /* Mai mult spațiu */
    }
    
    .stat-card:nth-child(4) {
        position: absolute;
        right: 15px;
        top: 15px; /* Spațiu între ele */
    }
    
    .stat-card {
        padding: 4px 5px;
        min-width: 60px;
        max-width: 75px;
        border-radius: 6px;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(8px);
        position: relative;
    }
    
    .stat-number {
        font-size: 0.75rem;
    }
    
    .stat-label {
        font-size: 0.45rem;
    }
}

/* Desktop Styles - TEXT MĂRIT */
@media (min-width: 1025px) {
    .hero-title {
        font-size: 5rem !important; /* Mai mare pe desktop */
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.8rem !important; /* Mai mare pe desktop */
        margin-bottom: 2.5rem;
    }
    
    .hero-cta {
        padding: 18px 45px !important; /* Mai mare pe desktop */
        font-size: 1.2rem !important;
    }
}

/* Mobile Portrait - TEXT MĂRIT */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-title {
        font-size: 2.4rem !important; /* Mai mare pe mobile portrait */
        margin-bottom: 0.8rem;
        line-height: 1.05;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important; /* Mai mare pe mobile portrait */
        margin-bottom: 1.2rem;
    }
    
    .hero-cta {
        padding: 14px 30px !important; /* Mai mare pe mobile portrait */
        font-size: 1rem !important;
    }
}

/* Tablet Portrait - TEXT MĂRIT */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-title {
        font-size: 4rem !important; /* Mai mare pe tablet portrait */
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important; /* Mai mare pe tablet portrait */
    }
    
    .hero-cta {
        padding: 16px 35px !important; /* Mai mare pe tablet portrait */
        font-size: 1.1rem !important;
    }
}
@media (max-width: 480px) {
    .pbe-logo-overlay {
        width: 90px;
        left: 10px;
        top: 8px;
    }
    
    .hero-content {
        margin-top: 90px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .mobile-menu-dropdown {
        min-width: 180px;
        right: -10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
    }
    
    .stat-card {
        min-width: 65px;
        padding: 6px 3px;
        max-width: calc(25% - 2px);
    }
    
    .stats-grid {
        gap: 2px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .pbe-logo-overlay {
        width: 75px;
        left: 8px;
        top: 8px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        gap: 2px;
    }
    
    .stat-card {
        min-width: 55px;
        padding: 4px 2px;
        max-width: calc(25% - 1px);
    }
    
    .stat-number {
        font-size: 0.85rem;
    }
    
    .stat-label {
        font-size: 0.5rem;
    }
}

/* Performance Optimizations */
.pbe-hero-banner,
.hero-content,
.stats-overlay,
.pbe-logo-overlay {
    will-change: transform;
}

/* ===== ANIMAȚII ȘI FEEDBACK VIZUAL PENTRU MOBILE ===== */

/* Animația spin pentru loading state */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading state pentru butoane */
.loading {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
}

/* Touch feedback animations */
@keyframes pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

/* Fade in animation pentru carduri */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ÎMBUNĂTĂȚIRI PENTRU ORIENTARE ===== */

/* Detectează schimbarea orientării și ajustează layout-ul */
@media (max-width: 768px) {
    .orientation-change {
        transition: all 0.3s ease;
    }
}

/* Portrait mode specific optimizations */
@media (max-width: 768px) and (orientation: portrait) {
    .mobile-portrait-optimized {
        padding: 0 8px;
    }
    
    /* Asigură că butoanele sunt vizibile în viewport */
    #inscriere .bg-gradient-to-r {
        position: relative;
        z-index: 10;
        margin-bottom: 20px !important;
    }
    
    /* Optimizează spațierea pentru portrait */
    #inscriere .form-gradient:last-child {
        margin-bottom: 30px !important;
    }
}

/* Landscape mode pentru mobile - layout mai compact */
@media (max-width: 768px) and (orientation: landscape) {
    #inscriere .form-gradient {
        padding: 12px !important;
        margin: 0 4px 10px 4px !important;
    }
    
    #inscriere .bg-gradient-to-r {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }
    
    #inscriere .form-gradient .text-6xl {
        font-size: 2rem !important;
        margin-bottom: 8px !important;
    }
    
    #inscriere .form-gradient .text-3xl {
        font-size: 1.25rem !important;
        margin-bottom: 8px !important;
    }
    
    #inscriere .form-gradient .text-lg {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }
}

/* ===== ÎMBUNĂTĂȚIRI PENTRU ACCESIBILITATE PE MOBILE ===== */

/* Focus indicators mai vizibili pe mobile */
@media (max-width: 768px) {
    .bg-gradient-to-r:focus,
    button:focus,
    a:focus {
        outline: 3px solid rgba(102, 126, 234, 0.6) !important;
        outline-offset: 2px !important;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        #inscriere .form-gradient {
            border: 2px solid #000 !important;
        }
        
        #inscriere .bg-gradient-to-r {
            border: 2px solid #fff !important;
            font-weight: 800 !important;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        #inscriere * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        
        .bg-gradient-to-r:active {
            transform: none !important;
        }
    }
}

/* ===== OPTIMIZĂRI PENTRU DISPOZITIVE FOARTE MICI ===== */

/* Pentru dispozitive cu width foarte mic (< 320px) */
@media (max-width: 320px) {
    #inscriere .container {
        padding: 0 2px !important;
    }
    
    #inscriere .form-gradient {
        margin: 0 2px 10px 2px !important;
        padding: 12px 8px !important;
    }
    
    #inscriere .bg-gradient-to-r {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        min-height: 48px !important;
    }
    
    #inscriere .form-gradient .text-6xl {
        font-size: 1.8rem !important;
    }
    
    #inscriere .form-gradient .text-3xl {
        font-size: 1.1rem !important;
    }
    
    #inscriere .form-gradient .text-lg {
        font-size: 0.8rem !important;
    }
}

/* ===== SUPORT PENTRU DISPOZITIVE CU DENSITATE MARE ===== */

/* Retina displays și high-DPI */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    #inscriere .bg-gradient-to-r {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25) !important;
    }
    
    #inscriere .form-gradient {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pbe-logo-overlay {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-desktop {
        background: rgba(255,255,255,0.9);
        border-color: #000;
    }
    
    .nav-link {
        color: #000;
    }
    
    .mobile-menu-dropdown {
        background: rgba(255,255,255,1);
        border-color: #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mobile-menu-dropdown {
        background: rgba(20,20,20,0.95);
    }
    
    .mobile-nav-link {
        color: #e2e8f0;
    }
    
    .mobile-nav-link:hover {
        color: #90cdf4;
        background: rgba(49, 130, 206, 0.2);
    }
}

/* Form Optimizations pentru mobile - CRITICAL FIX - ENHANCED pentru butoanele de înregistrare */
@media (max-width: 768px) {
    #inscriere {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    #inscriere .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #inscriere .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100%;
        max-width: 100%;
    }
    
    #inscriere .form-gradient {
        padding: 1.5rem !important;
        margin: 0 0.5rem;
        max-width: calc(100% - 1rem);
        box-sizing: border-box;
    }
    
    #inscriere .text-3xl {
        font-size: 1.75rem !important;
    }
    
    #inscriere .text-lg {
        font-size: 1rem !important;
    }
    
    #inscriere .bg-white\/10 {
        margin: 0 0.5rem;
        padding: 1rem !important;
        max-width: calc(100% - 1rem);
        box-sizing: border-box;
    }
    
    #inscriere .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Fix pentru toate div-urile cu background gradient */
    .bg-gradient-to-br,
    .bg-gradient-to-r {
        max-width: 100% !important;
        overflow: hidden;
        box-sizing: border-box;
    }
}

/* ===== OPTIMIZĂRI MOBILE PORTRAIT pentru BUTOANELE DE ÎNREGISTRARE ===== */
/* FIX specific pentru problemele observate în imaginile furnizate */

@media (max-width: 768px) and (orientation: portrait) {
    
    /* BUTOANELE PRINCIPALE - optimizate pentru touch mobile portrait */
    #inscriere .bg-gradient-to-r {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 15px auto !important;
        padding: 18px 24px !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        text-align: center !important;
        border-radius: 15px !important;
        text-decoration: none !important;
        color: white !important;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
        transition: all 0.3s ease !important;
        border: none !important;
        cursor: pointer !important;
        min-height: 56px !important;
        box-sizing: border-box !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
    }
    
    /* Hover/Active effects pentru mobile */
    #inscriere .bg-gradient-to-r:active {
        transform: translateY(1px) scale(0.98) !important;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
        transition: all 0.15s ease !important;
    }
    
    /* Cardurile de înregistrare - mai compacte pentru mobile portrait */
    #inscriere .form-gradient {
        margin: 0 8px 20px 8px !important;
        padding: 20px 16px !important;
        max-width: calc(100% - 16px) !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }
    
    /* Emoji-urile în carduri - ajustate pentru mobile */
    #inscriere .form-gradient .text-6xl {
        font-size: 2.5rem !important;
        margin-bottom: 16px !important;
    }
    
    /* Titlurile cardurilor - optimizate pentru mobile */
    #inscriere .form-gradient .text-3xl {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
        line-height: 1.2 !important;
        color: #2d3748 !important;
        font-weight: 700 !important;
    }
    
    /* Subtitlurile - mai compacte */
    #inscriere .form-gradient .text-lg {
        font-size: 0.95rem !important;
        margin-bottom: 16px !important;
        line-height: 1.3 !important;
        color: #4a5568 !important;
    }
    
    /* Zonele cu fundal colorat (info despre ce faci) - optimizate */
    #inscriere .bg-blue-50,
    #inscriere .bg-purple-50 {
        padding: 14px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    
    /* Grid-ul din zonele info - o singură coloană pe mobile portrait */
    #inscriere .bg-purple-50 .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    
    /* Textul sub butoane - ajustat */
    #inscriere .text-gray-500.text-sm {
        font-size: 0.85rem !important;
        margin-top: 12px !important;
        color: #718096 !important;
        text-align: center !important;
    }
    
    /* Zona de informații suplimentare - mai compactă */
    #inscriere .bg-white\/10 {
        margin: 25px 8px 0 8px !important;
        padding: 16px !important;
        max-width: calc(100% - 16px) !important;
        border-radius: 16px !important;
    }
    
    /* Grid-ul de informații - o singură coloană pe mobile portrait */
    #inscriere .bg-white\/10 .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Extra Small Mobile (sub 480px) - Pentru telefoane mai mici */
@media (max-width: 480px) and (orientation: portrait) {
    
    #inscriere .form-gradient {
        margin: 0 5px 15px 5px !important;
        padding: 16px 12px !important;
    }
    
    #inscriere .bg-gradient-to-r {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        min-height: 52px !important;
    }
    
    #inscriere .form-gradient .text-3xl {
        font-size: 1.3rem !important;
    }
    
    #inscriere .form-gradient .text-lg {
        font-size: 0.9rem !important;
    }
}

/* Very Small Mobile (sub 360px) - Pentru telefoane foarte mici */
@media (max-width: 360px) and (orientation: portrait) {
    
    #inscriere .container {
        padding: 0 4px !important;
    }
    
    #inscriere .form-gradient {
        margin: 0 4px 12px 4px !important;
        padding: 14px 10px !important;
    }
    
    #inscriere .bg-gradient-to-r {
        padding: 14px 18px !important;
        font-size: 0.95rem !important;
        min-height: 50px !important;
    }
    
    #inscriere .form-gradient .text-6xl {
        font-size: 2rem !important;
    }
    
    #inscriere .form-gradient .text-3xl {
        font-size: 1.2rem !important;
    }
}

/* ===== ÎMBUNĂTĂȚIRI PENTRU TOUCH INTERACTION PE MOBILE ===== */

@media (max-width: 768px) {
    
    /* Toate butoanele - zone de touch mai mari conform ghidurilor Apple/Google */
    button, .bg-gradient-to-r, .hero-cta, a[href] {
        min-height: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
    }
    
    /* Elimină highlight-ul default pe iOS */
    input, button, a, .mobile-menu-toggle {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* Butonul de meniu mobile - zona de touch mai mare */
    .mobile-menu-toggle {
        padding: 12px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Link-urile din meniul mobile - zone de touch mai mari */
    .mobile-nav-link {
        padding: 15px 20px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
}