/* ───────────────────────────────────────────────────────────────────────────
   Shared styles for the top-bar / profile partial.
   Loaded globally so the partial renders correctly on every page,
   not only on /home.
   ─────────────────────────────────────────────────────────────────────────── */

/* User Profile Section - 4 Row Block Style */
.profile-row-block {
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.25) 0%, rgba(15, 23, 42, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.profile-row-block::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px; width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(242, 187, 43, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.profile-avatar-wrapper {
    border-radius: 50%;
    width: 72px;
    height: 72px;
    position: relative;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #F2BB2B;
    padding: 3px;
    background: rgba(0,0,0,0.5);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(242, 187, 43, 0.3);
}

.avatar-edit-overlay {
    position: absolute;
    bottom: 0;
    right: -3px;
    background: #F2BB2B;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    z-index: 5;
}

.profile-avatar-wrapper:hover .avatar-edit-overlay {
    transform: scale(1.15);
}

.avatar-uploading {
    opacity: 0.5;
    pointer-events: none;
}

.username-display {
    color: #fff;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.user-phone-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-phone-text i {
    color: #F2BB2B;
    font-size: 0.7rem;
}

.vip-level-badge {
    display: inline-block;
    background: linear-gradient(90deg, #F2BB2B, #f59e0b);
    color: #000;
    font-weight: 800;
    font-size: 0.65rem;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.invitation-code-container {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    gap: 8px;
    margin-top: 10px;
}

.invitation-code-container span {
    color: #F2BB2B;
    font-weight: 800;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.copy-invitation-btn {
    transition: transform 0.2s, color 0.2s;
}

.copy-invitation-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.action-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(242, 187, 43, 0.12) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-item:hover {
    border-color: rgba(242, 187, 43, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.action-item:hover::after {
    opacity: 1;
}

.action-item-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.action-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-header i {
    font-size: 0.85rem;
    color: rgba(242, 187, 43, 0.8);
}

.action-header span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-value {
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
}

.action-value.highlight {
    color: #F2BB2B;
}
