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

:root {
    --pr-50: #eff6ff;
    --pr-100: #dbeafe;
    --pr-200: #bfdbfe;
    --pr-300: #93c5fd;
    --pr-400: #60a5fa;
    --pr-500: #3b82f6;
    --pr-600: #2563eb;
    --pr-700: #1d4ed8;
    --pr-800: #1e40af;
    --pr-900: #1e3a8a;
    --em-50: #ecfdf5;
    --em-100: #d1fae5;
    --em-200: #a7f3d0;
    --em-300: #6ee7b7;
    --em-400: #34d399;
    --em-500: #10b981;
    --em-600: #059669;
    --em-700: #047857;
    --em-800: #065f46;
    --te-500: #14b8a6;
    --te-600: #0d9488;
    --am-50: #fffbeb;
    --am-100: #fef3c7;
    --am-400: #fbbf24;
    --am-500: #f59e0b;
    --am-600: #d97706;
    --sl-50: #f8fafc;
    --sl-100: #f1f5f9;
    --sl-200: #e2e8f0;
    --sl-300: #cbd5e1;
    --sl-400: #94a3b8;
    --sl-500: #64748b;
    --sl-600: #475569;
    --sl-700: #334155;
    --sl-800: #1e293b;
    --sl-900: #0f172a;
    --rd: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--pr-50);
    color: var(--sl-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======== ANIMATED BACKGROUND ======== */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--pr-200), var(--pr-300));
    top: -200px;
    right: -150px;
    animation: blobFloat1 12s ease-in-out infinite;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--pr-400), var(--em-400));
    bottom: -150px;
    left: -100px;
    animation: blobFloat2 10s ease-in-out infinite;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--pr-100), var(--pr-200));
    top: 40%;
    left: 60%;
    animation: blobFloat3 14s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.08); }
    66% { transform: translate(20px, -20px) scale(0.92); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.06); }
}

/* Subtle dot pattern overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(var(--sl-300) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

/* ======== CONTAINER ======== */
.container {
    max-width: 740px;
    margin: 48px auto;
    padding: 0 20px;
    position: relative;
}

/* ======== FORM CARD ======== */
.form-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    padding: 0;
    box-shadow:
        0 4px 6px -2px rgba(0,0,0,0.03),
        0 12px 40px rgba(16,185,129,0.08),
        0 24px 80px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient top bar */
.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--pr-500), var(--pr-400), var(--em-400), var(--pr-300));
    z-index: 1;
}

/* Subtle inner glow */
.form-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 0%, rgba(59,130,246,0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* ======== HEADER SECTION ======== */
.form-header {
    padding: 48px 48px 0;
    text-align: center;
    position: relative;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--pr-100), var(--pr-200));
    border: 1px solid rgba(59,130,246,0.15);
    padding: 6px 16px 6px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pr-700);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.form-badge .badge-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pr-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.form-header h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--pr-800), var(--pr-600), var(--em-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.form-header .subtitle {
    color: var(--sl-400);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 0;
}

/* Decorative divider */
.form-header .header-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--pr-400), var(--em-400));
    border-radius: 3px;
    margin: 20px auto 0;
}

/* ======== PROGRESS ======== */
.progress-wrap {
    padding: 36px 48px 30px;
    position: relative;
}

.progress-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.progress-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2.5px;
    background: var(--sl-200);
    border-radius: 2px;
}

.progress-fill-bar {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--pr-500), var(--em-400));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 0%;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    cursor: default;
}

.progress-step .step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 2.5px solid var(--sl-200);
    background: #fff;
    color: var(--sl-400);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.progress-step .step-dot .dot-num {
    transition: opacity 0.3s;
}

.progress-step .step-dot .dot-check {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 18px;
}

/* Active step */
.progress-step.active .step-dot {
    border-color: var(--pr-500);
    background: var(--pr-500);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(59,130,246,0.35); }
    50% { box-shadow: 0 4px 32px rgba(59,130,246,0.55); }
}

