/* ============================================================
   MY.UNDERWEARGASM.COM — Design System & Core Styles
   ============================================================
   Color Palette:
   - Navy (Primary):  #293462
   - Red (Accent):    #F24C4C
   - Orange (Warm):   #EC9B3B
   - Yellow (Hl):     #F7D716
   - Black:           #0D0D0D
   - White:           #FFFFFF
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────── */
:root {
    --ug-navy: #293462;
    --ug-navy-light: #3a4a80;
    --ug-navy-dark: #1a2340;
    --ug-red: #F24C4C;
    --ug-red-light: #ff6b6b;
    --ug-red-dark: #d63333;
    --ug-orange: #EC9B3B;
    --ug-orange-light: #f5b565;
    --ug-yellow: #F7D716;
    --ug-yellow-light: #ffe74c;
    --ug-black: #0D0D0D;
    --ug-white: #FFFFFF;

    --ug-gray-50: #f8f9fc;
    --ug-gray-100: #f0f2f7;
    --ug-gray-200: #e2e6ef;
    --ug-gray-300: #c8cedd;
    --ug-gray-400: #9aa3bb;
    --ug-gray-500: #6b7694;
    --ug-gray-600: #4e5872;
    --ug-gray-700: #363e54;
    --ug-gray-800: #242a3a;
    --ug-gray-900: #151924;

    --ug-bg: #f4f5f9;
    --ug-bg-card: #ffffff;
    --ug-bg-elevated: #ffffff;

    --ug-text: #1a1f2e;
    --ug-text-secondary: #6b7694;
    --ug-text-muted: #9aa3bb;

    --ug-border: #e2e6ef;
    --ug-border-light: #f0f2f7;

    --ug-radius-sm: 8px;
    --ug-radius: 12px;
    --ug-radius-lg: 16px;
    --ug-radius-xl: 24px;
    --ug-radius-full: 50%;

    --ug-shadow-sm: 0 1px 3px rgba(41, 52, 98, 0.06);
    --ug-shadow: 0 2px 8px rgba(41, 52, 98, 0.08);
    --ug-shadow-md: 0 4px 16px rgba(41, 52, 98, 0.1);
    --ug-shadow-lg: 0 8px 32px rgba(41, 52, 98, 0.12);
    --ug-shadow-xl: 0 16px 48px rgba(41, 52, 98, 0.16);

    --ug-font-heading: 'Space Grotesk', system-ui, sans-serif;
    --ug-font-body: 'Inter', system-ui, sans-serif;

    --ug-transition: 0.2s ease;
    --ug-transition-slow: 0.3s ease;

    --ug-navbar-height: 64px;
    --ug-bottom-nav-height: 64px;
}

/* ── Base Reset ────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ug-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ug-text);
    background: var(--ug-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ug-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ug-navy-dark);
}

a {
    color: var(--ug-navy);
    text-decoration: none;
    transition: color var(--ug-transition);
}
a:hover {
    color: var(--ug-red);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--ug-red);
    color: white;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--ug-gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--ug-gray-400);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ug-gray-500);
}

/* ── Typography Helpers ────────────────────────────── */
.font-heading { font-family: var(--ug-font-heading); }
.text-navy { color: var(--ug-navy) !important; }
.text-red { color: var(--ug-red) !important; }
.text-orange { color: var(--ug-orange) !important; }
.text-yellow { color: var(--ug-yellow) !important; }
.text-muted-ug { color: var(--ug-text-muted) !important; }
.bg-navy { background-color: var(--ug-navy) !important; }
.bg-red { background-color: var(--ug-red) !important; }

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */

.ug-navbar {
    background: var(--ug-navy-dark);
    height: var(--ug-navbar-height);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    z-index: 1040;
}

.ug-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ug-font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: white !important;
    text-decoration: none !important;
}
.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--ug-red), var(--ug-orange));
    border-radius: var(--ug-radius-sm);
    font-size: 1.1rem;
}
.brand-accent {
    color: var(--ug-red-light);
}
.brand-text {
    letter-spacing: -0.5px;
}

/* Search Bar (Desktop) */
.ug-search-bar {
    flex: 0 1 400px;
    margin: 0 24px;
}
.ug-search-bar .input-group {
    background: rgba(255,255,255,0.08);
    border-radius: var(--ug-radius);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: all var(--ug-transition);
}
.ug-search-bar .input-group:focus-within {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}
.ug-search-bar .input-group-text {
    background: transparent;
    border: none;
    color: var(--ug-gray-400);
    padding-left: 14px;
}
.ug-search-bar .form-control {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    padding: 10px 14px 10px 4px;
}
.ug-search-bar .form-control::placeholder {
    color: var(--ug-gray-500);
}
.ug-search-bar .form-control:focus {
    box-shadow: none;
}

