/* ================================================================
   DASHBOARD PREMIUM V3 — Refined UI & Balanced Formatting
   ================================================================ */

:root {
    /* Design Tokens */
    --d-bg: #f8fafc;
    --d-sidebar-bg: #ffffff;
    --d-card-bg: #ffffff;
    --d-card-bg-rgb: 255, 255, 255;
    --d-glass-bg: rgba(255, 255, 255, 0.7);

    --d-primary: #e91e63;
    --d-secondary: #9c27b0;
    --d-text: #1e293b;
    --d-text-muted: #64748b;
    --d-accent: #f43f5e;

    /* Layout Tokens */
    --d-border: rgba(0, 0, 0, 0.05);
    --d-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --d-radius: 18px;
    --d-radius-inner: 12px;
    --d-gradient: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    --d-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Elite Branding Colors */
    --elite-pink: #e94560;
    --elite-indigo: #1a1a2e;
    --elite-purple: #9333ea;
    --elite-teal: #0fefc5;

    /* Aura Mesh Tokens */
    --aura-1: rgba(233, 69, 96, 0.08);
    /* Pinkish */
    --aura-2: rgba(147, 51, 234, 0.08);
    /* Purple */
    --aura-3: rgba(15, 239, 197, 0.06);
    /* Teal */
    --aura-4: rgba(59, 130, 246, 0.06);
    /* Blue */
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
    --d-bg: #0f172a;
    --d-sidebar-bg: #1e293b;
    --d-card-bg: #1e293b;
    --d-glass-bg: rgba(30, 41, 59, 0.7);
    --d-text: #f1f5f9;
    --d-text-muted: #94a3b8;
    --d-border: rgba(255, 255, 255, 0.05);
    --d-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);

    /* Dark Mode Aura Tokens */
    --aura-1: rgba(233, 69, 96, 0.15);
    --aura-2: rgba(147, 51, 234, 0.15);
    --aura-3: rgba(15, 239, 197, 0.1);
    --aura-4: rgba(59, 130, 246, 0.1);
}

/* Base Dashboard Layout - Aura Mesh Refined */
.dashboard-container {
    max-width: 100vw;
    margin: 0;
    padding: 0 24px 60px;
    min-height: 100vh;
    background-color: #f8fbff;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 0% 0%, var(--aura-1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, var(--aura-2) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, var(--aura-3) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, var(--aura-4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.015) 1px, transparent 0);
    background-size: 200px 200px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 32px 32px;
    background-attachment: fixed;
    background-blend-mode: overlay, normal, normal, normal, normal, normal, normal;
    position: relative;
    overflow-x: hidden;
}

[data-bs-theme="dark"] .dashboard-container {
    background-color: #0b0e14;
    background-image:
        radial-gradient(circle at 0% 0%, var(--aura-1) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, var(--aura-2) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, var(--aura-3) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, var(--aura-4) 0%, transparent 40%),
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.01) 1px, transparent 0);
}

/* ANIMATED BACKGROUND ORBS */
.dashboard-container::before,
.dashboard-container::after,
.elite-bg-orb-3 {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
    filter: blur(80px);
    animation: eliteOrbFloat 20s infinite alternate ease-in-out;
}

.dashboard-container::before {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--elite-pink);
    animation-duration: 18s;
}

.dashboard-container::after {
    bottom: 20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: var(--elite-purple);
    animation-duration: 22s;
    animation-delay: -5s;
}

.elite-bg-orb-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: var(--elite-teal);
    animation-duration: 25s;
    animation-delay: -2s;
    opacity: 0.1;
}

/* === Global Enforcements === */
.extra-small {
    font-size: 0.85rem !important;
    font-weight: 500;
}

.form-control,
.form-select {
    font-size: 0.95rem !important;
    padding: 14px 18px !important;
    border-radius: 15px !important;
}

.form-label {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: var(--d-text);
    opacity: 0.85;
}

.d-layout {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 24px;
    padding-top: 24px;
}

/* === Sidebar Navigation === */
.d-sidebar-right {
    position: sticky;
    top: 96px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.d-menu-card {
    background: var(--d-sidebar-bg);
    border-radius: var(--d-radius);
    padding: 12px;
    box-shadow: var(--d-shadow);
    border: 1px solid var(--d-border);
}

.d-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.d-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: var(--d-radius-inner);
    color: var(--d-text);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--d-transition);
    border: 1px solid transparent;
}

