/* ====================================
   CSS CUSTOM PROPERTIES (Variables)
   ==================================== */
:root {
    /* Color Palette - Dark retro theme (default) */
    --bg-primary: #0a0e14;           /* Near-black background */
    --bg-secondary: #0d1117;         /* Slightly lighter for contrast */
    --bg-tertiary: #161b22;          /* Card/panel backgrounds */
    
    /* Dynamic Accent Color (can be changed via JS) */
    --accent-primary: #00d4ff;
    --accent-primary-rgb: 0, 212, 255;
    
    /* Static accent colors for reference */
    --accent-cyan: #00d4ff;
    --accent-green: #39ff14;
    --accent-purple: #bf5af2;
    --accent-orange: #ff9500;
    --accent-pink: #ff6b9d;
    --accent-red: #ff453a;
    
    /* Glow variants (use dynamic accent) */
    --glow-primary: 0 0 10px rgba(var(--accent-primary-rgb), 0.5), 0 0 20px rgba(var(--accent-primary-rgb), 0.3);
    --glow-cyan: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-green: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
    
    /* Text Colors */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Functional Colors */
    --error: #f85149;
    --success: #39ff14;
    --warning: #d29922;
    
    /* Discord brand color */
    --discord-blurple: #5865F2;
    
    /* Glass effect */
    --glass-bg: rgba(22, 27, 34, 0.8);
    --glass-border: rgba(var(--accent-primary-rgb), 0.2);
    
    /* Typography */
    --font-mono: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ====================================
   THEME VARIANTS
   ==================================== */

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eaeef2;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --text-muted: #8b949e;
    --glass-bg: rgba(246, 248, 250, 0.9);
}

/* Midnight Theme */
[data-theme="midnight"] {
    --bg-primary: #0d0d1a;
    --bg-secondary: #12122a;
    --bg-tertiary: #1a1a3a;
    --glass-bg: rgba(26, 26, 58, 0.8);
}

/* Accent Color Variants */
[data-accent="cyan"] {
    --accent-primary: #00d4ff;
    --accent-primary-rgb: 0, 212, 255;
}

[data-accent="green"] {
    --accent-primary: #39ff14;
    --accent-primary-rgb: 57, 255, 20;
}

[data-accent="purple"] {
    --accent-primary: #bf5af2;
    --accent-primary-rgb: 191, 90, 242;
}

[data-accent="orange"] {
    --accent-primary: #ff9500;
    --accent-primary-rgb: 255, 149, 0;
}

[data-accent="pink"] {
    --accent-primary: #ff6b9d;
    --accent-primary-rgb: 255, 107, 157;
}

[data-accent="red"] {
    --accent-primary: #ff453a;
    --accent-primary-rgb: 255, 69, 58;
}

/* ====================================
   CSS RESET & BASE STYLES
   ==================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    /* Enable smooth touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

/* ====================================
   SCANLINE EFFECT - Subtle CRT overlay
   ==================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.hidden {
    display: none !important;
}

.glow-text {
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
}

.glow-text-small {
    color: var(--accent-primary);
    text-shadow: 0 0 5px rgba(var(--accent-primary-rgb), 0.5);
}

/* ====================================
   GLASS PANEL - Glassmorphism effect
   ==================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.glass-panel-input {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

/* ====================================
   PAGE LAYOUTS
   ==================================== */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Landing & Join Pages */
.landing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.landing-container h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xl);
}

.info-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.info-text code {
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: var(--accent-green);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: var(--spacing-xl);
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), color-mix(in srgb, var(--accent-primary) 70%, black));
    color: var(--bg-primary);
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-discord {
    background: var(--discord-blurple);
    color: white;
    width: 100%;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
    padding: var(--spacing-sm) var(--spacing-md);
}

.btn-ghost:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.8rem;
}