/* Nav Icons */
.ug-nav-icons {
    display: flex;
    align-items: center;
}
.ug-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ug-radius-sm);
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    transition: all var(--ug-transition);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}
.ug-nav-icon:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}
.ug-badge {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 10px;
    font-weight: 700;
    background: var(--ug-red);
    color: white;
    border-radius: 10px;
    padding: 1px 5px;
    line-height: 1.3;
    min-width: 18px;
    text-align: center;
}

/* Avatar Button */
.ug-avatar-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: var(--ug-radius-full);
    padding: 2px;
    cursor: pointer;
    transition: border-color var(--ug-transition);
}
.ug-avatar-btn::after {
    display: none;
}
.ug-avatar-btn:hover {
    border-color: var(--ug-red);
}
.ug-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--ug-radius-full);
    object-fit: cover;
}

/* Dropdown */
.ug-dropdown {
    background: var(--ug-bg-elevated);
    border: 1px solid var(--ug-border);
    border-radius: var(--ug-radius);
    box-shadow: var(--ug-shadow-lg);
    padding: 8px;
    min-width: 220px;
    margin-top: 8px !important;
}
.ug-dropdown .dropdown-item {
    border-radius: var(--ug-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ug-text);
    transition: all var(--ug-transition);
}
.ug-dropdown .dropdown-item:hover {
    background: var(--ug-gray-50);
    color: var(--ug-navy);
}
.ug-dropdown .dropdown-item i {
    font-size: 1rem;
    opacity: 0.6;
}
.ug-dropdown .dropdown-header {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--ug-text-secondary);
}
.ug-dropdown .dropdown-divider {
    margin: 4px 0;
    border-color: var(--ug-border-light);
}

/* Mobile Search */
.ug-mobile-search {
    display: none;
    background: var(--ug-navy-dark);
    position: fixed;
    top: var(--ug-navbar-height);
    left: 0;
    right: 0;
    z-index: 1035;
    box-shadow: var(--ug-shadow-lg);
}
.ug-mobile-search.active {
    display: block;
    animation: slideDown 0.2s ease;
}

/* Bottom Navigation */
.ug-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--ug-bottom-nav-height);
    background: var(--ug-bg-elevated);
    border-top: 1px solid var(--ug-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.ug-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ug-text-muted);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--ug-transition);
}
.ug-bottom-nav-item i {
    font-size: 22px;
}
.ug-bottom-nav-item.active,
.ug-bottom-nav-item:hover {
    color: var(--ug-navy);
}
.ug-compose-btn i {
    color: var(--ug-red);
    font-size: 28px;
}
.ug-bottom-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--ug-radius-full);
    object-fit: cover;
}
.ug-bottom-badge {
    position: absolute;
    top: 0;
    right: 4px;
    font-size: 9px;
    font-weight: 700;
    background: var(--ug-red);
    color: white;
    border-radius: 8px;
    padding: 1px 5px;
    line-height: 1.2;
}

/* ══════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ══════════════════════════════════════════════════════ */

.ug-main {
    min-height: calc(100vh - var(--ug-navbar-height));
}
.ug-main-auth {
    padding-bottom: calc(var(--ug-bottom-nav-height) + 16px);
}

@media (min-width: 992px) {
    .ug-main-auth {
        padding-bottom: 0;
    }
}

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */

.btn {
    font-family: var(--ug-font-heading);
    font-weight: 600;
    border-radius: var(--ug-radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    transition: all var(--ug-transition);
    letter-spacing: 0.01em;
}

.btn-accent {
    background: linear-gradient(135deg, var(--ug-red), var(--ug-red-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(242, 76, 76, 0.3);
}
.btn-accent:hover {
    background: linear-gradient(135deg, var(--ug-red-light), var(--ug-red));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242, 76, 76, 0.4);
}

.btn-navy {
    background: var(--ug-navy);
    color: white;
    border: none;
}
.btn-navy:hover {
    background: var(--ug-navy-light);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-navy {
    border: 2px solid var(--ug-navy);
    color: var(--ug-navy);
    background: transparent;
}
.btn-outline-navy:hover {
    background: var(--ug-navy);
    color: white;
}

.btn-orange {
    background: var(--ug-orange);
    color: white;
    border: none;
}
.btn-orange:hover {
    background: var(--ug-orange-light);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--ug-text-secondary);
    border: 1px solid var(--ug-border);
}
.btn-ghost:hover {
    background: var(--ug-gray-50);
    color: var(--ug-text);
    border-color: var(--ug-gray-300);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--ug-radius);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ug-radius-sm);
}

/* ══════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════ */