/* Completed step */
.progress-step.completed .step-dot {
    border-color: var(--em-500);
    background: var(--em-500);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3);
    animation: dotComplete 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dotComplete {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.progress-step.completed .step-dot .dot-num {
    opacity: 0;
}

.progress-step.completed .step-dot .dot-check {
    opacity: 1;
    transform: scale(1);
}

.progress-step .step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--sl-400);
    text-align: center;
    transition: all 0.3s;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.progress-step.active .step-label {
    color: var(--pr-600);
    font-weight: 700;
    transform: translateY(-1px);
}

.progress-step.completed .step-label {
    color: var(--sl-500);
}

/* ======== FORM BODY ======== */
.form-body {
    padding: 0 48px 10px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: stepIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-content.active.slide-left {
    animation: stepInRight 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(-24px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes stepInRight {
    from { opacity: 0; transform: translateX(24px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.step-heading {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pr-100);
    color: var(--sl-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-heading .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pr-100), var(--pr-200));
    color: var(--pr-600);
    flex-shrink: 0;
}

/* ======== FLOATING LABEL FIELDS ======== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

.input-wrap {
    position: relative;
    margin-top: 4px;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    padding: 22px 16px 8px;
    border: 1.5px solid var(--sl-200);
    border-radius: var(--rd);
    font-size: 14px;
    background: var(--sl-50);
    transition: all 0.25s ease;
    font-family: inherit;
    color: var(--sl-800);
    outline: none;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
    color: transparent;
}

.input-wrap input:hover,
.input-wrap select:hover,
.input-wrap textarea:hover {
    border-color: var(--sl-300);
    background: #fff;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    border-color: var(--pr-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.input-wrap textarea {
    resize: vertical;
    min-height: 92px;
    padding-top: 26px;
}

.input-wrap select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' 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 14px center;
    padding-right: 40px;
}

/* Floating label */
.input-wrap label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sl-400);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 4px;
    line-height: 1;
}

.input-wrap textarea + label {
    top: 22px;
    transform: none;
}

/* Float label up on focus / when filled */
.input-wrap input:focus + label,
.input-wrap input:not(:placeholder-shown) + label,
.input-wrap select:focus + label,
.input-wrap select:not([value=""]) + label,
.input-wrap textarea:focus + label,
.input-wrap textarea:not(:placeholder-shown) + label {
    top: 8px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 600;
    color: var(--pr-600);
}

.input-wrap select + label {
    /* For select, always show at top since value detection is tricky */
    top: 8px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 600;
    color: var(--sl-500);
}

.input-wrap input.error,
.input-wrap select.error,
.input-wrap textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

.input-wrap .field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sl-400);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrap input:focus ~ .field-icon,
.input-wrap select:focus ~ .field-icon,
.input-wrap textarea:focus ~ .field-icon {
    color: var(--pr-500);
}

.required {
    color: #ef4444;
}

/* File Upload - premium dropzone */
.file-dropzone {
    border: 2px dashed var(--sl-200);
    border-radius: 16px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, var(--pr-50), #fff);
    position: relative;
    margin-top: 4px;
}

.file-dropzone:hover {
    border-color: var(--pr-400);
    background: linear-gradient(135deg, var(--pr-100), #fff);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.08);
}

.file-dropzone .drop-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    color: var(--pr-400);
}

.file-dropzone .drop-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-600);
    display: block;
}

.file-dropzone .drop-hint {
    font-size: 12px;
    color: var(--sl-400);
    margin-top: 4px;
    display: block;
}

.file-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    margin-top: 10px;
    font-size: 13px;
    color: var(--sl-500);
    animation: fadeUp 0.3s ease;
}

.file-preview img {
    max-width: 88px;
    max-height: 88px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--em-100);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

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

/* ======== TOGGLE ======== */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--pr-50), #fff);
    border-radius: var(--rd);
    border: 1px solid var(--pr-100);
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 4px;
}

.toggle-group:hover {
    background: var(--pr-100);
    border-color: var(--pr-200);
}

.toggle-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--pr-500);
    cursor: pointer;
}

.toggle-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--sl-700);
    font-size: 14px;
}

.conditional-field {
    display: none;
    margin-top: 12px;
}

.conditional-field.visible {
    display: block;
    animation: fadeUp 0.3s ease;
}

/* ======== SKILLS ======== */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--sl-200);
    border-radius: var(--rd);
    min-height: 52px;
    cursor: text;
    transition: all 0.25s;
    background: var(--sl-50);
    margin-top: 4px;
}