.btn-send {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

.btn-send:hover {
    box-shadow: var(--glow-primary);
}

/* Button loading state */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-loading::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================
   FORMS
   ==================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.forgot-link {
    text-align: center;
    margin-top: var(--spacing-sm);
    font-size: 0.8rem;
}

.forgot-link a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-link a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    padding: var(--spacing-sm);
    background: rgba(248, 81, 73, 0.1);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* ====================================
   CHAT PAGE LAYOUT
   ==================================== */
#chat-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    gap: var(--spacing-md);
    z-index: 100;
    height: 52px; /* Fixed height for consistent layout */
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-left .logo {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    user-select: none;
    transition: text-shadow var(--transition-normal);
}

.header-left .logo:hover {
    text-shadow: 0 0 12px rgba(var(--accent-primary-rgb), 0.8), 0 0 24px rgba(var(--accent-primary-rgb), 0.4);
}

/* Zen mode - background only with wolves */
.zen-mode .chat-layout {
    visibility: hidden;
    pointer-events: none;
}

.zen-mode .chat-header {
    background: transparent;
    border-bottom-color: transparent;
    position: relative;
    z-index: 100;
}

.zen-mode .chat-header .header-center,
.zen-mode .chat-header .header-right > *:not(#logout-btn):not(.logo) {
    visibility: hidden;
}

.zen-mode .chat-header .header-right {
    visibility: hidden;
}

.zen-mode .chat-header .header-left {
    visibility: visible;
}

.zen-mode .chat-header .header-left .logo {
    visibility: visible;
}

.logo-short {
    display: none;
}

.header-center {
    flex: 1;
    text-align: center;
}

.channel-indicator {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.mobile-only {
    display: none;
}

/* ====================================
   CHAT LAYOUT WITH SIDEBARS
   ==================================== */
.chat-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
    height: calc(100vh - 52px);
    position: relative;
    z-index: 1;
}

/* ====================================
   SIDEBARS
   ==================================== */
.sidebar {
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 45;
}

.sidebar-right {
    border-right: none;
    border-left: 1px solid var(--glass-border);
    width: 200px;
}

.sidebar-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-subheader {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    letter-spacing: 0.5px;
}

.sidebar-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--spacing-md) 0;
}

/* ====================================
   CHANNEL LIST
   ==================================== */
.channel-list {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
    gap: 2px;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.channel-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.channel-btn.active {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
}

.channel-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.admin-section {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: 1px solid var(--glass-border);
}

.admin-section .channel-list {
    padding: 0;
}

.admin-section .channel-btn {
    justify-content: center;
}

/* ====================================
   MEMBERS LIST
   ==================================== */
.members-list {
    padding: var(--spacing-sm);
    overflow-y: auto;
}

.member-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.member-item:hover {
    background: var(--bg-tertiary);
}

.member-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    flex-shrink: 0;
}

.member-status.offline {
    background: var(--text-muted);
}

.member-status.idle {
    background: #f0c000;
}

.member-name {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-name.admin {
    color: var(--accent-primary);
}

.member-badge {
    font-size: 0.7rem;
    margin-left: auto;
}

.member-name.offline {
    color: var(--text-muted);
}

.member-name.can-view {
    color: var(--text-primary);
}

.member-name.no-view {
    color: var(--text-muted);
    opacity: 0.5;
}

.members-section-header {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    padding: var(--spacing-xs) var(--spacing-md);
}

.members-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--spacing-sm) var(--spacing-md);
}

/* ====================================
   CHAT CONTAINER
   ==================================== */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: 160px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: transparent;
    opacity: 0.4;
    transition: opacity var(--transition-normal), background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.messages-area:hover,