.ug-card {
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius-lg);
    border: 1px solid var(--ug-border-light);
    box-shadow: var(--ug-shadow-sm);
    transition: all var(--ug-transition);
    overflow: hidden;
}
.ug-card:hover {
    box-shadow: var(--ug-shadow);
}

.ug-card-body {
    padding: 20px;
}
.ug-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ug-border-light);
    font-family: var(--ug-font-heading);
    font-weight: 600;
    font-size: 15px;
}

/* ══════════════════════════════════════════════════════
   POST CARD
   ══════════════════════════════════════════════════════ */

.ug-post {
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius-lg);
    border: 1px solid var(--ug-border-light);
    box-shadow: var(--ug-shadow-sm);
    margin-bottom: 16px;
    transition: all var(--ug-transition);
}

.ug-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 0;
}
.ug-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--ug-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}
.ug-post-user-info {
    flex: 1;
    min-width: 0;
}
.ug-post-user-name {
    font-family: var(--ug-font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--ug-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ug-post-user-name a {
    color: inherit;
}
.ug-post-user-name a:hover {
    color: var(--ug-navy);
}
.ug-verified-badge {
    color: var(--ug-navy);
    font-size: 14px;
}
.ug-post-meta {
    font-size: 13px;
    color: var(--ug-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ug-post-more {
    background: none;
    border: none;
    color: var(--ug-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--ug-radius-sm);
    transition: all var(--ug-transition);
}
.ug-post-more:hover {
    background: var(--ug-gray-100);
    color: var(--ug-text);
}

.ug-post-content {
    padding: 12px 20px;
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
}
.ug-post-content .hashtag {
    color: var(--ug-navy);
    font-weight: 500;
}
.ug-post-content .mention {
    color: var(--ug-red);
    font-weight: 500;
}

.ug-post-media {
    padding: 0 20px;
}
.ug-post-media img {
    width: 100%;
    border-radius: var(--ug-radius);
    cursor: pointer;
    transition: opacity var(--ug-transition);
}
.ug-post-media img:hover {
    opacity: 0.95;
}

.ug-post-media-grid {
    display: grid;
    gap: 4px;
    border-radius: var(--ug-radius);
    overflow: hidden;
}
.ug-post-media-grid.grid-2 { grid-template-columns: 1fr 1fr; }
.ug-post-media-grid.grid-3 { grid-template-columns: 1fr 1fr; }
.ug-post-media-grid.grid-3 img:first-child { grid-row: span 2; }
.ug-post-media-grid.grid-4 { grid-template-columns: 1fr 1fr; }
.ug-post-media-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}

/* Poll */
.ug-poll {
    padding: 16px 20px;
    margin: 0 20px 12px;
    background: var(--ug-gray-50);
    border-radius: var(--ug-radius-lg);
    border: 1px solid var(--ug-border-light);
}
.ug-poll-question {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--ug-text);
    line-height: 1.4;
}
.ug-poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ug-poll-option {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s;
}
.ug-poll-option.clickable {
    cursor: pointer;
}
.ug-poll-option.clickable:hover {
    opacity: 0.9;
}
.ug-poll-option.clickable:hover .ug-poll-bar-track {
    border-color: var(--ug-navy);
}
.ug-poll-bar-track {
    flex: 1;
    position: relative;
    height: 36px;
    background: var(--ug-gray-100);
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.ug-poll-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--ug-navy);
    opacity: 0.35;
    border-radius: 16px;
    transition: width 0.3s ease;
}
.ug-poll-option.voted .ug-poll-bar-fill {
    opacity: 0.5;
}
.ug-poll-option-text {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 500;
    font-size: 14px;
    color: var(--ug-text);
    z-index: 1;
    pointer-events: none;
}
.ug-poll-option-pct {
    font-size: 14px;
    font-weight: 600;
    color: var(--ug-text-muted);
    min-width: 36px;
    text-align: right;
}
.ug-poll-option.voted .ug-poll-option-pct {
    color: var(--ug-navy);
}
.ug-poll-meta {
    font-size: 13px;
    color: var(--ug-text-muted);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--ug-border-light);
}

.ug-post-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--ug-text-muted);
}
.ug-post-stats span {
    cursor: pointer;
}
.ug-post-stats span:hover {
    color: var(--ug-text);
    text-decoration: underline;
}

.ug-post-actions {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--ug-border-light);
    padding: 4px 12px;
}
.ug-post-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    color: var(--ug-text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--ug-radius-sm);
    cursor: pointer;
    transition: all var(--ug-transition);
    background: none;
    border: none;
}
.ug-post-action:hover {
    background: var(--ug-gray-50);
}
.ug-post-action.liked {
    color: var(--ug-red);
}
.ug-post-action.liked i {
    animation: heartPop 0.3s ease;
}
.ug-post-action.reposted {
    color: #10b981;
}
.ug-post-action.bookmarked {
    color: var(--ug-orange);
}
.ug-post-action i {
    font-size: 1.15rem;
}