.skills-container:focus-within {
    border-color: var(--pr-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--pr-100), var(--pr-200));
    color: var(--pr-700);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(59,130,246,0.2);
    animation: tagPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tagPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.skill-tag .remove {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--pr-400);
    transition: all 0.2s;
    margin-left: 2px;
}

.skill-tag .remove:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.skills-container input {
    border: none !important;
    outline: none !important;
    padding: 6px 4px !important;
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    box-shadow: none !important;
    background: transparent !important;
}

/* ======== PROJECTS ======== */
.project-entry {
    background: linear-gradient(135deg, #fff, var(--pr-50));
    border: 1px solid var(--sl-200);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 14px;
    position: relative;
    transition: all 0.3s;
    animation: projectSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes projectSlide {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-entry:hover {
    border-color: var(--pr-300);
    box-shadow: 0 8px 24px rgba(59,130,246,0.06);
}

.project-entry .remove-project {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--sl-400);
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.project-entry .remove-project:hover {
    color: #ef4444;
    background: #fef2f2;
    transform: scale(1.1);
}

.project-entry .form-row {
    margin-bottom: 0;
}

.project-entry .form-group {
    margin-bottom: 0;
}

#add-project {
    background: none;
    border: 2px dashed var(--pr-200);
    color: var(--pr-600);
    padding: 16px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 28px;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#add-project:hover {
    background: var(--pr-50);
    border-color: var(--pr-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.08);
}

/* ======== REVIEW ======== */
.review-section {
    background: linear-gradient(135deg, var(--pr-50), #fff);
    border: 1px solid var(--pr-100);
    border-radius: 16px;
    padding: 28px;
    margin-top: 4px;
    animation: fadeUp 0.4s ease;
}

.review-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--sl-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--pr-100);
}

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

.review-item .label {
    font-weight: 600;
    color: var(--sl-500);
    min-width: 140px;
    font-size: 13px;
    flex-shrink: 0;
}

.review-item .value {
    color: var(--sl-800);
    font-size: 13px;
    word-break: break-word;
}

/* ======== FOOTER ======== */
.form-footer {
    padding: 10px 48px 40px;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.nav-buttons button {
    padding: 15px 36px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

#prev-btn {
    background: var(--sl-100);
    color: var(--sl-600);
}

#prev-btn:hover:not(:disabled) {
    background: var(--sl-200);
    transform: translateX(-4px);
}

#prev-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

#next-btn {
    background: linear-gradient(135deg, var(--pr-500), var(--pr-600));
    color: #fff;
    margin-left: auto;
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

#next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(59,130,246,0.4);
}

#next-btn:active {
    transform: translateY(-1px);
}

#submit-btn {
    background: linear-gradient(135deg, var(--em-500), var(--te-600));
    color: #fff;
    margin-left: auto;
    box-shadow: 0 6px 20px rgba(5,150,105,0.3);
}

#submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(5,150,105,0.4);
}

#submit-btn:active {
    transform: translateY(-1px);
}

#submit-btn:active {
    transform: translateY(-1px);
}

/* ======== SUCCESS ======== */
.success-message {
    text-align: center;
    padding: 80px 40px;
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

.success-message .check-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--em-100), var(--em-200));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    animation: ringPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes ringPop {
    0% { transform: scale(0) rotate(-30deg); }
    60% { transform: scale(1.15) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

.success-message .check-ring .check {
    font-size: 42px;
    color: var(--em-600);
    font-weight: 700;
}

.success-message h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--em-600), var(--te-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message p {
    color: var(--sl-500);
    font-size: 15px;
}

/* ======== UTILITY CLASSES ======== */
.step-desc {
    color: var(--sl-400);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.field-hint {
    font-size: 12px;
    color: var(--sl-400);
    margin-top: 6px;
    padding-left: 4px;
}

.projects-empty {
    color: var(--sl-400);
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

.review-placeholder {
    color: var(--sl-400);
    font-size: 14px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sl-600);
    margin-bottom: 4px;
}

.form-group.full .form-label {
    margin-top: 4px;
}

.required {
    color: #ef4444;
}

.skills-container.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

/* SVG alignment in buttons and headings */
.nav-buttons button svg {
    flex-shrink: 0;
}

.step-heading .step-icon svg {
    width: 18px;
    height: 18px;
}

/* Spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* ======== ADMIN ======== */
.admin-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--sl-50);
}

.login-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 44px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(16,185,129,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--pr-500), var(--pr-400), var(--em-400));
}

