/* =============================================
   INSTAVIU - PROFESSIONAL RECORDER-STYLE DESIGN
   ============================================= */

:root {
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --accent: #b91c1c;
    --accent-hover: #991b1b;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 4px;
}

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 0.875rem; letter-spacing: 0.05em; }

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--black);
    border-bottom: 1px solid var(--gray-700);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.logo-icon {
    height: 28px;
    width: auto;
    margin-right: 10px;
    vertical-align: -6px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-decoration: none;
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--white);
}

/* === AUTH BUTTONS === */
.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-welcome {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-right: 8px;
}

.buton-auth {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.buton-login {
    background: var(--accent);
    color: var(--white);
}

.buton-login:hover {
    background: var(--accent-hover);
}

.buton-register {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
}

.buton-register:hover {
    border-color: var(--white);
}

.buton-profile {
    background: var(--gray-700);
    color: var(--white);
}

.buton-profile:hover {
    background: var(--gray-600);
}

.buton-admin {
    background: var(--accent);
    color: var(--white);
}

.buton-admin:hover {
    background: var(--accent-hover);
}

.buton-logout {
    background: transparent;
    color: var(--gray-400);
    border: 1px solid var(--gray-700);
}

.buton-logout:hover {
    color: var(--white);
    border-color: var(--gray-500);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    padding: 100px 24px 60px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === BUTTONS === */
.btn {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--black);
}

.btn-white:hover {
    background: var(--gray-200);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* === SECTIONS === */
.section {
    padding: 100px 24px;
}

.section-white {
    background: var(--white);
}

.section-dark {
    background: var(--black);
}

.section-accent {
    background: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 48px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--black);
}

.section-header-light .section-label {
    color: var(--gray-400);
    border-color: var(--white);
}

.section-header-light h2 {
    color: var(--white);
}

/* === FILTERS === */
.filters {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-wrapper {
    margin-bottom: 16px;
    width: 100%;
    max-width: 500px;
}

#searchInput {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

#searchInput:focus {
    border-color: var(--black);
}

#searchInput::placeholder {
    color: var(--gray-400);
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select {
    padding: 12px 40px 12px 16px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23737373' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    outline: none;
    transition: border-color 0.2s;
}

.filter-select:focus {
    border-color: var(--black);
}

/* === JOBS GRID === */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card-job {
    background: var(--gray-100);
    border: 2px solid transparent;
    padding: 28px;
    display: none;
    flex-direction: column;
    position: relative;
    transition: all 0.2s;
    height: 100%;
}

.card-job.visible {
    display: flex;
}

.card-job:hover {
    border-color: var(--black);
}

.card-job h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: -0.01em;
}

.card-job-descriere-scurta {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 48px;
    flex-grow: 0;
}

.job-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.job-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.tag-location { color: var(--gray-700); }
.tag-salary { color: var(--accent); border-color: var(--accent); }
.tag-domeniu { color: var(--gray-600); }

.buton-detalii {
    width: 100%;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.2s;
    margin-top: auto;
}

.buton-detalii:hover {
    background: var(--gray-800);
}

/* === BADGES === */
.badge-aplicat {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    letter-spacing: 0.03em;
}

.buton-sterge-job {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-500);
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.buton-sterge-job:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.admin-mode .buton-sterge-job {
    display: flex;
}

/* === PAGINATION === */
#pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--white);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--black);
}

.pagination-btn.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* === REVIEWS CAROUSEL === */
.reviews-carousel {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.review-card {
    flex: 0 0 calc(25% - 18px);
    background: var(--gray-800);
    cursor: pointer;
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%) brightness(1);
    transition: filter 0.3s ease;
}

.review-card:hover .review-img {
    filter: grayscale(0%) brightness(0.2);
}

.review-info {
    padding: 20px;
}

.review-info strong {
    display: block;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.review-info span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }

/* === CTA === */
.cta-container {
    text-align: center;
}

.section-accent h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.section-accent p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* === FOOTER === */
.footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 250px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.footer-brand p {
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.footer-col a,
.footer-col button {
    display: block;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.footer-col a:hover,
.footer-col button:hover {
    color: var(--black);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    transition: background 0.2s;
}

.social-links a:hover {
    background: var(--gray-300);
}

.footer-image-boxes {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.image-box {
    width: 100px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 0.8em;
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
}

.social-links img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 20px 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* === MODALS === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.2s;
}

.modal-overlay.visible .modal-box {
    transform: translateY(0);
}

.modal-large {
    max-width: 640px;
}

.modal-small {
    max-width: 400px;
    text-align: center;
}

.modal-image {
    max-width: 90vw;
    padding: 24px;
    background: var(--black);
    text-align: center;
}

.modal-image img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
}

.modal-image .modal-close {
    background: var(--gray-700);
    color: var(--white);
}

.modal-image .modal-close:hover {
    background: var(--white);
    color: var(--black);
}

.image-caption {
    margin-top: 20px;
    text-align: center;
}

.image-caption strong {
    display: block;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 4px;
}

.image-caption span {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--black);
    color: var(--white);
}

