:root {
    /* Brand Colors */
    --primary-color: #8b5cf6;
    /* Vibrant Violet */
    --primary-light: #a78bfa;
    /* Lighter Violet */
    --primary-dark: #7c3aed;
    /* Deep Violet */
    --accent-color: #f43f5e;
    /* Vibrant Rose */

    /* Dark Theme Colors */
    --bg-body: #13111C;
    /* Deep Dark Purple Background */
    --bg-surface: #1E1B2E;
    /* Lighter Purple Surface */
    --text-main: #E9E3EF;
    /* Off-white text */
    --text-secondary: #948B9C;
    /* Muted Purple/Gray text */
    --border-color: #2D2438;
    /* Dark Purple Border */

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Spacing & Layout */
    --header-height: 60px;
    --bottom-nav-height: 65px;
    --sidebar-width: 250px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows (Adjusted for Dark Mode) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-up: 0 -4px 6px -1px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: var(--bg-body);
    overscroll-behavior-y: none;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    min-height: 100dvh;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 20px);
    /* Mobile default */
}

.flash-popups {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    pointer-events: none;
}

.flash-popups .alert {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    padding-right: 3.25rem;
    pointer-events: auto;
    animation: toast-in 0.3s ease;
}

@media (max-width: 576px) {
    .flash-popups {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .flash-popups .alert {
        min-width: 0;
        width: 100%;
    }
}


.flash-popups .alert-success {
    border-left: 4px solid var(--success);
}

.flash-popups .alert-danger {
    border-left: 4px solid var(--danger);
}

.flash-popups .alert-info {
    border-left: 4px solid var(--info);
}

.flash-popups .alert-warning {
    border-left: 4px solid var(--warning);
}

.flash-popups .violet-chat-toast {
    border-left: 4px solid #a855f7;
    border-color: rgba(168, 85, 247, 0.25);
    background: linear-gradient(135deg,
            rgba(168, 85, 247, 0.18) 0%,
            rgba(45, 27, 64, 0.92) 55%,
            rgba(31, 27, 45, 0.92) 100%);
    padding-right: 1.25rem;
}

.flash-popups .violet-nearby-toast {
    border-left: 4px solid #7c3aed;
    border-color: rgba(124, 58, 237, 0.22);
    background: linear-gradient(135deg,
            rgba(124, 58, 237, 0.18) 0%,
            rgba(45, 27, 64, 0.92) 55%,
            rgba(31, 27, 45, 0.92) 100%);
    padding-right: 1.25rem;
}

.violet-chat-toast {
    cursor: pointer;
    user-select: none;
}

.violet-chat-toast:hover {
    filter: brightness(1.04);
}

.violet-chat-toast:active {
    transform: translateY(1px);
}

.violet-chat-toast__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.violet-chat-toast__avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
}

.violet-chat-toast__body {
    flex: 1;
    min-width: 0;
}

.violet-chat-toast__title {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-top: 1px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.violet-chat-toast__message {
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.84);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.violet-chat-toast__user {
    font-weight: 800;
    color: #ffffff;
}

.violet-chat-toast__close {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.violet-chat-toast__close i {
    font-size: 0.8rem;
    line-height: 1;
}

.violet-chat-toast__close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

.violet-chat-toast__close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.violet-nearby-toast {
    cursor: pointer;
    user-select: none;
}

.violet-nearby-toast:hover {
    filter: brightness(1.04);
}

.violet-nearby-toast:active {
    transform: translateY(1px);
}

.violet-nearby-toast__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.violet-nearby-toast__thumb {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    display: block;
}

.violet-nearby-toast__thumb--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
}

.violet-nearby-toast__body {
    flex: 1;
    min-width: 0;
}

.violet-nearby-toast__title {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-top: 1px;
    margin-bottom: 2px;
}

.violet-nearby-toast__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.violet-nearby-toast__chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.violet-nearby-toast__chip--cat {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.28);
}

.violet-nearby-toast__time {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
    margin-left: auto;
}

.violet-nearby-toast__message {
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.84);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.violet-nearby-toast__user {
    font-weight: 800;
    color: #ffffff;
}