.d-menu-item i {
    width: 24px;
    text-align: center;
    font-size: 1.25rem;
    color: var(--d-text-muted);
    transition: inherit;
    opacity: 0.8;
}

.d-menu-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #1e293b;
    transform: translateX(-4px);
}

.d-menu-item:hover i {
    color: var(--d-primary);
    opacity: 1;
}

/* Active State */
.d-menu-item.active {
    background: var(--d-gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

.d-menu-item.active i {
    color: #fff;
    opacity: 1;
}

.d-menu-item.active .d-menu-badge {
    background: #fff;
    color: var(--d-primary);
}

/* Sidebar Mini Profile */
.h-profile-mini {
    position: relative;
    padding: 20px;
    background: var(--d-sidebar-bg);
    border-radius: var(--d-radius);
    box-shadow: var(--d-shadow);
    border: 1px solid var(--d-border);
    margin-bottom: 24px;
    transition: var(--d-transition);
}

.h-profile-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.h-mini-avatar {
    position: relative;
    width: 60px;
    height: 60px;
}

.h-mini-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .h-mini-avatar img {
    border-color: rgba(255, 255, 255, 0.1);
}

.h-mini-status {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #4caf50;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

[data-bs-theme="dark"] .h-mini-status {
    border-color: var(--d-sidebar-bg);
}

.h-mini-info {
    flex-grow: 1;
}

.h-mini-name {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--d-text);
    margin-bottom: 2px;
}

.h-mini-membership {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--d-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.h-mini-progress-container {
    margin-top: 16px;
}

.h-mini-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--d-text-muted);
}

.h-mini-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

[data-bs-theme="dark"] .h-mini-progress-bar {
    background: rgba(255, 255, 255, 0.05);
}

.h-mini-progress-fill {
    height: 100%;
    background: var(--d-gradient);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.h-mini-edit-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    color: var(--d-text-muted);
    border-radius: 10px;
    text-decoration: none !important;
    transition: var(--d-transition);
}

.h-mini-edit-btn:hover {
    background: var(--d-primary);
    color: #fff;
    transform: rotate(15deg);
}

/* === Main Center Column === */
.d-main-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.d-card {
    background: var(--d-card-bg);
    border-radius: var(--d-radius);
    padding: 24px;
    box-shadow: var(--d-shadow);
    border: 1px solid var(--d-border);
    position: relative;
    overflow: hidden;
    transition: var(--d-transition);
}

.d-card-glass {
    background: var(--d-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Dashboard Inner Components (h-prefix) === */

/* Welcome Section */
.h-welcome-section {
    position: relative;
    border-radius: var(--d-radius);
    overflow: hidden;
}

.h-welcome-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #673ab7 100%);
    z-index: 0;
}

.h-welcome-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.h-welcome-content {
    position: relative;
    z-index: 1;
}

.h-user-name {
    color: #fff;
    font-size: 1.6rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Headers */
.h-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    margin: -24px -24px 24px -24px;
    /* Pull to edges of d-card */
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--d-border);
    border-right: 4px solid transparent;
    /* Accent border for RTL */
}

[data-bs-theme="dark"] .h-section-header {
    background: rgba(255, 255, 255, 0.02);
}

.h-section-header.green {
    border-right-color: #2e7d32;
    background: rgba(76, 175, 80, 0.04);
}

.h-section-header.purple {
    border-right-color: #7b1fa2;
    background: rgba(156, 39, 176, 0.04);
}

.h-section-header.pink {
    border-right-color: #c2185b;
    background: rgba(233, 30, 99, 0.04);
}

.h-section-header.gold {
    border-right-color: #ffb300;
    background: rgba(255, 179, 0, 0.05);
}

.h-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.h-section-header h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.h-section-header p {
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.7;
}

.h-section-icon.pink {
    background: #e91e63;
    color: #fff;
}

.h-section-icon.green {
    background: #4caf50;
    color: #fff;
}

.h-section-icon.purple {
    background: #9c27b0;
    color: #fff;
}

.h-section-icon.blue {
    background: #2196f3;
    color: #fff;
}

.h-section-icon.gold {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    color: #fff;
}

.h-online-count {
    background: #4caf50;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 800;
}

/* Header Buttons */
.h-header-btn {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: var(--d-transition);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.h-header-btn.purple {
    background: rgba(156, 39, 176, 0.08);
    color: #9c27b0;
}

.h-header-btn.purple:hover {
    background: #9c27b0;
    color: #fff;
}

.h-header-btn.blue {
    background: rgba(33, 150, 243, 0.08);
    color: #2196f3;
}

.h-header-btn.blue:hover {
    background: #2196f3;
    color: #fff;
}

/* Online Cards */
.h-online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.h-online-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--d-border);
    border-radius: 18px;
    text-decoration: none !important;
    color: inherit;
    transition: var(--d-transition);
}