.messages-area:focus-within {
    opacity: 1;
    background: rgba(var(--accent-primary-rgb), 0.02);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Custom scrollbar */
.messages-area::-webkit-scrollbar {
    width: 8px;
}

.messages-area::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.messages-area::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ====================================
   MESSAGE STYLES
   ==================================== */
.message {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
    max-width: 100%;
    word-wrap: break-word;
}

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

/* "Says" message style */
.message-says {
    background: transparent;
    border-left: 3px solid var(--accent-primary);
}

.message-says .message-sender {
    color: var(--accent-primary);
    font-weight: 500;
}

.message-says .message-verb {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.message-says .message-content {
    color: var(--text-primary);
}

.message-says .message-content::before {
    content: '"';
    color: var(--accent-primary);
    opacity: 0.5;
}

.message-says .message-content::after {
    content: '"';
    color: var(--accent-primary);
    opacity: 0.5;
}

/* Action message style (starts with :) */
.message-action {
    background: transparent;
    border-left: 3px solid var(--accent-green);
}

.message-action .message-content {
    font-style: italic;
}

.message-action .message-inline {
    font-style: normal;
}

.message-action .message-sender {
    color: var(--accent-green);
    font-weight: 500;
    font-style: normal;
}

.message-action .message-timestamp {
    font-style: normal;
}

.message-action .message-content {
    color: var(--text-secondary);
}

/* Inline message layout */
.message-inline {
    display: inline;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-timestamp {
    color: var(--text-muted);
    font-size: 0.7rem;
    float: right;
    margin-left: var(--spacing-md);
}

/* Message Links */
.message-link {
    color: var(--accent-primary);
    text-decoration: none;
    word-break: break-all;
}

.message-link:hover {
    text-decoration: underline;
}

.image-link-placeholder {
    color: var(--accent-primary);
    opacity: 0.7;
    font-size: 0.85em;
}

/* Image Embeds */
.message-embeds {
    margin-top: var(--spacing-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    clear: both;
}

.image-embed {
    max-width: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
}

.image-embed img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.image-embed img:hover {
    opacity: 0.9;
}

.image-embed a {
    display: block;
}

/* System messages */
.message-system {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: var(--spacing-sm);
    background: none;
    border: none;
}

/* ====================================
   INPUT AREA
   ==================================== */
.input-area {
    padding: var(--spacing-md) var(--spacing-lg);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    border-top: none;
    transition: background var(--transition-normal), opacity var(--transition-normal), backdrop-filter var(--transition-normal);
    opacity: 0.4;
}

.input-area:hover,
.input-area:focus-within,
.input-area.has-text,
.input-area.keyboard-open {
    opacity: 1;
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
}

#message-input {
flex: 1;
background: rgba(10, 14, 20, 0.4);
border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

#message-input:focus {
    outline: none;
    background: rgba(10, 14, 20, 0.6);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

#message-input::placeholder {
    color: var(--text-muted);
}

.input-hint {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: var(--spacing-sm);
}

.input-hint kbd {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* Emoji Picker Button */
.emoji-picker-btn {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.input-area:hover .emoji-picker-btn,
.input-area:focus-within .emoji-picker-btn,
.input-area.has-text .emoji-picker-btn,
.input-area.keyboard-open .emoji-picker-btn {
    opacity: 1;
}

.btn-send {
    opacity: 0.5;
    transition: opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.input-area:hover .btn-send,
.input-area:focus-within .btn-send,
.input-area.has-text .btn-send,
.input-area.keyboard-open .btn-send {
    opacity: 1;
}

/* Emoji Picker */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 320px;
    max-height: 300px;
    z-index: 400;
    display: flex;
    flex-direction: column;
}

.emoji-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: var(--spacing-sm);
    overflow-y: auto;
    max-height: 250px;
}

.emoji-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-xs);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    line-height: 1;
}

.emoji-btn:hover {
    background: var(--bg-tertiary);
}

@media (max-width: 640px) {
    .emoji-picker {
        left: var(--spacing-md);
        right: var(--spacing-md);
        width: auto;
    }
    
    .emoji-picker-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ====================================
   LOADING STATES
   ==================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

.loading-indicator {
    text-align: center;
    color: var(--text-muted);
    padding: var(--spacing-xl);
}

.empty-channel {
    color: var(--text-secondary);
    font-style: italic;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ====================================
   TYPING INDICATOR
   ==================================== */
.typing-indicator {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: var(--spacing-xs) var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 51;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.typing-indicator.hidden {
    display: none !important;
}

.typing-dots {
    display: inline-flex;
    gap: 2px;
}

.typing-dots::before,
.typing-dots::after,
.typing-dots span {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots::before {
    animation-delay: 0s;
}

.typing-dots span {
    animation-delay: 0.2s;
}

.typing-dots::after {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

/* ====================================
   MESSAGE DELETE BUTTON
   ==================================== */
.message {
    position: relative;
}

.message:hover .message-actions {
    opacity: 1;
}

.message-actions {
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    gap: 4px;
}

.message-delete-btn {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
}

.message-delete-btn:hover {
    color: var(--error);
    border-color: var(--error);
    background: rgba(248, 81, 73, 0.1);
}

.message-deleted {
    opacity: 0.5;
    font-style: italic;
}

.message-deleted .message-content {
    color: var(--text-muted);
}

.message-deleted .message-content::before,
.message-deleted .message-content::after {
    content: none;
}

/* ====================================
   ADMIN DASHBOARD
   ==================================== */
.dashboard-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

.dashboard-tabs {
    display: flex;
    gap: 2px;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dashboard-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dashboard-tab.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.dashboard-content {
    flex: 1;
    overflow: hidden;
}

.dashboard-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.log-filters {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.log-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.log-entry {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.8rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 140px;
}

.log-type {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    text-transform: uppercase;
    flex-shrink: 0;
    width: 70px;
    text-align: center;
}

.log-type.login {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
}

.log-type.join {
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-green);
}

.log-type.logout {
    background: rgba(210, 153, 34, 0.1);
    color: var(--warning);
}

.log-type.delete {
    background: rgba(248, 81, 73, 0.1);
    color: var(--error);
}

.log-type.message {
    background: rgba(139, 148, 158, 0.1);
    color: var(--text-secondary);
}

.log-type.\34 04 {
    background: rgba(255, 100, 50, 0.1);
    color: #ff6432;
}

.log-message {
    color: var(--text-primary);
    flex: 1;
}

.log-empty {
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-xl);
}

/* User management list */
.user-management-list {
    padding: var(--spacing-md);
}

.user-management-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.user-management-info {
    flex: 1;
}

.user-management-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-management-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ====================================
   MOBILE RESPONSIVE
   ==================================== */
@media (max-width: 900px) {
    .sidebar-left {
        position: fixed;
        left: 0;
        top: 52px;
        bottom: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar-left.open {
        transform: translateX(0);
    }
    
    .sidebar-right {
        position: fixed;
        right: 0;
        top: 52px;
        bottom: 0;
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar-right.open {
        transform: translateX(0);
    }
    
    .mobile-only {
        display: flex;
    }
    
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 150;
        animation: fadeIn 0.2s ease;
    }
    
    /* Touch-friendly button sizes */
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .channel-btn {
        min-height: 44px;
    }
    
    .member-item {
        min-height: 40px;
    }
}

@media (max-width: 640px) {
    .landing-container {
        padding: var(--spacing-lg);
    }
    
    .glass-panel {
        padding: var(--spacing-lg);
    }
    
    .chat-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .header-left .logo {
        font-size: 0.9rem;
    }
    
    .logo-full {
        display: none;
    }
    
    .logo-short {
        display: inline;
    }
    
    .header-center {
        display: none;
    }
    
    .messages-area {
        padding: var(--spacing-md);
        padding-bottom: 140px;
    }
    
    .input-area {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* On mobile, become fully visible when keyboard is open */
    .input-area.keyboard-open {
        opacity: 1;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top-color: var(--glass-border);
    }
    
    .message {
        padding: var(--spacing-sm);
    }
    
    .message-header {
        flex-wrap: wrap;
    }
    
    .message-timestamp {
        width: 100%;
        margin-left: 0;
        margin-top: var(--spacing-xs);
    }
    
    .image-embed {
        max-width: 100%;
    }
    
    .image-embed img {
        max-height: 200px;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .dashboard-tab {
        flex: 1;
        text-align: center;
        font-size: 0.75rem;
        padding: var(--spacing-sm);
    }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .input-area {
        padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
    }
    
    .sidebar-left,
    .sidebar-right {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ====================================
   ANIMATIONS & EFFECTS
   ==================================== */

/* Subtle pulse for glow elements */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.glow-text {
    animation: pulse 3s ease-in-out infinite;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ====================================
   UNREAD CHANNEL INDICATORS
   ==================================== */
.channel-btn {
    position: relative;
}

.unread-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.channel-btn.has-unread .channel-name {
    color: var(--text-primary);
    font-weight: 500;
}

/* ====================================
   SETTINGS PANEL
   ==================================== */
.settings-panel {
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    z-index: 300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.settings-header h2 {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.settings-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--glass-border);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.settings-group {
    margin-bottom: var(--spacing-md);
}

.settings-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Theme Options */
.theme-options {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--bg-tertiary);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 70px;
}

.theme-btn:hover {
    border-color: var(--accent-primary);
}

.theme-btn.active {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
}

.theme-preview {
    width: 40px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.theme-preview.theme-dark {
    background: linear-gradient(135deg, #0a0e14 50%, #161b22 50%);
}

.theme-preview.theme-light {
    background: linear-gradient(135deg, #ffffff 50%, #eaeef2 50%);
}

.theme-preview.theme-midnight {
    background: linear-gradient(135deg, #0d0d1a 50%, #1a1a3a 50%);
}

/* Accent Color Options */
.accent-options {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.accent-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.accent-btn:hover {
    transform: scale(1.1);
}

.accent-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px currentColor;
}

.accent-btn[data-accent="cyan"] { background: #00d4ff; }
.accent-btn[data-accent="green"] { background: #39ff14; }
.accent-btn[data-accent="purple"] { background: #bf5af2; }
.accent-btn[data-accent="orange"] { background: #ff9500; }
.accent-btn[data-accent="pink"] { background: #ff6b9d; }
.accent-btn[data-accent="red"] { background: #ff453a; }

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle input:checked + .toggle-slider::before {
    background: var(--bg-primary);
    transform: translateX(22px);
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Volume Slider */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Settings Form */
.settings-form {
    max-width: 300px;
}

.settings-form .form-group {
    margin-bottom: var(--spacing-md);
}

.success-message {
    color: var(--success);
    font-size: 0.85rem;
    padding: var(--spacing-sm);
    background: rgba(57, 255, 20, 0.1);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* ====================================
   SIDEBAR TABS (Channels / DMs)
   ==================================== */
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
}

.sidebar-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.sidebar-tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.sidebar-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.sidebar-tab svg {
    flex-shrink: 0;
}

.sidebar-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-tab-content.hidden {
    display: none;
}

/* ====================================
   DM LIST
   ==================================== */
.dm-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
}

.dm-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: var(--spacing-lg);
    line-height: 1.6;
}

.dm-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 2px;
}

.dm-item:hover {
    background: var(--bg-tertiary);
}

.dm-item.active {
    background: rgba(var(--accent-primary-rgb), 0.1);
}

.dm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    flex-shrink: 0;
}

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

.dm-info {
    flex: 1;
    min-width: 0;
}

.dm-name {
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-preview {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-unread {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ====================================
   PROFILE MODAL
   ==================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.profile-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.profile-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--accent-primary), var(--bg-tertiary));
    background-size: cover;
    background-position: center;
}

.profile-header {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-lg);
    margin-top: -36px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 4px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-placeholder {
    font-size: 2rem;
    color: var(--text-muted);
}

.profile-info {
    padding-bottom: var(--spacing-sm);
    padding-top: calc(var(--spacing-xl) + 1.5rem);
    flex: 1;
}

.profile-name {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

.profile-name.admin::after {
    content: ' \1F451';
}

.profile-status {
    font-size: 0.75rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}

.profile-status.offline {
    color: var(--text-muted);
}

.profile-status.offline::before {
    background: var(--text-muted);
}

.profile-status.idle {
    color: #f0c000;
}

.profile-status.idle::before {
    background: #f0c000;
}

.profile-status-line {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.profile-local-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-body {
    padding: var(--spacing-lg);
}

.profile-section {
    margin-bottom: var(--spacing-lg);
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.profile-about {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.profile-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.profile-dm-icon {
    color: var(--text-muted);
    padding: var(--spacing-xs);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.profile-dm-icon:hover {
    color: var(--accent-primary);
}

.profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.profile-roles-inline {
    padding-top: 0;
    border-top: none;
}

.profile-roles-inline .profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ====================================
   PROFILE SETTINGS INPUTS
   ==================================== */
.settings-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.settings-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
}

.settings-textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    transition: all var(--transition-fast);
}

.settings-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
}

/* Clickable member items */
.member-item {
    cursor: pointer;
}

.member-item:hover {
    background: var(--bg-tertiary);
}

/* ====================================
   SETTINGS PANEL MOBILE
   ==================================== */
@media (max-width: 640px) {
    .settings-content {
        padding: var(--spacing-md);
    }
    
    .theme-options {
        justify-content: center;
    }
    
    .accent-options {
        justify-content: center;
    }
    
    .settings-form {
        max-width: 100%;
    }
}

/* ====================================
   INTERACTIVE NIGHT BACKGROUND
   ==================================== */
#night-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Sky gradient */
#bg-sky {
    background: linear-gradient(
        to bottom,
        #0a0a1a 0%,
        #0d1025 15%,
        #111833 30%,
        #1a2040 50%,
        #1f2849 70%,
        #252f52 85%,
        #2a3358 100%
    );
}

/* Moon */
#bg-moon {
    pointer-events: none;
}

.moon {
position: absolute;
top: 25%;
left: 50%;
transform: translate(-50%, -50%);
width: 80px;
height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fffde7 0%, #fef9c3 20%, #fde68a 50%, #d4a853 100%);
    box-shadow: 
        0 0 30px rgba(253, 230, 138, 0.4),
        0 0 60px rgba(253, 230, 138, 0.2),
        0 0 100px rgba(253, 230, 138, 0.1),
        inset -10px -5px 20px rgba(0, 0, 0, 0.15);
    filter: blur(0.5px);
}

/* Moon phase shadow overlay */
.moon-phase-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0a0a1a;
    transition: clip-path 0.5s ease;
}

/* Moon glow */
.moon::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 230, 138, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Stars container */
#bg-stars {
    pointer-events: none;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle var(--twinkle-duration, 3s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
}

.star.small {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 2px #ffffff;
}

.star.medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px #ffffff, 0 0 6px rgba(255, 255, 255, 0.5);
}

.star.large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px #ffffff, 0 0 10px rgba(255, 255, 255, 0.4);
}

.star.bright {
    background: #fef9c3;
    box-shadow: 0 0 8px #fef9c3, 0 0 15px rgba(254, 249, 195, 0.5);
}

@keyframes twinkle {
    0%, 100% { opacity: var(--star-opacity, 0.6); transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Shooting stars */
#bg-shooting-stars {
    pointer-events: none;
    z-index: 5;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shooting-star {
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0.7), transparent);
    border-radius: 2px;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6), 0 0 12px 4px rgba(200, 220, 255, 0.3);
    transform: rotate(45deg);
    transform-origin: left center;
    animation: shoot 0.9s ease-out forwards;
}

@keyframes shoot {
    0% {
        opacity: 1;
        transform: rotate(45deg) translateX(0) scaleX(0.3);
    }
    20% {
        opacity: 1;
        transform: rotate(45deg) translateX(60px) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translateX(350px) scaleX(0.4);
    }
}

/* Clouds */
#bg-clouds {
    pointer-events: none;
    opacity: 0.15;
}

.cloud {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: cloud-drift linear infinite;
}

@keyframes cloud-drift {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(110%); }
}

/* Forest layers - silhouettes */
#bg-forest-back,
#bg-forest-mid,
#bg-forest-front {
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 100%;
}

#bg-forest-back {
    bottom: 0;
    height: 42%;
    top: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath fill='%23101828' d='M0,300 L0,180 Q30,170 40,185 L50,175 Q80,160 100,180 L120,165 Q150,140 180,170 L200,155 Q220,130 250,160 L280,145 Q310,120 340,150 L370,135 Q400,110 430,140 L460,125 Q490,100 520,130 L550,115 Q580,90 610,120 L640,105 Q670,80 700,110 L730,95 Q760,70 790,100 L820,85 Q850,60 880,90 L910,75 Q940,50 970,80 L1000,65 Q1030,40 1060,70 L1090,55 Q1120,30 1150,60 L1180,45 Q1200,35 1200,50 L1200,300 Z'/%3E%3C/svg%3E");
    opacity: 0.7;
}

#bg-forest-mid {
    bottom: 0;
    height: 34%;
    top: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 250' preserveAspectRatio='none'%3E%3Cpath fill='%230d1520' d='M0,250 L0,140 L20,150 L30,100 L40,140 L60,145 L80,90 L95,130 L120,135 L140,80 L160,125 L180,130 L200,70 L220,120 L250,125 L270,65 L290,115 L320,120 L340,60 L360,110 L390,115 L410,55 L430,105 L460,110 L480,50 L500,100 L530,105 L550,45 L570,95 L600,100 L620,40 L640,90 L670,95 L690,35 L710,85 L740,90 L760,30 L780,80 L810,85 L830,25 L850,75 L880,80 L900,20 L920,70 L950,75 L970,15 L990,65 L1020,70 L1040,10 L1060,60 L1090,65 L1110,5 L1130,55 L1160,60 L1180,0 L1200,50 L1200,250 Z'/%3E%3C/svg%3E");
    opacity: 0.85;
}

#bg-forest-front {
    bottom: 0;
    height: 28%;
    top: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath fill='%23080c14' d='M0,200 L0,100 L15,110 L25,50 L35,90 L55,95 L70,40 L85,85 L105,90 L120,35 L135,80 L155,85 L170,30 L185,75 L205,80 L220,25 L235,70 L255,75 L270,20 L285,65 L305,70 L320,15 L335,60 L355,65 L370,10 L385,55 L405,60 L420,5 L435,50 L455,55 L470,0 L485,45 L505,50 L520,0 L535,40 L555,45 L570,0 L585,35 L605,40 L620,0 L635,30 L655,35 L670,0 L685,25 L705,30 L720,0 L735,20 L755,25 L770,0 L785,15 L805,20 L820,0 L835,10 L855,15 L870,0 L885,5 L905,10 L920,0 L950,15 L980,10 L1010,20 L1040,15 L1070,25 L1100,20 L1130,30 L1160,25 L1200,35 L1200,200 Z'/%3E%3C/svg%3E");
    opacity: 1;
}

/* Parallax depth multipliers (controlled via JS) */
#bg-sky { --parallax-strength: 0.01; }
#bg-stars { --parallax-strength: 0.02; }
#bg-moon { --parallax-strength: 0.015; }
#bg-clouds { --parallax-strength: 0.025; }
#bg-forest-back { --parallax-strength: 0.03; }
#bg-forest-mid { --parallax-strength: 0.05; }
#bg-forest-front { --parallax-strength: 0.08; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .star { animation: none !important; opacity: 0.7; }
    .shooting-star { display: none; }
    .cloud { animation: none !important; }
    .bg-layer { transition: none !important; }
}

/* ====================================
   ROLE & PERMISSION SYSTEM
   ==================================== */

/* Role badges in member list and messages */
.role-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 500;
    margin-left: 4px;
    vertical-align: middle;
}

.member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 2px;
}

/* Roles Dashboard Section */
.roles-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}

.roles-list {
    padding: var(--spacing-md);
}

.role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    border-left: 4px solid var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.role-item:hover {
    background: var(--bg-secondary);
}

.role-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.role-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.role-name {
    font-weight: 500;
    color: var(--text-primary);
}

.role-member-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.role-permissions-preview {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.role-permissions-preview span {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Role Modal */
.role-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow-y: auto;
    padding: var(--spacing-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.2s ease;
}

.role-modal-content h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--accent-primary);
}

.role-form .form-group {
    margin-bottom: var(--spacing-md);
}

.role-form input[type="color"] {
    width: 50px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    cursor: pointer;
}

.permissions-grid {
    display: grid;
    gap: var(--spacing-xs);
}

.permission-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.permission-item:hover {
    background: var(--bg-primary);
}

.permission-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
}

.permission-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.channel-access-grid {
    display: grid;
    gap: var(--spacing-xs);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #d93025;
    box-shadow: 0 0 10px rgba(248, 81, 73, 0.4);
}

.btn-warning {
    background: var(--warning);
    color: var(--bg-primary);
}

.btn-warning:hover:not(:disabled) {
    background: #b8860b;
}

/* User Actions Modal */
.user-actions-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.2s ease;
}

.user-actions-modal-content h2 {
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
}

.user-actions-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.user-actions-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    overflow: hidden;
}

.user-actions-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-actions-details {
    flex: 1;
}

.user-actions-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-actions-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-actions-meta.banned {
    color: var(--error);
}

.user-roles-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    max-height: 150px;
    overflow-y: auto;
}

.user-role-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.user-role-item:hover {
    background: var(--bg-primary);
}

.user-admin-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
}

/* User management item with actions */
.user-management-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-management-item:hover {
    background: var(--bg-secondary);
}

.user-management-item.banned {
    opacity: 0.6;
    border-left: 3px solid var(--error);
}

.user-management-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    overflow: hidden;
    flex-shrink: 0;
}