.violet-nearby-toast__close {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.violet-nearby-toast__close i {
    font-size: 0.8rem;
    line-height: 1;
}

.violet-nearby-toast__close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

.violet-nearby-toast__close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

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

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

.bg-surface {
    background-color: var(--bg-surface) !important;
}

.bg-body {
    background-color: var(--bg-body) !important;
}

.modal-content.bg-surface {
    background-color: var(--bg-surface) !important;
    color: var(--text-main);
    border: 1px solid var(--border-color) !important;
}

.modal-header.border-secondary,
.modal-footer.border-secondary {
    border-color: var(--border-color) !important;
}

/* Ensure modals are clickable above backdrop */
.modal {
    z-index: 1060;
    pointer-events: auto;
}

.modal-backdrop {
    z-index: 1050;
    pointer-events: none;
}

/* Admin badge */
.admin-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    vertical-align: middle;
    background: transparent !important;
    box-shadow: none !important;
}

.admin-badge img {
    width: 15px;
    height: 15px;
    display: block;
    background: transparent !important;
    box-shadow: none !important;
}

.admin-badge--profile img {
    width: 20px;
    height: 20px;
}

.admin-badge--sm img {
    width: 15px;
    height: 15px;
}

.admin-badge--xs img {
    width: 15px;
    height: 15px;
}

.staff-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    margin-left: 0.12rem;
    padding: 0.15rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.42);
    background: rgba(91, 33, 182, 0.22);
    color: #ddd6fe;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

.staff-role-badge i {
    font-size: 0.72em;
}

.staff-role-badge--profile {
    padding: 0.22rem 0.52rem;
    font-size: 0.74rem;
}

.staff-role-badge--sm {
    font-size: 0.68rem;
}

.staff-role-badge--xs {
    font-size: 0.62rem;
    padding: 0.12rem 0.34rem;
}

.staff-role-badge--verification {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 116, 144, 0.24);
    color: #bae6fd;
}

.staff-role-badge--moderation {
    border-color: rgba(251, 113, 133, 0.48);
    background: rgba(136, 19, 55, 0.24);
    color: #fecdd3;
}

.staff-role-badge--safety {
    border-color: rgba(52, 211, 153, 0.44);
    background: rgba(6, 95, 70, 0.22);
    color: #bbf7d0;
}

.staff-role-badge--support {
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(146, 64, 14, 0.24);
    color: #fde68a;
}

body.change-photo-open .modal-backdrop {
    background: rgba(0, 0, 0, 0.82) !important;
}

.change-photo-modal {
    position: relative;
    z-index: 1061;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        display: flex;
    }
}

@media (max-width: 767px) {
    .profile-actions .btn {
        width: 100%;
    }
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: stretch;
    justify-content: center;
}

.profile-actions .btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
    border-radius: 12px;
    padding-inline: 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
    box-shadow: 0 10px 24px rgba(8, 5, 18, 0.18);
}

.profile-actions .btn-outline-light,
.profile-actions .btn-outline-light:hover,
.profile-actions .btn-outline-light:focus-visible {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.profile-actions .btn-outline-light:hover,
.profile-actions .btn-outline-light:focus-visible {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--text-secondary);
}

.profile-actions .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.16) 50%, transparent 82%);
    transform: translateX(-130%);
    transition: transform 0.38s ease;
    pointer-events: none;
}

.profile-actions .btn:hover,
.profile-actions .btn:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(8, 5, 18, 0.28);
}

.profile-actions .btn:hover::after,
.profile-actions .btn:focus-visible::after {
    transform: translateX(130%);
}

.profile-actions .btn:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 8px 18px rgba(8, 5, 18, 0.2);
}

.profile-actions .btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.profile-moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.limited-access-modal {
    position: fixed;
    inset: 0;
    z-index: 2800;
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
}

body.has-limited-access-popup {
    overflow: hidden;
}

.limited-access-modal.is-hidden {
    pointer-events: none;
}

.limited-access-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(139, 92, 246, 0.28), transparent 34%),
        rgba(4, 2, 10, 0.78);
    backdrop-filter: blur(10px);
    transition: opacity 0.22s ease;
}

.limited-access-modal.is-hidden .limited-access-modal__backdrop {
    opacity: 0;
}