.admin-header {
    background: linear-gradient(135deg, var(--pr-900), var(--pr-800));
    color: #fff;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    font-size: 18px;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--pr-300);
}

.btn-logout {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(239,68,68,0.2);
}

.btn-logout:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(59,130,246,0.06);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59,130,246,0.1);
}

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--sl-800);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--sl-500);
    font-weight: 500;
}

.stat-card .stat-icon {
    float: right;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card .stat-icon.blue { background: var(--pr-100); color: var(--pr-600); }
.stat-card .stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-card .stat-icon.orange { background: #fef3c7; color: #d97706; }
.stat-card .stat-icon.green { background: var(--em-100); color: var(--em-600); }
.stat-card .stat-icon.emerald { background: #d1fae5; color: #059669; }
.stat-card .stat-icon.teal { background: #ccfbf1; color: #0d9488; }
.stat-card .stat-icon.amber { background: #fef3c7; color: #d97706; }

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    max-width: 420px;
    padding: 12px 18px 12px 44px;
    border: 1.5px solid var(--sl-200);
    border-radius: var(--rd);
    font-size: 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 16px center;
    transition: all 0.25s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--pr-500);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.table-wrapper {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(59,130,246,0.06);
    border: 1px solid rgba(255,255,255,0.6);
}

#freelancers-table {
    width: 100%;
    border-collapse: collapse;
}

#freelancers-table thead { background: var(--pr-50); }
#freelancers-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--sl-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--pr-100);
}

#freelancers-table td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--sl-100);
    vertical-align: middle;
}

#freelancers-table tbody tr { transition: background 0.15s; }
#freelancers-table tbody tr:hover { background: var(--pr-50); }
#freelancers-table tbody tr:last-child td { border-bottom: none; }

.skill-badge {
    display: inline-block;
    background: var(--pr-100);
    color: var(--pr-700);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    margin: 1px 3px;
}

.avail-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.avail-badge.full-time { background: #d1fae5; color: #059669; }
.avail-badge.part-time { background: #fef3c7; color: #d97706; }
.avail-badge.freelance { background: #dbeafe; color: #2563eb; }
.avail-badge.open-to-offers { background: #f0fdf4; color: #16a34a; }
.avail-badge.not-available { background: #fef2f2; color: #dc2626; }

.view-btn {
    background: none;
    border: 1.5px solid var(--pr-200);
    color: var(--pr-600);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    background: var(--pr-100);
    border-color: var(--pr-500);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(59,130,246,0.15);
}

#loading { text-align: center; padding: 48px; color: var(--sl-400); }
#empty-state { text-align: center; padding: 80px 20px; color: var(--sl-400); }
#empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,58,138,0.4);
    backdrop-filter: blur(6px);
    z-index: 1000;
    overflow-y: auto;
}

.modal.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    max-width: 720px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 80px rgba(30,58,138,0.2);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.5);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content .close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--sl-400);
    background: none;
    border: none;
    width: 36px; height: 36px;
    display: flex;
    align-items: center; justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.modal-content .close:hover { color: var(--sl-600); background: var(--sl-100); }

.detail-section { margin-bottom: 24px; }
.detail-section h3 {
    font-size: 15px; font-weight: 700; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--pr-100);
    color: var(--sl-800);
}

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.detail-item { padding: 6px 0; }
.detail-item .label { font-size: 12px; color: var(--sl-500); font-weight: 500; display: block; }
.detail-item .value { font-size: 14px; color: var(--sl-800); font-weight: 500; }

.detail-photo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--pr-100); box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-projects { list-style: none; }
.detail-projects li {
    padding: 12px 0; border-bottom: 1px solid var(--sl-100);
}
.detail-projects li:last-child { border-bottom: none; }
.detail-projects .project-name { font-weight: 600; font-size: 14px; color: var(--sl-800); }
.detail-projects .project-meta { font-size: 13px; color: var(--sl-500); margin-top: 3px; }

.detail-cv-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--pr-600); text-decoration: none; font-weight: 600;
    font-size: 13px; padding: 6px 14px; background: var(--pr-100);
    border-radius: 8px; transition: all 0.2s;
}