.user-management-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Channel visibility indicator */
.channel-btn.locked {
    opacity: 0.4;
    pointer-events: none;
}

.channel-btn .channel-lock {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Log type for bans */
.log-type.ban {
    background: rgba(248, 81, 73, 0.1);
    color: var(--error);
}

.log-type.unban {
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-green);
}

.log-type.role {
    background: rgba(191, 90, 242, 0.1);
    color: var(--accent-purple);
}

.log-type.channel {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.log-type.attempt {
    background: rgba(255, 149, 0, 0.1);
    color: var(--accent-orange);
}

/* ====================================
   CHANNEL MANAGEMENT
   ==================================== */

/* Channels Dashboard Section */
.channels-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}

.channels-list {
    padding: var(--spacing-md);
}

.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    border-left: 4px solid var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.channel-item:hover {
    background: var(--bg-secondary);
}

.channel-item.system {
    border-left-color: var(--accent-green);
}

.channel-item-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.channel-item-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.channel-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.channel-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.channel-item-id {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.channel-item-badges {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.channel-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.channel-badge.public {
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-green);
}

.channel-badge.private {
    background: rgba(255, 149, 0, 0.1);
    color: var(--accent-orange);
}

.channel-badge.images {
    background: rgba(191, 90, 242, 0.1);
    color: var(--accent-purple);
}

/* Channel Modal */
.channel-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow-y: auto;
    padding: var(--spacing-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.2s ease;
}

.channel-modal-content h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--accent-primary);
}