.limited-access-modal__panel {
    position: relative;
    width: min(92vw, 440px);
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 30px;
    padding: 1.3rem;
    background:
        linear-gradient(145deg, rgba(42, 30, 68, 0.96), rgba(19, 14, 30, 0.98)),
        rgba(20, 16, 31, 0.96);
    color: #fff;
    box-shadow: 0 28px 90px rgba(8, 5, 18, 0.48);
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.limited-access-modal.is-hidden .limited-access-modal__panel {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
}

.limited-access-modal__close {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(245, 243, 255, 0.74);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.limited-access-modal__close:hover,
.limited-access-modal__close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.limited-access-modal__icon,
.profile-trust-card--limited .profile-trust-card__icon {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.16);
}

.limited-access-modal__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.limited-access-modal__copy {
    padding-right: 2.35rem;
}

.limited-access-modal__eyebrow {
    margin: 0 0 0.2rem;
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.limited-access-modal__copy h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.75rem, 7vw, 2.45rem);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.limited-access-modal__copy p:not(.limited-access-modal__eyebrow) {
    margin: 0;
    color: rgba(237, 233, 254, 0.72);
    font-size: 0.98rem;
    line-height: 1.52;
}

.limited-access-modal__actions {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.sidebar-limited-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(139, 92, 246, 0.14);
    font-weight: 800;
    text-decoration: none;
}

.limited-access-modal__dismiss,
.limited-access-modal__cta {
    min-height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-weight: 900;
    text-decoration: none;
}

.limited-access-modal__dismiss {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 243, 255, 0.88);
}

.limited-access-modal__cta {
    border: 1px solid rgba(196, 181, 253, 0.34);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 18px 40px rgba(109, 40, 217, 0.32);
}

.sidebar-limited-pill {
    margin: 0.55rem 0 0.9rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.86rem;
}

.unverified-account-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 999px;
    padding: 0.26rem 0.55rem;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .limited-access-modal {
        align-items: end;
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px));
    }

    .limited-access-modal__panel {
        width: 100%;
        border-radius: 28px;
        padding: 1.15rem;
    }

    .limited-access-modal__copy {
        padding-right: 1.85rem;
    }

    .limited-access-modal__actions {
        grid-template-columns: 1fr;
    }
}

.profile-avatar-skeleton {
    width: var(--profile-avatar-size);
    height: var(--profile-avatar-size);
    min-width: var(--profile-avatar-size);
    border-radius: 50%;
    display: block;
    aspect-ratio: 1 / 1;
    flex: 0 0 var(--profile-avatar-size);
    margin: 0;
    background-color: rgba(196, 188, 203, 0.72);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .profile-page-shell .profile-avatar-skeleton {
        border-radius: 50%;
    }
}

@media (min-width: 768px) {
    .profile-logout-btn {
        width: auto;
    }

    .mobile-only {
        display: none !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Layout Utilities */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    display: none;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #171320 0%, #13111c 100%);
    border-right: 1px solid rgba(221, 212, 237, 0.12);
    box-shadow: 16px 0 40px rgba(19, 17, 28, 0.12);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1.5rem;
    flex-direction: column;
    z-index: 1000;
}

.main-content {
    width: 100%;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sidebar {
        display: flex;
    }

    .bottom-nav {
        display: none !important;
    }

    .main-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        padding: 2rem;
        max-width: none;
        /* Allow full width minus sidebar */
    }
}

