/* Profile Widescreen Dashboard Header */
    .profile-hero-dashboard {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(217, 70, 239, 0.04) 100%);
        border: 1px solid var(--border-color);
        border-radius: 21.6px;
        padding: 27px 36px;
        margin-top: 18px;
        margin-bottom: 27px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: var(--shadow-box), 0 9px 27px -9px rgba(139, 92, 246, 0.15);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 27px;
        position: relative;
        overflow: hidden;
    }
    .profile-hero-dashboard::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -10%;
        width: 360px;
        height: 360px;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .profile-hero-left {
        display: flex;
        align-items: center;
        gap: 22.5px;
        z-index: 2;
    }
    
    /* Rotating Gradient Avatar Ring */
    .profile-avatar-container {
        position: relative;
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }
    .profile-avatar-glow-ring {
        position: absolute;
        top: -3.6px;
        left: -3.6px;
        right: -3.6px;
        bottom: -3.6px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
        animation: spin-gradient 8s linear infinite;
        z-index: 1;
        opacity: 0.85;
    }
    @keyframes spin-gradient {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .profile-avatar-wrapper {
        position: relative;
        width: 90px;
        height: 90px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 2;
        overflow: hidden;
        border: 2.7px solid #0f172a;
        background: #0f172a;
        transition: border-color 0.3s ease;
    }
    .profile-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }
    .profile-avatar-wrapper:hover .profile-avatar-img {
        transform: scale(1.08);
    }
    .avatar-upload-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 27px;
        background: rgba(15, 23, 42, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.25s ease;
        color: #ffffff;
        font-size: 0.8rem;
        transform: translateY(27px);
    }
    .profile-avatar-wrapper:hover .avatar-upload-overlay {
        transform: translateY(0);
    }
    
    .profile-hero-info {
        display: flex;
        flex-direction: column;
        gap: 5.4px;
    }
    .badge-tier {
        align-self: flex-start;
        font-family: 'Outfit', sans-serif;
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        padding: 3.6px 10.8px;
        border-radius: 18px;
        background: rgba(139, 92, 246, 0.15);
        color: #c084fc;
        border: 1px solid rgba(139, 92, 246, 0.3);
        box-shadow: 0 1.8px 9px rgba(139, 92, 246, 0.1);
    }
    .tier-explorer {
        background: rgba(6, 182, 212, 0.15) !important;
        color: #22d3ee !important;
        border: 1px solid rgba(6, 182, 212, 0.3) !important;
    }
    .tier-trial {
        background: rgba(245, 158, 11, 0.15) !important;
        color: var(--accent-orange) !important;
        border: 1px solid rgba(245, 158, 11, 0.3) !important;
    }
    .tier-premium-6m {
        background: rgba(139, 92, 246, 0.15) !important;
        color: #c084fc !important;
        border: 1px solid rgba(139, 92, 246, 0.3) !important;
    }
    .tier-premium-1y {
        background: rgba(236, 72, 153, 0.15) !important;
        color: #f472b6 !important;
        border: 1px solid rgba(236, 72, 153, 0.3) !important;
    }
    .tier-admin {
        background: rgba(239, 68, 68, 0.15) !important;
        color: #f87171 !important;
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
    }

    /* Hero Stats Panel */
    .hero-stats-panel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10.8px;
        z-index: 2;
    }
    .hero-stat-box {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 14.4px;
        padding: 10.8px 18px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 117px;
        box-shadow: 0 3.6px 13.5px rgba(0,0,0,0.15);
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    .hero-stat-box:hover {
        transform: translateY(-1.8px);
        background: rgba(255, 255, 255, 0.04);
    }
    .hero-stat-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-secondary);
        margin-bottom: 2.7px;
    }
    .hero-stat-val {
        color: #ffffff;
        font-weight: 700;
        font-size: 0.88rem;
        font-family: 'Outfit';
    }

    /* Membership Access & Benefits */
    .membership-features-list {
        display: flex;
        flex-direction: column;
        gap: 9px;
        margin-top: 4.5px;
    }
    .feature-item {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 0.82rem;
        color: var(--text-secondary);
        transition: all 0.2s ease;
    }
    .feature-item.unlocked span {
        color: var(--text-primary);
    }
    .feature-item.locked {
        opacity: 0.5;
    }
    .feature-check-icon {
        width: 12.6px;
        height: 12.6px;
        color: var(--accent-green);
        stroke-width: 3;
        flex-shrink: 0;
    }
    .feature-lock-icon {
        width: 12.6px;
        height: 12.6px;
        color: #ef4444;
        stroke-width: 2.5;
        flex-shrink: 0;
    }
    
    /* Audit Info Tip */
    .audit-info-tip {
        background: rgba(6, 182, 212, 0.04);
        border: 1px solid rgba(6, 182, 212, 0.12);
        padding: 10.8px;
        border-radius: 10.8px;
        margin-bottom: 13.5px;
        display: flex;
        gap: 9px;
        align-items: flex-start;
        box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.05);
    }
    html:not([data-theme="dark"]) .audit-info-tip {
        background: rgba(6, 182, 212, 0.06);
        border: 1px solid rgba(6, 182, 212, 0.2);
    }

    /* Main Grid Layout */
    .profile-grid {
        display: grid;
        grid-template-columns: 1.1fr 2fr;
        gap: 22.5px;
        align-items: start;
        transition: grid-template-columns 0.3s ease;
    }
    .profile-grid.sidebar-empty {
        grid-template-columns: 1fr;
    }

    /* Left Cards styling */
    .profile-side-card {
        background: rgba(30, 41, 59, 0.35);
        border: 1px solid var(--border-color);
        border-radius: 18px;
        padding: 21.6px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: var(--shadow-box);
        margin-bottom: 22.5px;
    }
    .profile-side-card-title {
        font-family: 'Outfit', sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 16.2px;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    /* Completeness Tracker */
    .completeness-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 9px;
        font-size: 0.88rem;
    }
    .progress-bar-outer {
        width: 100%;
        height: 9px;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 5.4px;
        overflow: hidden;
        margin-bottom: 16.2px;
    }
    .progress-bar-inner {
        height: 100%;
        background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
        width: 0%;
        border-radius: 5.4px;
        box-shadow: 0 0 9px rgba(139, 92, 246, 0.4);
        transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Completeness Audit Grid & Chips */
    .profile-audit-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 7.2px;
        margin-top: 9px;
    }
    .audit-chip {
        display: inline-flex;
        align-items: center;
        gap: 5.4px;
        padding: 4.5px 9px;
        border-radius: 10.8px;
        font-size: 0.72rem;
        font-weight: 600;
        font-family: 'Outfit', sans-serif;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1.8px 4.5px rgba(0, 0, 0, 0.05);
    }
    .audit-chip.completed {
        background: rgba(16, 185, 129, 0.15);
        color: var(--accent-green);
        border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .audit-chip.pending {
        background: rgba(255, 255, 255, 0.02);
        color: var(--text-secondary);
        border: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0.55;
    }

    /* Profile details chips */
    .detail-chip {
        display: inline-flex;
        align-items: center;
        gap: 5.4px;
        background: rgba(16, 185, 129, 0.1);
        color: var(--accent-green);
        border: 1px solid rgba(16, 185, 129, 0.25);
        padding: 4.5px 10.8px;
        border-radius: 18px;
        font-size: 0.76rem;
        font-weight: 700;
        font-family: 'Outfit', sans-serif;
        box-shadow: 0 1.8px 7.2px rgba(0,0,0,0.15);
        transition: transform 0.2s ease;
    }
    .detail-chip:hover {
        transform: translateY(-1px);
    }
    .chip-phone {
        background: rgba(139, 92, 246, 0.1) !important;
        color: var(--accent-purple) !important;
        border: 1px solid rgba(139, 92, 246, 0.25) !important;
    }
    .chip-gender {
        background: rgba(236, 72, 153, 0.1) !important;
        color: #ec4899 !important;
        border: 1px solid rgba(236, 72, 153, 0.25) !important;
    }
    .chip-dob {
        background: rgba(245, 158, 11, 0.1) !important;
        color: var(--accent-orange) !important;
        border: 1px solid rgba(245, 158, 11, 0.25) !important;
    }
    .chip-edu {
        background: rgba(14, 165, 233, 0.1) !important;
        color: var(--accent-cyan) !important;
        border: 1px solid rgba(14, 165, 233, 0.25) !important;
    }
    .chip-location {
        background: rgba(16, 185, 129, 0.1) !important;
        color: var(--accent-green) !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
    }
    .chip-bio {
        background: rgba(244, 63, 94, 0.1) !important;
        color: #f43f5e !important;
        border: 1px solid rgba(244, 63, 94, 0.25) !important;
    }

    /* Meta details layout */
    .meta-details-list {
        display: flex;
        flex-direction: column;
        gap: 12.6px;
    }
    .meta-detail-row {
        display: flex;
        align-items: center;
        gap: 10.8px;
        font-size: 0.84rem;
        color: var(--text-secondary);
    }
    .meta-detail-icon {
        width: 28.8px;
        height: 28.8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 7.2px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-purple);
        flex-shrink: 0;
    }
    .meta-detail-value {
        color: #ffffff;
        font-weight: 600;
        margin-top: 1.8px;
    }

    /* Right Form Control Panel */
    .profile-form-card {
        background: rgba(15, 23, 42, 0.35);
        border: 1px solid var(--border-color);
        border-radius: 18px;
        padding: 27px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: var(--shadow-box);
    }

    /* SaaS Tab Capsule Navigation */
    .profile-tabs-capsule {
        background: rgba(15, 23, 42, 0.45);
        border: 1px solid var(--border-color);
        border-radius: 14.4px;
        padding: 5.4px;
        display: flex;
        gap: 5.4px;
        margin-bottom: 22.5px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: var(--shadow-box);
    }
    .profile-tab-btn {
        flex: 1;
        background: transparent;
        border: none;
        color: var(--text-secondary);
        font-family: 'Outfit', sans-serif;
        font-size: 0.88rem;
        font-weight: 700;
        padding: 10.8px 18px;
        border-radius: 10.8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7.2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .profile-tab-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.03);
    }
    .profile-tab-btn.active-tab {
        background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
        color: #ffffff;
        box-shadow: 0 3.6px 13.5px rgba(139, 92, 246, 0.3);
    }

    /* Tab Panes */
    .profile-tab-pane {
        display: none;
        opacity: 0;
        transform: translateY(7.2px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .profile-tab-pane.active-pane {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    /* Section Titles */
    .form-section-title {
        font-family: 'Outfit', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: #ffffff;
        margin: 4.5px 0 18px 0;
        padding-bottom: 7.2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        gap: 9px;
    }

    /* Input Styling Redesign */
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        margin-bottom: 4.5px;
    }
    .input-group {
        margin-bottom: 18px;
    }
    .input-label {
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--text-primary);
        margin-bottom: 7.2px;
        display: block;
    }
    .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }
    .input-field {
        width: 100%;
        height: 45px;
        background: rgba(15, 23, 42, 0.45);
        border: 1px solid var(--border-color);
        border-radius: 10.8px;
        padding: 10.8px 14.4px 10.8px 43.2px;
        color: #ffffff;
        font-size: 0.92rem;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
    }
    .input-field:focus {
        border-color: var(--accent-purple);
        box-shadow: 0 0 13.5px rgba(139, 92, 246, 0.25);
        background: rgba(15, 23, 42, 0.65);
    }
    .input-field::placeholder {
        color: rgba(255,255,255,0.3);
    }
    .input-icon {
        position: absolute;
        left: 14.4px;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        transition: color 0.2s ease;
    }
    .input-field:focus + .input-icon,
    .input-wrapper:focus-within .input-icon {
        color: var(--accent-purple);
    }

    .password-toggle-btn {
        transition: color 0.2s ease, transform 0.2s ease;
    }
    .password-toggle-btn:hover {
        color: var(--accent-cyan) !important;
        transform: translateY(-50%) scale(1.15) !important;
    }
    .password-toggle-btn:active {
        transform: translateY(-50%) scale(0.9) !important;
    }

    textarea.input-field {
        height: auto;
        padding-top: 12.6px;
        padding-left: 43.2px;
    }

    /* Select specific styling overrides */
    select.input-field {
        appearance: none;
        -webkit-appearance: none;
        padding-right: 36px;
        cursor: pointer;
    }
    .select-arrow {
        position: absolute;
        right: 14.4px;
        color: var(--text-secondary);
        pointer-events: none;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
    }

    /* Tags input & search suggestions box */
    .tags-input-container {
        display: flex;
        flex-wrap: wrap;
        gap: 7.2px;
        padding: 9px 14.4px;
        background: rgba(15, 23, 42, 0.45);
        border: 1px solid var(--border-color);
        border-radius: 10.8px;
        min-height: 48.6px;
        align-items: center;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .tags-input-container:focus-within {
        border-color: var(--accent-purple);
        box-shadow: 0 0 13.5px rgba(139, 92, 246, 0.25);
        background: rgba(15, 23, 42, 0.65);
    }
    .tag-pill {
        display: flex;
        align-items: center;
        gap: 7.2px;
        background: rgba(139, 92, 246, 0.15);
        color: #c084fc;
        border: 1px solid rgba(139, 92, 246, 0.25);
        padding: 3.6px 9px;
        border-radius: 7.2px;
        font-size: 0.8rem;
        font-weight: 600;
        animation: alert-slide-in 0.25s ease;
    }
    .tag-remove-btn {
        background: none;
        border: none;
        color: #c084fc;
        cursor: pointer;
        padding: 0;
        font-size: 1.1rem;
        line-height: 1;
        display: flex;
        align-items: center;
        transition: color 0.2s ease;
    }
    .tag-remove-btn:hover {
        color: #ef4444;
    }
    .tag-search-field {
        background: transparent;
        border: none;
        outline: none;
        color: #ffffff;
        font-size: 0.92rem;
        flex: 1;
        min-width: 135px;
        padding: 3.6px 0;
    }

    .suggestions-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 198px;
        overflow-y: auto;
        background: #151c2c;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10.8px;
        z-index: 1000;
        box-shadow: 0 9px 27px rgba(0,0,0,0.6);
        display: none;
        margin-top: 5.4px;
        padding: 3.6px;
    }
    .suggestion-item {
        padding: 9px 12.6px;
        font-size: 0.85rem;
        color: rgba(255,255,255,0.8);
        cursor: pointer;
        border-radius: 7.2px;
        transition: all 0.2s ease;
    }
    .suggestion-item:hover {
        background: rgba(139, 92, 246, 0.18);
        color: #ffffff;
        padding-left: 16.2px;
    }

    /* Guest Warning Card Styling */
    .guest-warning-card {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
        border: 1px solid rgba(239, 68, 68, 0.25);
        border-radius: 18px;
        padding: 21.6px;
        margin-top: 18px;
        margin-bottom: 22.5px;
        display: flex;
        gap: 14.4px;
        align-items: flex-start;
        box-shadow: 0 7.2px 27px rgba(0,0,0,0.2);
    }

    /* Light Theme Styling Overrides */
    html:not([data-theme="dark"]) .profile-hero-dashboard {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(217, 70, 239, 0.08) 50%, rgba(6, 182, 212, 0.05) 100%);
        border: 1px solid rgba(139, 92, 246, 0.15);
        box-shadow: 0 9px 27px -9px rgba(139, 92, 246, 0.15), var(--shadow-box);
    }
    html:not([data-theme="dark"]) .profile-avatar-wrapper {
        border-color: #ffffff;
        background: #ffffff;
    }
    html:not([data-theme="dark"]) .profile-hero-info h2 {
        color: #1e1b4b !important;
    }
    html:not([data-theme="dark"]) .hero-stat-box {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(139, 92, 246, 0.1);
        box-shadow: 0 3.6px 13.5px rgba(0,0,0,0.05);
    }
    html:not([data-theme="dark"]) .hero-stat-box:hover {
        background: #ffffff;
    }
    html:not([data-theme="dark"]) .hero-stat-val {
        color: #1e1b4b;
    }
    html:not([data-theme="dark"]) .profile-side-card {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(139, 92, 246, 0.1);
        box-shadow: var(--shadow-box);
    }
    html:not([data-theme="dark"]) .profile-side-card-title {
        color: #1e1b4b;
    }
    html:not([data-theme="dark"]) .audit-chip.completed {
        background: rgba(16, 185, 129, 0.1);
        color: #047857;
        border: 1px solid rgba(16, 185, 129, 0.25);
    }
    html:not([data-theme="dark"]) .audit-chip.pending {
        background: rgba(0, 0, 0, 0.02);
        color: #64748b;
        border: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0.7;
    }
    html:not([data-theme="dark"]) .detail-chip {
        box-shadow: 0 1.8px 7.2px rgba(0,0,0,0.05);
    }
    html:not([data-theme="dark"]) .profile-form-card {
        background: rgba(255, 255, 255, 0.65);
        border: 1px solid rgba(139, 92, 246, 0.1);
        box-shadow: var(--shadow-box);
    }
    html:not([data-theme="dark"]) .profile-tabs-capsule {
        background: rgba(255, 255, 255, 0.65);
        border: 1px solid rgba(139, 92, 246, 0.15);
    }
    html:not([data-theme="dark"]) .profile-tab-btn:hover {
        color: var(--accent-purple);
        background: rgba(139, 92, 246, 0.05);
    }
    html:not([data-theme="dark"]) .profile-tab-btn.active-tab {
        background: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
        color: #ffffff;
    }
    html:not([data-theme="dark"]) .form-section-title {
        color: #1e1b4b;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }
    html:not([data-theme="dark"]) .input-field {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid #cbd5e1;
        color: #0f172a;
    }
    html:not([data-theme="dark"]) .input-field:focus {
        background: #ffffff;
        border-color: var(--accent-purple);
        box-shadow: 0 0 13.5px rgba(139, 92, 246, 0.15);
    }
    html:not([data-theme="dark"]) .input-field::placeholder {
        color: #94a3b8;
    }
    html:not([data-theme="dark"]) select.input-field {
        color: #0f172a;
    }
    html:not([data-theme="dark"]) select.input-field option {
        background: #ffffff;
        color: #0f172a;
    }
    html:not([data-theme="dark"]) .tags-input-container {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid #cbd5e1;
    }
    html:not([data-theme="dark"]) .tags-input-container:focus-within {
        background: #ffffff;
        border-color: var(--accent-purple);
        box-shadow: 0 0 13.5px rgba(139, 92, 246, 0.15);
    }
    html:not([data-theme="dark"]) .tag-search-field {
        color: #0f172a;
    }
    html:not([data-theme="dark"]) .suggestions-dropdown {
        background: #ffffff;
        border: 1px solid #cbd5e1;
        box-shadow: 0 9px 22.5px rgba(0,0,0,0.1);
    }
    html:not([data-theme="dark"]) .suggestion-item {
        color: #334155;
    }
    html:not([data-theme="dark"]) .suggestion-item:hover {
        background: rgba(139, 92, 246, 0.08);
        color: var(--accent-purple);
    }
    html:not([data-theme="dark"]) .guest-warning-card {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(245, 158, 11, 0.03) 100%);
        border: 1px solid rgba(239, 68, 68, 0.15);
    }
    html:not([data-theme="dark"]) .guest-warning-card h4 {
        color: #dc2626 !important;
    }
    html:not([data-theme="dark"]) .guest-warning-card p {
        color: #475569 !important;
    }

    @media (max-width: 992px) {
        .profile-hero-dashboard {
            flex-direction: column;
            text-align: center;
            padding: 27px 18px;
        }
        .profile-hero-left {
            flex-direction: column;
            text-align: center;
        }
        .profile-hero-info {
            align-items: center;
        }
        .hero-stats-panel {
            grid-template-columns: repeat(2, 1fr) !important;
            width: 100%;
            gap: 10.8px;
        }
        .hero-stat-box {
            min-width: 0;
        }
        .profile-grid {
            grid-template-columns: 1fr;
        }
        .profile-tabs-capsule {
            flex-direction: column;
        }
        .profile-form-card {
            padding: 18px;
        }
        .form-row {
            grid-template-columns: 1fr;
            gap: 0px;
        }
    }

    /* Custom Calendar Popover */
    .custom-calendar-popover {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid var(--border-color);
        border-radius: 14.4px;
        padding: 14.4px;
        box-shadow: 0 13.5px 36px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
        display: none;
        margin-top: 5.4px;
        width: 270px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        animation: slide-up-fade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slide-up-fade {
        from { opacity: 0; transform: translateY(7.2px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    html:not([data-theme="dark"]) .custom-calendar-popover {
        background: #ffffff;
        border: 1px solid rgba(139, 92, 246, 0.15);
        box-shadow: 0 13.5px 36px rgba(139, 92, 246, 0.12), 0 4.5px 13.5px rgba(0,0,0,0.05);
    }

    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10.8px;
        gap: 7.2px;
    }
    .calendar-nav-btn {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.05);
        color: var(--text-primary);
        border-radius: 7.2px;
        width: 25.2px;
        height: 25.2px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        transition: all 0.2s ease;
    }
    html:not([data-theme="dark"]) .calendar-nav-btn {
        background: rgba(0,0,0,0.02);
        border: 1px solid rgba(0,0,0,0.05);
    }
    .calendar-nav-btn:hover {
        background: var(--accent-purple);
        color: white;
        border-color: var(--accent-purple);
    }
    
    .calendar-selectors {
        display: flex;
        gap: 5.4px;
        flex: 1;
    }
    .calendar-select {
        flex: 1;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 7.2px;
        color: white;
        font-family: 'Outfit';
        font-size: 0.78rem;
        font-weight: 700;
        padding: 3.6px 5.4px;
        outline: none;
        cursor: pointer;
    }
    html:not([data-theme="dark"]) .calendar-select {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #1e1b4b;
    }
    
    .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--text-secondary);
        margin-bottom: 7.2px;
        text-transform: uppercase;
    }
    .calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 3.6px;
    }
    .calendar-day-cell {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--text-primary);
        border-radius: 7.2px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .calendar-day-cell:hover:not(.empty) {
        background: rgba(139, 92, 246, 0.15);
        color: #c084fc;
    }
    .calendar-day-cell.selected {
        background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%) !important;
        color: white !important;
        box-shadow: 0 1.8px 7.2px rgba(139, 92, 246, 0.4);
    }
    .calendar-day-cell.empty {
        pointer-events: none;
        opacity: 0;
    }
    
    @media (max-width: 768px) {
        .public-profile-details-grid {
            grid-template-columns: 1fr !important;
            gap: 20px !important;
        }
    }