/* NSFW overlay */
.ug-nsfw-overlay {
    position: relative;
}
.ug-nsfw-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(30px);
    border-radius: var(--ug-radius);
    z-index: 1;
}
.ug-nsfw-overlay::after {
    content: '🔞 Sensitive Content — Click to reveal';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    text-align: center;
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--ug-radius);
    cursor: pointer;
}
.ug-nsfw-overlay.revealed::before,
.ug-nsfw-overlay.revealed::after {
    display: none;
}

/* ══════════════════════════════════════════════════════
   COMPOSER
   ══════════════════════════════════════════════════════ */

.ug-composer {
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius-lg);
    border: 1px solid var(--ug-border-light);
    box-shadow: var(--ug-shadow-sm);
    padding: 20px;
    margin-bottom: 16px;
}
.ug-composer-input {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ug-composer textarea {
    width: 100%;
    border: none;
    resize: none;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ug-text);
    padding: 8px 0;
    min-height: 60px;
    font-family: var(--ug-font-body);
}
.ug-composer textarea:focus {
    outline: none;
}
.ug-composer textarea::placeholder {
    color: var(--ug-text-muted);
}
.ug-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--ug-border-light);
    margin-top: 12px;
}
.ug-composer-tools {
    display: flex;
    gap: 4px;
}
.ug-composer-tool {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--ug-navy);
    font-size: 1.15rem;
    border-radius: var(--ug-radius-sm);
    cursor: pointer;
    transition: all var(--ug-transition);
}
.ug-composer-tool.active,
.ug-composer-tool:hover {
    background: var(--ug-gray-100);
    color: var(--ug-red);
}
.ug-composer-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
}
.ug-composer-preview-img {
    width: 80px;
    height: 80px;
    border-radius: var(--ug-radius-sm);
    object-fit: cover;
    position: relative;
}

/* Image Lightbox */
#imageLightboxModal .modal-dialog { max-width: 95vw; }
#imageLightboxModal .modal-content { box-shadow: 0 0 0 9999px rgba(0,0,0,0.85); }
#imageLightboxModal .btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
#imageLightboxModal #imageLightboxPrev,
#imageLightboxModal #imageLightboxNext { z-index: 1056; }

/* ══════════════════════════════════════════════════════
   PROFILE CARD / PAGE
   ══════════════════════════════════════════════════════ */

.ug-profile-cover {
    height: 280px;
    background: linear-gradient(135deg, var(--ug-navy), var(--ug-navy-dark));
    background-size: cover;
    background-position: center;
    position: relative;
}
.ug-profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.ug-profile-header {
    max-width: 900px;
    margin: -60px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.ug-profile-avatar-wrap {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.ug-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--ug-radius-full);
    border: 4px solid var(--ug-bg-card);
    object-fit: cover;
    box-shadow: var(--ug-shadow-lg);
}
.ug-profile-names {
    flex: 1;
    padding-bottom: 8px;
}
.ug-profile-display-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ug-profile-username {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.ug-profile-actions-top {
    display: flex;
    gap: 8px;
    align-self: flex-end;
    padding-bottom: 12px;
}

.ug-profile-info {
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius-lg);
    padding: 24px;
    margin-top: 16px;
    box-shadow: var(--ug-shadow-sm);
    border: 1px solid var(--ug-border-light);
}
.ug-profile-bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ug-text);
    margin-bottom: 16px;
}
.ug-profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--ug-text-secondary);
}
.ug-profile-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ug-profile-detail i {
    color: var(--ug-navy);
    font-size: 1rem;
}
.ug-profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ug-border-light);
}
.ug-profile-stat {
    text-align: center;
    cursor: pointer;
}
.ug-profile-stat-num {
    font-family: var(--ug-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ug-navy);
}
.ug-profile-stat-label {
    font-size: 12px;
    color: var(--ug-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Card (Discover) */
.ug-member-card {
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius-lg);
    border: 1px solid var(--ug-border-light);
    box-shadow: var(--ug-shadow-sm);
    overflow: hidden;
    transition: all var(--ug-transition-slow);
    text-align: center;
}
.ug-member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ug-shadow-md);
}
.ug-member-card-cover {
    height: 100px;
    background: linear-gradient(135deg, var(--ug-navy), var(--ug-navy-light));
    background-size: cover;
    background-position: center;
}
.ug-member-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--ug-radius-full);
    border: 3px solid var(--ug-bg-card);
    object-fit: cover;
    margin-top: -36px;
    box-shadow: var(--ug-shadow);
}
.ug-member-card-body {
    padding: 8px 16px 20px;
}
.ug-member-card-name {
    font-family: var(--ug-font-heading);
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
    color: var(--ug-text);
}
.ug-member-card-username {
    font-size: 13px;
    color: var(--ug-text-muted);
}
.ug-member-card-location {
    font-size: 12px;
    color: var(--ug-text-secondary);
    margin-top: 4px;
}
.ug-member-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 10px;
}
.ug-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--ug-gray-100);
    color: var(--ug-text-secondary);
}
.ug-tag-navy { background: rgba(41,52,98,0.1); color: var(--ug-navy); }
.ug-tag-red { background: rgba(242,76,76,0.1); color: var(--ug-red); }

