/* ============================================
   STAY OUT COMMUNITY - Clean Minimal Design
   Better hierarchy: Info vs Actions
   ============================================ */

:root {
    /* Backgrounds - More contrast between layers */
    --bg-base: #09090b;
    --bg-surface: #18181b;
    --bg-elevated: #27272a;
    --bg-input: #09090b;
    --bg-hover: #3f3f46;
    
    /* Primary accent - Warm amber/gold */
    --accent: #d97706;
    --accent-hover: #f59e0b;
    --accent-subtle: rgba(217, 119, 6, 0.12);
    
    /* Status colors */
    --success: #22c55e;
    --success-subtle: rgba(34, 197, 94, 0.12);
    --warning: #eab308;
    --warning-subtle: rgba(234, 179, 8, 0.12);
    --danger: #ef4444;
    --danger-subtle: rgba(239, 68, 68, 0.12);
    
    /* Text - Clear hierarchy */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-faint: #52525b;
    
    /* Borders - Subtle */
    --border: #27272a;
    --border-light: #3f3f46;
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-base);
    min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY - Let text do the hierarchy work
   ============================================ */

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

p { color: var(--text-secondary); }

a {
    color: inherit;
    text-decoration: none;
}

/* Text utilities */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-muted) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 16px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container { padding: 0 24px; }
}

/* Simple flexbox grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Spacing */
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.pt-4 { padding-top: 16px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.ml-auto { margin-left: auto; }

.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.w-5 { width: 20px; }
.max-w-xl { max-width: 640px; }
.max-w-2xl { max-width: 768px; }

/* ============================================
   NAVIGATION - Clean & minimal
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-logo {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: white;
}

.navbar-logo-img {
    height: 36px;
    width: auto;
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: 2px;
}

@media (min-width: 1024px) {
    .navbar-nav { display: flex; }
}

.nav-link {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 150ms;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-link i {
    margin-right: 6px;
    opacity: 0.6;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.menu-toggle:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-base);
    transform: translateX(100%);
    transition: transform 300ms ease;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: all 150ms;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.mobile-nav-link i {
    width: 20px;
    opacity: 0.5;
}

/* User menu */
.user-menu { position: relative; }

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 150ms;
}

.user-menu-trigger:hover {
    border-color: var(--border-light);
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 100px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 150ms;
    z-index: 10001;
}

.user-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 150ms;
}

.user-menu-item:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.user-menu-item i { width: 16px; opacity: 0.5; }

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.user-menu-signout {
    color: var(--danger) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.user-menu-signout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger) !important;
}

.user-menu-signout i {
    opacity: 0.8 !important;
}

/* ============================================
   BUTTONS - Actions should POP
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 150ms;
    white-space: nowrap;
    text-decoration: none;
}

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

/* PRIMARY - Main actions, should be obvious */
.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

/* SECONDARY - Less important actions */
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
}

/* GHOST - Minimal actions */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Status buttons */
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: #16a34a; }
.btn-warning { background: var(--warning); color: var(--bg-base); }
.btn-warning:hover:not(:disabled) { background: #ca8a04; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }

/* Sizes */
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-icon { padding: 10px; }

/* ============================================
   CARDS - Clean containers, not too boxy
   ============================================ */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.card-hover {
    transition: all 200ms;
}

.card-hover:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Feature cards - for landing page */
.feature-card {
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 18px;
}

.feature-icon.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.feature-icon.cyan { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.feature-icon.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.feature-icon.rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.feature-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   BADGES - Small, informational
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
}

.badge-primary { background: var(--accent-subtle); color: var(--accent); }
.badge-success { background: var(--success-subtle); color: var(--success); }
.badge-warning { background: var(--warning-subtle); color: var(--warning); }
.badge-danger { background: var(--danger-subtle); color: var(--danger); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-secondary); }
.badge-accent { background: var(--accent-subtle); color: var(--accent); }
.badge-info { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

/* Tags - clickable/filterable */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

/* ============================================
   FORMS - Clean inputs
   ============================================ */

.form-group { margin-bottom: 20px; }

.form-label,
.label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.label .text-danger {
    color: var(--danger);
}

.form-input,
.input,
input.form-input,
input.input,
textarea.form-input,
textarea.input,
select.form-input,
select.input {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary) !important;
    background-color: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    transition: all 150ms;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea.form-input,
textarea.input {
    resize: vertical;
    min-height: 100px;
}

.form-input::placeholder,
.input::placeholder,
input.form-input::placeholder,
input.input::placeholder,
textarea.form-input::placeholder,
textarea.input::placeholder {
    color: var(--text-faint);
}

.form-input:hover,
.input:hover,
input.form-input:hover,
input.input:hover,
textarea.form-input:hover,
textarea.input:hover,
select.form-input:hover,
select.input:hover {
    border-color: var(--border-light) !important;
}

.form-input:focus,
.input:focus,
input.form-input:focus,
input.input:focus,
textarea.form-input:focus,
textarea.input:focus,
select.form-input:focus,
select.input:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.input-error {
    border-color: var(--danger) !important;
}

.input-error:focus {
    box-shadow: 0 0 0 3px var(--danger-subtle) !important;
}

select.form-input,
select.input,
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Checkbox styling */
.form-checkbox,
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    border-radius: 4px;
}