/* Profile page professional redesign layer */
.guest-warning-card,
.profile-hero-dashboard,
.profile-guidance-card,
.profile-side-card,
.profile-form-card {
    border-radius: 8px !important;
}

.guest-warning-card {
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 20px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.guest-warning-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.guest-warning-icon svg {
    width: 20px;
    height: 20px;
}

.guest-warning-card h4 {
    margin: 0 0 6px;
    color: #f87171;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.guest-warning-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.guest-register-btn {
    width: auto;
    margin-top: 14px;
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
}

.profile-hero-dashboard {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(480px, 1.45fr);
    gap: 24px;
    align-items: stretch;
    margin: 0 0 18px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.08) 48%, rgba(245, 158, 11, 0.08)),
        var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.14);
    overflow: hidden;
}

.profile-hero-dashboard::before {
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.45;
}

.profile-hero-left,
.hero-stats-panel {
    position: relative;
    z-index: 2;
}

.profile-hero-left {
    align-items: flex-start;
    gap: 18px;
    padding: 4px 0;
}

.profile-avatar-container,
.profile-avatar-wrapper {
    width: 96px;
    height: 96px;
}

.profile-avatar-glow-ring {
    inset: -4px;
    background: conic-gradient(from 120deg, #2563eb, #10b981, #f59e0b, #7c3aed, #2563eb);
    opacity: 0.9;
}

.profile-avatar-wrapper {
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: #0f172a;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
}

.avatar-upload-overlay {
    height: 32px;
    transform: translateY(32px);
    background: rgba(15, 23, 42, 0.88);
}

.profile-hero-info {
    min-width: 0;
    gap: 7px;
}

.profile-display-name {
    margin: 2px 0 0;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    line-height: 1.08;
    font-weight: 900;
}

.profile-display-email {
    margin: 0;
    max-width: 360px;
    color: rgba(226, 232, 240, 0.84);
    font-size: 0.9rem;
    line-height: 1.35;
    word-break: break-word;
}

.profile-hero-summary {
    margin: 6px 0 0;
    max-width: 420px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.92rem;
    line-height: 1.55;
}

.badge-tier {
    border-radius: 999px;
    padding: 5px 11px;
    letter-spacing: 0.05em;
}

.hero-stats-panel {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(128px, 1fr));
    gap: 12px;
}