/* Override main-content margin when sidebar is hidden */
.main-content.no-sidebar {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Error message styling */
.violet-error {
    color: #ff4d4d;
    font-size: 0.875rem;
    margin-top: 6px;
    display: block;
}

/* Balanced spacing for errors */
.form-group.has-error .input-icon-wrapper {
    margin-bottom: 8px;
}

.form-group.has-error .violet-error {
    margin-top: 0;
    margin-bottom: 8px;
}

.violet-error::before {
    content: '* ';
    font-weight: bold;
}

/* Components */

/* Logo */
.brand-logo {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    width: 100%;
    text-align: center;
}

.brand-logo__word {
    display: block;
    line-height: 1;
}

.brand-logo__meta {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(239, 233, 247, 0.6);
}

/* Sidebar Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: rgba(239, 233, 247, 0.76);
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-link:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #ffffff;
    transform: translateX(0);
}

.sidebar-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: var(--radius-md);
    color: rgba(239, 233, 247, 0.78);
    background: rgba(124, 58, 237, 0.08);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
}

.sidebar-support-link:hover,
.sidebar-support-link:focus-visible {
    color: #fff;
    background: rgba(124, 58, 237, 0.16);
    border-color: rgba(167, 139, 250, 0.34);
    outline: none;
}

.sidebar-link:active {
    transform: scale(0.98);
}

.sidebar-link.active {
    background: rgba(139, 92, 246, 0.18);
    color: #ffffff;
    font-weight: 600;
    border-left: 0;
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    gap: 0.5rem;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--primary-color);
    background-color: rgba(109, 40, 217, 0.05);
}

.report-btn {
    color: var(--text-secondary);
}

.report-btn:hover {
    color: var(--primary-color);
}

/* Desktop zoom typography scale. Default sidebar dimensions/icons stay untouched. */
html.desktop-zoom-compact .brand-logo {
    font-size: 1.55rem;
}

html.desktop-zoom-compact .brand-logo__meta {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
}

html.desktop-zoom-compact .sidebar-link {
    font-size: 0.88rem;
    line-height: 1.18;
}

html.desktop-zoom-compact .sidebar-link i {
    font-size: 1rem;
}

html.desktop-zoom-compact .sidebar-support-link,
html.desktop-zoom-compact .sidebar .btn-danger {
    font-size: 0.78rem;
    line-height: 1.15;
}

html.desktop-zoom-compact .sidebar-support-link i,
html.desktop-zoom-compact .sidebar .btn-danger i {
    font-size: 0.86rem;
}

html.desktop-zoom-tight .brand-logo {
    font-size: 1.18rem;
}

html.desktop-zoom-tight .brand-logo__meta {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
}

html.desktop-zoom-tight .sidebar-link {
    font-size: 0.72rem;
    line-height: 1.12;
}

html.desktop-zoom-tight .sidebar-link i {
    font-size: 0.82rem;
}

html.desktop-zoom-tight .sidebar-support-link,
html.desktop-zoom-tight .sidebar .btn-danger {
    font-size: 0.66rem;
    line-height: 1.1;
}

html.desktop-zoom-tight .sidebar-support-link i,
html.desktop-zoom-tight .sidebar .btn-danger i {
    font-size: 0.72rem;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: 0.75rem 1rem;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-card {
    background: linear-gradient(160deg, #2b2f3a 0%, #1d2230 60%, #1b1f2b 100%);
    border-radius: 26px;
    padding: 18px 18px 20px;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.weather-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.weather-city {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.weather-city i {
    font-size: 0.85rem;
    opacity: 0.85;
}

.weather-temp-big {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.weather-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-icon-stack {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.weather-icon-stack i {
    font-size: 1.4rem;
}

.weather-desc {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-desc .weather-status {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.weather-range-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 10px;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.avatar.sm {
    width: 32px;
    height: 32px;
}

.avatar.lg {
    width: 64px;
    height: 64px;
}

.avatar.xl {
    width: 96px;
    height: 96px;
}

/* Navigation (Mobile Bottom) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    background: rgba(19, 17, 28, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(221, 212, 237, 0.14);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-up);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: visible;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(239, 233, 247, 0.72);
    font-size: 1.35rem;
    width: 46px;
    height: 46px;
    padding: 0;
    position: relative;
    transition: var(--transition-fast);
    border-radius: 14px;
}

.nav-item.active {
    color: #ffffff;
    background: rgba(139, 92, 246, 0.18);
}

.bottom-nav .nav-item.active::after {
    content: none;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(139, 92, 246, 0.12);
}

.nav-item-profile {
    border-radius: 14px;
}

.bottom-nav-profile-avatar {
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(5, 3, 10, 0.28);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-item.center {
    background: #ef2f2f;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transform: translateY(-26px);
    box-shadow:
        0 16px 28px rgba(239, 47, 47, 0.34),
        0 0 26px rgba(239, 47, 47, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    z-index: 2;
    border: none;
    flex: 0 0 70px;
}

.nav-item.center i {
    color: #ffffff;
}

.nav-item.center:hover {
    transform: translateY(-26px);
    background: #ef2f2f;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-surface);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.gap-2 {
    gap: 0.5rem;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.d-none {
    display: none !important;
}

.d-md-flex {
    display: flex !important;
}

.d-md-none {
    display: none !important;
}

/* Map Container */
#map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 1;
}

/* Feed Layout */
.feed-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: min(100%, 1000px);
    margin: 0 auto;
    min-width: 0;
}

.feed-column,
.posts-feed,
.sidebar-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Page Transitions */
.main-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-content.page-anim-in {
    opacity: 1;
    transform: none; /* no transform once loaded, so position:fixed children anchor to the viewport */
}

.main-content.page-anim-out {
    opacity: 0;
    transform: translateY(-10px);
}

body.modal-open .main-content {
    transform: none !important;
}

.feed-layout.page-enter {
    opacity: 0;
    transform: translateY(12px);
}

.feed-layout.page-leave {
    opacity: 0;
    transform: translateY(8px);
}

@media (min-width: 1024px) {
    .feed-layout {
        grid-template-columns: 1fr 320px;
    }

    .sidebar-right {
        position: sticky;
        top: 1rem;
        align-self: start;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.35rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(167, 139, 250, 0.45) transparent;
    }

    .sidebar-right::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-right::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-right::-webkit-scrollbar-thumb {
        background: rgba(167, 139, 250, 0.45);
        border-radius: 999px;
    }
}

@media (max-width: 1023px) {
    .sidebar-right {
        grid-row: 1;
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .sidebar-right>* {
        scroll-snap-align: start;
    }

    .feed-column {
        grid-row: 2;
    }

    .sidebar-right .widget-card,
    .sidebar-right .weather-card {
        margin-bottom: 0;
        min-width: 260px;
        flex: 0 0 auto;
    }
}

/* Widgets */
.widget-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.widget-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.widget-content {
    padding: 1rem;
}

.sidebar-legal {
    display: none;
}

.sidebar-legal p {
    margin: 0 0 0.35rem;
}

.sidebar-legal__links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.sidebar-legal a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sidebar-legal a:hover,
.sidebar-legal a:focus-visible {
    color: #ffffff;
    outline: none;
}

@media (min-width: 1024px) {
    .sidebar-legal {
        display: block;
        color: var(--text-secondary);
        font-size: 0.72rem;
        line-height: 1.45;
        text-align: center;
        padding: 0 0.5rem 1rem;
        margin-top: -0.25rem;
    }
}

/* FAB (Floating Action Button) */
.floating-create-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 14px);
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.floating-create-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: #dc2626;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
    color: white;
}

body.post-create-modal-open .floating-create-btn {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: scale(0.82);
}

@media (min-width: 768px) {
    .floating-create-btn {
        bottom: 40px;
        right: 40px;
    }
}

/* Profile Edit Page */
.edit-profile-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.edit-profile-card {
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.avatar-uploader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    cursor: pointer;
    border-radius: 50%;
}

.avatar-uploader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    transition: filter 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.avatar-uploader:hover .avatar-overlay {
    opacity: 1;
}

/* Cropper Modal Customization */
.cropper-modal-dark .modal-content {
    background: #1e1e28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.cropper-modal-dark .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cropper-modal-dark .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cropper-modal-dark .btn-close {
    filter: invert(1);
}

/* Detail View */
/* Legacy / Compatibility Styles */
.vio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Violeta Header & Filters */
.violeta-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    width: calc(100% + 2rem);
    margin: calc(-1rem - env(safe-area-inset-top, 0px)) -1rem 1.5rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.28s ease;
}

.violeta-header.header-scrolled {
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .violeta-header {
        margin: calc(-2rem - env(safe-area-inset-top, 0px)) -2rem 2rem;
        width: calc(100% + 4rem);
    }
}

.violeta-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 0.5rem;
    max-height: 104px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
}

.violeta-header.header-scrolled .violeta-header-top {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.violeta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1;
}

.violeta-admin-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.violeta-admin-mobile-btn:hover,
.violeta-admin-mobile-btn:focus-visible {
    background: rgba(139, 92, 246, 0.14);
    color: var(--primary-light);
    outline: none;
}

@media (min-width: 768px) {
    .violeta-admin-mobile-btn {
        display: none;
    }
}

.violeta-filters-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 1rem 0.75rem;
    box-sizing: border-box;
}

.violeta-advanced-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    min-height: 38px;
    white-space: nowrap;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.violeta-advanced-btn:hover,
.violeta-advanced-btn:focus-visible {
    background: rgba(139, 92, 246, 0.14);
    color: var(--primary-light);
    outline: none;
}

.violeta-advanced-btn:active {
    transform: scale(0.98);
}

.filter-divider {
    flex: 0 0 auto;
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.violeta-chip-container {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.violeta-chip-container::-webkit-scrollbar {
    display: none;
}

.violeta-chip-container .violeta-chip {
    flex: 0 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: none;
    filter: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.violeta-chip-container .violeta-chip:hover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
}

.violeta-chip-container .violeta-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    filter: none;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .violeta-header {
        width: calc(100% + 2rem);
        max-width: 100vw;
        overflow: hidden;
    }

    .violeta-advanced-btn {
        width: auto;
        justify-content: center;
    }

    .violeta-chip-container {
        max-width: 100%;
        min-width: 0;
    }
}

.violeta-filters-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

/* Chips Section */
.violeta-chips-section {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.violeta-chips-section::-webkit-scrollbar {
    display: none;
}

.violeta-chips-container {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.violeta-filter-modal {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(8, 7, 16, 0.65);
}

.violeta-chips-modal {
    padding: 0.4rem 0.1rem 0;
}

#cityFiltersModal {
    z-index: 1060;
}

#cityFiltersModal .modal-dialog {
    max-width: 520px;
}

.violeta-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease;
}

.violeta-chip:hover {
    border-color: rgba(124, 58, 237, 0.5);
    color: white;
    background: rgba(124, 58, 237, 0.1);
}

.violeta-chip.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.4);
    font-weight: 600;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.45));
}

