/* ================================================================
   USER PROFILE CSS - Clean & Modern
   ================================================================ */

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-16px) rotate(10deg);
    }
}

@keyframes livePulse {
    0%, 100% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

@keyframes avatarBorderSpin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}

/* ================================================================
   HERO BANNER
   ================================================================ */
.up-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 20px 48px -12px rgba(99, 102, 241, 0.4);
}

.up-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.up-hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.up-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.up-pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 1.8s infinite ease-in-out;
}

.up-hero-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.2;
}

.up-hero-title span {
    background: linear-gradient(135deg, #fde047, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.up-hero-subtitle {
    font-size: clamp(14px, 1.6vw, 17px);
    opacity: 0.92;
    margin: 0 0 24px;
    line-height: 1.6;
}

.up-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.up-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
}

.up-btn-primary {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.up-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.up-btn-glass {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.up-btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.up-hero-graphic {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.up-cricket-orb {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #fde047;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: orbFloat 4s ease-in-out infinite alternate;
}

/* ================================================================
   PROFILE WRAPPER
   ================================================================ */
.up-profile-wrapper {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: start;
}

/* ================================================================
   PROFILE CARD
   ================================================================ */
.up-profile-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.up-profile-card:hover {
    transform: translateY(-4px);
    border-color: #a855f7;
    box-shadow: 0 20px 40px -10px rgba(168, 85, 247, 0.2);
}

/* Card Header */
.up-card-header {
    padding: 28px 28px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 40%, #f3e8ff 100%);
    border-bottom: 1px solid #e2e8f0;
}

/* Avatar */
.up-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 14px;
}

.up-avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899, #3b82f6);
    background-size: 300% 300%;
    animation: avatarBorderSpin 6s linear infinite;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease;
}

.up-avatar-ring:hover {
    transform: scale(1.05);
}

.up-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.up-camera-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.up-camera-btn:hover {
    transform: scale(1.15) rotate(15deg);
}

.up-camera-btn i {
    font-size: 14px;
}

/* User Name */
.up-user-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.up-verified-badge {
    color: #3b82f6;
    font-size: 18px;
    display: none;
}

/* User Handle */
.up-user-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.up-user-handle:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.up-copy-icon {
    font-size: 13px;
    opacity: 0.6;
}

/* Badges */
.up-badge-container {
    display: flex;
    justify-content: center;
}

.up-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border: 1px solid #fde047;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.up-premium-badge i {
    color: #d97706;
    font-size: 14px;
}

.up-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.up-free-badge i {
    color: #64748b;
    font-size: 14px;
}

/* Card Body */
.up-card-body {
    padding: 20px 24px 24px;
}

.up-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.up-info-item:hover {
    background: #f8fafc;
    border-color: rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
}

.up-info-item:last-child {
    margin-bottom: 0;
}

.up-info-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
}

.email-icon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.phone-icon {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.address-icon {
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}
.bio-icon {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.up-info-content {
    min-width: 0;
    flex: 1;
}

.up-info-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    font-weight: 700;
}

.up-info-value {
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

.up-bio-text {
    color: #475569;
    font-weight: 400;
    font-size: 13px;
}

/* ================================================================
   QUICK STATS
   ================================================================ */
.up-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.up-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.up-stat-card:hover {
    transform: translateX(4px);
    border-color: #a855f7;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.1);
}

.up-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.stat-purple {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}
.stat-blue {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}
.stat-green {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}
.stat-amber {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.up-stat-info {
    display: flex;
    flex-direction: column;
}

.up-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.up-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

/* ================================================================
   MODAL
   ================================================================ */
.up-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.up-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.up-modal {
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 35px 70px -15px rgba(15, 23, 42, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.up-modal-overlay.open .up-modal {
    transform: translateY(0) scale(1);
}

.up-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.up-modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.up-modal-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.up-modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.up-modal-sub {
    margin: 4px 24px 16px;
    font-size: 13px;
    color: #94a3b8;
}

.up-form-group {
    padding: 0 24px;
    margin-bottom: 16px;
}

.up-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.up-form-group input,
.up-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.up-form-group input:focus,
.up-form-group textarea:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.up-form-group textarea {
    min-height: 70px;
    resize: vertical;
}

.up-modal-actions {
    display: flex;
    gap: 10px;
    padding: 8px 24px 20px;
}

.up-btn-secondary {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
}

.up-btn-secondary:hover {
    background: #e2e8f0;
}

.up-btn-primary-full {
    flex: 2;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.up-btn-primary-full:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
    transform: translateY(-2px);
}

.up-btn-primary-full:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1200px) {
    .up-profile-wrapper {
        grid-template-columns: 1fr;
    }
    .up-quick-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 991px) {
    .up-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 20px;
    }
    .up-hero-graphic {
        align-self: center;
    }
    .up-cricket-orb {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 12px 10px;
    }

    .up-hero-banner {
        padding: 18px 14px;
        border-radius: 16px;
        margin-bottom: 18px;
    }
    .up-hero-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    .up-hero-title {
        font-size: 18px;
    }
    .up-hero-subtitle {
        font-size: 12px;
        margin-bottom: 14px;
    }
    .up-btn {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    .up-profile-card {
        border-radius: 16px;
    }
    .up-card-header {
        padding: 18px 14px 14px;
    }
    .up-avatar-container {
        width: 80px;
        height: 80px;
    }
    .up-camera-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .up-camera-btn i {
        font-size: 12px;
    }
    .up-user-name {
        font-size: 18px;
    }
    .up-user-handle {
        font-size: 11px;
        padding: 4px 10px;
    }
    .up-premium-badge,
    .up-free-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    .up-card-body {
        padding: 14px 14px 18px;
    }
    .up-info-item {
        padding: 10px 10px;
        gap: 10px;
    }
    .up-info-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .up-info-label {
        font-size: 9px;
    }
    .up-info-value {
        font-size: 13px;
    }

    .up-quick-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .up-stat-card {
        padding: 12px 14px;
        border-radius: 14px;
        gap: 10px;
    }
    .up-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .up-stat-value {
        font-size: 17px;
    }

    .up-modal {
        max-width: 100%;
        border-radius: 16px;
    }
    .up-modal-header {
        padding: 16px 18px 0;
    }
    .up-modal-header h2 {
        font-size: 18px;
    }
    .up-modal-sub {
        margin: 4px 18px 12px;
        font-size: 12px;
    }
    .up-form-group {
        padding: 0 18px;
        margin-bottom: 12px;
    }
    .up-modal-actions {
        padding: 8px 18px 16px;
    }
}

@media (max-width: 480px) {
    .up-cricket-orb {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    .up-avatar-container {
        width: 70px;
        height: 70px;
    }
    .up-user-name {
        font-size: 16px;
    }
    .up-quick-stats {
        grid-template-columns: 1fr 1fr;
    }
}