.cards-grid.social-mode {
    display: block;
    padding: 1.5rem;
    background: var(--social-profile-bg, var(--bg-dark));
}

html.social-profile-scrollbar {
    scrollbar-color: var(--profile-scrollbar-thumb, #67c5f5) var(--profile-scrollbar-track, #0a2d46);
}

html.social-profile-scrollbar::-webkit-scrollbar {
    width: 14px;
}

html.social-profile-scrollbar::-webkit-scrollbar-track {
    background: var(--profile-scrollbar-track, #0a2d46);
}

html.social-profile-scrollbar::-webkit-scrollbar-thumb {
    background: var(--profile-scrollbar-thumb, #67c5f5);
    border: 3px solid var(--profile-scrollbar-track, #0a2d46);
    border-radius: 999px;
}

.cards-grid.social-mode.cursor-effect-crosshair,
.cards-grid.social-mode.cursor-effect-crosshair * {
    cursor: crosshair;
}

.cards-grid.social-mode.cursor-effect-retro,
.cards-grid.social-mode.cursor-effect-retro * {
    cursor: cell;
}

.social-cursor-trail {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.social-cursor-trail.sparkle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 20%, #ffd447 22% 48%, rgba(103, 197, 245, 0.1) 50% 100%);
    animation: social-sparkle-trail 520ms ease-out forwards;
}

.social-cursor-trail.comet {
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 212, 71, 0), #67c5f5, #fff);
    box-shadow: 0 0 14px rgba(103, 197, 245, 0.9);
    animation: social-comet-trail 720ms ease-out forwards;
}

.social-cursor-trail.neon {
    width: 12px;
    height: 12px;
    border: 2px solid #67c5f5;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(103, 197, 245, 0.9);
    animation: social-neon-trail 520ms ease-out forwards;
}

@keyframes social-sparkle-trail {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { opacity: 0; transform: translate(-50%, -110%) scale(0.2) rotate(110deg); }
}

@keyframes social-comet-trail {
    from { opacity: 0.95; transform: translate(-50%, -50%) rotate(-18deg) scaleX(1); }
    to { opacity: 0; transform: translate(-85%, -95%) rotate(-18deg) scaleX(0.2); }
}

@keyframes social-neon-trail {
    from { opacity: 1; transform: translate(-50%, -50%) scale(0.7); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
}

.cards-grid.social-settings-open .social-top-friends,
.cards-grid.social-settings-open .social-top-cards,
.cards-grid.social-settings-open .social-top-lists,
.cards-grid.social-settings-open .social-tabs,
.cards-grid.social-settings-open .social-composer,
.cards-grid.social-settings-open .social-feed,
.cards-grid.social-settings-open .social-load-more {
    display: none;
}

.social-main {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.25rem 0 3rem;
}

.social-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-tab {
    min-height: 44px;
    background: #1e2a3a;
    color: #dbe8f5;
    border: 1px solid #2d3a4a;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
}

.social-tab.active {
    background: #2b8ab3;
    border-color: #67c5f5;
}

.social-notification-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    display: inline-flex;
    min-width: 1.15rem;
    height: 1.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: white;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0 0.25rem;
    box-shadow: 0 0 0 2px #222c3a;
}

.social-profile-card {
    position: relative;
    margin-bottom: 1rem;
    overflow: visible;
    border: 1px solid #2d3a4a;
    border-radius: 10px;
    background: var(--profile-header-bg, #222c3a);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.social-top-friends {
    margin-bottom: 1rem;
    border: 1px solid #2d3a4a;
    border-radius: 10px;
    background: var(--top-friends-bg, #1e2a3a);
    padding: 0.85rem;
}

.social-top-cards {
    margin-bottom: 1rem;
    border: 1px solid #2d3a4a;
    border-radius: 10px;
    background: var(--top-cards-bg, #1e2a3a);
    padding: 0.85rem;
}

.social-top-lists {
    margin-bottom: 1rem;
    border: 1px solid #2d3a4a;
    border-radius: 10px;
    background: var(--top-lists-bg, #1e2a3a);
    padding: 0.85rem;
}

.social-top-friends-heading,
.social-top-cards-heading,
.social-top-lists-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.social-top-friends-heading h2,
.social-top-cards-heading h2,
.social-top-lists-heading h2 {
    margin: 0;
    color: var(--top-friends-text-color, #f0f8ff);
    font-size: 1rem;
}

.social-top-friends-heading span,
.social-top-friends-empty,
.social-top-cards-heading span,
.social-top-cards-empty,
.social-top-lists-heading span,
.social-top-lists-empty {
    color: var(--top-friends-text-color, #8fa0b8);
    font-size: 0.82rem;
    font-weight: 800;
}

.social-top-friends-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.65rem;
}

.social-top-friend-card {
    min-width: 0;
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    border: 0;
    background: transparent;
    color: #dbe8f5;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.social-top-friend-avatar {
    width: 58px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #304256;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 0 0 3px var(--avatar-border-color, #67c5f5);
    overflow: hidden;
}

.social-top-friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #1b2736;
}

.social-top-friend-name {
    max-width: 100%;
    color: var(--top-friends-name-color, #cfe2f3);
    font-size: 0.74rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-top-cards-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.75rem;
}

.social-top-card {
    min-width: 0;
    display: grid;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.social-top-card:hover img,
.social-top-card:focus-visible img {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.social-top-card img {
    width: 100%;
    aspect-ratio: 63 / 88;
    display: block;
    border-radius: 6px;
    background: #111827;
    object-fit: contain;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-top-card strong {
    color: #e6f1ff;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.social-top-lists-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.social-top-list-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #111827;
    color: #dbe8f5;
    cursor: pointer;
    font: inherit;
    padding: 0.65rem;
    text-align: left;
}

.social-top-list-card:hover,
.social-top-list-card:focus-visible {
    border-color: #67c5f5;
    background: #172334;
}

.social-top-list-cover {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #24344a;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    overflow: hidden;
}

.social-top-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-top-list-copy {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}

.social-top-list-copy strong,
.social-top-list-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-top-list-copy strong {
    color: #eef7ff;
    font-size: 0.94rem;
}

.social-top-list-copy small {
    color: #9fb4cc;
    font-size: 0.76rem;
    font-weight: 800;
}

.social-profile-loading {
    padding: 1rem;
    color: #a8bdd2;
}

.social-profile-banner {
    height: clamp(150px, 19vw, 230px);
    border-radius: 10px 10px 0 0;
    background:
        radial-gradient(circle at 22% 20%, rgba(59, 130, 246, 0.7), transparent 32%),
        radial-gradient(circle at 78% 24%, rgba(45, 212, 191, 0.52), transparent 36%),
        linear-gradient(135deg, #0d2f47, #111827 58%, #2b1747);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.social-profile-avatar {
    position: absolute;
    top: clamp(96px, 15.5vw, 166px);
    left: 50%;
    width: 96px;
    height: 96px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    border: 6px solid var(--profile-header-bg, #222c3a);
    border-radius: 14px;
    background: #304256;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    box-shadow: 0 0 0 5px var(--avatar-border-color, #ffd447);
    overflow: hidden;
}

.social-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #1b2736;
}

.social-profile-info {
    min-height: 86px;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(220px, 0.8fr) minmax(260px, 1fr);
    align-items: start;
    gap: 1.1rem;
    padding: 1.1rem 1.5rem 0.75rem;
    background: var(--profile-header-bg, #222c3a);
}

.social-profile-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0;
}

.social-profile-stats {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex: 0 0 auto;
}

.social-profile-stat {
    min-width: 90px;
}

.social-profile-stat + .social-profile-stat {
    padding-left: 1.2rem;
    border-left: 1px solid #3b4657;
}

.social-profile-stat span {
    display: block;
    color: #8fa0b8;
    font-weight: 800;
}

.social-profile-stat strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: 1.2rem;
}

.social-profile-identity {
    min-width: 0;
    text-align: center;
    align-self: start;
    padding-top: 1.45rem;
}

.social-profile-identity h2 {
    margin: 0;
    color: var(--profile-username-color, #f0f8ff);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.social-profile-details {
    min-width: 0;
    align-self: start;
    padding-top: 0;
}

.social-profile-bio {
    margin: 0;
    max-width: 100%;
    color: #b6c8dc;
    font-size: 0.72rem;
    line-height: 1.12;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.social-profile-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.social-profile-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #111827;
    color: #dbe8f5;
    padding: 0 0.85rem;
    text-decoration: none;
    font-weight: 900;
}

.social-profile-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.social-profile-action,
.social-profile-icon {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 1rem;
}

.social-profile-action.primary {
    background: #ffd447;
    color: #111827;
}

.social-profile-action.danger {
    background: #6d1f2b;
    color: #ffd7dc;
}

.social-profile-action.muted,
.social-profile-action:disabled {
    background: #151d29;
    color: #8fa0b8;
    cursor: default;
}

.social-profile-icon {
    position: relative;
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    background: #26364a;
    border: 1px solid rgba(143, 160, 184, 0.24);
    color: #dbe8f5;
    padding: 0;
}

.social-profile-icon.primary {
    background: #ffd447;
    border-color: #ffd447;
    color: #111827;
}

.social-profile-icon.primary:hover,
.social-profile-icon.primary:focus-visible {
    background: #ffdf6b;
    color: #111827;
}

.social-profile-icon.message-icon {
    width: 42px;
    height: 42px;
    min-height: 42px;
    background: transparent;
    border-color: transparent;
    color: #f0f8ff;
}

.social-profile-icon.message-icon:hover,
.social-profile-icon.message-icon:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.social-profile-icon.message-icon svg {
    width: 38px;
    height: 38px;
    transform: translateY(3px);
}

.social-profile-menu {
    position: relative;
    display: inline-flex;
}

.social-profile-icon.menu-toggle {
    background: rgba(38, 54, 74, 0.78);
    border-color: rgba(103, 197, 245, 0.28);
}

.social-profile-icon.menu-toggle svg {
    width: 25px;
    height: 25px;
}

.social-profile-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 20;
    min-width: 148px;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(103, 197, 245, 0.35);
    border-radius: 8px;
    background: #132235;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.social-profile-menu.open .social-profile-menu-dropdown {
    display: block;
}

.social-profile-menu-dropdown button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #dbe8f5;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 0.9rem;
    text-align: left;
}

.social-profile-menu-dropdown button:hover,
.social-profile-menu-dropdown button:focus-visible {
    background: #1d3f61;
    color: #ffffff;
}

.social-profile-menu-dropdown button.danger {
    color: #ffd7dc;
}

.social-profile-menu-dropdown button.danger:hover,
.social-profile-menu-dropdown button.danger:focus-visible {
    background: #6d1f2b;
}

.social-profile-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.social-profile-icon:hover,
.social-profile-icon:focus-visible {
    background: #31455d;
    color: #ffffff;
}

.social-profile-settings {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #2d3a4a;
    border-radius: 8px;
    background: #192433;
}

.social-profile-top-friends-editor,
.social-profile-top-cards-editor,
.social-profile-top-lists-editor {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.65rem;
    border: 1px solid #2d3a4a;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.45);
    padding: 0.8rem;
}

.social-profile-top-friends-editor-heading,
.social-profile-top-friends-add,
.social-profile-top-friend-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.social-profile-top-friends-editor-heading {
    justify-content: space-between;
}

.social-profile-top-friends-editor-heading h3,
.social-profile-top-friends-editor-heading span,
.social-profile-top-friends-empty {
    margin: 0;
}

.social-profile-top-friends-editor-heading h3 {
    font-size: 1rem;
}

.social-profile-top-friends-editor-heading span,
.social-profile-top-friends-empty {
    color: #8fa0b8;
    font-size: 0.82rem;
    font-weight: 800;
}

.social-profile-top-friends-list {
    display: grid;
    gap: 0.45rem;
}

.social-profile-top-friend-row {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 7px;
    background: rgba(17, 24, 39, 0.58);
    padding: 0.5rem;
}

.social-profile-top-friend-row span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.social-profile-list-picker {
    min-width: 0;
    flex: 1;
    border: 1px solid #405166;
    border-radius: 8px;
    background: #101720;
    color: #fff;
    font: inherit;
    padding: 0.65rem 0.75rem;
}

.social-profile-search-picker {
    display: grid;
    gap: 0.55rem;
}

.social-profile-search-picker input[type="search"] {
    width: 100%;
    border: 1px solid #405166;
    border-radius: 8px;
    background: #101720;
    color: #fff;
    font: inherit;
    padding: 0.75rem 0.85rem;
    outline: none;
}

.social-profile-search-picker input[type="search"]:focus {
    border-color: #67c5f5;
    box-shadow: 0 0 0 2px rgba(103, 197, 245, 0.18);
}

.social-profile-search-results {
    display: grid;
    gap: 0.45rem;
    max-height: 260px;
    overflow: auto;
}

.social-profile-search-result {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.7);
    color: #dbe8f5;
    font: inherit;
    padding: 0.55rem;
    text-align: left;
    cursor: pointer;
}

.social-profile-search-result:hover,
.social-profile-search-result:focus-visible {
    border-color: #67c5f5;
    background: #172334;
}

.social-profile-search-result > span:not(.social-profile-search-avatar) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.social-profile-search-result > strong,
.social-profile-search-result > b {
    color: #67c5f5;
    font-size: 0.82rem;
}

.social-profile-search-copy {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.45rem;
}

.social-profile-search-copy strong,
.social-profile-search-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-profile-search-copy small {
    color: #8fa0b8;
    font-size: 0.78rem;
    font-weight: 800;
}

.social-profile-search-avatar,
.social-profile-card-search-result img {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #304256;
    color: #fff;
    font-weight: 900;
    overflow: hidden;
}

.social-profile-search-avatar {
    box-shadow: 0 0 0 2px var(--avatar-border-color, #67c5f5);
}

.social-profile-search-avatar img,
.social-profile-card-search-result img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.social-profile-card-search-result img {
    height: 52px;
    aspect-ratio: 63 / 88;
    border-radius: 5px;
}

.social-profile-search-hint {
    margin: 0;
    color: #8fa0b8;
    font-size: 0.85rem;
    font-weight: 800;
}

.social-profile-settings h2 {
    margin-bottom: 1rem;
}

.social-profile-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.social-profile-field {
    display: grid;
    gap: 0.45rem;
}

.social-profile-field.wide,
.social-profile-section-toggles,
.social-profile-visibility,
.social-profile-settings-actions,
.social-profile-settings-status {
    grid-column: 1 / -1;
}

.social-profile-field span,
.social-profile-visibility legend {
    color: #dbe8f5;
    font-weight: 900;
}

.social-profile-field small {
    color: #94a3b8;
}

.social-profile-section-toggles {
    display: grid;
    gap: 0.65rem;
    border: 1px solid #2d3a4a;
    border-radius: 8px;
    background: #111827;
    padding: 0.8rem;
}

.social-profile-section-toggles h3 {
    margin: 0;
    color: #dbe8f5;
    font-size: 1rem;
}

.social-profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #dbe8f5;
    font-weight: 900;
    cursor: pointer;
}

.social-profile-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.social-profile-toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
    border: 1px solid #405166;
    border-radius: 999px;
    background: #1e2a3a;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.social-profile-toggle-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cfe2f3;
    transition: transform 0.16s ease, background 0.16s ease;
}

.social-profile-toggle input:checked + .social-profile-toggle-slider {
    border-color: #67c5f5;
    background: #2b8ab3;
}

.social-profile-toggle input:checked + .social-profile-toggle-slider::after {
    transform: translateX(22px);
    background: #ffffff;
}

.social-profile-field input,
.social-profile-field select,
.social-profile-field textarea {
    width: 100%;
    border: 1px solid #405166;
    border-radius: 8px;
    background: #101720;
    color: #fff;
    font: inherit;
    padding: 0.85rem;
    outline: none;
}

.social-profile-color-row {
    display: grid;
    grid-template-columns: 54px minmax(7.5rem, 9rem) auto;
    gap: 0.6rem;
    align-items: center;
}

.social-profile-color-row input[type="color"] {
    width: 54px;
    min-height: 42px;
    padding: 0.18rem;
    cursor: pointer;
}

.social-profile-color-reset {
    min-height: 42px;
    border: 1px solid #405166;
    border-radius: 8px;
    background: #26364a;
    color: #dbe8f5;
    font: inherit;
    font-weight: 900;
    padding: 0 0.85rem;
    cursor: pointer;
}

.social-profile-color-reset:hover,
.social-profile-color-reset:focus-visible {
    background: #31455d;
    color: #fff;
}

.social-profile-field textarea {
    min-height: 110px;
    resize: vertical;
}

.social-profile-visibility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    border: 0;
    padding: 0;
}

.social-profile-visibility legend {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
}

.social-profile-visibility-choice {
    display: grid;
    gap: 0.45rem;
    border: 1px solid #405166;
    border-radius: 10px;
    background: #111827;
    padding: 1rem;
    cursor: pointer;
}

.social-profile-visibility-choice:has(input:checked) {
    border-color: #ffd447;
}

.social-profile-visibility-choice span {
    color: #94a3b8;
}

.social-profile-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
}

.social-profile-settings-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #2b8ab3;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 1rem;
}

.social-profile-settings-actions button.secondary {
    background: #1e2a3a;
}

.social-composer,
.social-post,
.social-empty {
    background: #192433;
    border: 1px solid #2d3a4a;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.social-composer {
    padding: 1rem;
    margin-bottom: 1rem;
}

.social-composer textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    background: #101720;
    color: #fff;
    border: 1px solid #405166;
    border-radius: 6px;
    padding: 0.85rem;
    font: inherit;
    outline: none;
}

.social-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.social-composer select,
.social-composer button,
.social-comment-form button {
    height: 40px;
    border-radius: 6px;
    border: 1px solid #718096;
    font-weight: 800;
}

.social-composer select {
    background: #eef4f8;
    color: #111827;
    padding: 0 0.6rem;
}

.social-composer button,
.social-comment-form button {
    background: #2b8ab3;
    color: white;
    cursor: pointer;
    padding: 0 1rem;
}

.social-status {
    min-height: 1.25rem;
    color: #9fb4c9;
    margin-top: 0.5rem;
}

.social-feed {
    display: grid;
    gap: 0.9rem;
}

.social-post {
    padding: 1rem;
}

.social-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.social-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid #3b82f6;
    background: #304256;
    color: white;
    font-weight: 900;
}

.social-post-meta {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 0.1rem;
}

.social-post-meta strong {
    color: #76c8f5;
}

.social-author-link {
    width: fit-content;
    border: 0;
    background: transparent;
    color: #76c8f5;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0;
    text-align: left;
}

.social-author-link:hover,
.social-author-link:focus-visible {
    color: #b9e9ff;
    text-decoration: underline;
    outline: none;
}

.social-post-meta span {
    color: #94a3b8;
    font-size: 0.88rem;
}

.social-user-wall-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #2d3a4a;
    border-radius: 8px;
    background: #192433;
}

.social-user-wall-banner strong {
    color: #dbe8f5;
}

.social-user-wall-banner span {
    color: #94a3b8;
}

.social-post-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.social-youtube-list {
    display: grid;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}

.social-youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #33465c;
    border-radius: 8px;
    background: #0b1118;
}

.social-youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.social-post-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.2rem 0 0.9rem;
}