/* Social links — profile header chips */
.ug-social-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ug-navy);
    background: var(--ug-gray-100);
    border-radius: 6px;
    text-decoration: none;
    transition: background var(--ug-transition), color var(--ug-transition);
}
.ug-social-chip:hover {
    background: var(--ug-gray-200);
    color: var(--ug-navy-dark);
}

/* Social links — About tab: matches Details layout */
.ug-social-row:hover {
    color: var(--ug-navy) !important;
}

.ug-online-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--ug-bg-card);
    display: inline-block;
}

/* ══════════════════════════════════════════════════════
   MESSAGES
   ══════════════════════════════════════════════════════ */

.ug-messages-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    height: calc(100vh - var(--ug-navbar-height));
    background: var(--ug-bg-card);
}
@media (max-width: 991px) {
    .ug-messages-layout {
        grid-template-columns: 1fr;
    }
}

.ug-conversations-panel {
    border-right: 1px solid var(--ug-border);
    overflow-y: auto;
}
.ug-conversations-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ug-border-light);
    font-family: var(--ug-font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--ug-bg-card);
    z-index: 5;
}

.ug-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background var(--ug-transition);
    border-bottom: 1px solid var(--ug-border-light);
}
.ug-conversation-item:hover,
.ug-conversation-item.active {
    background: var(--ug-gray-50);
}
.ug-conversation-item.unread {
    background: rgba(41, 52, 98, 0.04);
}
.ug-conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--ug-radius-full);
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
}
.ug-conversation-info {
    flex: 1;
    min-width: 0;
}
.ug-conversation-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ug-text);
}
.ug-conversation-preview {
    font-size: 13px;
    color: var(--ug-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ug-conversation-time {
    font-size: 12px;
    color: var(--ug-text-muted);
    white-space: nowrap;
}
.ug-conversation-unread-badge {
    width: 20px;
    height: 20px;
    background: var(--ug-red);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ug-chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* allows flex child to shrink and scroll */
}
.ug-chat-header {
    flex-shrink: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--ug-border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ug-bg-card);
}
.ug-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ug-message {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: var(--ug-radius-lg);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}
.ug-message-sent {
    align-self: flex-end;
    background: var(--ug-navy);
    color: white;
    border-bottom-right-radius: 4px;
}
.ug-message-received {
    align-self: flex-start;
    background: var(--ug-gray-100);
    color: var(--ug-text);
    border-bottom-left-radius: 4px;
}
.ug-message-time {
    font-size: 11px;
    color: inherit;
    opacity: 0.6;
    margin-top: 4px;
    display: block;
}
.ug-chat-input {
    padding: 20px 24px 28px;
    border-top: 1px solid var(--ug-border);
    display: flex;
    gap: 12px;
    align-items: flex-end;
    background: var(--ug-bg-card);
}
@media (max-width: 991px) {
    .ug-chat-input {
        padding-bottom: calc(var(--ug-bottom-nav-height) + 20px);
    }
}
.ug-chat-input-wrap {
    position: relative;
}
.ug-emoji-btn {
    flex-shrink: 0;
}
.ug-emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: var(--ug-bg-card);
    border: 1px solid var(--ug-border);
    border-radius: var(--ug-radius-lg);
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
}
.ug-emoji-picker.d-none { display: none !important; }
.ug-emoji-picker span {
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--ug-radius);
    transition: background 0.15s;
}
.ug-emoji-picker span:hover {
    background: var(--ug-gray-100);
}
.ug-chat-input textarea {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--ug-border);
    border-radius: var(--ug-radius);
    padding: 10px 14px;
    resize: none;
    font-size: 14px;
    max-height: 120px;
    font-family: var(--ug-font-body);
}
.ug-chat-input textarea:focus {
    outline: none;
    border-color: var(--ug-navy);
}
.ug-chat-img-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}
.ug-message img.ug-message-img {
    max-width: 140px;
    max-height: 140px;
    border-radius: var(--ug-radius);
    display: block;
    cursor: pointer;
}
.ug-message .ug-msg-img-wrap {
    display: inline-block;
    cursor: pointer;
}
.ug-message .ug-msg-img-wrap:active { opacity: 0.9; }