.violeta-chip:active {
    transform: scale(0.95);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

/* Shared fade-in animation used by feed/report subviews. */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Global violet-input styling */
.violet-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}
.violet-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}
.violet-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(181, 101, 167, 0.1);
}
/* Global violet-btn-primary styling */
.violet-btn-primary {
    background: linear-gradient(135deg, #b565a7 0%, #8a5a9d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(181, 101, 167, 0.3);
    position: relative;
    overflow: hidden;
}
.violet-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.violet-btn-primary:hover::before {
    left: 100%;
}
.violet-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(181, 101, 167, 0.5);
    background: linear-gradient(135deg, #c78cc4 0%, #a067af 100%);
}
.violet-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(181, 101, 167, 0.3);
}

/* Admin Change Photo Modal */
.change-photo-modal {
    pointer-events: auto;
}

.change-photo-preview {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto;
    border: 2px solid rgba(124, 58, 237, 0.45);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moderation-strike-badge {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    line-height: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.moderation-strike-badge--yellow {
    color: #facc15;
    background: rgba(250, 204, 21, 0.14);
    border-color: rgba(250, 204, 21, 0.28);
}

.moderation-strike-badge--red {
    color: #f87171;
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.28);
}

/* --- Sidebar Widgets Improvements --- */

/* Profile Widget */
.profile-widget .widget-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(30, 27, 46, 0) 100%);
}

