/* ==========================================================================
   11. СТОРІНКА ПРОФІЛЮ АДЕПТА (Adept Profile View)
   ========================================================================== */

.gnozis-profile-viewport {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-top-bar {
    display: flex;
    align-items: center;
}

.profile-hero-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.profile-hero-banner {
    height: 280px;
    background: linear-gradient(135deg, rgba(16, 26, 38, 0.95) 0%, rgba(0, 16, 32, 0.98) 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.banner-nebula-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(26, 43, 60, 0.35) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(120, 152, 184, 0.25) 0%, transparent 50%);
    filter: blur(25px);
}

.profile-hero-content {
    padding: 0 32px 28px;
    position: relative;
    z-index: 2;
}

.profile-avatar-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: -50px;
    margin-bottom: 22px;
}

.profile-avatar-wrap {
    position: relative;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #101820;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.avatar-aura-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.7), rgba(120, 152, 184, 0.7));
    filter: blur(8px);
    z-index: 1;
}

.profile-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 58px;
    padding-bottom: 0;
}

.identity-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.identity-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-display-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #E0E8F0;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}

.profile-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-header-actions-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.profile-meta-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 500;
    line-height: 1.2;
}

.status-pill.status-online {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.status-pill.status-offline {
    color: #94a3b8 !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.status-pill.status-astral {
    background: rgba(120, 152, 184, 0.12);
    border: 1px solid rgba(120, 152, 184, 0.3);
    color: var(--accent-cyan);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--gnozis-radius-full);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gnozis-border-subtle);
}

.profile-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    transition: var(--gnozis-transition);
}

.profile-stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-stat-box .stat-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.01em;
}

.profile-stat-box .stat-lbl {
    font-size: 0.75rem;
    color: var(--gnozis-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.profile-main-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Двоколонкова сітка профілю (Контент + Правий сайдбар віджетів) */
.profile-2col-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    width: 100%;
}

.profile-main-col {
    min-width: 0;
    width: 100%;
}

.profile-side-col {
    width: 100%;
}

.profile-sticky-sidebar {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-tabs-nav {
    display: flex;
    background: rgba(16, 24, 32, 0.6);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    padding: 5px;
    gap: 6px;
}

.profile-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.profile-tab-btn .tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex-shrink: 0;
}

.profile-tab-btn .tab-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-left: 3px;
}