/* ══════════════════════════════════════════════════════
   FEED LAYOUT (3-column)
   ══════════════════════════════════════════════════════ */

.ug-feed-layout {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}
@media (max-width: 1199px) {
    .ug-feed-layout {
        grid-template-columns: 1fr 300px;
    }
    .ug-feed-sidebar-left {
        display: none;
    }
}
@media (max-width: 991px) {
    .ug-feed-layout {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .ug-feed-sidebar-right {
        display: none;
    }
}

/* Left sidebar */
.ug-feed-sidebar-left {
    position: sticky;
    top: calc(var(--ug-navbar-height) + 24px);
    height: fit-content;
}
.ug-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ug-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--ug-radius-sm);
    color: var(--ug-text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--ug-transition);
}
.ug-sidebar-nav li a:hover,
.ug-sidebar-nav li a.active {
    background: var(--ug-bg-card);
    color: var(--ug-navy);
    box-shadow: var(--ug-shadow-sm);
}
.ug-sidebar-nav li a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Right sidebar */
.ug-feed-sidebar-right {
    position: sticky;
    top: calc(var(--ug-navbar-height) + 24px);
    height: fit-content;
}

/* Sidebar widget */
.ug-widget {
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius-lg);
    border: 1px solid var(--ug-border-light);
    box-shadow: var(--ug-shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}
.ug-widget-header {
    padding: 14px 16px;
    font-family: var(--ug-font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--ug-text);
    border-bottom: 1px solid var(--ug-border-light);
}
.ug-widget-body {
    padding: 12px 16px;
}
.ug-widget-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--ug-border-light);
    text-align: center;
}
.ug-widget-footer a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ug-navy);
}

/* Trending tags widget */
.ug-trending-item {
    padding: 8px 0;
}
.ug-trending-item + .ug-trending-item {
    border-top: 1px solid var(--ug-border-light);
}
.ug-trending-tag {
    font-weight: 600;
    color: var(--ug-navy);
    font-size: 14px;
}
.ug-trending-count {
    font-size: 12px;
    color: var(--ug-text-muted);
}

/* Suggested user widget */
.ug-suggest-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.ug-suggest-user + .ug-suggest-user {
    border-top: 1px solid var(--ug-border-light);
}
.ug-suggest-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--ug-radius-full);
    object-fit: cover;
}
.ug-suggest-info {
    flex: 1;
    min-width: 0;
}
.ug-suggest-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--ug-text);
}
.ug-suggest-username {
    font-size: 12px;
    color: var(--ug-text-muted);
}

/* ══════════════════════════════════════════════════════
   DISCOVER / GRID
   ══════════════════════════════════════════════════════ */

.ug-discover-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.ug-filter-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--ug-border);
    background: var(--ug-bg-card);
    color: var(--ug-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ug-transition);
}
.ug-filter-btn:hover,
.ug-filter-btn.active {
    background: var(--ug-navy);
    color: white;
    border-color: var(--ug-navy);
}

.ug-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
@media (max-width: 575px) {
    .ug-member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ══════════════════════════════════════════════════════
   HOMEPAGE / PUBLIC
   ══════════════════════════════════════════════════════ */

.ug-hero {
    background: linear-gradient(135deg, var(--ug-navy-dark) 0%, var(--ug-navy) 50%, var(--ug-navy-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px;
}
.ug-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242,76,76,0.15), transparent 70%);
    border-radius: 50%;
}
.ug-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236,155,59,0.1), transparent 70%);
    border-radius: 50%;
}
.ug-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}
.ug-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
}
.ug-hero h1 .accent {
    background: linear-gradient(135deg, var(--ug-red), var(--ug-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ug-hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 32px;
}
.ug-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ug-hero-visual {
    position: relative;
    z-index: 2;
}
.ug-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}
.ug-hero-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ug-yellow);
}
.ug-hero-stat p {
    font-size: 14px;
    opacity: 0.6;
    margin: 0;
}

@media (max-width: 767px) {
    .ug-hero {
        padding: 60px 0 80px;
    }
    .ug-hero h1 {
        font-size: 2.2rem;
    }
    .ug-hero-stats {
        gap: 24px;
    }
    .ug-hero-stat h3 {
        font-size: 1.4rem;
    }
}