.modal-box h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.modal-body h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--black);
    margin: 24px 0 8px;
    letter-spacing: 0.05em;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.modal-body li {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.modal-actions .btn {
    flex: 1;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--black);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-message {
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #b91c1c;
}

.form-message.success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #166534;
}

/* === AUTH TABS === */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    padding: 14px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-400);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.auth-tab:hover {
    color: var(--black);
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* === PROFILE === */
.profile-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.profile-header h3 {
    margin-bottom: 4px;
}

.profile-header p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 5px; /* Formă de pastilă */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge.admin {
    background: var(--accent);
    color: var(--white);
}

.profile-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.applications-list {
    list-style: none;
}

.application-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-100);
    margin-bottom: 8px;
}

.application-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2px;
}

.application-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

.application-meta {
    text-align: right;
}

.application-date {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.application-type {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 0.03em;
    background: var(--gray-200);
    color: var(--gray-600);
}

.application-type.priority {
    background: var(--accent);
    color: var(--white);
}

.no-applications {
    text-align: center;
    color: var(--gray-500);
    padding: 32px;
    font-size: 0.9rem;
}

/* === SUCCESS === */
.success-content {
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.success-content h3 {
    margin-bottom: 8px;
}

.success-content p {
    color: var(--gray-500);
}

/* === HIDDEN === */
.job-data {
    display: none !important;
}

/* === RESPONSIVE DESKTOP === */
@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

/* === LOADING === */
.jobs-grid p {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-500);
    padding: 60px 24px;
    font-size: 1rem;
}

/* === AI AUTOFILL BUTTON === */
.btn-ai {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    color: white;
    margin-bottom: 20px;
    width: 100%;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-ai:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
}

.btn-ai:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-status {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.875rem;
    min-height: 20px;
}

.ai-status.loading {
    color: #667eea;
}

.ai-status.success {
    color: #22c55e;
}

.ai-status.error {
    color: #ef4444;
}

/* === ADMIN BUTTONS ROW === */
.admin-buttons-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
}