.profile-tab-btn:hover {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Profile tab active — subtle cobalt */
.profile-tab-btn.active {
    background: rgba(96, 120, 144, 0.14);
    border-color: rgba(96, 120, 144, 0.32);
    color: var(--gnozis-text-primary);
    font-weight: 600;
    box-shadow: none;
}

.profile-tab-pane {
    display: block;
}

.profile-wall-composer {
    margin-bottom: 22px !important;
}

.profile-orders-card,
.profile-keys-card {
    padding: 26px;
}

.gnozis-empty-card {
    padding: 36px 24px;
    text-align: center;
    color: var(--gnozis-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   Вкладка Друзів у Профілі (Profile Friends Tab)
   ========================================================================== */
.profile-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.friend-mini-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(16, 24, 36, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.friend-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 16px rgba(96, 165, 250, 0.08);
}

.friend-mini-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.friend-mini-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
}

.friend-mini-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease;
}

.friend-mini-card:hover .friend-mini-avatar {
    border-color: rgba(96, 165, 250, 0.5);
}

.friend-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: #10B981;
    border: 2px solid #0B132B;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.friend-mini-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.friend-mini-name {
    color: var(--gnozis-text-primary, #F8FAFC);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}

.friend-mini-name:hover {
    color: #60A5FA;
}

.friend-mini-rank {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.friend-mini-meta {
    font-size: 0.78rem;
    color: var(--gnozis-text-muted, #94A3B8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-mini-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.btn-mini-view {
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gnozis-text-primary, #F8FAFC);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-mini-view:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.btn-mini-msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 8px;
    color: #93C5FD;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mini-msg:hover {
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(96, 165, 250, 0.45);
    transform: scale(1.05);
}

.btn-mini-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--gnozis-text-primary, #F8FAFC);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mini-action-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-mini-action-icon.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10B981;
}

.btn-mini-action-icon.is-pending {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #F59E0B;
}

.profile-stat-clickable {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-stat-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(16, 24, 36, 0.9);
}

.friend-empty-card {
    padding: 42px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(16, 24, 36, 0.45);
}

.friend-empty-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.friend-empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--gnozis-text-primary, #F8FAFC);
}

.friend-empty-text {
    max-width: 420px;
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: var(--gnozis-text-muted, #94A3B8);
    line-height: 1.5;
}

.friend-empty-btn {
    display: inline-block;
    text-decoration: none;
    padding: 9px 20px;
    font-size: 0.88rem;
    border-radius: 10px;
}

/* ==========================================================================
   ВКЛАДКА ЗАМОВЛЕНЬ У ПРОФІЛІ (Profile Orders Tab)
   ========================================================================== */

.profile-orders-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.profile-orders-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(16, 24, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(14px);
}

.orders-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.orders-header-icon-wrap {
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.orders-header-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orders-header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-header-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gnozis-text-primary, #f8fafc);
}

.orders-count-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.orders-header-sub {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gnozis-text-muted, #94a3b8);
}

.profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.profile-order-card {
    background: rgba(16, 24, 36, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    backdrop-filter: blur(12px) !important;
    transition: border-color 0.2s ease, transform 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.profile-order-card:hover {
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.profile-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.order-main-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.order-number-badge:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.order-number-badge .sigil-bullet {
    color: #38bdf8;
    font-size: 0.85rem;
}

.order-date-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status-badge.status-completed {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.order-status-badge.status-processing {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.order-status-badge.status-on-hold,
.order-status-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.order-status-badge.status-cancelled,
.order-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.order-status-badge.status-refunded {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.profile-order-card-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-order-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.order-item-media {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-thumb {
    width: 100% !important;
    height: 100% !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: cover !important;
    display: block !important;
}

.order-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-item-title-link,
.order-item-title {
    color: var(--gnozis-text-primary, #f1f5f9);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.order-item-title-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.order-item-qty-tag {
    color: var(--gnozis-text-muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 500;
}

.order-item-subtotal {
    font-weight: 600;
    color: var(--gnozis-text-primary, #f8fafc);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-left: auto;
}

.profile-order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.order-footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-payment-method {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.payment-title-tag {
    color: #e2e8f0;
    font-weight: 500;
}

.order-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.order-total-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.total-caption {
    font-size: 0.82rem;
    color: #94a3b8;
}

.total-amount-glow {
    font-size: 1.15rem;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.order-details-btn {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.profile-orders-empty-card {
    text-align: center;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
}

.empty-orders-sigil {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-orders-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #f8fafc;
}

/* ==========================================================================
   12. МОБІЛЬНА АДАПТАЦІЯ ПРОФІЛЮ (Profile Mobile Responsive)
   ========================================================================== */
@media (max-width: 768px) {
    .gnozis-profile-viewport {
        padding: 6px 0 80px !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .profile-hero-card {
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 8px !important;
    }

    .profile-hero-banner {
        height: 160px !important;
        width: 100% !important;
    }

    .btn-change-hero-banner {
        top: 10px !important;
        right: 10px !important;
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .profile-hero-content {
        padding: 0 14px 20px !important;
        box-sizing: border-box !important;
    }

    .profile-avatar-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
        margin-top: -46px !important;
        margin-bottom: 12px !important;
    }

    .profile-avatar-wrap {
        width: 86px !important;
        height: 86px !important;
        margin: 0 auto !important;
    }

    .profile-name-col {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .profile-name {
        font-size: 1.35rem !important;
        text-align: center !important;
        margin: 4px 0 !important;
    }

    .profile-badges-row {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .profile-meta-tags-grid {
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        margin: 10px 0 !important;
    }

    .profile-actions-bar {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px !important;
        box-sizing: border-box !important;
    }

    .profile-actions-bar .btn-gradient-primary,
    .profile-actions-bar .btn-outline-glass,
    .profile-actions-bar button,
    .profile-actions-bar a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
    }

    .profile-pinned-track-card,
    .profile-pinned-audio {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 14px !important;
    }

    .profile-tabs-nav {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
    }

    .profile-tabs-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .profile-tab-btn {
        flex: 0 0 auto !important;
        min-width: auto !important;
        white-space: nowrap !important;
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 7px !important;
    }

    .profile-2col-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .profile-main-col,
    .profile-side-col {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Налаштування профілю на мобільному */
    .profile-settings-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }

    .settings-subtabs-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        margin-bottom: 18px !important;
    }

    .settings-subtabs-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .btn-settings-subtab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 7px 14px !important;
        font-size: 0.82rem !important;
    }

    .settings-form-grid .form-grid-2col,
    .settings-subpane .form-grid-2col,
    .settings-subpane .form-row-2col,
    .settings-notifs-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .notif-settings-col {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   СТИЛІ НАЛАШТУВАНЬ ПРОФІЛЮ (Profile Settings Card & Subtabs)
   ========================================================================== */
.profile-settings-card {
    padding: 24px 28px;
}

.settings-notifs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.notif-settings-col {
    padding: 16px;
    border-radius: 12px;
}

.notif-col-site {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-col-email {
    background: rgba(56, 189, 248, 0.02);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.notif-col-title {
    margin: 0 0 14px 0;
    color: #38bdf8;
    font-size: 0.94rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #cbd5e1;
    cursor: pointer;
    line-height: 1.45;
}

.notif-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.notif-item-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.notif-sound-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Чорний список (Blacklist rows)
   ========================================================================== */
.blacklist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: var(--gnozis-transition);
}

.blacklist-row:hover {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(15, 23, 42, 0.8);
}

.blacklist-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.blacklist-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.blacklist-user-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.btn-unblock-from-settings {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.78rem !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-unblock-from-settings:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3) !important;
}

/* ==========================================================================
   11. СТОРІНКА ПРОФІЛЮ АДЕПТА (Adept Profile View)
   ========================================================================== */

.gnozis-profile-viewport {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-top-bar {
    display: flex;
    align-items: center;
}

.profile-hero-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.profile-hero-banner {
    height: 280px;
    background: linear-gradient(135deg, rgba(16, 26, 38, 0.95) 0%, rgba(0, 16, 32, 0.98) 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.banner-nebula-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(26, 43, 60, 0.35) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(120, 152, 184, 0.25) 0%, transparent 50%);
    filter: blur(25px);
}

.profile-hero-content {
    padding: 0 32px 28px;
    position: relative;
    z-index: 2;
}

.profile-avatar-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: -50px;
    margin-bottom: 22px;
}

.profile-avatar-wrap {
    position: relative;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #101820;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.avatar-aura-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.7), rgba(120, 152, 184, 0.7));
    filter: blur(8px);
    z-index: 1;
}

.profile-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 58px;
    padding-bottom: 0;
}

.identity-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.identity-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-display-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #E0E8F0;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}

.profile-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-header-actions-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.profile-meta-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 500;
    line-height: 1.2;
}

.status-pill.status-online {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.status-pill.status-offline {
    color: #94a3b8 !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.status-pill.status-astral {
    background: rgba(120, 152, 184, 0.12);
    border: 1px solid rgba(120, 152, 184, 0.3);
    color: var(--accent-cyan);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--gnozis-radius-full);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gnozis-border-subtle);
}

.profile-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    transition: var(--gnozis-transition);
}

.profile-stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-stat-box .stat-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.01em;
}

.profile-stat-box .stat-lbl {
    font-size: 0.75rem;
    color: var(--gnozis-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.profile-main-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-tabs-nav {
    display: flex;
    background: rgba(16, 24, 32, 0.6);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    padding: 5px;
    gap: 6px;
}

.profile-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.profile-tab-btn:hover {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Profile tab active — subtle cobalt */
.profile-tab-btn.active {
    background: rgba(96, 120, 144, 0.14);
    border-color: rgba(96, 120, 144, 0.32);
    color: var(--gnozis-text-primary);
    font-weight: 600;
    box-shadow: none;
}

.profile-tab-pane {
    display: block;
}

.profile-wall-composer {
    margin-bottom: 22px !important;
}

.profile-orders-card,
.profile-keys-card {
    padding: 26px;
}

.gnozis-empty-card {
    padding: 36px 24px;
    text-align: center;
    color: var(--gnozis-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   Вкладка Друзів у Профілі (Profile Friends Tab)
   ========================================================================== */
.profile-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.friend-mini-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(16, 24, 36, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.friend-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 16px rgba(96, 165, 250, 0.08);
}

.friend-mini-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.friend-mini-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
}

.friend-mini-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease;
}

.friend-mini-card:hover .friend-mini-avatar {
    border-color: rgba(96, 165, 250, 0.5);
}

.friend-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: #10B981;
    border: 2px solid #0B132B;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.friend-mini-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.friend-mini-name {
    color: var(--gnozis-text-primary, #F8FAFC);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}

.friend-mini-name:hover {
    color: #60A5FA;
}

.friend-mini-rank {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.friend-mini-meta {
    font-size: 0.78rem;
    color: var(--gnozis-text-muted, #94A3B8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-mini-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.btn-mini-view {
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gnozis-text-primary, #F8FAFC);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-mini-view:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.btn-mini-msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 8px;
    color: #93C5FD;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mini-msg:hover {
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(96, 165, 250, 0.45);
    transform: scale(1.05);
}

.btn-mini-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--gnozis-text-primary, #F8FAFC);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mini-action-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-mini-action-icon.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10B981;
}

.btn-mini-action-icon.is-pending {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #F59E0B;
}

.profile-stat-clickable {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-stat-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(16, 24, 36, 0.9);
}

.friend-empty-card {
    padding: 42px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(16, 24, 36, 0.45);
}

.friend-empty-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.friend-empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--gnozis-text-primary, #F8FAFC);
}

.friend-empty-text {
    max-width: 420px;
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: var(--gnozis-text-muted, #94A3B8);
    line-height: 1.5;
}

.friend-empty-btn {
    display: inline-block;
    text-decoration: none;
    padding: 9px 20px;
    font-size: 0.88rem;
    border-radius: 10px;
}

/* ==========================================================================
   27. Шапка профілю: Мета-дані, Про себе, Інтереси
   ========================================================================== */
.profile-meta-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.profile-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.profile-meta-chip .meta-icon {
    font-size: 0.9rem;
}

.profile-meta-link {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-meta-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.profile-bio-box {
    margin-top: 10px;
    max-width: 680px;
    position: relative;
}

.profile-bio-text {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-bio-text.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-bio-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    outline: none;
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 0;
    margin-top: 5px;
    transition: color 0.15s ease, opacity 0.15s ease;
    user-select: none;
}

.profile-bio-toggle-btn:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.profile-bio-toggle-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-bio-toggle-btn[aria-expanded="true"] .btn-icon {
    transform: rotate(180deg);
}

.profile-interests-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profile-interests-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-interest-tag {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 500;
}

.btn-avatar-camera-overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0284c7;
    border: 2px solid #080e18;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 5;
}

.btn-avatar-camera-overlay:hover {
    transform: scale(1.1);
    background: #38bdf8;
}

/* ==========================================================================
   28. Модальне вікно редагування профілю
   ========================================================================== */
.edit-profile-modal-dialog {
    max-width: 580px;
    width: 90%;
    background: #0b1326;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15);
    overflow: hidden;
}

.avatar-edit-preview-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.avatar-edit-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #38bdf8;
    flex-shrink: 0;
}

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

.avatar-edit-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-upload-avatar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.btn-upload-avatar-trigger:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.form-input-tip {
    font-size: 0.72rem;
    color: #64748b;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 580px) {
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3. ВКЛАДКА "МОЇ ЗАМОВЛЕННЯ" У ПРОФІЛІ (PROFILE ORDERS TAB)
   ========================================================================== */

.profile-orders-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-orders-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: rgba(14, 21, 32, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.orders-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.orders-header-text-wrap {
    flex: 1;
    min-width: 0;
}

.orders-header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.orders-header-icon-wrap {
    font-size: 26px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.orders-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.01em;
}

.orders-header-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.orders-count-badge {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
}

/* Список карток замовлень у профілі */
.profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-order-card {
    background: rgba(14, 21, 32, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 20px 22px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.profile-order-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px -4px rgba(56, 189, 248, 0.12) !important;
}

/* Верхній блок картки замовлення */
.profile-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-main-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.order-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.order-number-badge:hover {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.order-number-badge .sigil-bullet {
    color: #38bdf8;
    font-size: 0.9rem;
}

.order-date-text {
    font-size: 0.85rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.order-date-text .date-icon {
    opacity: 0.8;
}

/* Статус бейджі */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* В обробці - теплий золотавий або бірюзовий */
.order-status-badge.status-processing {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

/* Завершено - смарагдовий зелений */
.order-status-badge.status-completed {
    background: rgba(16, 185, 129, 0.12);
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.order-status-badge.status-cancelled,
.order-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}



/* ==========================================================================
   GNOZIS MASTER HARMONIZATION - PROFILE, MEMBERS & GROUPS PERFECTION
   ========================================================================== */

/* 1. СТОРІНКА ПРОФІЛЮ (Profile Page Layout & Tabs) */
.gnozis-profile-viewport {
    max-width: 1280px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 30px 20px 80px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    box-sizing: border-box !important;
}

.profile-2col-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
}

.profile-main-col {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.profile-sidebar-col {
    width: 100% !important;
}

.profile-tabs-nav {
    display: flex !important;
    background: rgba(16, 24, 32, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    gap: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 12px !important;
}

.profile-tab-btn {
    flex: 1 1 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 13px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.profile-tab-btn:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.profile-tab-btn.active {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    font-weight: 600 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.15) !important;
}

.profile-tab-btn .badge-tab-count {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #38bdf8 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
}

.profile-bio-card,
.profile-bio-box,
.profile-bio-text {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
}

/* 2. СТОРІНКА ДРУЗІВ ТА ГРУП: ДВОКОЛОНКОВИЙ МАКЕТ (2-Column Subpage Layout) */
.gnozis-subpage-viewport {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 30px 20px 80px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gnozis-subpage-2col-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
}

.subpage-main-col {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.subpage-side-col {
    width: 100% !important;
}

.subpage-sticky-sidebar {
    position: sticky !important;
    top: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* 3. ШАПКА РОЗДІЛІВ (Subpage Header Card) */
.subpage-header-card {
    padding: 36px 32px !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(145deg, rgba(16, 26, 38, 0.98) 0%, rgba(8, 14, 24, 0.99) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

.subpage-header-glow {
    position: absolute !important;
    top: -50px !important;
    right: -50px !important;
    width: 280px !important;
    height: 280px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.06) 50%, transparent 70%) !important;
    filter: blur(40px) !important;
    pointer-events: none !important;
}

.subpage-header-content {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 760px !important;
}

.subpage-main-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

.subpage-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}

.subpage-badge-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
}

/* 4. ТУЛБАР ПОШУКУ (Search Toolbar on Members & Groups) */
.members-search-toolbar {
    background: rgba(16, 24, 38, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
    margin-bottom: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.members-search-toolbar:focus-within {
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.14) !important;
}

.members-search-icon {
    font-size: 1.15rem !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
}

.members-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    background: rgba(11, 16, 28, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-size: 0.92rem !important;
    padding: 10px 16px !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.members-search-input:focus {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 16px rgba(56, 189, 248, 0.15) !important;
    color: #ffffff !important;
}

/* 5. КАТАЛОГ ГРУП ТА БАНЕРИ (Groups Grid & Banners) */
.groups-catalog-grid,
.groups-cards-grid,
.groups-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
}

.group-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.group-card:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

.group-card-banner {
    height: 130px !important;
    width: 100% !important;
    position: relative !important;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    overflow: visible !important;
}

.group-card-banner.has-custom-banner {
    background-color: #0f172a !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.group-card-banner.banner-slate {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #162638 100%) !important;
}
.group-card-banner.banner-cyan {
    background: linear-gradient(135deg, #0e3d54 0%, #0b1e2c 100%) !important;
}
.group-card-banner.banner-amber {
    background: linear-gradient(135deg, #422d0d 0%, #1a150c 100%) !important;
}
.group-card-banner.banner-indigo {
    background: linear-gradient(135deg, #2b1f54 0%, #120e24 100%) !important;
}

.group-card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(10, 16, 28, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.group-card-avatar-wrap {
    position: absolute !important;
    bottom: -18px !important;
    left: 16px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    border-radius: 12px !important;
    z-index: 4 !important;
    overflow: hidden !important;
    border: 2px solid #0f172a !important;
    background: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.group-card-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
}

.group-card-body {
    padding: 24px 16px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
}

/* Банер героя окремої спільноти (Single Group Hero) */
.group-hero-banner {
    height: 280px !important;
    width: 100% !important;
    position: relative !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c1a2e 100%);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* 6. СІТКА ДРУЗІВ ТА УЧАСНИКІВ (Members & Friends Grid) */
.friends-cards-grid,
.members-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

.member-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.member-card:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

.member-avatar-wrap {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    border-radius: 50% !important;
    position: relative !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

.member-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

/* 7. АДАПТИВНІСТЬ ДЛЯ ПЛАНШЕТІВ ТА МОБІЛЬНИХ ПРИСТРОЇВ */
@media (max-width: 1024px) {
    .gnozis-subpage-2col-layout,
    .profile-2col-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .group-card-banner {
        height: 115px !important;
    }

    /* 1. Повна ширина сторінки без обрізань */
    .gnozis-profile-viewport,
    .gnozis-subpage-viewport,
    .single-group-viewport {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 4px !important;
        padding-bottom: 75px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    .gnozis-subpage-2col-layout,
    .profile-2col-layout {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .subpage-main-col,
    .profile-main-col,
    .subpage-side-col,
    .profile-side-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* 2. Шапка підсторінок (Друзі / Групи) */
    .subpage-header-card {
        padding: 18px 14px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 4px !important;
    }

    .subpage-header-content {
        max-width: 100% !important;
        gap: 8px !important;
    }

    .subpage-main-title {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
    }

    .subpage-description {
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }

    /* 3. Картка профілю Hero */
    .profile-hero-card {
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 4px !important;
    }

    .profile-hero-banner {
        border-radius: 14px 14px 0 0 !important;
    }

    .profile-hero-content {
        padding: 0 10px 18px !important;
        box-sizing: border-box !important;
    }

    /* 4. Пошук та фільтри */
    .members-search-toolbar {
        padding: 8px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. Сітка карток друзів та груп */
    .friends-cards-grid,
    .members-grid-container,
    .groups-catalog-grid,
    .groups-cards-grid,
    .groups-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .member-card,
    .group-card {
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .member-card {
        padding: 12px 10px !important;
    }

    .group-card-body {
        padding: 18px 12px 14px !important;
    }

    /* 6. Навігаційні таби */
    .profile-tabs-nav,
    .subpage-filter-tabs {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        white-space: nowrap !important;
        padding: 3px !important;
        gap: 4px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .profile-tabs-nav::-webkit-scrollbar,
    .subpage-filter-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .profile-tab-btn,
    .filter-tab-btn {
        flex: 0 0 auto !important;
        padding: 6px 10px !important;
        font-size: 0.79rem !important;
        gap: 5px !important;
        border-radius: 8px !important;
    }

    .profile-tab-btn .tab-icon svg,
    .filter-tab-btn .tab-icon svg {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 480px) {
    .profile-tab-btn,
    .filter-tab-btn {
        padding: 5px 8px !important;
        font-size: 0.77rem !important;
        gap: 4px !important;
    }

    .subpage-header-card {
        padding: 15px 10px !important;
    }

    .subpage-main-title {
        font-size: 1.35rem !important;
    }

    .members-search-toolbar {
        padding: 6px 10px !important;
    }

    .profile-hero-content {
        padding: 0 8px 16px !important;
    }

    .member-card {
        padding: 10px !important;
    }
}


/* Group Card Banner Custom Image Support */
.group-card-banner {
    position: relative !important;
    overflow: visible !important;
    height: 130px !important;
}

.group-card-banner.has-custom-banner {
    background-color: #0f172a !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.group-card-banner-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    pointer-events: none !important;
    display: block !important;
}

.group-card-banner.has-custom-banner::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(10, 16, 28, 0.4) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.group-card-avatar-wrap {
    z-index: 4 !important;
}