/* Features Section */
.ug-features {
    padding: 80px 0;
}
.ug-section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 12px;
}
.ug-section-subtitle {
    text-align: center;
    color: var(--ug-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ug-feature-card {
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--ug-border-light);
    box-shadow: var(--ug-shadow-sm);
    transition: all var(--ug-transition-slow);
    height: 100%;
}
.ug-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ug-shadow-lg);
}
.ug-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--ug-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    color: white;
}
.ug-feature-icon.icon-red { background: linear-gradient(135deg, var(--ug-red), #e03636); }
.ug-feature-icon.icon-navy { background: linear-gradient(135deg, var(--ug-navy), var(--ug-navy-light)); }
.ug-feature-icon.icon-orange { background: linear-gradient(135deg, var(--ug-orange), #d68a2a); }
.ug-feature-icon.icon-yellow { background: linear-gradient(135deg, var(--ug-yellow), #e6c600); }

.ug-feature-card h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.ug-feature-card p {
    font-size: 14px;
    color: var(--ug-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.ug-cta-section {
    background: linear-gradient(135deg, var(--ug-navy-dark), var(--ug-navy));
    color: white;
    padding: 80px 0;
    text-align: center;
}
.ug-cta-section h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.ug-cta-section p {
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Trust Section */
.ug-trust {
    padding: 60px 0;
    background: var(--ug-gray-50);
}
.ug-trust-item {
    text-align: center;
    padding: 24px;
}
.ug-trust-item i {
    font-size: 2rem;
    color: var(--ug-navy);
    margin-bottom: 12px;
}
.ug-trust-item h6 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.ug-trust-item p {
    font-size: 13px;
    color: var(--ug-text-secondary);
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   FORMS / AUTH
   ══════════════════════════════════════════════════════ */

.ug-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ug-navy-dark) 0%, var(--ug-navy) 100%);
    padding: 40px 16px;
}
.ug-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius-xl);
    box-shadow: var(--ug-shadow-xl);
    padding: 40px 32px;
}
.ug-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.ug-auth-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 8px;
}
.ug-auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--ug-text-secondary);
    margin-bottom: 28px;
}

.ug-form-group {
    margin-bottom: 20px;
}
.ug-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ug-text);
    margin-bottom: 6px;
    display: block;
}
.ug-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ug-border);
    border-radius: var(--ug-radius-sm);
    font-size: 14px;
    color: var(--ug-text);
    background: var(--ug-bg);
    transition: all var(--ug-transition);
    font-family: var(--ug-font-body);
}
.ug-form-control:focus {
    outline: none;
    border-color: var(--ug-navy);
    box-shadow: 0 0 0 3px rgba(41, 52, 98, 0.1);
    background: white;
}
.ug-form-control::placeholder {
    color: var(--ug-text-muted);
}

.ug-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ug-text-secondary);
}

.ug-form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--ug-text-muted);
    font-size: 13px;
}
.ug-form-divider::before,
.ug-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ug-border);
}

.ug-form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--ug-text-secondary);
}
.ug-form-footer a {
    color: var(--ug-navy);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   NOTIFICATIONS
   ══════════════════════════════════════════════════════ */

.ug-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ug-border-light);
    transition: background var(--ug-transition);
}
.ug-notification-item:hover {
    background: var(--ug-gray-50);
}
.ug-notification-item.unread {
    background: rgba(41, 52, 98, 0.03);
}
.ug-notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--ug-radius-full);
    object-fit: cover;
}
.ug-notification-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}
.ug-notification-content strong {
    color: var(--ug-text);
}
.ug-notification-time {
    font-size: 12px;
    color: var(--ug-text-muted);
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   ADMIN
   ══════════════════════════════════════════════════════ */

.ug-admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
@media (max-width: 991px) {
    .ug-admin-layout {
        grid-template-columns: 1fr;
    }
}

.ug-admin-sidebar {
    background: var(--ug-navy-dark);
    color: white;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.ug-admin-sidebar-brand {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}
.ug-admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ug-admin-nav-section {
    padding: 12px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
}
.ug-admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--ug-transition);
}
.ug-admin-nav li a:hover,
.ug-admin-nav li a.active {
    color: white;
    background: rgba(255,255,255,0.08);
}
.ug-admin-nav li a.active {
    border-right: 3px solid var(--ug-red);
}
.ug-admin-nav li a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.ug-admin-content {
    padding: 24px;
    background: var(--ug-bg);
}
.ug-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.ug-admin-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Admin Stats Cards */
.ug-stat-card {
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius);
    padding: 20px 24px;
    border: 1px solid var(--ug-border-light);
    box-shadow: var(--ug-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--ug-transition);
}
.ug-stat-card:hover {
    box-shadow: var(--ug-shadow);
}
.ug-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ug-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}
.ug-stat-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.ug-stat-info p {
    font-size: 13px;
    color: var(--ug-text-muted);
    margin: 0;
}