[data-bs-theme="dark"] .h-online-card {
    background: rgba(255, 255, 255, 0.03);
}

.h-online-card:hover {
    background: var(--d-card-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(76, 175, 80, 0.2);
}

.h-online-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.h-online-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    /* Rounded corners for premium feel */
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .h-online-avatar img {
    border-color: rgba(255, 255, 255, 0.1);
}

.h-online-dot {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: #4caf50;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

[data-bs-theme="dark"] .h-online-dot {
    border-color: var(--d-card-bg);
}

.h-online-name {
    display: block;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--d-text);
    margin-bottom: 2px;
}

.h-online-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--d-text-muted);
    opacity: 0.8;
}

/* Suggestions & Profile Cards */
.h-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.h-profile-card {
    position: relative;
    padding: 32px 20px 24px;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

[data-bs-theme="dark"] .h-profile-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.h-profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(233, 30, 99, 0.1);
}

.h-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    transition: all 0.6s ease;
}

.h-profile-card:hover .h-card-glow {
    transform: scale(1.5) translate(-20px, 20px);
    background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
}

.h-profile-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.h-profile-badge.vip {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.h-profile-badge.vip i {
    color: #b8860b;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

.h-profile-img {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    z-index: 1;
}

.h-profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    /* Premium Squircle */
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-bs-theme="dark"] .h-profile-img img {
    border-color: #1e293b;
}

.h-profile-card:hover .h-profile-img img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2);
}