.profile-widget .avatar.lg {
    width: 80px;
    height: 80px;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 0 0 2px var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.profile-widget:hover .avatar.lg {
    transform: scale(1.05);
}

.profile-info {
    margin-bottom: 1.5rem;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.profile-username {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-view-profile {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-profile:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Trends Widget */
.trends-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trends-widget .widget-header h3 {
    display: block;
    line-height: 1;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.trends-widget .widget-icon {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.trends-widget button.widget-icon {
    background: transparent;
    border: 0;
    padding: 0.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.trends-widget button.widget-icon.is-toggling {
    animation: reportsTogglePop 0.52s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(139, 92, 246, 0.14);
    color: #ffffff;
}

.trends-widget button.widget-icon.is-toggling i {
    animation: reportsIconFlip 0.52s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trends-widget button.widget-icon:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.85);
    outline-offset: 2px;
}

.trends-widget button.widget-icon[aria-pressed="true"] {
    color: var(--primary-light);
}

.trends-widget .widget-icon:hover {
    color: var(--primary-light);
}

.trends-widget.is-filtering-reports {
    animation: reportsWidgetGlow 0.52s ease;
}

.reports-panel-enter {
    animation: reportsPanelEnter 0.36s ease both;
}

.trends-list {
    padding: 0.5rem 0;
}

.trends-widget #reportsByCategoryList,
.trends-widget #reportsTodayList {
    max-height: calc((3.65rem * 3) + 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.55) rgba(255, 255, 255, 0.06);
}

.trends-widget #reportsByCategoryList::-webkit-scrollbar,
.trends-widget #reportsTodayList::-webkit-scrollbar {
    width: 0.45rem;
}

.post-card.report-filter-enter,
.no-posts-message.report-filter-enter {
    animation: reportFilterEnter 0.46s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.post-card.report-filter-exit {
    animation: reportFilterExit 0.24s ease both;
    pointer-events: none;
}

@keyframes reportsTogglePop {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: none;
    }

    45% {
        transform: scale(1.18) rotate(-8deg);
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.12);
    }

    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: none;
    }
}

@keyframes reportsIconFlip {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.65;
    }

    45% {
        transform: rotate(-180deg) scale(0.86);
        opacity: 0.25;
    }

    100% {
        transform: rotate(-360deg) scale(1);
        opacity: 1;
    }
}

@keyframes reportsWidgetGlow {
    0% {
        border-color: var(--border-color);
        box-shadow: none;
    }

    45% {
        border-color: rgba(167, 139, 250, 0.55);
        box-shadow: 0 18px 45px rgba(139, 92, 246, 0.14);
    }

    100% {
        border-color: var(--border-color);
        box-shadow: none;
    }
}

@keyframes reportsPanelEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(4px);
    }

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