.detail-cv-link:hover { background: var(--pr-200); transform: translateY(-1px); }

/* ======== DELETE BUTTON ======== */
.action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.delete-btn {
    background: none;
    border: 1.5px solid #fecaca;
    color: #dc2626;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(239,68,68,0.15);
}

.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ======== LOGIN PREMIUM ======== */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-lock {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pr-100), var(--pr-200));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--pr-600);
}

.login-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--pr-800), var(--em-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header .login-subtitle {
    font-size: 14px;
    color: var(--sl-400);
}

.login-card .form-group {
    margin-bottom: 6px;
}

.login-card .btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--pr-500), var(--pr-600));
    color: #fff;
    border: none;
    border-radius: var(--rd);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.login-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(59,130,246,0.4);
}

.login-card .alert.error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--rd);
    margin-bottom: 16px;
    font-size: 14px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .container { margin: 24px auto; }
    .form-card { border-radius: 24px; }
    .form-header { padding: 36px 28px 0; }
    .form-header h1 { font-size: 26px; }
    .progress-wrap { padding: 28px 28px 24px; }
    .progress-track::before { left: 32px; right: 32px; }
    .progress-fill-bar { left: 32px; }
    .form-body { padding: 0 28px 10px; }
    .form-footer { padding: 10px 28px 32px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .container { margin: 16px auto; padding: 0 12px; }
    .form-card { border-radius: 20px; }
    .form-header { padding: 28px 20px 0; }
    .form-header h1 { font-size: 22px; }
    .form-header .subtitle { font-size: 13px; }
    .progress-wrap { padding: 24px 16px 20px; }
    .progress-track::before { left: 24px; right: 24px; top: 16px; }
    .progress-fill-bar { left: 24px; top: 16px; height: 2px; }
    .progress-step .step-dot { width: 32px; height: 32px; font-size: 12px; }
    .progress-step .step-label { font-size: 8px; letter-spacing: 0.04em; }
    .form-body { padding: 0 16px 10px; }
    .form-footer { padding: 10px 16px 24px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .step-heading { font-size: 15px; margin-bottom: 18px; }
    .input-wrap input,
    .input-wrap select,
    .input-wrap textarea { font-size: 13px; padding: 20px 14px 8px; }
    .file-dropzone { padding: 24px 16px; }
    .file-dropzone .drop-icon svg { width: 32px; height: 32px; }
    .file-dropzone .drop-text { font-size: 13px; }
    .project-entry { padding: 18px; }
    .project-entry .remove-project { top: 8px; right: 10px; }
    .review-section { padding: 20px; }
    .review-item { flex-direction: column; gap: 2px; }
    .review-item .label { min-width: auto; }
    .nav-buttons { gap: 10px; }
    .nav-buttons button { padding: 13px 18px; font-size: 13px; }
    .success-message { padding: 60px 20px; }
    .success-message h2 { font-size: 22px; }
    .detail-grid { grid-template-columns: 1fr; }
    .progress-track { max-width: 100%; }

    .admin-header { flex-direction: column; gap: 12px; align-items: flex-start; padding: 14px 20px; }
    .header-right { width: 100%; justify-content: space-between; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card .stat-value { font-size: 22px; }
    #freelancers-table { font-size: 13px; }
    #freelancers-table th, #freelancers-table td { padding: 10px 12px; }
    .modal-content { padding: 24px 16px; }
    .modal.open { padding: 20px 12px; }
}

@media (max-width: 480px) {
    .container { margin: 8px auto; padding: 0 8px; }
    .form-card { border-radius: 16px; }
    .form-header { padding: 24px 16px 0; }
    .form-header h1 { font-size: 20px; }
    .progress-step .step-dot { width: 28px; height: 28px; font-size: 10px; }
    .progress-step .step-label { font-size: 7px; }
    .nav-buttons button { padding: 11px 14px; font-size: 12px; }
    .stats-row { grid-template-columns: 1fr; }
}