.h-floating-badges {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.h-badge-floating.vip-text {
    width: auto;
    height: 22px;
    padding: 0 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.h-badge-floating.elite {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #fff;
    background: linear-gradient(135deg, #e94560 0%, #9333ea 100%);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.h-profile-card:hover .h-badge-floating {
    transform: scale(1.2) rotate(10deg);
}

[data-bs-theme="dark"] .h-badge-floating {
    border-color: #1e293b;
}

.h-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.h-profile-name {
    font-size: 1.15rem;
    font-weight: 850;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #1e293b 0%, var(--elite-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: -0.2px;
    position: relative;
    display: inline-block;
    max-width: 100%;
    font-family: 'Cairo', sans-serif;
}

.h-profile-card:hover .h-profile-name {
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(135deg, var(--elite-pink) 0%, var(--elite-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .h-profile-name {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .h-profile-card:hover .h-profile-name {
    background: linear-gradient(135deg, #fff 0%, var(--elite-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h-profile-capsule {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.04);
    padding: 6px 16px;
    border-radius: 50px;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.h-profile-card:hover .h-profile-capsule {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: rgba(233, 69, 96, 0.2);
}

.capsule-item {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    display: flex;
    align-items: center;
}

.capsule-divider {
    width: 1px;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .capsule-item {
    color: #94a3b8;
}

[data-bs-theme="dark"] .capsule-divider {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .h-profile-name {
    color: #f8fafc;
}

.h-profile-meta span {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Age Badge - Pinkish Gradient */
.h-profile-meta span:first-child {
    background: rgba(233, 69, 96, 0.08);
    color: #e94560;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

/* City Badge - Indigo Gradient */
.h-profile-meta span:last-child {
    background: rgba(26, 26, 46, 0.05);
    color: #1a1a2e;
    border: 1px solid rgba(26, 26, 46, 0.1);
}

/* Dark Mode Tweaks */
[data-bs-theme="dark"] .h-profile-meta span:first-child {
    background: rgba(233, 69, 96, 0.15);
    color: #ff4d6d;
}

[data-bs-theme="dark"] .h-profile-meta span:last-child {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.h-profile-card:hover .h-profile-meta span {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.h-badges-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.h-badge-inline {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.h-badge-vip {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
}

.h-badge-elite {
    background: linear-gradient(135deg, #e94560 0%, #9333ea 100%);
    color: #fff;
}/* Clickable Card Link */
.h-profile-card-link {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.h-profile-card {
    background: var(--d-card-bg);
    border-radius: 35px;
    padding: 20px 24px 28px;
    border: 1.5px solid rgba(15, 23, 42, 0.08); /* Sophisticated weak border */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--d-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.5); /* Internal highlight depth */
    cursor: pointer;
    perspective: 1000px;
}

/* Holographic Shine Sweep */
.h-profile-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 55%
    );
    z-index: 10;
    transition: all 0.8s ease;
    pointer-events: none;
    transform: rotate(25deg);
}

.h-profile-card:hover::before {
    top: 150%;
    left: 150%;
}

.h-profile-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(2deg) rotateY(-1deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    border-color: rgba(233, 69, 96, 0.4);
}

/* Dynamic Multi-color Aura */
.h-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--aura-1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.4;
    mix-blend-mode: multiply;
}

[data-bs-theme="dark"] .h-card-glow {
    mix-blend-mode: screen;
}

.h-profile-card:hover .h-card-glow {
    width: 450px;
    height: 450px;
    opacity: 0.7;
    background: radial-gradient(circle, var(--aura-1) 0%, var(--aura-2) 30%, transparent 70%);
    animation: auraSpin 10s linear infinite;
}

@keyframes auraSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating Badges Micro-movement */
.h-profile-card:hover .h-badge-floating {
    animation: badgeFloat 2s ease-in-out infinite alternate;
}

@keyframes badgeFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* Action Hint Refinement - No Reserved Space */
.h-card-action-hint {
    position: absolute;
    bottom: -40px; /* Hidden outside the card */
    left: 50%;
    transform: translateX(-50%) translateY(0);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 140px;
    white-space: nowrap;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--elite-pink);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.2px;
    z-index: 15;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .h-card-action-hint {
    background: rgba(30, 41, 59, 0.9);
}

.h-profile-card:hover .h-card-action-hint {
    opacity: 1;
    bottom: 24px; /* Slide up into view */
}

.h-card-action-hint i {
    transition: transform 0.3s ease;
}

.h-profile-card:hover .h-card-action-hint i {
    animation: bounceLeft 0.6s infinite alternate;
}

@keyframes bounceLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-4px); }
}

/* Dark Mode Overrides for Interactive Card */
[data-bs-theme="dark"] .h-profile-card {
    background: var(--d-card-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--d-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .h-profile-card:hover {
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .h-profile-capsule {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .h-profile-card:hover .h-profile-capsule {
    background: rgba(255, 255, 255, 0.08);
}

/* Tabs */
.h-online-tabs {
    display: flex;
    gap: 8px;
}

.h-tab-btn {
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid var(--d-border);
    background: transparent;
    color: var(--d-text-muted);
    cursor: pointer;
    transition: var(--d-transition);
}

.h-tab-btn.active {
    background: var(--d-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.h-tab-count {
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 10px;
    margin-right: 4px;
}

.h-tab-btn.active .h-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Mass Messages */
.h-mass-card {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.h-mass-card.unread {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.03), rgba(156, 39, 176, 0.03));
    border: 1px solid rgba(233, 30, 99, 0.1);
}

.h-new-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--d-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Activity Stats Widget */
.h-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.h-stat-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--d-border);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    transition: var(--d-transition);
}

[data-bs-theme="dark"] .h-stat-item {
    background: rgba(255, 255, 255, 0.04);
}

.h-stat-item:hover {
    background: var(--d-card-bg);
    transform: translateY(-4px);
    box-shadow: var(--d-shadow);
}

.h-stat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.h-stat-item.blue .h-stat-icon {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.h-stat-item.red .h-stat-icon {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.h-stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--d-text);
    margin-bottom: 2px;
}

.h-stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--d-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Widgets Helper */
.h-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--d-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--d-transition);
}

[data-bs-theme="dark"] .h-action-item {
    background: rgba(255, 255, 255, 0.04);
}

.h-action-item:hover {
    background: var(--d-gradient);
    color: #fff !important;
    transform: translateX(-4px);
    /* Subtle slide for RTL */
}

.h-action-icon {
    font-size: 1.1rem;
    color: var(--d-primary);
    transition: inherit;
}

.h-action-item:hover .h-action-icon {
    color: #fff;
    transform: scale(1.1);
}

/* === Sidebar Left (Widgets) === */
.d-sidebar-left {
    position: sticky;
    top: 96px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.d-widget-card {
    background: var(--d-card-bg);
    border-radius: var(--d-radius);
    padding: 24px;
    box-shadow: var(--d-shadow);
    border: 1px solid var(--d-border);
    transition: var(--d-transition);
}

.d-widget-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.d-widget-title {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--d-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.d-widget-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--d-gradient);
    border-radius: 10px;
}

/* === Header / Navbar Refinement === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    height: 76px;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    padding: 0;
}

[data-bs-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: var(--d-transition);
}

.header-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #e91e63;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--d-transition);
}

.header-nav-link i {
    font-size: 1.1rem;
    transition: inherit;
}

.header-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.header-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.header-nav-link.active i {
    transform: scale(1.1);
}

.header-badge {
    min-width: 18px;
    height: 18px;
    background: var(--d-primary);
    color: #fff;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 5px;
    font-weight: 900;
}

/* Right Actions & User */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    position: relative;
    text-decoration: none !important;
    transition: var(--d-transition);
}

[data-bs-theme="dark"] .header-icon-btn {
    background: rgba(255, 255, 255, 0.06);
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.icon-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #fff;
}

.header-chat-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 10px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.45);
    animation: chatBadgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Cairo', sans-serif;
}

@keyframes chatBadgePop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    padding-left: 14px;
    background: #fff;
    border: none;
    border-radius: 50px;
    transition: var(--d-transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .header-user-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.header-user-btn:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .header-user-btn:hover {
    background: var(--d-card-bg);
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-username {
    font-size: 0.88rem;
    font-weight: 800;
    color: #e91e63;
}

.header-membership {
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.header-membership.vip {
    background: #ffd700;
    color: #000;
}

.header-membership.premium {
    background: #e91e63;
    color: #fff;
}

/* Mobile Navbar Styles */
.header-icon-btn-mobile {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--d-text);
    position: relative;
}

.header-hamburger {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.header-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--d-text);
    border-radius: 2px;
    transition: 0.3s;
}

/* === Mobile Navigation Fixes === */
/* === Elite Floating Island Navigation (PWA) === */
.bottom-nav {
    position: fixed;
    bottom: calc(15px + env(safe-area-inset-bottom));
    left: 20px;
    right: 20px;
    height: 72px;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 35px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-bs-theme="dark"] .bottom-nav {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.bottom-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #64748b;
    font-weight: 800;
    font-size: 0.68rem;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.bottom-nav-link i {
    font-size: 1.45rem !important;
    margin-bottom: 2px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #94a3b8;
}

/* Active State - Luxury Glow */
.bottom-nav-link.active {
    color: #e91e63 !important;
}

.bottom-nav-link.active i {
    transform: translateY(-5px);
    color: #e91e63;
    filter: drop-shadow(0 5px 8px rgba(233, 30, 99, 0.3));
}

.bottom-nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e91e63;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.bottom-nav-link.active::after {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

/* Badge Adjustment */
.bottom-badge {
    position: absolute;
    top: 10px;
    right: 50%;
    transform: translateX(18px);
    background: #e91e63;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.2);
}

[data-bs-theme="dark"] .bottom-badge {
    border-color: #1e293b;
}

/* Interaction Effects */
.bottom-nav-link:active i {
    transform: scale(0.9);
}

@media (max-width: 360px) {
    .bottom-nav {
        left: 10px;
        right: 10px;
    }

    .bottom-nav-link span {
        font-size: 0.6rem;
    }
}

/* Custom Table/Grid Adjustments */
.h-online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.h-profile-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(var(--d-primary-rgb), 0.03);
}

/* Animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d-card,
.d-menu-card,
.d-widget-card {
    animation: fadeInSlide 0.4s ease-out backwards;
}

/* Responsiveness Harmony */
@media (max-width: 1400px) {
    .d-layout {
        grid-template-columns: 240px 1fr 300px;
    }
}

@media (max-width: 1200px) {
    .d-layout {
        grid-template-columns: 240px 1fr;
    }

    .d-sidebar-left {
        display: none;
    }
}

@media (max-width: 992px) {
    .d-layout {
        grid-template-columns: 1fr;
        padding-top: 16px;
        gap: 16px;
    }

    .d-sidebar-right,
    .d-sidebar-left {
        display: none !important;
    }

    .dashboard-container {
        padding: 0 12px 100px;
    }

    .d-card {
        padding: 16px;
        border-radius: 14px;
    }
}

/* Specific Mobile Refinements (Phones) */
@media (max-width: 576px) {
    .dashboard-container {
        padding: 0 10px 110px;
    }

    .d-main-feed {
        gap: 16px;
    }

    .elite-stat-pill-v2 {
        padding: 8px 12px;
        gap: 8px;
    }

    .pill-label {
        font-size: 0.6rem;
    }

    .pill-value {
        font-size: 0.95rem;
    }

    /* Fixed width audit: Ensure no containers force width */
    .d-card,
    .elite-glass-frame {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    /* Ensure breadcrumbs can wrap */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
}



/* DASHBOARD MASTER POLISH & BACKGROUND ENHANCEMENT */
:root {
    --elite-pink: #e94560;
    --elite-indigo: #1a1a2e;
    --elite-purple: #9333ea;
    --elite-teal: #0fefc5;
}

/* PREMIUM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--elite-pink), var(--elite-purple));
    border-radius: 10px;
}

.dashboard-container {
    background: #f4f7fe;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.02) 1px, transparent 0);
    background-size: 32px 32px;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ANIMATED BACKGROUND ORBS */
.dashboard-container::before,
.dashboard-container::after,
.elite-bg-orb-3 {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    filter: blur(100px);
    animation: eliteOrbFloat 15s infinite alternate ease-in-out;
}

.dashboard-container::before {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--elite-pink);
    animation-duration: 18s;
}

.dashboard-container::after {
    bottom: 20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: var(--elite-purple);
    animation-duration: 22s;
    animation-delay: -5s;
}

.elite-bg-orb-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: var(--elite-teal);
    animation-duration: 25s;
    animation-delay: -2s;
    opacity: 0.1;
}

@keyframes eliteOrbFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(50px) translateX(30px) scale(1.1);
    }

    100% {
        transform: translateY(-30px) translateX(-40px) scale(0.9);
    }
}

/* ENTRANCE ANIMATIONS */
.elite-master-container,
.d-sidebar-right,
.d-sidebar-left,
.h-welcome-section {
    animation: eliteFadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.elite-master-container:nth-child(2) {
    animation-delay: 0.2s;
}

.elite-master-container:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes eliteFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AVATAR HOVER EFFECTS */
.h-online-avatar img,
.elite-img,
.h-profile-img img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.h-online-card:hover .h-online-avatar img,
.elite-member-card:hover .elite-img,
.h-profile-card:hover .h-profile-img img {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(233, 69, 96, 0.2);
}

/* SHIMMERING BUTTONS */
.h-profile-btn,
.h-header-btn,
.btn-primary {
    position: relative;
    overflow: hidden;
}

.h-profile-btn::after,
.h-header-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: eliteShimmer 6s infinite;
}

@keyframes eliteShimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.h-tab-content {
    display: none;
}

.h-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);

    }

}

@keyframes eliteOrbFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(50px) translateX(30px) scale(1.1);
    }

    100% {
        transform: translateY(-30px) translateX(-40px) scale(0.9);
    }
}

@keyframes eliteFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ENTRANCE ANIMATIONS */
.elite-master-container,
.d-sidebar-right,
.d-sidebar-left,
.h-welcome-section {
    animation: eliteFadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* === Boost Glow Refined (Consistent Shape v4) === */
.boost-img-glow {
    position: relative;
    z-index: 10;
    width: fit-content;
    margin: 0 auto;
    display: block;
}

.boost-img-glow img {
    /* Shape is now handled by the theme (default rounded square) */
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.25);
}

/* The Subtle Golden Aura */
.boost-img-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 30px;
    /* Matches the 28px/24px image radius */
    background: linear-gradient(135deg, #ffd700, #e94560, #9333ea);
    z-index: 1;
    opacity: 0.8;
    animation: boostBgMove 5s infinite alternate ease-in-out;
}

/* The Radiating Pulse */
.boost-img-glow::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 35px;
    /* Matches the 28px/24px image radius */
    background: radial-gradient(circle, rgba(233, 69, 96, 0.5) 0%, rgba(147, 51, 234, 0.3) 50%, transparent 80%);
    filter: blur(18px);
    z-index: -1;
    opacity: 0.7;
    animation: boostPulseRefined 3s infinite alternate ease-in-out;
}

@keyframes boostPulseRefined {
    0% {
        transform: scale(0.9);
        opacity: 0.4;
        filter: blur(12px);
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
        filter: blur(20px);
    }
}

/* Legacy Support (If needed) */
.h-profile-card.boost-glow-aura {
    border: none !important;
}


/* === New Inline Profile Badges (Under Image) === */
.h-badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
    min-height: 24px;
}

.h-badge-inline {
    font-size: 0.62rem;
    font-weight: 850;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: eliteFadeIn 0.5s ease-out;
}

.h-badge-vip {
    background: linear-gradient(135deg, #ffd700, #ffb300, #ff8c00);
    color: #000;
    border-color: rgba(255, 255, 255, 0.6);
}

.h-badge-elite {
    background: linear-gradient(135deg, #9333ea, #e94560);
    color: #fff;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.h-badge-vip i {
    color: #b8860b;
}

.h-badge-elite i {
    color: #fff;
    opacity: 0.9;
}

@keyframes eliteFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* === Elite Section Header Styles === */
.elite-title-main {
    font-size: 1.45rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1a1a2e 0%, #9333ea 50%, #e94560 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    display: inline-block;
}

.elite-subtitle-premium {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.1px;
    opacity: 0.9;
    display: block;
}

[data-bs-theme='dark'] .elite-title-main {
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #fb7185 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 991px) {

    /* PWA Mobile Header */
    .pwa-top-nav {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(var(--d-card-bg-rgb), 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--d-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        z-index: 1040;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .pwa-nav-left,
    .pwa-nav-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .pwa-back-btn,
    .pwa-share-btn {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(var(--d-card-bg-rgb), 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: var(--d-text);
        border: 1px solid rgba(var(--d-card-bg-rgb), 0.1);
        font-size: 1.3rem;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    [data-bs-theme="dark"] .pwa-back-btn,
    [data-bs-theme="dark"] .pwa-share-btn {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .pwa-back-btn:active,
    .pwa-share-btn:active {
        transform: scale(0.92);
        background: var(--d-primary);
        color: #fff;
        box-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
    }

    .pwa-nav-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .pwa-nav-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .pwa-nav-name {
        font-weight: 800;
        font-size: 0.95rem;
        color: var(--d-text);
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Visitors List PWA optimization */
    .visitors-grid .visitor-premium-card {
        margin-bottom: 0;
    }

    @media (max-width: 575px) {
        .visitors-grid .col-lg-4 {
            width: 100%;
        }

        .visitor-premium-card {
            flex-direction: row !important;
            text-align: right !important;
            padding: 15px !important;
            align-items: center !important;
            gap: 15px !important;
        }

        .visitor-top {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-grow: 1;
        }

        .visitor-avatar-wrapper {
            margin: 0 !important;
            width: 60px !important;
            height: 60px !important;
        }

        .visitor-bottom {
            margin-top: 0 !important;
            border-top: none !important;
            padding-top: 0 !important;
        }

        .visitor-bottom .btn {
            padding: 8px 15px !important;
            font-size: 0.75rem !important;
        }

        .visitor-top a.h5 {
            font-size: 0.95rem !important;
        }
    }
}

/* ================================================================
   ELITE PRICING & COUPON COMPONENT
   ================================================================ */
.luxury-pricing-layout {
    font-family: 'Cairo', sans-serif;
    gap: 30px;
    padding-top: 20px;
}

.elite-pricing-card {
    background: var(--d-card-bg);
    border-radius: 40px;
    padding: 45px 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--d-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.elite-pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    border-color: rgba(233, 30, 99, 0.3);
}

.standard-glass-theme {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

.popular-indigo-theme {
    background: linear-gradient(180deg, #fff 0%, #fff5f8 100%);
    border: 2px solid #e91e63 !important;
}

.vip-platinum-theme {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.premium-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #e91e63;
    color: white;
    padding: 8px 45px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
}

.plan-name {
    color: #1a1a2e;
    font-weight: 900;
    font-size: 1.7rem;
}

.vip-platinum-theme .plan-name {
    color: #ffd700;
    font-weight: 900;
    font-size: 1.8rem;
}

.main-price {
    font-size: 3.2rem;
    font-weight: 1000;
    letter-spacing: -2px;
    background: var(--d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-platinum-theme .main-price {
    background: linear-gradient(135deg, #ffd700 0%, #ffb100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.currency {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.7;
}

.period {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.6;
}

.check-circle {
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e91e63;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vip-platinum-theme .check-circle {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.custom-elite-select {
    border-radius: 18px;
    padding: 14px 20px;
    font-weight: 800;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    appearance: none;
    text-align: center;
}

.vip-platinum-theme .custom-elite-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.premium-action-btn {
    background: var(--d-gradient);
    color: white !important;
    border-radius: 18px;
    font-weight: 900;
    border: none;
    transition: 0.3s;
}

.vip-platinum-theme .premium-action-btn {
    background: linear-gradient(135deg, #ffd700, #ffb100);
    color: #1a1a2e !important;
}

.premium-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.2);
}

.active-membership-tag {
    background: #ecfdf5;
    color: #059669;
    font-weight: 900;
    border: 1.5px solid #10b981;
}

/* Elite Coupon Section Styling */
.elite-coupon-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.elite-coupon-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.coupon-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--d-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 15px rgba(233, 30, 99, 0.2);
}

.elite-coupon-group {
    background: #f8fafc;
    border-radius: 18px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.elite-coupon-group:focus-within {
    border-color: var(--d-primary);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    background: white;
}

.elite-coupon-group input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 800;
    color: #1a1a2e;
    padding: 12px 18px;
    border-radius: 14px !important;
}

.btn-elite-apply {
    background: var(--d-gradient);
    color: white !important;
    border: none;
    border-radius: 14px !important;
    font-weight: 900;
    padding: 0 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.btn-elite-apply:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.3);
}

.coupon-feedback-msg {
    margin-top: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 10px;
    animation: eliteSlideDown 0.3s ease-out;
}

@keyframes eliteSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   ELITE PAYMENT METHOD COMPONENTS
   ================================================================ */
.elite-payment-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.elite-payment-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center;
}

.elite-payment-card-premium {
    position: relative;
    background: var(--d-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Multi-layered border effect */
.elite-payment-card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent, rgba(233, 30, 99, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.elite-payment-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.2);
}

.elite-payment-card-premium.active {
    border-color: var(--d-primary);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(233, 30, 99, 0.02));
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.15);
}

.elite-payment-card-premium.active::after {
    content: "\F272";
    /* bi-check-circle-fill */
    font-family: bootstrap-icons;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.2rem;
    color: var(--d-primary);
    animation: elitePopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes elitePopIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.method-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: var(--d-transition);
}

.elite-payment-card-premium:hover .method-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.method-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--d-text);
    margin-bottom: 8px;
    font-family: 'Cairo', sans-serif;
}

.method-desc {
    font-size: 0.85rem;
    color: var(--d-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.premium-badge-tag {
    position: absolute;
    top: 0;
    right: 30px;
    background: var(--d-gradient);
    color: #fff;
    padding: 6px 16px;
    border-radius: 0 0 15px 15px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
}

.elite-summary-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 30px;
    margin-bottom: 40px;
}