.admin-buttons-row .btn {
    flex: 1;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-import {
    background: linear-gradient(135deg, #1a1a1a 0%, #404040 100%);
    color: white;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.admin-buttons-row .btn-ai {
    flex: 1;
    text-align: center;
}

.btn-import:hover {
    background: linear-gradient(135deg, #404040 0%, #1a1a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* === FIX BUTOANE ADMIN EGALE === */
.admin-buttons-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.admin-buttons-row .btn-ai,
.admin-buttons-row .btn-import {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* === ACCOUNT TYPE SELECTOR === */
.account-type-selector {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.account-type-option {
    flex: 1;
    cursor: pointer;
}

.account-type-option input {
    display: none;
}

.account-type-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.2s;
    text-align: center;
}

.account-type-option input:checked + .account-type-box {
    border-color: var(--accent);
    background: rgba(185, 28, 28, 0.05);
}

.account-type-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.account-type-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--black);
}

.account-type-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* === EMPLOYER CREDITS === */
.employer-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-100);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.employer-credits strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* === PAYMENT OPTIONS === */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.payment-option:hover {
    border-color: var(--gray-400);
}

.payment-option.selected {
    border: 3px solid #b91c1c !important;
    background: rgba(185, 28, 28, 0.1) !important;
    transform: scale(1.02);
}

.payment-option.popular {
    border-color: var(--gray-300);
}

.payment-option.popular .payment-badge {
    display: block;
}

.payment-badge {
    position: absolute;
    top: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 12px;
    letter-spacing: 0.05em;
}

.payment-credits {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.payment-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 4px 0;
}

.payment-savings {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.payment-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 12px;
}

/* === EMPLOYER BUTTON IN HEADER === */
.buton-employer {
    background: var(--accent);
    color: white;
}

.buton-employer:hover {
    background: #991b1b;
}

/* === PAYMENT STATUS === */
.payment-status {
    text-align: center;
    margin-top: 12px;
    font-size: 0.875rem;
    min-height: 20px;
}

.payment-status.loading {
    color: #667eea;
}

.payment-status.success {
    color: #22c55e;
}

.payment-status.error {
    color: #ef4444;
}

/* === LOADING SPINNER ANIMATION === */
.loader-spinner {
    border: 4px solid var(--gray-200); /* Gri deschis din variabilele tale */
    border-top: 4px solid var(--accent); /* Roșul tău profesional */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Regula pentru rotație */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Stil Buton Raport AI din Profil === */
.btn-ai-report {
    background-color: var(--accent); /* Folosește roșul standard al site-ului */
    color: white;
    border: none;
    /* Padding fix sus/jos și stânga/dreapta pentru dimensiune standard */
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 700; /* Text îngroșat */
    /* Forțează butonul să ocupe toată lățimea containerului său */
    width: 100%; 
    /* Asigură că textul stă pe un singur rând */
    white-space: nowrap; 
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    /* Centrare conținut (iconiță + text) */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Efect când duci mouse-ul peste buton */
.btn-ai-report:hover {
    background-color: var(--black); /* Se face negru la hover */
}

/* =========================================
   REPARATIE FINALĂ MOBIL (OVERRIDE TOTAL)
   ========================================= */

/* =========================================
   HAMBURGER MENU & MOBIL
   ========================================= */

/* Stiluri de bază pentru elemente Desktop/Mobil */
.desktop-only { display: flex; }
.hamburger-btn { display: none; }
.mobile-menu-overlay { display: none; }

/* =========================================
   STILURI MENIU HAMBURGER & FIX MOBIL
   ========================================= */

/* 1. REPARATIE "PAGINA TĂIATĂ" (Global) */
html, body {
    overflow-x: hidden; /* Ascunde orice element care iese din ecran */
    width: 100%;
    position: relative;
}

/* Ascundem elementele de mobil pe desktop */
.hamburger-menu, .mobile-nav-overlay {
    display: none;
}

/* 2. STILURI PENTRU MOBIL */
@media screen and (max-width: 768px) {
    
    /* HEADER: Logo stânga, Burger dreapta */
    .header-container {
        display: flex !important;
        flex-direction: row !important; /* Revenim la orizontal */
        justify-content: space-between !important;
        align-items: center !important;
        height: 60px !important;
        padding: 0 20px !important;
    }

    /* Ascundem meniul clasic de PC */
    .desktop-nav, .desktop-auth {
        display: none !important;
    }

    /* Butonul Hamburger */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--white); /* Liniile sunt albe */
        border-radius: 2px;
    }

    /* MENIUL MOBIL (Sertar) */
    .mobile-nav-overlay {
        display: block; /* Există în DOM, dar e ascuns prin poziție */
        position: fixed;
        top: 0;
        right: -100%; /* Ascuns în dreapta complet */
        width: 85%; /* Ocupă 85% din ecran */
        height: 100vh;
        background: var(--white);
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: right 0.3s ease-in-out;
    }

    .mobile-nav-overlay.active {
        right: 0; /* Apare pe ecran */
    }

    .mobile-nav-content {
        padding: 25px;
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .close-menu-btn {
        background: none;
        border: none;
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer;
        color: var(--black);
    }

    /* Link-urile din meniu */
    .mobile-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-links a, 
    .mobile-links button {
        text-align: left;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--black);
        text-decoration: none;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        font-family: var(--font);
        text-transform: uppercase;
    }

    .mobile-divider {
        border: 0;
        border-top: 1px solid var(--gray-200);
        margin: 30px 0;
    }

    /* Auth Buttons pe Mobil */
    .mobile-auth-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-auth-container .buton-auth {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
        margin-bottom: 10px; /* Spațiu între butoane */
    }

    /* --- ADAGA ACEASTA REGULA NOUA --- */
    .mobile-auth-container .buton-register {
        color: var(--black) !important;     /* Text negru */
        border-color: var(--black) !important; /* Chenar negru */
        background: transparent !important;
    }

    /* HERO SECTION FIX */
    .hero {
        padding-top: 100px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem !important; /* Titlu mai mic să nu iasă din ecran */
        word-wrap: break-word; /* Rupe cuvintele lungi dacă e nevoie */
    }

    /* GRID FIX */
    .jobs-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
    }

    .card-job {
        width: 100% !important;
    }

    .img-verticala {
        max-height: 350px; /* Pe telefon o facem puțin mai scundă */
    }

    .application-item {
        flex-direction: column !important; /* Elementele unul sub altul */
        align-items: flex-start !important; /* Aliniate la stânga */
        gap: 15px; /* Spațiu între titlu și butoane */
        padding: 20px 15px !important;
    }

    /* 2. Titlul Jobului */
    .application-info {
        width: 100%;
        border-bottom: 1px solid #eee; /* Delimitator subtil */
        padding-bottom: 10px;
        margin-bottom: 5px;
    }

    /* 3. Containerul din dreapta (Buton + Dată) devine container jos */
    .application-meta {
        width: 100%;
        text-align: left !important; /* Resetăm alinierea la dreapta */
        display: flex;
        flex-direction: column; /* Punem Butonul, Data și Tipul unul sub altul */
        gap: 8px;
    }

    /* 4. Butonul REPORT AI - Full Width */
    .application-meta .btn-ai-report {
        width: 100% !important; /* Ocupă toată lățimea */
        justify-content: center;
        margin-bottom: 8px;
    }

    /* 5. Data și Tipul Aplicării */
    .application-date {
        font-size: 0.8rem;
        color: var(--gray-500);
        margin-bottom: 5px;
        display: inline-block;
    }

    .application-type {
        display: inline-block; /* Se așează frumos sub dată */
        text-align: center;
        width: auto;
        align-self: flex-start; /* Aliniat la stânga */
    }
}

/* =========================================
   BUTOANE MODAL APLICARE (Design Nou)
   ========================================= */

/* 1. Buton Roșu (Analiză) */
.btn-actiune-rosu {
    background-color: #b91c1c !important; /* Roșu Instaviu */
    color: #ffffff !important;
    border: 1px solid #b91c1c !important;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.btn-actiune-rosu:hover {
    background-color: #ef4444 !important; /* Roșu mai deschis/șters */
    border-color: #ef4444 !important;
}

/* 2. Buton Alb (Standard) */
.btn-actiune-alb {
    background-color: #ffffff !important;
    color: #1a1a1a !important; /* Negru */
    border: 2px solid #e5e5e5 !important; /* Chenar gri să se vadă pe fundal alb */
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.btn-actiune-alb:hover {
    background-color: #f5f5f5 !important; /* Gri foarte deschis */
    color: #525252 !important; /* Text gri */
    border-color: #d4d4d4 !important;
}

/* 3. Buton Negru (VIP) */
.btn-actiune-negru {
    background-color: #1a1a1a !important; /* Negru */
    color: #ffffff !important;
    border: 1px solid #1a1a1a !important;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.btn-actiune-negru:hover {
    background-color: #404040 !important; /* Gri închis (negru șters) */
    border-color: #404040 !important;
}

/* =========================================
   IMAGINE VERTICALĂ (DESPRE NOI)
   ========================================= */

.separator-imagine {
    text-align: center; /* Centrează imaginea pe orizontală */
    margin: 30px 0;     /* Adaugă spațiu generos deasupra și dedesubt */
    width: 100%;
}

.img-verticala {
    max-width: 100%;    /* Să nu iasă din ecran pe mobil */
    width: auto;        /* Lățimea se ajustează automat */
    max-height: 500px;  /* ÎNĂLȚIME MAXIMĂ: Modifică 500px dacă o vrei mai mare sau mai mică */
    border-radius: 12px; /* Colțuri rotunjite pentru aspect modern */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* O umbră elegantă */
    object-fit: cover;
    display: inline-block;
}

/* =========================================
   SISTEM REALIZĂRI (ACHIEVEMENTS)
   ========================================= */

/* =========================================
   REALIZĂRI CU IMAGINI PERSONALIZATE
   ========================================= */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; /* Spațiu mai mic între ele */
    margin-top: 20px;
}

/* Containerul unui nivel */
.achievement-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* IMAGINEA PROPRIU-ZISĂ */
.achievement-img {
    width: 100%;
    max-width: 60px; /* <--- AICI S-A FĂCUT MODIFICAREA (Era 120px) */
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px; /* Am micșorat puțin raza colțurilor */
    
    /* Starea implicită (Blocat) */
    filter: grayscale(100%) opacity(0.4); 
    transition: all 0.4s ease;
}

/* STARE DEBLOCATĂ (UNLOCKED): Colorată și strălucitoare */
.achievement-wrapper.unlocked .achievement-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1); /* Puțin mărită */
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6)); /* Strălucire aurie */
}