.social-like-btn,
.social-stat-pill {
    min-height: 34px;
    border: 1px solid #33465c;
    border-radius: 999px;
    background: #101720;
    color: #b8c7d8;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
}

.social-like-btn {
    cursor: pointer;
}

.social-like-btn:hover,
.social-like-btn:focus-visible {
    border-color: #67c5f5;
    color: #fff;
    outline: none;
}

.social-like-btn.active {
    background: rgba(43, 138, 179, 0.24);
    border-color: #67c5f5;
    color: #c7f0ff;
}

.social-like-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.social-comments {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.social-delete-btn,
.social-report-btn {
    min-height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    padding: 0 0.7rem;
}

.social-delete-btn {
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
}

.social-delete-btn:hover,
.social-delete-btn:focus-visible {
    background: rgba(185, 28, 28, 0.55);
    border-color: rgba(248, 113, 113, 0.75);
    outline: none;
}

.social-report-btn {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(30, 41, 59, 0.55);
    color: #cbd5e1;
}

.social-report-btn:hover,
.social-report-btn:focus-visible {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(203, 213, 225, 0.75);
    outline: none;
}

.social-delete-btn:disabled,
.social-report-btn:disabled {
    cursor: wait;
    opacity: 0.6;
}

.social-comment {
    background: #101720;
    border: 1px solid #2d3a4a;
    border-radius: 6px;
    padding: 0.55rem 0.7rem;
    display: grid;
    gap: 0.2rem;
}

.social-comment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.social-comment strong {
    color: #c5f59b;
    font-size: 0.9rem;
}

.social-comment span {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.social-comment-form {
    display: flex;
    gap: 0.5rem;
}

.social-comment-form input {
    flex: 1;
    min-width: 0;
    background: #101720;
    border: 1px solid #405166;
    color: #fff;
    border-radius: 6px;
    padding: 0 0.75rem;
    outline: none;
}

.social-empty {
    padding: 1rem;
    color: #94a3b8;
}

.social-load-more {
    width: 100%;
    margin-top: 1rem;
    min-height: 44px;
    background: #33465c;
    color: #fff;
    border: 1px solid #718096;
    border-radius: 6px;
    font-weight: 900;
    cursor: pointer;
}

.notifications-panel {
    width: min(620px, calc(100vw - 2rem));
    max-height: min(760px, calc(100vh - 2rem));
    flex-direction: column;
    overflow: auto;
    padding: 1.25rem;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.notifications-header h2 {
    margin: 0;
    min-width: 0;
    font-size: clamp(1.55rem, 4vw, 2rem);
    line-height: 1.1;
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.55rem;
}

.notifications-close-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.notifications-close-btn:hover,
.notifications-close-btn:focus-visible {
    background: #ff6b6b;
    outline: none;
}

.notifications-list {
    display: grid;
    gap: 0.65rem;
}

.notification-row {
    display: grid;
    gap: 0.25rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    padding: 0.85rem;
}

.notification-row.unread {
    border-color: rgba(103, 197, 245, 0.65);
    background: rgba(43, 138, 179, 0.18);
}

.notification-row strong {
    color: #f8fafc;
}

.notification-row span,
.notification-row p {
    margin: 0;
    color: #a8bdd2;
}

@media (max-width: 1300px) and (min-width: 701px) {
    .social-main {
        width: min(900px, calc(100% - 2rem));
    }

    .social-profile-info {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 4.6rem 1rem 1rem;
        text-align: center;
    }

    .social-profile-identity {
        order: 1;
        padding-top: 0;
    }

    .social-profile-identity h2 {
        font-size: clamp(1.35rem, 3.8vw, 1.85rem);
    }

    .social-profile-left {
        justify-content: center;
        flex-wrap: wrap;
        order: 2;
        padding-top: 0;
    }

    .social-profile-details {
        order: 3;
        padding-top: 0;
    }

    .social-profile-actions {
        justify-content: center;
    }

    .social-profile-bio {
        max-width: 28rem;
        margin: 0 auto;
    }

    .social-top-friends-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .social-top-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .social-top-lists-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cards-grid.social-mode {
        padding: 0.45rem;
    }

    .social-main {
        width: 100%;
        padding: 0.5rem 0 2rem;
    }

    .social-post,
    .social-composer,
    .social-empty {
        border-radius: 7px;
    }

    .social-tabs {
        grid-template-columns: 1fr;
    }

    .social-top-friends-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .social-top-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .social-top-lists-grid {
        grid-template-columns: 1fr;
    }

    .social-top-friend-avatar {
        width: 52px;
    }

    .social-profile-banner {
        height: 150px;
    }

    .social-profile-avatar {
        top: 96px;
        width: 88px;
        height: 88px;
        border-width: 5px;
        font-size: 2rem;
    }

    .social-profile-info {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 2.4rem 1rem 0.85rem;
        text-align: center;
    }

    .social-profile-stats {
        justify-content: center;
    }

    .social-profile-left {
        justify-content: center;
        flex-wrap: wrap;
        order: 2;
        padding-top: 0;
    }

    .social-profile-identity {
        order: 1;
        padding-top: 0;
    }

    .social-profile-details {
        order: 3;
        padding-top: 0;
    }

    .social-profile-actions {
        justify-content: center;
        order: 4;
    }

    .social-profile-settings-form,
    .social-profile-visibility {
        grid-template-columns: 1fr;
    }

    .social-profile-top-friends-add,
    .social-profile-top-friend-row {
        align-items: stretch;
        flex-direction: column;
    }

    .notifications-header {
        align-items: stretch;
        flex-direction: column;
    }

    .notifications-header-actions {
        justify-content: space-between;
    }

    .social-comment-form,
    .social-composer-actions {
        flex-direction: column;
    }

    .social-comment-form input {
        min-height: 40px;
    }
}