.hero-stat-box {
    min-width: 0;
    min-height: 84px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 13px;
    text-align: left;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: none;
}

.hero-stat-label {
    margin: 0;
    color: rgba(203, 213, 225, 0.78);
    font-size: 0.68rem;
    line-height: 1.25;
}

.hero-stat-val {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.readiness-index-badge {
    border-radius: 999px !important;
    white-space: normal;
}

.profile-guidance-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.profile-guidance-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 126px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-box);
}

.guidance-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.guidance-icon svg {
    width: 19px;
    height: 19px;
}

.guidance-blue {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
}

.guidance-green {
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
}

.guidance-purple {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.12);
}

.guidance-amber {
    color: #d97706;
    background: rgba(245, 158, 11, 0.14);
}

.profile-guidance-card strong {
    display: block;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
}

.profile-guidance-card p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.profile-grid {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 20px;
}

.profile-sidebar-wrapper {
    min-width: 0;
}

@media (min-width: 1180px) {
    .profile-sidebar-wrapper {
        position: sticky;
        top: 94px;
    }
}

.profile-side-card,
.profile-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.10);
}

.profile-side-card {
    padding: 20px;
    margin-bottom: 16px;
}

.profile-side-card-title {
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 0;
}

.profile-loading-state {
    padding: 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.08);
    border: 1px dashed rgba(148, 163, 184, 0.25);
    font-size: 0.84rem;
}

