/* ==========================================================================
   Karta ma'lumotlari kartochkasi (to'lov sahifasi)
   ========================================================================== */
.card-info-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
}
.card-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.card-info-body { flex: 1; min-width: 200px; }
.card-info-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 5px;
    font-weight: 700;
}
.card-info-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    word-break: break-word;
}
.card-info-holder {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.07);
    padding: 5px 14px;
    border-radius: 999px;
}
.card-info-holder i { color: #4CAF50; font-size: 0.8rem; }
.card-info-copy { flex-shrink: 0; margin: 0 !important; }
@media (max-width: 560px) {
    .card-info-box { padding: 18px; }
    .card-info-copy { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Obuna holati kartochkasi (dashboard.php)
   ========================================================================== */
.sub-card {
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.sub-card.active { border-color: rgba(76, 175, 80, 0.35); background: rgba(76, 175, 80, 0.07); }
.sub-card.inactive { border-color: rgba(245, 185, 66, 0.35); background: rgba(245, 185, 66, 0.07); }

.sub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.sub-card-status { display: flex; align-items: center; gap: 14px; }
.sub-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.sub-card.active .sub-card-icon { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.sub-card.inactive .sub-card-icon { background: rgba(245, 185, 66, 0.2); color: #f5b942; }
.sub-card-title { font-weight: 700; font-size: 1.08rem; color: #fff; line-height: 1.3; }
.sub-card-subtitle { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); margin-top: 2px; }
.sub-card-btn { flex-shrink: 0; white-space: nowrap; }

.sub-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sub-card-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}
.sub-card-meta-item i { color: #4CAF50; width: 18px; text-align: center; flex-shrink: 0; }
.sub-card-meta-item strong { color: #fff; }

@media (max-width: 576px) {
    .sub-card-top { flex-direction: column; align-items: stretch; }
    .sub-card-btn { width: 100%; text-align: center; }
    .sub-card-meta { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Premium modal tizimi (chek ko'rish, natija/xatolik, tasdiqlash) — sayt bo'ylab
   ========================================================================== */
.pmodal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 6, 20, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pmodal-overlay.open { display: flex; }
.pmodal-box {
    position: relative;
    background: #14162b;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    max-width: 520px;
    width: 100%;
    padding: 30px 26px 26px;
    text-align: center;
    animation: pmodalIn 0.2s ease;
}
@keyframes pmodalIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.pmodal-box.pmodal-image {
    max-width: 92vw;
    padding: 18px;
    background: #0d0e1c;
}
.pmodal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 2;
}
.pmodal-close:hover { background: rgba(244,67,54,0.35); transform: rotate(90deg); }
/* Ikon shrifti mavjud bo'lmasligi mumkin bo'lgan sahifalarda ham ishlashi uchun matnli (&times;) yopish tugmasi */
.pmodal-close-text {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    padding-bottom: 3px;
    font-family: Arial, sans-serif;
}
.pmodal-box img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
}

/* PDF preview modali — barcha qurilma o'lchamlariga moslashadi.
   Yopish tugmasi PDF ustida emas, o'zining alohida sarlavha qatorida turadi. */
.pmodal-box.pmodal-pdf {
    max-width: 900px;
    width: 94vw;
    padding: 0;
    background: #0d0e1c;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pmodal-box.pmodal-pdf .pmodal-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #14162b;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.pmodal-box.pmodal-pdf .pmodal-pdf-header span {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}
.pmodal-box.pmodal-pdf .pmodal-close {
    position: static;
}
.pmodal-box.pmodal-pdf iframe {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    height: 82vh;
    border: 0;
    background: #fff;
}
@media (max-width: 768px) {
    .pmodal-box.pmodal-pdf { width: 96vw; }
    .pmodal-box.pmodal-pdf iframe { height: 76vh; }
}
@media (max-width: 480px) {
    .pmodal-overlay { padding: 0; }
    .pmodal-box.pmodal-pdf {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .pmodal-box.pmodal-pdf iframe { height: 100%; }
}
@media (max-height: 600px) and (orientation: landscape) {
    .pmodal-box.pmodal-pdf iframe { height: 70vh; }
}
.pmodal-icon { font-size: 2.8rem; margin-bottom: 14px; }
.pmodal-icon.success { color: #4CAF50; }
.pmodal-icon.error { color: #f44336; }
.pmodal-icon.warning { color: #f5b942; }
.pmodal-box h3 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.pmodal-box p { color: #b8bcc8; margin-bottom: 22px; line-height: 1.6; }
.pmodal-box .btn { min-width: 140px; justify-content: center; }
.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.25);
}
.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 22px rgba(76, 175, 80, 0.35);
    color: #fff;
}
.btn-primary:active { filter: brightness(0.96); }
.pmodal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pmodal-actions .btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease;
}
.pmodal-actions .btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.pmodal-actions .btn-danger-solid {
    background: #f44336;
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    font-weight: 700;
    transition: filter 0.15s ease;
}
.pmodal-actions .btn-danger-solid:hover { filter: brightness(1.1); }

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(45deg, #1a1b4b, #090a2a);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Modal ochiq bo'lganda sahifani qulflaymiz — iOS Safari'da skroll paytida
   position:fixed elementlar (modal) joyidan siljib, sahifa oxiriga "yopishib qolish" bug'ining oldini oladi. */
body:has(.pmodal-overlay.open),
body:has(.admin-modal-overlay.open) {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
}


#stars, #stars2, #stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#stars {
    background: radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: animateStars 5s linear infinite;
}

#stars2 {
    background: radial-gradient(3px 3px at 50px 60px, #fff, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 90px 90px, #fff, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 130px 120px, #fff, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 160px 150px, #fff, rgba(0,0,0,0));
    background-size: 300px 300px;
    animation: animateStars 7s linear infinite;
}

#stars3 {
    background: radial-gradient(4px 4px at 100px 150px, #fff, rgba(0,0,0,0)),
    radial-gradient(4px 4px at 200px 250px, #fff, rgba(0,0,0,0)),
    radial-gradient(4px 4px at 300px 350px, #fff, rgba(0,0,0,0));
    background-size: 400px 400px;
    animation: animateStars 10s linear infinite;
}

@keyframes animateStars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* Header styles */
header {
    padding: 16px clamp(20px, 5vw, 48px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(9, 10, 42, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.home-logo {
    font-weight: 800;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease;
}
.home-logo:hover { opacity: 0.92; }
.home-logo span {
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: #4CAF50;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.menu-toggle i {
    font-size: 22px;
}

.menu-toggle:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.menu-toggle:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 20px;
    }

    .header-content h1 {
        font-size: 1.5rem;
        font-weight: 600;
    }
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(9, 10, 42, 0.95);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
}

.user-menu.show {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-menu .username {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu .nav-link {
    padding: 8px 0;
}

.btn {
    margin: 5px;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    background: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.login-btn:hover {
    background: #4CAF50;
    color: white;
}

.register-btn {
    background: #4CAF50;
    color: white;
    border: 2px solid #4CAF50;
}

.register-btn:hover {
    background: transparent;
    color: #4CAF50;
}

/* Main content styles */
.hero-section {
    padding-top: 150px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.animate-text {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

h1 {
    font-size: 4em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation-delay: 0.2s;
}

.subtitle {
    font-size: 1.5em;
    margin-bottom: 50px;
    color: #a0a0a0;
    animation-delay: 0.4s;
}

/* Features section */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4CAF50;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-card p {
    color: #a0a0a0;
    line-height: 1.6;
}

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

/* Auth pages styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4CAF50;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-box h2 i {
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #4CAF50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.form-group select option {
    background-color: #1a1b4b;
    color: #ffffff;
    padding: 12px;
}

.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.form-group select:hover {
    border-color: #4CAF50;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #a0a0a0;
    font-size: 12px;
}

/* Dynamic form items */
.dynamic-form {
    margin-bottom: 20px;
}

.dynamic-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.dynamic-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.dynamic-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    align-items: center;
}

.dynamic-item input,
.dynamic-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
}

.add-btn {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    padding: 8px 16px;
}

.add-btn:hover {
    background: #4CAF50;
    color: white;
}

.remove-btn {
    background: transparent;
    color: #ff5757;
    border: none;
    padding: 8px;
    border-radius: 6px;
}

.remove-btn:hover {
    background: rgba(255, 87, 87, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.submit-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
}

.submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.back-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dashboard styles */
.dashboard-header {
    background: rgba(9, 10, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 24px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    font-size: 16px;
}

.logout-btn {
    background: transparent;
    color: #ff5757;
    border: 2px solid #ff5757;
    padding: 8px 16px;
}

.logout-btn:hover {
    background: #ff5757;
    color: white;
}

.dashboard-main {
    padding-top: 100px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state i {
    font-size: 64px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    color: #a0a0a0;
    margin-bottom: 30px;
}

.create-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
}

.create-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.action-bar {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-end;
}

.resumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.resume-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease; 
    width: 100%; /* Card enini 100% qilamiz */
    max-width: 800px;
    color: #ffffff;
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Skroll bilan paydo bo'lish animatsiyasi (js/script.js IntersectionObserver bilan boshqaradi) */
.resume-card.pre-reveal {
    opacity: 0;
    transform: translateY(20px);
}
.resume-card.pre-reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.resume-info h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

.resume-info .meta {
    color: #a0a0a0;
    font-size: 14px;
    display: flex;
    gap: 15px;
}

.resume-info .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resume-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.resume-actions .btn {
    padding: 8px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.resume-actions .btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .resume-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .resume-actions .download-btn,
    .resume-actions .edit-btn {
        width: 100%;
        justify-content: center;
    }

    .resume-actions .delete-btn {
        width: 50%;
        justify-content: center;
        margin: 5px auto 0;
    }

    .resume-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Resume form styles */
.resume-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    color: #4CAF50;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #a0a0a0;
    font-size: 12px;
}

/* Dynamic form items */
.dynamic-form {
    margin-bottom: 20px;
}

.dynamic-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.dynamic-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.dynamic-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    align-items: center;
}

.dynamic-item input,
.dynamic-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
}

.add-btn {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    padding: 8px 16px;
}

.add-btn:hover {
    background: #4CAF50;
    color: white;
}

.remove-btn {
    background: transparent;
    color: #ff5757;
    border: none;
    padding: 8px;
    border-radius: 6px;
}

.remove-btn:hover {
    background: rgba(255, 87, 87, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.submit-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
}

.submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.back-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Photo upload styles */
.photo-upload {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.photo-preview {
    width: 120px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-controls .btn {
    width: fit-content;
}

.photo-controls .form-help {
    color: #a0a0a0;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    h1 {
        font-size: 3em;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        width: 100%;
        max-width: 300px;
    }
    
    .auth-buttons {
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 30px 20px;
    }

    .auth-box h2 {
        font-size: 20px;
    }

    .form-group input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .dashboard-header h1 {
        justify-content: center;
    }

    .user-menu {
        flex-direction: column;
    }

    .resumes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .resume-form {
        padding: 20px;
    }

    .dynamic-item {
        grid-template-columns: 1fr;
    }

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

/* Admin Panel Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-nav {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px;
}

.admin-nav h1 {
    margin: 0 0 30px;
    font-size: 24px;
    text-align: center;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    margin: 5px 0;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #34495e;
}

.admin-nav i {
    margin-right: 10px;
    width: 20px;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: #f5f6fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-card h3 {
    margin: 10px 0;
    color: #2c3e50;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #27ae60;
    color: white;
}

.status-badge.blocked {
    background: #e74c3c;
    color: white;
}

.status-badge.pending {
    background: #f1c40f;
    color: white;
}

.status-badge.approved {
    background: #27ae60;
    color: white;
}

.status-badge.rejected {
    background: #e74c3c;
    color: white;
}

.expired-badge {
    background: #95a5a6;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.approve-btn {
    background: #27ae60;
    color: white;
}

.block-btn {
    background: #e74c3c;
    color: white;
}

.reject-btn {
    background: #e74c3c;
    color: white;
}

.view-btn {
    background: #3498db;
    color: white;
}

.inline-form {
    display: inline-block;
}

.form-group {
    margin: 10px 0;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

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

.admin-comment {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Payment Page Styles */
.payment-form, .payment-history {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.payment-form h2, .payment-history h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.payment-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    font-size: 24px;
    color: #3498db;
    width: 40px;
    text-align: center;
}

.info-item div {
    flex: 1;
}

.info-item label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 4px;
}

.info-item strong {
    display: block;
    font-size: 18px;
    color: #fff;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.back-btn {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.navbar h1 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: #fff;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.table td {
    color: rgba(255, 255, 255, 0.8);
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.approved {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.alert-success {
    border-left: 4px solid #22c55e;
    color: #22c55e;
}

.alert-danger {
    border-left: 4px solid #ef4444;
    color: #ef4444;
}

.alert-warning {
    border-left: 4px solid #fbbf24;
    color: #fbbf24;
}

.alert i {
    font-size: 1.25rem;
}

/* Form Styles */
.form-group label {
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
}

.text-muted {
    color: rgba(255, 255, 255, 0.6);
}
