/* ============ PROFILE & VERIFICATION STYLES ============ */

/* Back Button */
.back-btn {
    width: 38px; height: 38px; border-radius: 12px;
    background: rgba(255,255,255,0.05); color: #aab;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all 0.2s; flex-shrink: 0;
}
.back-btn:hover { background: rgba(108,92,231,0.15); color: #6C5CE7; transform: scale(1.05); }

/* Header Verification Badge */
.verif-header-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 50px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
    background: rgba(255,159,67,0.12); color: #ff9f43;
    border: 1px solid rgba(255,159,67,0.2);
    transition: all 0.4s ease;
}
.verif-header-badge.pending { background: rgba(255,159,67,0.12); color: #ff9f43; border-color: rgba(255,159,67,0.2); }
.verif-header-badge.verified { background: rgba(68,221,170,0.12); color: #44ddaa; border-color: rgba(68,221,170,0.2); }

/* ============ PROFILE HERO ============ */
.profile-hero {
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 20px 16px; text-align: center;
    animation: fadeSlideUp 0.5s ease-out;
}

/* Avatar */
.avatar-wrapper { position: relative; margin-bottom: 16px; }
.avatar-ring {
    width: 100px; height: 100px; border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    animation: ringRotate 6s linear infinite;
}
@keyframes ringRotate {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}
.avatar-img {
    width: 100%; height: 100%; border-radius: 50%;
    background: #1a1a2e; display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: #555570; overflow: hidden;
    border: 3px solid #0a0a1a;
}
.avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-upload-btn {
    position: absolute; bottom: 2px; right: 2px;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    color: #fff; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #0a0a1a;
    transition: transform 0.2s, box-shadow 0.2s;
}
.avatar-upload-btn:hover { transform: scale(1.15); box-shadow: 0 4px 16px rgba(108,92,231,0.4); }
.profile-user-name { font-size: 20px; font-weight: 700; }
.profile-user-email { font-size: 13px; color: #8888aa; margin-top: 2px; }
.profile-verif-indicator {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; padding: 6px 16px; border-radius: 50px;
    font-size: 12px; font-weight: 600;
    background: rgba(255,159,67,0.1); color: #ff9f43;
    border: 1px solid rgba(255,159,67,0.15);
    transition: all 0.4s ease;
}
.profile-verif-indicator.pending { background: rgba(255,159,67,0.1); color: #ff9f43; border-color: rgba(255,159,67,0.15); }
.profile-verif-indicator.verified { background: rgba(68,221,170,0.1); color: #44ddaa; border-color: rgba(68,221,170,0.15); }

/* ============ STEP PROGRESS ============ */
.step-progress-section { padding: 8px 24px 20px; }
.step-progress { position: relative; }
.step-track {
    position: absolute; top: 18px; left: 40px; right: 40px; height: 3px;
    background: rgba(255,255,255,0.06); border-radius: 2px;
}
.step-track-fill {
    height: 100%; width: 0%; border-radius: 2px;
    background: linear-gradient(90deg, #6C5CE7, #00B4D8);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-dots { display: flex; justify-content: space-between; position: relative; }
.step-dot {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    z-index: 1; transition: all 0.3s;
}
.dot-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #555570;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-dot span { font-size: 10px; color: #555570; font-weight: 500; transition: color 0.3s; }
.step-dot.active .dot-circle {
    background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    border-color: transparent; color: #fff;
    box-shadow: 0 4px 16px rgba(108,92,231,0.35);
    transform: scale(1.1);
}
.step-dot.active span { color: #c0b0ff; }
.step-dot.completed .dot-circle {
    background: rgba(68,221,170,0.15); border-color: #44ddaa; color: #44ddaa;
}
.step-dot.completed span { color: #44ddaa; }

/* ============ PROFILE CARDS ============ */
.profile-step { padding: 0 20px 20px; animation: fadeSlideUp 0.4s ease-out; }
.profile-step.hidden { display: none; }
.pf-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px; padding: 24px 20px; position: relative; overflow: hidden;
}
.pf-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.pf-card-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.pf-card-icon.purple { background: rgba(108,92,231,0.15); color: #6C5CE7; }
.pf-card-icon.blue { background: rgba(0,180,216,0.15); color: #00B4D8; }
.pf-card-icon.teal { background: rgba(0,206,209,0.15); color: #00CED1; }
.pf-card-header h3 { font-size: 16px; font-weight: 700; }
.pf-card-header p { font-size: 12px; color: #8888aa; margin-top: 2px; }

/* Form Fields */
.pf-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.pf-field label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #aab; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.pf-field label i { color: #6C5CE7; font-size: 12px; }
.pf-input-wrap {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.pf-input-wrap:focus-within { border-color: #6C5CE7; box-shadow: 0 0 0 3px rgba(108,92,231,0.12); }
.pf-input-wrap input, .pf-input-wrap textarea {
    width: 100%; background: none; border: none; outline: none;
    color: #e0e0f0; font-size: 14px; padding: 14px 16px; font-family: inherit;
    resize: none;
}
.pf-input-wrap input::placeholder, .pf-input-wrap textarea::placeholder { color: #444460; }
.pf-input-wrap input:disabled, .pf-input-wrap textarea:disabled {
    opacity: 0.5; cursor: not-allowed;
}

/* Buttons */
.pf-next-btn {
    width: 100%; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 600;
    color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    box-shadow: 0 4px 20px rgba(108,92,231,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
}
.pf-next-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.pf-next-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(108,92,231,0.45); }
.pf-next-btn:hover::after { opacity: 1; }
.pf-next-btn:active { transform: translateY(0) scale(0.98); }
.pf-next-btn:disabled { opacity: 0.5; pointer-events: none; }
.submit-btn { background: linear-gradient(135deg, #00B4D8, #44ddaa); box-shadow: 0 4px 20px rgba(0,180,216,0.3); }
.step-nav-row { display: flex; gap: 12px; margin-top: 20px; }
.step-nav-row .pf-next-btn { flex: 1; }
.pf-back-btn {
    padding: 14px 20px; border-radius: 14px; font-size: 14px; font-weight: 600;
    color: #aab; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.pf-back-btn:hover { background: rgba(255,255,255,0.08); color: #e0e0f0; }

/* ============ DOCUMENT SELECTION ============ */
.doc-options { display: flex; flex-direction: column; gap: 12px; }
.doc-option {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; border-radius: 16px;
    background: rgba(255,255,255,0.03); border: 2px solid rgba(255,255,255,0.06);
    cursor: pointer; transition: all 0.3s ease; position: relative;
}
.doc-option:hover { background: rgba(255,255,255,0.06); border-color: rgba(108,92,231,0.2); transform: translateY(-2px); }
.doc-option.selected {
    background: rgba(108,92,231,0.08); border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.12), 0 4px 20px rgba(108,92,231,0.15);
}
.doc-option-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #8888aa; flex-shrink: 0;
    transition: all 0.3s;
}
.doc-option.selected .doc-option-icon { background: rgba(108,92,231,0.15); color: #6C5CE7; }
.doc-option-info { flex: 1; }
.doc-option-info h4 { font-size: 14px; font-weight: 600; }
.doc-option-info p { font-size: 12px; color: #666680; margin-top: 2px; }
.doc-check {
    font-size: 20px; color: transparent; transition: all 0.3s;
    transform: scale(0.5); opacity: 0;
}
.doc-option.selected .doc-check { color: #6C5CE7; transform: scale(1); opacity: 1; }

/* ============ UPLOAD ZONES ============ */
.upload-zone {
    margin-top: 16px; border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 16px; overflow: hidden; cursor: pointer;
    transition: all 0.3s ease; position: relative;
}
.upload-zone:hover { border-color: rgba(108,92,231,0.3); background: rgba(108,92,231,0.03); }
.upload-zone.drag-over { border-color: #6C5CE7; background: rgba(108,92,231,0.06); }
.upload-zone.has-file { border-style: solid; border-color: rgba(68,221,170,0.3); }
.upload-placeholder {
    padding: 30px 20px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.upload-icon { font-size: 32px; color: #555570; margin-bottom: 4px; }
.upload-placeholder h4 { font-size: 14px; font-weight: 600; color: #aab; }
.upload-placeholder p { font-size: 12px; color: #666680; }
.upload-link { color: #6C5CE7; font-weight: 600; cursor: pointer; }
.upload-hint { font-size: 10px; color: #444460; margin-top: 4px; }
.upload-preview { position: relative; }
.upload-preview img { width: 100%; height: 180px; object-fit: cover; display: block; }
.remove-preview {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,60,60,0.8); color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.remove-preview:hover { transform: scale(1.15); }
.preview-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 8px; text-align: center; font-size: 11px; font-weight: 600;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); color: #44ddaa;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============ STATUS CARD ============ */
.status-card { text-align: center; padding: 36px 24px; }
.status-anim-wrap { position: relative; display: inline-block; margin-bottom: 24px; }
.status-icon-circle {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; position: relative; z-index: 1;
}
.status-icon-circle.pending { background: rgba(255,159,67,0.12); color: #ff9f43; }
.status-icon-circle.verified { background: rgba(68,221,170,0.12); color: #44ddaa; }

/* Pending Pulse Rings */
.pulse-ring {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; border-radius: 50%;
    border: 2px solid rgba(255,159,67,0.3);
    animation: pulseRing 2.5s ease-out infinite;
}
.pulse-ring.delay { animation-delay: 1.2s; }
@keyframes pulseRing {
    0% { width: 80px; height: 80px; opacity: 1; }
    100% { width: 140px; height: 140px; opacity: 0; }
}

/* Verified animation */
.verified-anim .status-icon-circle { animation: verifiedBounce 0.6s ease-out; }
@keyframes verifiedBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.status-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.status-title.verified-text { color: #44ddaa; }
.status-desc { font-size: 13px; color: #8888aa; line-height: 1.6; margin-bottom: 24px; max-width: 340px; margin-left: auto; margin-right: auto; }

.status-info-row { display: flex; gap: 16px; justify-content: center; margin-bottom: 20px; }
.status-info-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    text-align: left;
}
.status-info-item i { font-size: 18px; color: #ff9f43; }
.info-label { display: block; font-size: 10px; color: #666680; text-transform: uppercase; letter-spacing: 0.3px; }
.info-value { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; }

.pending-notice {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    padding: 12px 20px; border-radius: 12px;
    background: rgba(255,159,67,0.06); border: 1px solid rgba(255,159,67,0.12);
    color: #ff9f43; font-size: 12px;
}
.pending-notice i { font-size: 14px; flex-shrink: 0; }

.verified-badge-large {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 50px;
    background: linear-gradient(135deg, rgba(68,221,170,0.12), rgba(0,180,216,0.08));
    border: 1px solid rgba(68,221,170,0.2);
    color: #44ddaa; font-size: 15px; font-weight: 700;
    margin-bottom: 24px;
    animation: badgeShine 3s ease-in-out infinite;
}
@keyframes badgeShine {
    0%, 100% { box-shadow: 0 0 20px rgba(68,221,170,0.1); }
    50% { box-shadow: 0 0 30px rgba(68,221,170,0.25); }
}
.verified-badge-large i { font-size: 20px; }

/* Confetti burst */
.confetti-burst { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ============ HIDDEN UTILITY ============ */
.hidden { display: none !important; }

/* ============ RESPONSIVE ============ */
@media (min-width: 768px) {
    .doc-options { flex-direction: row; gap: 14px; }
    .doc-option { flex: 1; flex-direction: column; text-align: center; padding: 24px 16px; }
    .doc-option-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
    .doc-check { position: absolute; top: 12px; right: 12px; }
    .status-info-row { gap: 20px; }
    .upload-zone { display: inline-block; width: calc(50% - 8px); vertical-align: top; margin-right: 12px; }
    .upload-zone:last-of-type { margin-right: 0; }
    .profile-hero { padding-top: 36px; }
    .pf-card { padding: 32px 28px; }
}
@media (max-width: 380px) {
    .status-info-row { flex-direction: column; }
    .step-nav-row { flex-direction: column; }
    .pf-back-btn { justify-content: center; }
    .step-dots { gap: 4px; }
    .dot-circle { width: 32px; height: 32px; font-size: 12px; }
    .step-dot span { font-size: 9px; }
}