.membership-features-list {
    gap: 10px;
}

.feature-item {
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.84rem;
    line-height: 1.35;
}

.audit-info-tip {
    border-radius: 8px;
    padding: 12px;
    background: rgba(14, 165, 233, 0.08);
}

.completeness-header {
    margin-bottom: 10px;
}

.progress-bar-outer {
    height: 10px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
}

.progress-bar-inner {
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #10b981, #f59e0b);
}

.profile-audit-grid {
    gap: 8px;
}

.audit-chip,
.detail-chip,
.tag-pill {
    border-radius: 999px;
}

.audit-chip {
    padding: 6px 10px;
    font-size: 0.74rem;
}

.detail-chip {
    padding: 7px 10px;
    font-size: 0.78rem;
}

.profile-form-card {
    padding: 26px !important;
}

.profile-tabs-capsule {
    gap: 8px;
    padding: 6px;
    margin-bottom: 24px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    box-shadow: none;
}

.profile-tab-btn {
    min-height: 46px;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.profile-tab-btn.active-tab {
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.form-section-title {
    margin: 0 0 18px;
    padding: 0 0 12px;
    color: var(--text-primary);
    font-size: 1.08rem;
}

.form-row {
    gap: 16px;
    margin-bottom: 0;
}

.input-group {
    margin-bottom: 18px;
    min-width: 0;
}

.input-label {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.86rem;
}

.input-wrapper {
    min-width: 0;
}

.input-field {
    min-height: 48px;
    height: auto;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.42);
    border-color: rgba(148, 163, 184, 0.22);
    font-size: 0.93rem;
    line-height: 1.4;
}

.input-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.input-icon,
.select-arrow {
    color: var(--text-secondary);
}

.tags-input-container {
    min-height: 52px;
    border-radius: 8px;
    padding: 10px 12px;
}

.tags-input-container:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.tag-search-field {
    min-width: 180px;
    font-size: 0.92rem;
}

.suggestions-dropdown,
.custom-calendar-popover {
    border-radius: 8px;
}

#profile-save-container {
    margin-top: 22px !important;
    padding-top: 18px !important;
    border-color: var(--border-color) !important;
}