/* Textul de sub imagine */
.level-req-text {
    font-size: 0.65rem; /* Text mai mic */
    color: #999;
    margin-top: 5px;
    font-weight: 600;
}

.achievement-wrapper.unlocked .level-req-text {
    color: #1a1a1a; /* Text mai vizibil când e deblocat */
}

/* Pe mobil - 3 coloane */
@media (max-width: 500px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* =========================================
   BUTON MINI REALIZĂRI (ÎN HEADER)
   ========================================= */

.btn-achievement-mini {
    background-color: #fbbf24; /* Galben Auriu */
    color: #000;
    border: none;
    padding: 8px 14px; /* Dimensiuni reduse */
    border-radius: 5px; /* Formă de pastilă */
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-achievement-mini:hover {
    transform: translateY(-2px); /* Se ridică puțin la hover */
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
    background-color: #f59e0b;
}

/* =========================================
   ANIMATIE LEVEL UP (DISCRET & ELEGANT)
   ========================================= */

/* Animație fină de intrare a imaginii */
#levelup-badge-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Umbră fină, nu stridentă */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); 
    /* Apare ușor de jos */
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stil pentru butonul de hover din modal */
#levelup-modal .btn-primary:hover {
    background-color: #991b1b !important; /* Roșu un pic mai închis la hover */
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* =========================================
   SISTEM PUNCTE (RECOMPENSE)
   ========================================= */

/* =========================================
   BADGE PUNCTE (STIL DISCRET & CONSISTENT)
   ========================================= */

.points-badge {
    background-color: #f3f4f6; /* Gri deschis (Neutru) */
    color: #1f2937;            /* Text închis */
    padding: 3px 16px;
    border-radius: 4px;        /* Colțuri ușor rotunjite, ca la butonul Realizări */
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    
    /* Tranziție rapidă și fină, exact ca la butonul galben */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

/* --- HOVER DISCRET (Fără schimbare de culoare stridentă) --- */
.points-badge:hover {
    background-color: #e5e7eb; /* Se închide foarte puțin la culoare */
    border-color: #d1d5db;     /* Contur puțin mai vizibil */
    color: #000000;            /* Textul devine negru complet */
    
    /* Efect subtil de ridicare (același ca la Realizări) */
    transform: translateY(-2px);
    
    /* Umbră fină pentru profunzime */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* =========================================
   MAGAZIN (DESIGN CORPORATE)
   ========================================= */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* Cardul de Produs */
.shop-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px; /* Colțuri mai ascuțite */
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-item:hover {
    border-color: #b91c1c; /* Border roșu la hover */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Iconița (O facem Alb-Negru pentru seriozitate) */
.shop-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    /* Filtrul de mai jos transformă orice emoji colorat în gri/negru */
    filter: grayscale(100%); 
    opacity: 0.8;
}

.shop-title {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase; /* Aspect mai tehnic */
}

.shop-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1; /* Împinge prețul jos */
}

/* Prețul - Stil etichetă tehnică */
.shop-price-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Butonul Cumpără - Roșu Solid */
.btn-buy {
    background-color: #b91c1c; /* Roșu Instaviu */
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.btn-buy:hover {
    background-color: #991b1b; /* Roșu închis */
}

/* Starea Dezactivată (Fără bani) */
.btn-buy:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border: 1px solid #e2e8f0;
}

/* =========================================
   STILURI BUTOANE SECURITATE (PROFIL)
========================================= */

/* Stiluri comune de bază */
.btn-security-password,
.btn-security-delete {
    background: none;
    padding: 6px 12px; /* Puțin mai spațios pentru click ușor */
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* Tranziție fină */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Buton Parolă (Gri/Albastru) --- */
.btn-security-password {
    border: 1px solid #cbd5e1;
    color: #64748b;
}

/* HOVER Parolă */
.btn-security-password:hover {
    background-color: #f1f5f9; /* Fundal gri foarte deschis */
    color: #334155; /* Text mai închis */
    border-color: #94a3b8; /* Contur mai definit */
    transform: translateY(-1px); /* Mic efect de ridicare */
}

/* --- Buton Ștergere (Roșu - Atenție) --- */
.btn-security-delete {
    border: 1px solid #fca5a5;
    color: #dc2626;
}

/* HOVER Ștergere */
.btn-security-delete:hover {
    background-color: #fee2e2; /* Fundal roșu pal */
    color: #991b1b; /* Roșu intens închis */
    border-color: #ef4444; /* Contur roșu aprins */
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1); /* Umbră roșiatică discretă */
    transform: translateY(-1px);
}