/* Admin Table */
.ug-table {
    width: 100%;
    background: var(--ug-bg-card);
    border-radius: var(--ug-radius);
    border: 1px solid var(--ug-border-light);
    overflow: hidden;
}
.ug-table th {
    background: var(--ug-gray-50);
    font-family: var(--ug-font-heading);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ug-text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--ug-border);
}
.ug-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--ug-border-light);
    vertical-align: middle;
}
.ug-table tr:last-child td {
    border-bottom: none;
}
.ug-table tr:hover td {
    background: var(--ug-gray-50);
}

/* Status badges */
.ug-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.ug-status-active { background: rgba(16,185,129,0.1); color: #059669; }
.ug-status-pending { background: rgba(245,158,11,0.1); color: #d97706; }
.ug-status-suspended { background: rgba(239,68,68,0.1); color: #dc2626; }
.ug-status-banned { background: rgba(239,68,68,0.15); color: #b91c1c; }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

.ug-footer {
    background: var(--ug-navy-dark);
    color: rgba(255,255,255,0.7);
}
.ug-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ug-font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}
.ug-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}
.ug-footer-heading {
    font-family: var(--ug-font-heading);
    font-weight: 600;
    font-size: 14px;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ug-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ug-footer-links li {
    margin-bottom: 8px;
}
.ug-footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: color var(--ug-transition);
}
.ug-footer-links a:hover {
    color: white;
}
.ug-footer-social {
    display: flex;
    gap: 12px;
}
.ug-footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ug-radius-sm);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    transition: all var(--ug-transition);
}
.ug-footer-social a:hover {
    background: var(--ug-red);
    color: white;
}
.ug-footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════ */

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease;
}
.animate-slide-up {
    animation: slideUp 0.4s ease;
}

/* ══════════════════════════════════════════════════════
   LOADING / SKELETON
   ══════════════════════════════════════════════════════ */

.ug-skeleton {
    background: linear-gradient(90deg, var(--ug-gray-100) 25%, var(--ug-gray-200) 50%, var(--ug-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--ug-radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ug-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--ug-gray-200);
    border-top-color: var(--ug-navy);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.ug-loading-more {
    text-align: center;
    padding: 32px;
    color: var(--ug-text-muted);
}

/* ══════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════ */

.gap-ug { gap: 16px; }
.rounded-ug { border-radius: var(--ug-radius); }
.shadow-ug { box-shadow: var(--ug-shadow); }

.ug-divider {
    border: none;
    height: 1px;
    background: var(--ug-border-light);
    margin: 16px 0;
}

.ug-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ug-text-muted);
}
.ug-empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 16px;
}
.ug-empty-state h5 {
    color: var(--ug-text-secondary);
    margin-bottom: 8px;
}
.ug-empty-state p {
    font-size: 14px;
    max-width: 320px;
    margin: 0 auto;
}

/* ═══ TAGIFY CUSTOM STYLING ═══ */

.tagify {
    --tags-border-color: var(--ug-border);
    --tags-hover-border-color: var(--ug-navy);
    --tags-focus-border-color: var(--ug-navy);
    --tag-bg: rgba(41, 52, 98, 0.08);
    --tag-hover: rgba(41, 52, 98, 0.14);
    --tag-text-color: var(--ug-navy);
    --tag-text-color--edit: var(--ug-navy);
    --tag-remove-bg: rgba(242, 76, 76, 0.15);
    --tag-remove-btn-color: var(--ug-red);
    --tag-pad: 4px 8px;
    --input-color: var(--ug-text);
    --placeholder-color: var(--ug-text-muted);
    border-radius: var(--ug-radius-sm);
    background: var(--ug-bg);
    min-height: 42px;
    padding: 4px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tagify:focus-within {
    border-color: var(--ug-navy);
    box-shadow: 0 0 0 3px rgba(41, 52, 98, 0.1);
}
.tagify__tag {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.tagify__tag > div { padding: 3px 6px; }
.tagify__tag__removeBtn { margin-left: 2px; }
.tagify__input { padding: 4px 6px; font-size: 14px; }
.tagify--select .tagify__input { min-width: 80px; }

.tagify__dropdown {
    border: 1px solid var(--ug-border);
    border-radius: var(--ug-radius-sm);
    box-shadow: var(--ug-shadow-md);
    background: white;
    z-index: 1100;
}
.tagify__dropdown__wrapper { border-radius: var(--ug-radius-sm); max-height: 250px; }
.tagify__dropdown__item {
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ug-text);
    border-radius: 0;
}
.tagify__dropdown__item--active {
    background: rgba(41, 52, 98, 0.06);
    color: var(--ug-navy);
}
.tagify__dropdown__item:hover {
    background: rgba(41, 52, 98, 0.04);
}

.ug-unit-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ug-unit-toggle .btn-check:checked + .btn-outline-secondary {
    background: var(--ug-navy);
    border-color: var(--ug-navy);
    color: white;
}