#profile-save-container .btn {
    min-height: 48px;
    border-radius: 8px;
    padding: 13px 22px !important;
    background: linear-gradient(135deg, #2563eb, #0f766e) !important;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

#public-profile-view-container {
    min-width: 0;
}

html:not([data-theme="dark"]) .guest-warning-card {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(255, 251, 235, 0.9));
    border-color: rgba(239, 68, 68, 0.18);
}

html:not([data-theme="dark"]) .profile-hero-dashboard {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.06) 48%, rgba(245, 158, 11, 0.08)),
        #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

html:not([data-theme="dark"]) .profile-hero-dashboard::before {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
}

html:not([data-theme="dark"]) .profile-display-name {
    color: #0f172a;
}

html:not([data-theme="dark"]) .profile-display-email,
html:not([data-theme="dark"]) .profile-hero-summary {
    color: #475569;
}

html:not([data-theme="dark"]) .hero-stat-box {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
}

html:not([data-theme="dark"]) .hero-stat-label {
    color: #64748b;
}

html:not([data-theme="dark"]) .hero-stat-val {
    color: #0f172a;
}

html:not([data-theme="dark"]) .profile-guidance-card,
html:not([data-theme="dark"]) .profile-side-card,
html:not([data-theme="dark"]) .profile-form-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