@keyframes reportFilterEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
        filter: blur(5px);
    }

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

@keyframes reportFilterExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
        filter: blur(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .trends-widget button.widget-icon.is-toggling,
    .trends-widget button.widget-icon.is-toggling i,
    .trends-widget.is-filtering-reports,
    .reports-panel-enter,
    .post-card.report-filter-enter,
    .no-posts-message.report-filter-enter,
    .post-card.report-filter-exit {
        animation: none !important;
    }
}

.trends-widget #reportsByCategoryList::-webkit-scrollbar-track,
.trends-widget #reportsTodayList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.trends-widget #reportsByCategoryList::-webkit-scrollbar-thumb,
.trends-widget #reportsTodayList::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.55);
    border-radius: 999px;
}

.trends-widget #reportsByCategoryList li,
.trends-widget #reportsTodayList li {
    min-height: 3.65rem;
}

.trends-widget #reportsByCategoryList .trend-title,
.trends-widget #reportsTodayList .trend-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trends-list li {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-left: 3px solid transparent;
}

.trends-list li:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--primary-color);
}

.trend-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trend-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.trend-stats {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Feed Filters Improvements --- */
.feed-filters {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    mask-image: linear-gradient(to right, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 95%, transparent 100%);
}

.feed-filters::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Violet notification (toast) */
.violet-notification {
    font-family: inherit;
}

.violet-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.violet-notification-message {
    flex: 1;
    display: block;
    line-height: 1.4;
}

.violet-notification-close {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.violet-notification-close i {
    font-size: 0.75rem;
    line-height: 1;
}

.violet-notification-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.violet-notification-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

/* ===== Estados de error (404 / 500 / genérico) ===== */
.error-state {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md, 24px) var(--space-sm, 16px);
    text-align: center;
}

.error-state__inner {
    max-width: 460px;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 28px 40px;
}

.error-state__code {
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.error-state__icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.error-state__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
}

.error-state__message {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 28px;
    font-size: 0.975rem;
}

.error-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.error-state__actions .btn {
    min-width: 160px;
}

@media (max-width: 576px) {
    .error-state__inner {
        padding: 36px 20px 28px;
    }

    .error-state__actions .btn {
        min-width: 100%;
    }
}