/* File input styling */
input[type="file"].form-input {
    padding: 8px;
}

input[type="file"].form-input::file-selector-button {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 150ms;
}

input[type="file"].form-input::file-selector-button:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

/* Search input */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 13px;
}

.search-wrapper .form-input {
    padding-left: 36px;
}

/* Filter panel */
.filter-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 160px;
}

@media (max-width: 639px) {
    .filter-group { min-width: 100%; }
}

/* ============================================
   STATS - Numbers that matter
   ============================================ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-value.highlight {
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============================================
   HERO - Landing page header
   ============================================ */

.hero {
    padding: 60px 0 80px;
    text-align: center;
}

@media (min-width: 768px) {
    .hero { padding: 80px 0 100px; }
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 100px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero-title { font-size: 44px; }
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-actions { flex-direction: row; }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 48px 0;
}

.section-header {
    margin-bottom: 24px;
}

.section-header.center { text-align: center; }

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   AVATARS
   ============================================ */

.avatar {
    border-radius: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-xs { width: 20px; height: 20px; }
.avatar-sm { width: 28px; height: 28px; }
.avatar-md { width: 36px; height: 36px; }
.avatar-lg { width: 48px; height: 48px; }
.avatar-xl { width: 64px; height: 64px; }

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 40px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-content { }

.cta-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cta-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ============================================
   TOASTS
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    min-width: 280px;
    animation: slideIn 200ms ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .footer-brand { grid-column: span 1; }
}

.footer-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 150ms;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-faint);
}

.footer-social {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 150ms;
}

.footer-social a:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 150ms;
}

.pagination a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.pagination .active span {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   INLINE ELEMENTS
   ============================================ */

.inline { display: inline; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.border-subtle { border-color: var(--border); }

/* Hover background utility for list items */
.hover\:bg-hover:hover { background: var(--bg-elevated); }

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

.hidden { display: none !important; }
.block { display: block; }

@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:block { display: block; }
    .sm\:hidden { display: none !important; }
    .sm\:inline { display: inline; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:block { display: block; }
    .md\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:block { display: block; }
    .lg\:hidden { display: none !important; }
    .lg\:col-span-2 { grid-column: span 2; }
}

/* Misc utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.cursor-pointer { cursor: pointer; }
.transition { transition: all 150ms; }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }
.col-span-full { grid-column: 1 / -1; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive grid columns */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.object-cover {
    object-fit: cover;
}

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-6 { width: 24px; }
.h-6 { height: 24px; }
.w-10 { width: 40px; }
.h-10 { height: 40px; }
.w-12 { width: 48px; }
.h-12 { height: 48px; }
.w-14 { width: 56px; }
.h-14 { height: 56px; }
.w-16 { width: 64px; }
.h-16 { height: 64px; }
.w-24 { width: 96px; }
.h-24 { height: 96px; }

/* Max width */
.max-w-xs { max-width: 320px; }
.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }

/* Margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mb-0 { margin-bottom: 0 !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }

/* Spacing (gap, space) */
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }

/* Borders */
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-border { border-color: var(--border); }

/* Text utilities */
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Background utilities */
.bg-elevated { background: var(--bg-elevated); }
.hover\:bg-elevated:hover { background: var(--bg-elevated); }

.prose {
    color: var(--text-secondary);
    line-height: 1.7;
}

.prose p + p {
    margin-top: 1em;
}

/* Inline link style */
a.link {
    color: var(--accent);
}

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

/* ============================================
   TABLES - Clean data display
   ============================================ */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.table tbody tr:hover {
    background: var(--bg-elevated);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   ALERTS - Feedback messages
   ============================================ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.alert-success {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error,
.alert-danger {
    background: var(--danger-subtle);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: var(--warning-subtle);
    color: var(--warning);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.alert-info {
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ============================================
   EMPTY STATE - When there's nothing to show
   ============================================ */

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto 20px;
}

/* ============================================
   ADMIN UTILITIES
   ============================================ */

.admin-page-header {
    margin-bottom: 32px;
}

.admin-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.admin-page-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.admin-content {
    padding: 32px;
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px 16px;
    }
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Last child utilities */
.last\:border-0:last-child { border: 0; }

/* ============================================
   NOTIFICATIONS
   ============================================ */

.notification-menu {
    position: relative;
}

.notification-trigger {
    position: relative;
    padding: 8px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.notification-trigger:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    color: white;
    background: var(--danger);
    border-radius: 8px;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.notification-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: var(--text-tertiary);
    text-align: center;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-elevated);
}

.notification-item.unread {
    background: var(--accent-subtle);
}

.notification-item.unread:hover {
    background: rgba(217, 119, 6, 0.15);
}

.notification-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.notification-footer {
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--accent);
    border-top: 1px solid var(--border);
    transition: background 0.15s;
}

.notification-footer:hover {
    background: var(--bg-elevated);
}

/* Color classes for notification icons */
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: #3b82f6; }