.channel-form .form-group {
    margin-bottom: var(--spacing-md);
}

.channel-icon-input {
    width: 60px;
    text-align: center;
    font-size: 1.2rem;
}

.channel-settings-grid {
    display: grid;
    gap: var(--spacing-xs);
}

/* ====================================
   PIXEL WOLF CANVAS
   ==================================== */
#bg-wolves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42vh;
    z-index: 0;
    pointer-events: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Wolf Color Options */
.wolf-color-options {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.wolf-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.wolf-color-btn:hover {
    transform: scale(1.1);
}

.wolf-color-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px currentColor;
}

.color-picker-input {
    width: 48px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    cursor: pointer;
    vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
    #bg-wolves { display: none; }
}

/* ====================================
   GREATSWORD CURSOR (Desktop)
   ==================================== */
@media (pointer: fine) {
    *, *::before, *::after {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-45 16 16)'%3E%3Crect x='15' y='2' width='2' height='20' fill='%23111' rx='0.5'/%3E%3Crect x='15.25' y='2' width='1.5' height='20' fill='%23ddd' rx='0.3'/%3E%3Crect x='15.5' y='2.5' width='1' height='19' fill='%23fff' rx='0.2'/%3E%3Crect x='11' y='21' width='10' height='2' rx='0.5' fill='%23111'/%3E%3Crect x='11.5' y='21.25' width='9' height='1.5' rx='0.3' fill='%23888'/%3E%3Crect x='14.5' y='23' width='3' height='5' rx='0.5' fill='%23111'/%3E%3Crect x='15' y='23.25' width='2' height='4.5' rx='0.3' fill='%23553322'/%3E%3Ccircle cx='16' cy='28.5' r='1.2' fill='%23111'/%3E%3Ccircle cx='16' cy='28.5' r='0.7' fill='%23888'/%3E%3C/g%3E%3C/svg%3E") 3 3, auto;
    }

    a, button, [role="button"], input, textarea, select, .btn, .channel-btn, .member-item, .dm-item,
    .emoji-btn, .theme-btn, .accent-btn, .wolf-color-btn, .toggle, .dashboard-tab, .filter-btn,
    .sidebar-tab, .modal-close-btn, .message-delete-btn, .role-item, .channel-item, .user-management-item {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-45 16 16)'%3E%3Crect x='15' y='2' width='2' height='20' fill='%23111' rx='0.5'/%3E%3Crect x='15.25' y='2' width='1.5' height='20' fill='%23ddd' rx='0.3'/%3E%3Crect x='15.5' y='2.5' width='1' height='19' fill='%23fff' rx='0.2'/%3E%3Crect x='11' y='21' width='10' height='2' rx='0.5' fill='%23111'/%3E%3Crect x='11.5' y='21.25' width='9' height='1.5' rx='0.3' fill='%23888'/%3E%3Crect x='14.5' y='23' width='3' height='5' rx='0.5' fill='%23111'/%3E%3Crect x='15' y='23.25' width='2' height='4.5' rx='0.3' fill='%23553322'/%3E%3Ccircle cx='16' cy='28.5' r='1.2' fill='%23111'/%3E%3Ccircle cx='16' cy='28.5' r='0.7' fill='%23888'/%3E%3C/g%3E%3C/svg%3E") 3 3, pointer;
    }
}

/* ====================================
   WOLF PAWPRINT TAPS (Mobile)
   ==================================== */
.wolf-pawprint {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.7;
    animation: pawprintFade 0.8s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes pawprintFade {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
    }
}