html:not([data-theme="dark"]) .profile-tabs-capsule {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

html:not([data-theme="dark"]) .profile-tab-btn:not(.active-tab) {
    color: #475569;
}

html:not([data-theme="dark"]) .profile-tab-btn:hover {
    color: #2563eb;
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.16);
}

html:not([data-theme="dark"]) .form-section-title {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
}

html:not([data-theme="dark"]) .input-field,
html:not([data-theme="dark"]) .tags-input-container {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

html:not([data-theme="dark"]) .input-field:focus,
html:not([data-theme="dark"]) .tags-input-container:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

html:not([data-theme="dark"]) .profile-loading-state {
    background: #f8fafc;
    border-color: #cbd5e1;
}

@media (max-width: 1280px) {
    .profile-hero-dashboard {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-hero-left {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .profile-hero-info {
        align-items: flex-start;
    }

    .hero-stats-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .profile-guidance-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-tabs-capsule {
        flex-direction: row;
    }
}

@media (max-width: 1080px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar-wrapper {
        position: static;
    }
}

@media (max-width: 760px) {
    .profile-hero-dashboard {
        padding: 20px;
    }

    .profile-hero-left {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .profile-hero-info {
        align-items: flex-start;
    }

    .profile-display-name {
        font-size: 1.35rem;
    }

    .hero-stats-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .profile-guidance-strip {
        grid-template-columns: 1fr;
    }

    .profile-guidance-card {
        min-height: 0;
    }

    .profile-form-card {
        padding: 18px !important;
    }

    .profile-tabs-capsule {
        flex-direction: column;
    }

    .profile-tab-btn {
        justify-content: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row > .input-group[style*="grid-column"] {
        grid-column: auto !important;
    }

    #profile-save-container {
        justify-content: stretch !important;
    }

    #profile-save-container .btn {
        width: 100% !important;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .hero-stats-panel {
        grid-template-columns: 1fr !important;
    }

    .profile-hero-dashboard,
    .profile-guidance-card,
    .profile-side-card,
    .profile-form-card {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .profile-display-email,
    .profile-hero-summary {
        max-width: 100%;
    }

    .tag-search-field {
        min-width: 120px;
    }

    .custom-calendar-popover {
        width: min(280px, calc(100vw - 48px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-avatar-glow-ring,
    .profile-tab-pane,
    .hero-stat-box,
    .detail-chip,
    .avatar-upload-overlay {
        animation: none !important;
        transition: none !important;
    }

    .hero-stat-box:hover,
    .detail-chip:hover,
    .profile-avatar-wrapper:hover .profile-avatar-img {
        transform: none !important;
    }
}
