/**
 * Trail - Consolidated Stylesheet
 * 
 * All CSS consolidated from backend templates into a single file.
 * Organized by: shared styles, components, page-specific styles.
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

/* Error page uses different variable names and accent color */
.page-error {
    --bg: #0b1220;
    --card: #121a2b;
    --muted: #7c8aa5;
    --accent: #4f8cff;
    --border: #1f2a44;
    --text: #e5ecff;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Error page body styling */
.page-error body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 600px at 20% -10%, #1a2550, transparent), var(--bg);
    color: var(--text);
}

/* IBM Plex Sans for all headings and prominent text */
h1, h2, h3, h4, h5, h6,
.logo,
.user-name,
.user-name-link,
.link-preview-title {
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   ORB ANIMATIONS (Background Effects)
   ============================================ */

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.4);
    top: -100px;
    left: -100px;
    animation: float-1 25s infinite ease-in-out;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(236, 72, 153, 0.3);
    bottom: -100px;
    right: -100px;
    animation: float-2 30s infinite ease-in-out;
}

@keyframes float-1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translate(120px, -80px) scale(1.15) rotate(5deg); 
    }
    50% { 
        transform: translate(200px, 50px) scale(1.25) rotate(-3deg); 
    }
    75% { 
        transform: translate(80px, -120px) scale(0.9) rotate(8deg); 
    }
}

@keyframes float-2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translate(-100px, 120px) scale(0.85) rotate(-6deg); 
    }
    50% { 
        transform: translate(-180px, -60px) scale(0.75) rotate(4deg); 
    }
    75% { 
        transform: translate(-60px, 140px) scale(1.1) rotate(-7deg); 
    }
}

/* ============================================
   HEADER COMPONENTS
   ============================================ */

header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-landing .header-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-status .header-content {
    padding: 1rem 2rem;
    gap: 1rem;
}

.page-admin-dashboard .header-content {
    padding: 1.5rem 2rem;
    gap: 1rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-landing .logo {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.page-status .logo {
    font-size: 1.5rem;
}

.page-admin-dashboard .logo {
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-link, .logout-button, .login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.nav-link i, .logout-button i, .login-button i {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover, .logout-button:hover, .login-button:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
}

.page-landing .nav-link {
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.625rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.page-landing .nav-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
}

.page-landing .login-button {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    min-height: 2.5rem;
}

.page-landing .login-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.page-landing .logout-button {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.625rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.page-landing .logout-button:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    color: var(--error);
    transform: translateY(-1px);
}

.login-button {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.login-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.google-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    display: inline-flex;
}

/* ============================================
   MAIN CONTENT CONTAINERS
   ============================================ */

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.page-landing main {
    max-width: 600px;
    padding: 2rem 1rem;
}

.page-status main {
    margin: 2rem auto;
    padding: 0 2rem;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-admin-dashboard .container,
.page-admin-users .container {
    max-width: 800px;
    padding: 2rem;
}

/* ============================================
   ENTRY CARD COMPONENTS
   ============================================ */

.entry-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: background 0.2s, opacity 0.3s;
}

.page-landing .entry-card,
.page-user .entry-card {
    padding: 1rem 1.5rem;
    cursor: pointer;
}

.page-landing .entry-card:hover,
.page-user .entry-card:hover {
    background: rgba(30, 41, 59, 0.8);
}

.page-status .entry-card {
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.page-admin-dashboard .entry-card {
    padding: 1rem 1.5rem;
    cursor: pointer;
}

.page-admin-dashboard .entry-card:hover {
    background: rgba(30, 41, 59, 0.8);
}

.entry-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.page-status .entry-header {
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.entry-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.page-status .entry-header-top {
    align-items: flex-start;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.page-status .user-info {
    flex-wrap: wrap;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-status .user-name,
.page-status .user-name-link {
    font-size: 1rem;
}

.user-name-link {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s;
}

.user-name-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.entry-menu {
    position: relative;
}

.menu-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.page-status .menu-button {
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.menu-button:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.page-status .menu-button:hover {
    color: var(--text-primary);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 160px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 0.25rem;
}

.menu-dropdown.active {
    display: block;
}

.page-status .menu-dropdown {
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.menu-item {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s;
}

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

.menu-item.delete {
    color: #ef4444;
}

.menu-item.delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

.page-status .menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.page-status .menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.page-status .menu-item i {
    width: 16px;
    text-align: center;
}

.entry-body {
    margin-left: 56px;
}

.page-status .entry-body {
    margin-top: 0.5rem;
}

.entry-content {
    margin-bottom: 1rem;
}

.entry-text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.page-status .entry-text {
    line-height: 1.5;
    overflow-wrap: break-word;
}

.entry-text a {
    color: #60a5fa;
    text-decoration: none;
}

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

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 0.5rem;
}

.entry-tag {
    color: #60a5fa;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
    transition: opacity 0.15s;
}

.entry-tag:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.entry-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.page-status .entry-images {
    margin-top: 1rem;
}

.entry-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-tertiary);
}

.entry-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.entry-image:hover {
    transform: scale(1.02);
}

/* Video Player Styles */
.entry-media-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.entry-video-wrapper {
    background: var(--card);
}

.entry-video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #000;
    cursor: pointer;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background 0.2s;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.35);
}

.video-play-overlay:hover .video-play-button {
    transform: scale(1.08);
}

.video-play-button {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-play-button:hover {
    transform: scale(1.08);
}

.video-play-button:active {
    transform: scale(0.96);
}

.video-play-button i {
    margin-left: 3px; /* Optical centering for play icon */
}

/* Replay icon doesn't need offset */
.video-play-button i.fa-rotate-right {
    margin-left: 0;
}

/* Video Controls Bar */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.entry-video-wrapper.controls-visible .video-controls,
.entry-video-wrapper.seeking .video-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Control Buttons */
.video-control-btn,
.video-playpause-btn,
.video-mute-button,
.video-fullscreen-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.video-playpause-btn:hover,
.video-mute-button:hover,
.video-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.video-playpause-btn:active,
.video-mute-button:active,
.video-fullscreen-btn:active {
    transform: scale(0.92);
}

/* Progress Bar */
.video-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.video-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s;
}

.video-progress-bar:hover,
.entry-video-wrapper.seeking .video-progress-bar {
    height: 6px;
}

.video-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
    transition: width 0.05s linear;
}

.video-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: transform 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.video-progress-bar:hover .video-progress-handle,
.entry-video-wrapper.seeking .video-progress-handle {
    transform: translate(-50%, -50%) scale(1.3);
}

/* Time Display */
.video-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Touch-friendly on mobile */
@media (hover: none) {
    .video-controls {
        padding: 10px 12px;
    }
    
    .video-playpause-btn,
    .video-mute-button,
    .video-fullscreen-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .video-progress-bar {
        height: 6px;
    }
    
    .video-progress-handle {
        width: 16px;
        height: 16px;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    
    .video-time {
        font-size: 12px;
    }
}

/* Fullscreen styles */
.entry-video-wrapper:fullscreen {
    background: #000;
}

.entry-video-wrapper:fullscreen .entry-video {
    max-height: 100vh;
    height: 100%;
    object-fit: contain;
}

.entry-video-wrapper:fullscreen .video-controls {
    padding: 12px 20px;
}

.entry-video-wrapper:fullscreen .video-playpause-btn,
.entry-video-wrapper:fullscreen .video-mute-button,
.entry-video-wrapper:fullscreen .video-fullscreen-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

/* Small play overlay for upload preview */
.video-play-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 20px;
    pointer-events: none;
}

.entry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding-top: 0.75rem;
}

.page-status .entry-footer {
    margin-top: 0.75rem;
}

.entry-footer-left {
    flex: 1;
}

.timestamp {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.page-status .timestamp {
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.page-landing .entry-footer .timestamp {
    font-style: italic;
}

/* ============================================
   LINK PREVIEW COMPONENTS
   ============================================ */

.link-preview-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}

.link-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.page-status .link-preview-card {
    display: flex;
    margin-top: 1rem;
}

.page-status .link-preview-card:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.link-preview-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    aspect-ratio: 600 / 315;
}

.page-status .link-preview-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.link-preview-content {
    padding: 0.75rem;
}

.page-status .link-preview-content {
    padding: 12px;
    flex: 1;
    min-width: 0;
}

.link-preview-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.page-status .link-preview-title {
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-preview-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.page-status .link-preview-description {
    margin-bottom: 8px;
}

.link-preview-url {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--accent);
}

.page-status .link-preview-url {
    gap: 4px;
    color: var(--text-muted);
}

.link-preview-wrapper {
    position: relative;
    margin-top: 0.75rem;
}

.page-status .link-preview-wrapper {
    margin-top: 1rem;
}

.preview-source-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.page-status .preview-source-badge {
    top: -8px;
    right: 8px;
    gap: 4px;
    padding: 4px 8px;
    z-index: 1;
}

.preview-source-badge span:first-child {
    font-size: 0.875rem;
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */

.button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.button.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.button.secondary:hover {
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.button.icon-only {
    padding: 0.5rem 0.75rem;
    min-width: 40px;
}

.button.icon-only i {
    margin: 0;
}

.share-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-status .share-button {
    gap: 0.5rem;
    font-size: 0.875rem;
}

.share-button:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.share-button:active {
    transform: scale(0.95);
}

.action-button {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.save-button {
    background: var(--accent);
    color: white;
}

.save-button:hover {
    background: var(--accent-hover);
}

.page-admin-dashboard .save-button:hover {
    transform: translateY(-1px);
}

.cancel-button {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.cancel-button:hover {
    background: var(--bg-secondary);
}

.page-admin-dashboard .cancel-button:hover {
    background: var(--bg-secondary);
}

/* ============================================
   CLAP BUTTON COMPONENTS
   ============================================ */

.entry-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.entry-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-footer-right {
    display: flex;
    align-items: center;
}

/* View counter - displays view count (non-interactive) */
.view-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 0.25rem 0.625rem 0.625rem;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: default;
    user-select: none;
    min-width: 48px;
    min-height: 48px;
}

.view-counter i {
    font-size: 0.875rem;
}

.view-count {
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 1rem;
    text-align: left;
}

.clap-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.clap-button:hover {
    background: var(--bg-tertiary);
    color: #ef4444;
}

.clap-button.clapped {
    color: #ef4444;
}

.clap-button.clapped:hover {
    color: #dc2626;
}

.clap-button:active {
    transform: scale(0.95);
}

.clap-button.clap-limit-reached {
    opacity: 0.6;
    cursor: not-allowed;
}

.clap-button.own-entry {
    cursor: default;
    opacity: 0.7;
}

.clap-button.own-entry:hover {
    background: transparent;
    color: var(--text-muted);
}

.clap-count {
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 1.5rem;
    text-align: left;
}

@keyframes clap-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.clap-animation {
    animation: clap-bounce 0.3s ease-in-out;
}

@keyframes clap-own-entry-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.clap-own-entry-shake {
    animation: clap-own-entry-shake 0.3s ease-in-out;
}

.clap-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    color: #ef4444;
    font-size: 0.75rem;
    animation: clap-particle-burst 0.6s ease-out forwards;
    transform-origin: center;
}

@keyframes clap-particle-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.3);
    }
}

/* ============================================
   COMMENT COMPONENTS
   ============================================ */

/* Comment button in entry footer */
.comment-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.2s;
    min-width: 48px;
    min-height: 48px;
}

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

.comment-button.active {
    color: var(--accent);
}

.comment-button.active i {
    color: var(--accent);
}

.comment-count {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Comments section */
.comments-section {
    background: rgba(30, 41, 59, 0.3);
    border-top: 1px solid var(--border);
    padding: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

/* Comment input */
.comment-input-container {
    margin-bottom: 1rem;
}

.comment-input {
    width: 100%;
    min-height: 60px;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent);
}

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

.comment-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.comment-submit-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.comment-submit-button:hover:not(:disabled) {
    background: var(--accent-hover);
}

.comment-submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-cancel-button {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.comment-cancel-button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.comment-save-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.comment-save-button:hover:not(:disabled) {
    background: var(--accent-hover);
}

.comment-save-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comment cards */
.comment-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}

.comment-card:hover {
    background: rgba(51, 65, 85, 0.6);
}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-header-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

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

.comment-timestamp {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.comment-edited {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.75rem;
}

.comment-menu-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: auto;
}

.comment-menu-button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.comment-menu-dropdown .menu-item {
    width: 100%;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    transition: background 0.2s;
}

.comment-menu-dropdown .menu-item:hover {
    background: var(--bg-secondary);
}

.comment-menu-dropdown .menu-item.delete {
    color: var(--error);
}

.comment-menu-dropdown .menu-item i {
    width: 1rem;
    text-align: center;
}

.comment-body {
    margin-left: 2.5rem;
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.9375rem;
    word-wrap: break-word;
}

.comment-text a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Mention links styling */
.mention-link {
    color: var(--accent, #3b82f6);
    text-decoration: none;
    font-weight: 500;
}

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

.comment-edit-form {
    margin-top: 0.5rem;
}

.comment-edit-form .comment-input {
    margin-bottom: 0.5rem;
}

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.comment-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-footer-right {
    display: flex;
    align-items: center;
}

/* Comment view counter */
.comment-view-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: default;
    user-select: none;
}

.comment-view-counter i {
    font-size: 0.75rem;
}

.comment-view-counter .view-count {
    font-size: 0.75rem;
    font-weight: 500;
}

.comment-clap-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.25rem 0.25rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.comment-clap-button:hover:not(.own-comment) {
    background: var(--bg-tertiary);
    color: #ef4444;
}

.comment-clap-button.clapped {
    color: #ef4444;
}

.comment-clap-button.own-comment {
    cursor: default;
    opacity: 0.7;
}

.comment-clap-button.own-comment:hover {
    background: transparent;
    color: var(--text-muted);
}

.comment-clap-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.empty-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-comments i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-comments p {
    font-size: 0.9375rem;
}

.loading-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.comment-image-upload-container {
    margin-top: 0.5rem;
}

.comment-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.comment-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-height: 200px;
    cursor: pointer;
    transition: transform 0.2s;
    aspect-ratio: 3 / 2;
}

.comment-image:hover {
    transform: scale(1.02);
}

/* ============================================
   FORM COMPONENTS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

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

.edit-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.page-user .edit-form {
    margin-top: 0.5rem;
}

.edit-textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.page-user .edit-textarea {
    min-height: 100px;
}

.edit-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.page-user .edit-actions {
    gap: 0.75rem;
}

.char-counter {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.page-user .loading {
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.page-profile .loading-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.page-admin-dashboard .loading-spinner {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.end-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.page-admin-dashboard .empty-state {
    padding: 3rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.page-admin-dashboard .empty-state-icon {
    font-size: 3rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.page-user .error-message {
    border: 1px solid #ef4444;
    color: #ef4444;
    margin-bottom: 1rem;
}

.page-status .error-message {
    color: #ef4444;
}

/* ============================================
   PAGE-SPECIFIC: LANDING
   ============================================ */

.page-landing .header-banner {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.page-landing #shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.page-landing .header-profile-section {
    position: relative;
    margin-top: -64px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1rem;
    gap: 1.5rem;
}

.page-landing .header-left {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex: 1;
}

.page-landing .header-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
    object-fit: cover;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.page-landing .header-info {
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.page-landing h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    line-height: 1.2;
}

.page-landing .subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.page-landing .create-post-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.page-landing .create-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-landing .create-post-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.search-card:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--accent);
}

.search-input {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem 3rem 0.875rem 3rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    transition: all 0.2s ease;
}

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

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.search-clear-button {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-clear-button:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.search-clear-button:active {
    transform: scale(0.95);
}

.search-loading {
    position: absolute;
    right: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.search-results-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.search-results-count {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Admin Controls Section */
.page-landing .admin-controls-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.page-landing .admin-controls-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-landing .admin-controls-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.page-landing .admin-controls-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-landing .admin-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-landing .admin-button:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.page-landing .admin-button:active {
    transform: translateY(0);
}

.page-landing .admin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-landing .admin-button i {
    font-size: 1.125rem;
}

.page-landing .admin-help-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.page-landing .post-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-landing .post-textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.page-landing .post-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.page-landing .post-textarea::placeholder {
    color: var(--text-muted);
}

.page-landing .post-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-landing .submit-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-landing .submit-button:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.page-landing .submit-button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.page-landing .post-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.page-landing .post-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.page-landing .entries-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-landing .entry-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.page-landing .stat-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.page-landing .stat-button:hover {
    color: var(--accent);
}

/* Celebration animations for landing page */
.page-landing .post-confetti {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    opacity: 1;
}

@keyframes post-confetti-burst {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotation)) scale(0.3);
        opacity: 0;
    }
}

.page-landing .celebration-emoji {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 2rem;
    opacity: 1;
}

@keyframes celebration-emoji-float {
    0% {
        transform: translate(0, 0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(0, -20px) scale(1) rotate(10deg);
    }
    100% {
        transform: translate(var(--float-x), var(--float-y)) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

.page-landing .celebrate-pulse {
    animation: celebrate-pulse-animation 0.6s ease-in-out;
}

@keyframes celebrate-pulse-animation {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.05);
    }
}

/* ============================================
   PAGE-SPECIFIC: PROFILE
   ============================================ */

/* Override main element styles for profile page */
.page-profile main {
    max-width: none;
    margin: 0;
    padding: 0;
    padding-top: 1.5rem;
}

/* Single column layout matching create-post-section width */
.page-profile .profile-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Identity sidebar */
.page-profile .profile-sidebar {
    height: fit-content;
}

.page-profile .identity-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.page-profile .identity-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.page-profile .identity-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    object-fit: cover;
}

.page-profile .identity-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.page-profile .identity-nickname {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.page-profile .identity-nickname:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent);
}

.page-profile .identity-email {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.page-profile .identity-member-since {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Identity card statistics */
.page-profile .identity-stats {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.875rem 0;
    margin-bottom: 0.75rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.page-profile .identity-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    min-width: 3.5rem;
}

.page-profile .identity-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.page-profile .identity-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* View stats section - follows immediately after identity-stats */
.page-profile .identity-view-stats {
    margin-top: -0.75rem;
    border-top: none;
    font-weight: 500;
}

/* Top entries sections */
.page-profile .identity-top-entries {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
}

.page-profile .identity-top-entries-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.page-profile .identity-top-entries-title i {
    font-size: 0.7rem;
}

.page-profile .identity-top-entries-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.page-profile .identity-top-entry-item {
    margin: 0;
    padding: 0;
}

.page-profile .identity-top-entry-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transition: background 0.15s, transform 0.15s;
}

.page-profile .identity-top-entry-link:hover {
    background: var(--bg-hover);
    transform: translateX(2px);
}

.page-profile .identity-top-entry-text {
    flex: 1;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.page-profile .identity-top-entry-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.page-profile .identity-top-entry-count i {
    font-size: 0.7rem;
}

/* Identity card meta items (last seen, last post) */
.page-profile .identity-meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.page-profile .identity-meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.page-profile .identity-meta-item i {
    font-size: 0.75rem;
    width: 0.875rem;
    text-align: center;
    flex-shrink: 0;
}

.page-profile .view-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-profile .view-profile-btn:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
}

/* Main content area */
.page-profile .profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section card component */
.page-profile .profile-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

.page-profile .profile-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-profile .profile-section-header i {
    font-size: 1.25rem;
    color: var(--accent);
}

.page-profile .profile-section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.page-profile .section-badge {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form styles */
.page-profile .form-group {
    margin-bottom: 1.5rem;
}

.page-profile .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.page-profile .form-group input,
.page-profile .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.page-profile .form-group input:focus,
.page-profile .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.page-profile .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.page-profile .form-hint {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.page-profile .input-with-validation {
    position: relative;
}

.page-profile .validation-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
}

.page-profile .validation-icon.valid {
    color: var(--success);
}

.page-profile .validation-icon.invalid {
    color: var(--error);
}

/* Bio character counter bar */
.page-profile .bio-counter-bar {
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.page-profile .bio-counter-fill {
    height: 100%;
    background: var(--accent);
    transition: all 0.3s;
    border-radius: 2px;
}

.page-profile .bio-counter-fill.warning {
    background: var(--warning);
}

.page-profile .bio-counter-fill.error {
    background: var(--error);
}

.page-profile .bio-counter-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

/* Profile URL chip */
.page-profile .profile-url-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.page-profile .profile-url-chip:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
}

/* Button styles */
.page-profile .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-profile .btn-primary {
    background: var(--accent);
    color: white;
}

.page-profile .btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.page-profile .btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.page-profile .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.page-profile .btn-icon.success {
    color: var(--success);
    border-color: var(--success);
}

.page-profile .btn-icon i {
    font-size: 1rem;
}

/* Developer Tools Section */
.page-profile .token-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.page-profile .token-value-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.page-profile .token-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: #4ade80;
    line-height: 1.5;
}

.page-profile .token-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-profile .token-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-profile .token-hint {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-profile .token-hint code {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #4ade80;
    overflow-x: auto;
}

.page-profile .api-docs-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-profile .api-docs-link:hover {
    color: var(--accent-hover);
    gap: 0.75rem;
}

/* Privacy Section - Muted Users */
.page-profile .muted-users-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-profile .muted-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.page-profile .muted-user-item:hover {
    background: rgba(51, 65, 85, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.page-profile .muted-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.page-profile .muted-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.page-profile .muted-user-details {
    display: flex;
    flex-direction: column;
}

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

.page-profile .muted-user-nickname {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.page-profile .btn-unmute {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-profile .btn-unmute:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.page-profile .empty-muted {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.page-profile .empty-muted i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: var(--text-muted);
}

.page-profile .empty-muted p {
    margin-bottom: 0.5rem;
}

.page-profile .empty-muted p:first-of-type {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Loading state */
.page-profile .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* ============================================
   PROFILE: EMBED CONFIGURATOR
   ============================================ */

.page-profile .embed-section {
    overflow: hidden;
}

.page-profile .embed-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: left;
}

.page-profile .embed-section-toggle:hover .profile-section-header h2 {
    color: var(--accent);
}

.page-profile .embed-toggle-icon {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: transform 0.25s ease;
}

.page-profile .embed-section-toggle[aria-expanded="true"] .embed-toggle-icon {
    transform: rotate(180deg);
}

.page-profile .embed-section-content {
    padding-top: 1.25rem;
}

.page-profile .embed-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.page-profile .embed-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-profile .embed-option-group {
    flex: 1;
    min-width: 180px;
}

.page-profile .embed-option-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.page-profile .embed-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.page-profile .embed-theme-toggle {
    display: flex;
    gap: 0.5rem;
}

.page-profile .embed-radio {
    display: flex;
    cursor: pointer;
}

.page-profile .embed-radio input {
    display: none;
}

.page-profile .embed-radio span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.15s ease;
}

.page-profile .embed-radio input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.page-profile .embed-radio:hover span {
    border-color: var(--accent);
}

.page-profile .embed-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-profile .embed-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-profile .embed-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.page-profile .embed-checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.page-profile .embed-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.page-profile .embed-preview-container {
    margin-bottom: 1.5rem;
}

.page-profile .embed-preview-frame {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-tertiary);
    min-height: 200px;
}

.page-profile .embed-preview-iframe {
    width: 100%;
    min-height: 200px;
    border: none;
    display: block;
}

.page-profile .embed-code-container {
    margin-bottom: 1.25rem;
}

.page-profile .embed-code-block {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.page-profile .embed-code {
    display: block;
    padding: 1rem;
    padding-right: 3.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 140px;
    overflow-y: auto;
}

.page-profile .embed-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-profile .embed-copy-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.page-profile .embed-resize-hint {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .page-profile .embed-options {
        flex-direction: column;
        gap: 1rem;
    }

    .page-profile .embed-theme-toggle {
        flex-wrap: wrap;
    }
}

/* ============================================
   PAGE-SPECIFIC: USER
   ============================================ */

/* Twitter-style Profile Banner */
.page-user .profile-banner-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.page-user .profile-header-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    cursor: default;
    transition: filter 0.2s;
}

.page-user .profile-header-image.clickable {
    cursor: pointer;
}

.page-user .profile-header-image.clickable:hover {
    filter: brightness(0.9);
}

.page-user .header-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    z-index: 10;
    pointer-events: none;
}

.page-user .header-upload-overlay.owner {
    display: flex;
}

.page-user .profile-header-image:hover .header-upload-overlay.owner {
    opacity: 1;
}

.page-user .header-upload-overlay i {
    font-size: 2rem;
}

.page-user .header-upload-overlay span {
    font-size: 1rem;
    font-weight: 500;
}

.page-user .profile-info-section {
    padding: 0 2rem 2rem 2rem;
    margin-top: -60px;
    position: relative;
}

.page-user .profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.page-user .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--bg-secondary);
    object-fit: cover;
    background: var(--bg-tertiary);
    display: block;
    position: relative;
    z-index: 1;
}

.page-user .profile-avatar.clickable {
    cursor: pointer;
}

.page-user .profile-avatar.clickable:hover {
    filter: brightness(0.9);
}

.page-user .avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    z-index: 10;
    pointer-events: none;
}

.page-user .avatar-upload-overlay.owner {
    display: flex;
}

.page-user .profile-avatar-container:hover .avatar-upload-overlay.owner {
    opacity: 1;
}

.page-user .avatar-upload-overlay i {
    font-size: 1.5rem;
}

.page-user .profile-details {
    margin-top: 0.5rem;
}

.page-user .profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.page-user .profile-nickname {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.page-user .profile-bio {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 1.5em;
    outline: none;
    border-radius: 0.25rem;
    padding: 0.25rem;
    transition: background 0.2s;
}

.page-user .profile-bio[contenteditable="true"] {
    cursor: text;
}

.page-user .profile-bio[contenteditable="true"]:hover {
    background: var(--bg-tertiary);
}

.page-user .profile-bio[contenteditable="true"]:focus {
    background: var(--bg-tertiary);
    border: 1px solid var(--accent);
    padding: calc(0.25rem - 1px);
}

.page-user .profile-bio.empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

/* Profile metadata row (joined, last seen, last post) */
.page-user .profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-bottom: 0.75rem;
}

.page-user .profile-joined,
.page-user .profile-last-seen,
.page-user .profile-last-entry {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}

.page-user .profile-joined i,
.page-user .profile-last-seen i,
.page-user .profile-last-entry i {
    font-size: 0.8125rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

/* Profile statistics counters */
.page-user .profile-stats {
    display: flex;
    gap: 1.5rem;
}

.page-user .profile-stat {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.15s;
    cursor: default;
}

.page-user .profile-stat:hover {
    color: var(--text-primary);
}

.page-user .profile-stat-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.page-user .profile-stat-label {
    font-weight: 400;
}

.page-user .entries-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   PAGE-SPECIFIC: STATUS
   ============================================ */

.page-status .back-button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.page-status .back-button:hover {
    background: var(--bg-tertiary);
}

.page-status .entry-container {
    margin-bottom: 2rem;
}

/* ============================================
   PAGE-SPECIFIC: ERROR
   ============================================ */

.page-error * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.page-error .container {
    width: 100%;
    max-width: 760px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-error .card {
    background: linear-gradient(180deg, #141e36, #10182b);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.page-error textarea {
    width: 100%;
    background: #0e1628;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    resize: none;
    font-size: 15px;
    outline: none;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

.page-error textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
}

.page-error .composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.page-error button {
    background: var(--accent);
    border: none;
    color: white;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.page-error button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.page-error button:active {
    transform: translateY(0);
}

.page-error button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-error button.secondary {
    background: #1b2642;
    color: var(--text);
}

.page-error button.secondary:hover {
    background: #22304d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-error .post-user {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
}

.page-error .post-user a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-error .post-user a:hover {
    color: var(--accent);
}

.page-error .card > div:not(.composer-footer):not(.error-box):not(.error-actions) {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.page-error .link-preview {
    background: #0e1628;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    margin-top: 10px;
    color: #b6c6ff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.page-error .link-preview:hover {
    border-color: var(--accent);
    background: #121b30;
    transform: translateY(-1px);
}

.page-error .error-box {
    text-align: center;
    animation: floatIn 0.6s ease-out;
    position: relative;
    padding: 32px 24px;
}

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

.page-error .confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #4f8cff;
    pointer-events: none;
    z-index: 9999;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx, 0), var(--ty, 200px)) rotate(720deg) scale(0.5);
    }
}

.page-error .error-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 32px;
    display: block;
}

.page-error .error-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-error .error-sub {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 480px;
    padding: 0 16px;
}

.page-error .error-code {
    font-size: 13px;
    color: #5a6b8a;
    margin-top: 16px;
    font-weight: 500;
    opacity: 0.7;
}

.page-error .error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.page-error .error-actions button {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
}

/* Composer card visible on error page for logged-in users */

/* ============================================
   PAGE-SPECIFIC: API DOCS
   ============================================ */

/* API Docs Specific Styles - Aligned with main.css theme */
.page-api-docs {
    background: var(--bg-primary);
    color: var(--text-primary);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

.page-api-docs .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Grid Layout */
.page-api-docs .main-grid { 
    display: grid; 
    grid-template-columns: 260px 1fr; 
    gap: 3rem; 
    margin-top: 2rem;
}

/* === Mobile TOC Toggle Button === */
.page-api-docs .toc-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
    background: var(--accent);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s, background 0.2s;
    align-items: center;
    justify-content: center;
}

.page-api-docs .toc-toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.page-api-docs .toc-toggle:active {
    transform: scale(0.95);
}

/* === Back to Top Button === */
.page-api-docs .back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-api-docs .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-api-docs .back-to-top:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* === Mobile TOC Overlay === */
.page-api-docs .toc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.page-api-docs .toc-overlay.active {
    opacity: 1;
}

/* Table of Contents */
.page-api-docs .toc { 
    position: sticky; 
    top: 2rem; 
    align-self: start;
    background: var(--bg-secondary); 
    padding: 1.5rem; 
    border-radius: 12px; 
    max-height: calc(100vh - 4rem); 
    overflow-y: auto;
    border: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) transparent;
}

.page-api-docs .toc::-webkit-scrollbar {
    width: 6px;
}

.page-api-docs .toc::-webkit-scrollbar-track {
    background: transparent;
}

.page-api-docs .toc::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.page-api-docs .toc .toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.page-api-docs .toc .toc-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.page-api-docs .toc .toc-close:hover {
    color: var(--text-primary);
}

.page-api-docs .toc h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 0;
    font-weight: 600;
}

.page-api-docs .toc-link { 
    display: block; 
    padding: 0.5rem 0.75rem; 
    color: var(--text-secondary) !important; 
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.page-api-docs .toc-link:visited {
    color: var(--text-secondary) !important;
}

.page-api-docs .toc-link:hover { 
    color: var(--accent) !important; 
    background: rgba(59, 130, 246, 0.1);
    text-decoration: none !important;
}

.page-api-docs .toc-link.active { 
    color: var(--accent) !important; 
    background: rgba(59, 130, 246, 0.15);
    font-weight: 500;
}

/* Sections */
.page-api-docs .section {
    margin-bottom: 4rem;
    max-width: 100%;
}

.page-api-docs .section > p,
.page-api-docs .section > h3,
.page-api-docs .section > ul {
    max-width: 900px;
}

.page-api-docs .section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.75rem;
}

.page-api-docs .section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.page-api-docs .section h4 {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.page-api-docs .section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.page-api-docs .section ul {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.page-api-docs .section li {
    margin-bottom: 0.5rem;
}

.page-api-docs .section code {
    background: var(--bg-tertiary);
    color: var(--accent);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    word-break: break-word;
}

/* Link Styles - Keep consistent color for visited links */
.page-api-docs a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.page-api-docs a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.page-api-docs a:visited {
    color: var(--accent); /* Same as unvisited */
}

/* Stats Grid */
.page-api-docs .stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 1rem; 
    margin: 2rem 0;
    max-width: 900px;
}

.page-api-docs .stat-card { 
    background: var(--bg-secondary); 
    padding: 1.5rem; 
    border-radius: 12px; 
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.page-api-docs .stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.page-api-docs .stat-value { 
    font-size: 2rem; 
    font-weight: 700; 
    color: var(--accent); 
    font-family: 'IBM Plex Sans', sans-serif;
}

.page-api-docs .stat-label { 
    font-size: 0.875rem; 
    color: var(--text-muted); 
    margin-top: 0.5rem; 
}

.page-api-docs .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.page-api-docs .stat-description {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* Capability List */
.page-api-docs .capability-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 1rem; 
    margin: 2rem 0;
    max-width: 900px;
}

.page-api-docs .capability-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    padding: 1.25rem; 
    background: var(--bg-secondary); 
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.page-api-docs .capability-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.page-api-docs .capability-icon { 
    font-size: 1.75rem; 
    color: var(--accent); 
    flex-shrink: 0;
}

.page-api-docs .capability-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.page-api-docs .capability-item div {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Feature Cards */
.page-api-docs .feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    max-width: 900px;
}

.page-api-docs .feature-card h3,
.page-api-docs .feature-card h4 {
    color: var(--text-primary);
    margin-top: 0;
}

.page-api-docs .feature-card h5 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.page-api-docs .feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-api-docs .feature-card ul,
.page-api-docs .feature-card ol {
    color: var(--text-secondary);
    padding-left: 1.75rem;
    margin: 1rem 0;
}

.page-api-docs .feature-card ul li,
.page-api-docs .feature-card ol li {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.page-api-docs .feature-card .code-block {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-overflow-scrolling: touch;
}

.page-api-docs .feature-card .code-block code {
    background: transparent;
    color: var(--text-secondary);
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

/* Badges */
.page-api-docs .auth-level-public { 
    background: var(--success); 
    color: white; 
    padding: 0.25rem 0.6rem; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.page-api-docs .auth-level-user { 
    background: var(--accent); 
    color: white; 
    padding: 0.25rem 0.6rem; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.page-api-docs .auth-level-admin { 
    background: var(--error); 
    color: white; 
    padding: 0.25rem 0.6rem; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.page-api-docs .rate-limit-badge { 
    background: var(--warning); 
    color: white; 
    padding: 0.25rem 0.6rem; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 600;
    white-space: nowrap;
}

.page-api-docs .badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Code Examples */
.page-api-docs .code-example { 
    background: var(--bg-tertiary); 
    color: var(--text-secondary); 
    padding: 1.5rem; 
    border-radius: 12px; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.page-api-docs .code-example code { 
    font-family: 'Courier New', monospace; 
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre;
    display: block;
}

.page-api-docs .code-example::before {
    content: 'Shell';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Endpoint Groups */
.page-api-docs .group-header { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin: 3rem 0 1.5rem 0; 
    padding-bottom: 0.75rem; 
    border-bottom: 2px solid var(--accent); 
}

.page-api-docs .group-icon { 
    font-size: 1.75rem; 
    color: var(--accent); 
    flex-shrink: 0;
}

.page-api-docs .group-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.page-api-docs .group-header p {
    margin: 0;
    color: var(--text-muted);
}

.page-api-docs .endpoint-group { 
    margin-bottom: 3rem; 
}

.page-api-docs .endpoint-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.page-api-docs .endpoint-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.page-api-docs .endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.page-api-docs .endpoint-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-api-docs .method {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: "Courier New", monospace;
    flex-shrink: 0;
}

.page-api-docs .method.get {
    background: var(--success);
    color: #fff;
}

.page-api-docs .method.post {
    background: var(--accent);
    color: #fff;
}

.page-api-docs .method.put {
    background: var(--warning);
    color: #fff;
}

.page-api-docs .method.delete {
    background: var(--error);
    color: #fff;
}

.page-api-docs .path {
    font-family: "Courier New", monospace;
    font-size: 1.125rem;
    color: #60a5fa;
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.page-api-docs .auth-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.page-api-docs .description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Search Box */
.page-api-docs .search-box { 
    width: 100%; 
    padding: 0.875rem 1rem; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    font-size: 1rem; 
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.page-api-docs .search-box:focus { 
    outline: none; 
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.page-api-docs .search-box::placeholder {
    color: var(--text-muted);
}

/* Tables */
.page-api-docs .table-wrapper {
    max-width: 900px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.page-api-docs .section table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    margin: 0;
}

.page-api-docs .section thead {
    background: var(--bg-tertiary);
}

.page-api-docs .section th {
    padding: 1rem;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.page-api-docs .section td {
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.page-api-docs .section tr:last-child td {
    border-bottom: none;
}

/* Info Boxes */
.page-api-docs .info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    color: var(--text-secondary);
    max-width: 900px;
}

.page-api-docs .info-box.success {
    border-left-color: var(--success);
}

.page-api-docs .info-box strong {
    color: var(--text-primary);
}

.page-api-docs .info-box ol,
.page-api-docs .info-box ul {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.page-api-docs .info-box li {
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* Mermaid Diagrams - Hide raw text, show only rendered */
.page-api-docs .mermaid {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 900px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hide mermaid source code */
.page-api-docs .mermaid[data-processed="true"] {
    font-size: 0;
}

.page-api-docs .mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Curl Container */
.page-api-docs .curl-container {
    position: relative;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.page-api-docs .curl-header {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.page-api-docs .copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.page-api-docs .copy-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.page-api-docs .curl-code {
    padding: 1rem;
    padding-right: 5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Header */
.page-api-docs .header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-api-docs .header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.page-api-docs .header .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Footer */
.page-api-docs .footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE: Tablet (769px - 1024px) 
   ============================================ */
@media (max-width: 1024px) { 
    .page-api-docs .main-grid { 
        grid-template-columns: 1fr; 
        gap: 0;
    }

    /* Hide desktop TOC, show toggle */
    .page-api-docs .toc {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        max-height: none;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 1.5rem;
        padding-top: 1.25rem;
        overflow-y: auto;
    }

    .page-api-docs .toc.open {
        transform: translateX(0);
    }

    .page-api-docs .toc .toc-close {
        display: block;
    }

    .page-api-docs .toc-toggle {
        display: flex;
    }

    .page-api-docs .toc-overlay {
        display: block;
        pointer-events: none;
    }

    .page-api-docs .toc-overlay.active {
        pointer-events: auto;
    }

    .page-api-docs .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .page-api-docs .capability-list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* ============================================
   RESPONSIVE: Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .page-api-docs .container {
        padding: 1rem 0.75rem;
    }

    .page-api-docs .header {
        padding: 2rem 1rem;
    }

    .page-api-docs .header h1 {
        font-size: 1.75rem;
    }

    .page-api-docs .header .subtitle {
        font-size: 1rem;
    }
    
    .page-api-docs .section h2 {
        font-size: 1.375rem;
    }
    
    .page-api-docs .section h3 {
        font-size: 1.125rem;
    }

    .page-api-docs .section h4 {
        font-size: 1rem;
    }

    .page-api-docs .section {
        margin-bottom: 3rem;
    }
    
    .page-api-docs .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .page-api-docs .stat-card {
        padding: 1rem;
    }
    
    .page-api-docs .stat-value {
        font-size: 1.375rem;
    }

    .page-api-docs .stat-label {
        font-size: 0.8125rem;
    }

    .page-api-docs .capability-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .page-api-docs .capability-item {
        padding: 1rem;
    }

    .page-api-docs .capability-icon {
        font-size: 1.5rem;
    }
    
    .page-api-docs .code-example {
        padding: 1rem;
        border-radius: 8px;
        margin: 1rem 0;
    }
    
    .page-api-docs .code-example code {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .page-api-docs .code-example::before {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.625rem;
    }

    /* Endpoint cards mobile */
    .page-api-docs .endpoint-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .page-api-docs .endpoint-header {
        gap: 0.5rem;
    }

    .page-api-docs .endpoint-header .method {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .page-api-docs .path {
        font-size: 0.875rem;
        flex-basis: 100%;
        order: 1;
    }

    .page-api-docs .endpoint-badges {
        order: 2;
    }

    .page-api-docs .description {
        font-size: 0.875rem;
    }

    .page-api-docs .curl-code {
        font-size: 0.75rem;
        padding: 0.75rem;
        padding-right: 4rem;
        line-height: 1.5;
    }

    .page-api-docs .copy-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Feature cards mobile */
    .page-api-docs .feature-card {
        padding: 1.25rem;
        margin: 1rem 0;
        border-radius: 8px;
    }

    .page-api-docs .feature-card .code-block {
        padding: 1rem;
    }

    .page-api-docs .feature-card .code-block code {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .page-api-docs .feature-card h5 {
        font-size: 1rem;
    }

    /* Info boxes mobile */
    .page-api-docs .info-box {
        padding: 1rem 1.25rem;
        margin: 1rem 0;
    }

    .page-api-docs .info-box li {
        margin: 0.5rem 0;
        font-size: 0.9375rem;
    }

    /* Tables mobile */
    .page-api-docs .section th,
    .page-api-docs .section td {
        padding: 0.75rem 0.625rem;
        font-size: 0.8125rem;
    }

    /* Group headers mobile */
    .page-api-docs .group-header {
        margin: 2rem 0 1rem 0;
        gap: 0.75rem;
    }

    .page-api-docs .group-icon {
        font-size: 1.5rem;
    }

    .page-api-docs .group-header h3 {
        font-size: 1.125rem !important;
    }

    /* Mermaid diagram mobile */
    .page-api-docs .mermaid {
        padding: 1rem;
    }

    /* Footer mobile */
    .page-api-docs .footer {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
    }

    /* Back to top - slightly smaller on mobile */
    .page-api-docs .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
    }

    .page-api-docs .toc-toggle {
        bottom: 1rem;
        left: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
}

/* ============================================
   RESPONSIVE: Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .page-api-docs .container {
        padding: 0.75rem 0.5rem;
    }

    .page-api-docs .header {
        padding: 1.5rem 0.75rem;
    }

    .page-api-docs .header h1 {
        font-size: 1.5rem;
    }

    .page-api-docs .section h2 {
        font-size: 1.25rem;
    }

    .page-api-docs .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .page-api-docs .stat-card {
        padding: 0.75rem;
    }

    .page-api-docs .stat-value {
        font-size: 1.25rem;
    }

    .page-api-docs .stat-label {
        font-size: 0.75rem;
    }

    .page-api-docs .endpoint-card {
        padding: 0.75rem;
    }

    .page-api-docs .path {
        font-size: 0.8125rem;
    }

    .page-api-docs .curl-code {
        font-size: 0.6875rem;
        padding-right: 3.5rem;
    }

    .page-api-docs .code-example code {
        font-size: 0.6875rem;
    }

    .page-api-docs .feature-card {
        padding: 1rem;
    }

    .page-api-docs .feature-card .code-block {
        padding: 0.75rem;
    }

    .page-api-docs .feature-card .code-block code {
        font-size: 0.6875rem;
    }

    .page-api-docs .search-box {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}

/* ============================================
   PAGE-SPECIFIC: ADMIN DASHBOARD & USERS
   ============================================ */

.page-admin-dashboard header,
.page-admin-users header {
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
}

.page-admin-dashboard .header-content,
.page-admin-users .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-admin-dashboard .header-left,
.page-admin-users .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-admin-dashboard .header-title,
.page-admin-users .header-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.page-admin-dashboard .header-subtitle,
.page-admin-users .header-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.page-admin-dashboard .header-right,
.page-admin-users .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-admin-dashboard .user-info,
.page-admin-users .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-admin-dashboard .avatar-small,
.page-admin-users .avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.page-admin-dashboard .user-email,
.page-admin-users .user-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Admin Users Page - User Cards */
.page-admin-users .users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.page-admin-users .user-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, opacity 0.3s, box-shadow 0.2s;
    min-width: 0;
    overflow: hidden;
}

.page-admin-users .user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-admin-users .user-card .user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-admin-users .user-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.page-admin-users .user-info-card {
    flex: 1;
    min-width: 0;
}

.page-admin-users .user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-admin-users .user-email-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-admin-users .user-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-admin-users .meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-admin-users .meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-admin-users .meta-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.page-admin-users .admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.page-admin-users .user-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-admin-users .action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 0;
}

.page-admin-users .action-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-admin-users .action-button:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.page-admin-users .action-button.delete {
    border-color: var(--error);
    color: var(--error);
}

.page-admin-users .action-button.delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

.page-admin-users .action-button.warning {
    border-color: var(--warning);
    color: var(--warning);
}

.page-admin-users .action-button.warning:hover {
    background: rgba(245, 158, 11, 0.1);
}

.page-admin-users .user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.page-admin-users .session-info {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.page-admin-users .session-info.inactive {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

.page-admin-users .session-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.page-admin-users .session-info.inactive .session-header {
    color: var(--error);
    margin-bottom: 0;
}

.page-admin-users .session-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.page-admin-users .session-stat {
    text-align: center;
}

.page-admin-users .session-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.page-admin-users .session-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.page-admin-users .session-value.warning {
    color: var(--warning);
}

.page-admin-users .session-value.error {
    color: var(--error);
}

.page-admin-users .stat-item {
    text-align: center;
    min-width: 0;
}

.page-admin-users .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.page-admin-users .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.page-admin-users .debug-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.page-admin-users .debug-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
}

.page-admin-users .debug-toggle:hover {
    color: var(--text-primary);
}

.page-admin-users .debug-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.page-admin-users .debug-content.show {
    max-height: 500px;
    margin-top: 0.75rem;
}

.page-admin-users .debug-content pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.75rem;
    overflow-x: auto;
    color: var(--text-secondary);
}

.page-admin-users .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-admin-users .section-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.page-admin-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-admin-dashboard .stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.page-admin-dashboard .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.page-admin-dashboard .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.page-admin-dashboard .stat-card.iframely {
    grid-column: span 2;
}

.page-admin-dashboard .usage-bar-container {
    margin-top: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}

.page-admin-dashboard .usage-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent));
    transition: width 0.3s ease, background 0.3s ease;
}

.page-admin-dashboard .usage-bar.warning {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.page-admin-dashboard .usage-bar.danger {
    background: linear-gradient(90deg, var(--error), #fca5a5);
}

.page-admin-dashboard .usage-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-admin-dashboard .usage-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.page-admin-dashboard .usage-status.ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.page-admin-dashboard .usage-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.page-admin-dashboard .usage-status.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.page-admin-dashboard .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-admin-dashboard .section-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.page-admin-dashboard .filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.page-admin-dashboard .view-mode-toggle {
    flex: 1 1 auto;
    min-width: 0;
}

.page-admin-dashboard #entries-filters,
.page-admin-dashboard #duplicates-filters,
.page-admin-dashboard #broken-links-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

.page-admin-dashboard .source-filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-admin-dashboard .source-filter-select:hover {
    border-color: var(--accent);
}

.page-admin-dashboard .source-filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.page-admin-dashboard .entries-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* View mode toggle */
.page-admin-dashboard .view-mode-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.page-admin-dashboard .view-mode-btn {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.page-admin-dashboard .view-mode-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.page-admin-dashboard .view-mode-btn.active {
    background: var(--accent);
    color: white;
}

.page-admin-dashboard .dupe-badge {
    background: var(--error);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 1.2rem;
    text-align: center;
    line-height: 1.3;
}

.page-admin-dashboard .view-mode-btn.active .dupe-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Bulk actions bar */
.page-admin-dashboard .bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-admin-dashboard .bulk-actions-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.page-admin-dashboard .bulk-actions-info i {
    color: var(--accent);
}

.page-admin-dashboard .bulk-actions-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Stat card for duplicates */
.page-admin-dashboard .stat-card.duplicates {
    border-color: var(--warning);
    border-width: 1px;
}

/* Stat card for AI Scripts */
.page-admin-dashboard .stat-card.ai-scripts {
    border-color: rgba(139, 92, 246, 0.35);
    border-width: 1px;
    position: relative;
    overflow: hidden;
}

.page-admin-dashboard .stat-card.ai-scripts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #8b5cf6);
    background-size: 200% 100%;
    animation: ai-shimmer 3s linear infinite;
}

@keyframes ai-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.page-admin-dashboard .stat-card.ai-scripts > .stat-label {
    color: #a78bfa;
}

.page-admin-dashboard .ai-scripts-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.page-admin-dashboard .ai-scripts-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-admin-dashboard .ai-scripts-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.page-admin-dashboard .ai-scripts-status-dot.configured {
    background: var(--success);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.page-admin-dashboard .ai-scripts-status-dot.not-configured {
    background: var(--warning);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.page-admin-dashboard .ai-scripts-status-dot.error {
    background: var(--error);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.page-admin-dashboard .btn-trigger-ai {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-admin-dashboard .btn-trigger-ai:hover:not(:disabled) {
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.page-admin-dashboard .btn-trigger-ai:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-admin-dashboard .ai-scripts-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.page-admin-dashboard .ai-scripts-workflow {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
}

.page-admin-dashboard .ai-scripts-last-run {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: default;
}

.page-admin-dashboard .btn-github-settings {
    width: 100%;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.page-admin-dashboard .btn-github-settings:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-secondary);
    background: rgba(139, 92, 246, 0.05);
}

.page-admin-dashboard .ai-scripts-settings {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-admin-dashboard .ai-scripts-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-admin-dashboard .ai-scripts-form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.page-admin-dashboard .ai-scripts-form-group input {
    width: 100%;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
    font-family: 'IBM Plex Mono', 'SF Mono', monospace;
}

.page-admin-dashboard .ai-scripts-form-group input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.page-admin-dashboard .ai-scripts-form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.page-admin-dashboard .token-input-wrapper {
    position: relative;
    display: flex;
}

.page-admin-dashboard .token-input-wrapper input {
    padding-right: 2.5rem;
}

.page-admin-dashboard .btn-toggle-token {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.page-admin-dashboard .btn-toggle-token:hover {
    color: var(--text-secondary);
}

.page-admin-dashboard .token-hint {
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.page-admin-dashboard .token-hint code {
    background: var(--bg-tertiary);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.65rem;
    color: #a78bfa;
}

.page-admin-dashboard .ai-scripts-form-actions {
    display: flex;
    gap: 0.5rem;
}

.page-admin-dashboard .btn-save-github {
    flex: 1;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.page-admin-dashboard .btn-save-github:hover:not(:disabled) {
    background: var(--accent-hover);
}

.page-admin-dashboard .btn-save-github:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.page-admin-dashboard .btn-clear-github {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: var(--error);
    cursor: pointer;
    transition: all 0.2s;
}

.page-admin-dashboard .btn-clear-github:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

/* Duplicate group cards */
.page-admin-dashboard .duplicate-group-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: opacity 0.3s, transform 0.3s;
}

.page-admin-dashboard .duplicate-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.page-admin-dashboard .duplicate-group-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-admin-dashboard .duplicate-group-user .avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.page-admin-dashboard .duplicate-group-username {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.page-admin-dashboard .duplicate-group-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.page-admin-dashboard .duplicate-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.page-admin-dashboard .duplicate-match-badge.text {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.page-admin-dashboard .duplicate-match-badge.url {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.page-admin-dashboard .duplicate-match-badge.text_url {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.page-admin-dashboard .duplicate-matched-value {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.page-admin-dashboard .duplicate-entries-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.page-admin-dashboard .duplicate-entry-item {
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border-left: 3px solid transparent;
    transition: opacity 0.3s, height 0.3s;
}

.page-admin-dashboard .duplicate-entry-item.keep {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.page-admin-dashboard .duplicate-entry-item.removable {
    border-left-color: var(--error);
    opacity: 0.85;
}

.page-admin-dashboard .duplicate-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.page-admin-dashboard .duplicate-entry-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-admin-dashboard .keep-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.page-admin-dashboard .duplicate-entry-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.page-admin-dashboard .duplicate-entry-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.page-admin-dashboard .duplicate-entry-actions {
    display: flex;
    gap: 0.35rem;
}

.page-admin-dashboard .duplicate-entry-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.page-admin-dashboard .duplicate-entry-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-admin-dashboard .engagement-warning {
    color: var(--warning) !important;
    font-weight: 600;
}

.page-admin-dashboard .duplicate-entry-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.page-admin-dashboard .duplicate-group-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* Small & tiny button variants */
.button.small {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

.button.tiny {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.button.danger {
    background: var(--error);
    color: white;
    border: 1px solid var(--error);
}

.button.danger:hover {
    background: #dc2626;
}

.button.danger.tiny {
    background: transparent;
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.button.danger.tiny:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Empty duplicates state */
.page-admin-dashboard #empty-duplicates-state .empty-state-icon {
    color: var(--success);
}

/* ============================================
   PAGE-SPECIFIC: ADMIN LOGIN
   ============================================ */

.page-admin-login body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.page-admin-login .login-container {
    width: 100%;
    max-width: 420px;
}

.page-admin-login .login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.page-admin-login .logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-admin-login h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-admin-login .subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.page-admin-login .error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.page-admin-login .google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--accent);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.page-admin-login .google-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.page-admin-login .google-icon {
    width: 20px;
    height: 20px;
}

.page-admin-login .dev-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.page-admin-login .dev-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.page-admin-login .dev-users {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-admin-login .dev-user-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.page-admin-login .dev-user-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateX(4px);
}

.page-admin-login .dev-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
}

.page-admin-login .dev-user-name {
    font-weight: 600;
}

.page-admin-login .dev-user-email {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.page-admin-login .dev-user-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.page-admin-login .footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.page-admin-login .footer a {
    color: var(--accent);
    text-decoration: none;
}

.page-admin-login .footer a:hover {
    text-decoration: underline;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Tablet breakpoint (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .page-admin-users .users-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .page-admin-users .user-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .page-admin-users .action-button {
        font-size: 0.875rem;
    }
}

/* Small desktop/large tablet (max-width: 1200px) */
@media (max-width: 1200px) {
    .page-admin-users .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Landing page mobile */
    .page-landing .header-banner {
        height: 120px;
    }

    .page-landing .header-content {
        padding: 0 1rem;
    }

    .page-landing .header-profile-section {
        margin-top: -48px;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-landing .header-avatar {
        width: 96px;
        height: 96px;
        border-width: 3px;
    }

    .page-landing .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .page-landing .header-info {
        padding-bottom: 0;
    }

    .page-landing h1 {
        font-size: 1.25rem;
    }

    .page-landing .header-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .page-landing .login-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 2.25rem;
    }

    .page-landing .nav-link {
        padding: 0.5rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
    }

    .page-landing .logout-button {
        padding: 0.5rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
    }

    .page-landing main {
        padding: 1rem 0.5rem;
    }

    .page-landing .create-post-section {
        padding: 1rem;
    }

    .page-landing .create-post-header h2 {
        font-size: 1.125rem;
    }

    .search-card {
        padding: 1rem;
    }

    .search-input {
        padding: 0.75rem 2.75rem 0.75rem 2.75rem;
        font-size: 0.9375rem;
    }

    .search-results-info {
        font-size: 0.875rem;
    }

    .page-landing .admin-controls-section {
        padding: 1rem;
    }

    .page-landing .admin-controls-header h2 {
        font-size: 1.125rem;
    }

    .page-landing .admin-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .page-landing .post-textarea {
        min-height: 80px;
        font-size: 0.9375rem;
    }

    .page-landing .submit-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .page-landing .entry-card {
        padding: 0.75rem 1rem;
    }

    .page-landing .entry-header {
        gap: 0.5rem;
    }

    .page-landing .avatar {
        width: 40px;
        height: 40px;
    }

    .page-landing .user-name {
        font-size: 0.875rem;
    }

    .page-landing .entry-body {
        margin-left: 48px;
    }

    .page-landing .menu-button {
        width: 28px;
        height: 28px;
        font-size: 1.125rem;
    }

    /* Profile page mobile */
    .page-profile .container {
        padding: 2rem 1rem;
    }

    .page-profile .profile-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-profile .profile-sidebar {
        position: static;
    }

    .page-profile .identity-card {
        padding: 1.5rem;
    }

    .page-profile .identity-avatar-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .page-profile .identity-avatar {
        width: 80px;
        height: 80px;
    }

    .page-profile .identity-name {
        font-size: 1.25rem;
    }

    .page-profile .identity-stats {
        gap: 1rem;
    }

    .page-profile .identity-stat-value {
        font-size: 1rem;
    }

    .page-profile .profile-section {
        padding: 1.5rem;
    }

    .page-profile .btn {
        width: 100%;
    }

    .page-profile .token-actions {
        flex-direction: column;
    }

    .page-profile .token-actions .btn-icon {
        width: 100%;
    }

    /* User page mobile */
    .page-user main {
        padding: 1rem;
    }

    .page-user .profile-header-image {
        height: 150px;
    }

    .page-user .profile-info-section {
        padding: 0 1rem 1.5rem 1rem;
        margin-top: -50px;
    }

    .page-user .profile-avatar-container {
        width: 100px;
        height: 100px;
    }

    .page-user .profile-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .page-user .profile-name {
        font-size: 1.25rem;
    }

    .page-user .profile-bio {
        font-size: 0.875rem;
    }

    .page-user .profile-meta {
        gap: 0.125rem 1rem;
    }

    .page-user .profile-stats {
        gap: 1rem;
    }

    .page-user .profile-stat {
        font-size: 0.8125rem;
    }

    .page-user .profile-stat-value {
        font-size: 0.875rem;
    }

    .page-user .header-content {
        padding: 1rem;
    }

    .page-user .header-actions {
        gap: 0.5rem;
    }

    .page-user .nav-link span:last-child,
    .page-user .logout-button span:last-child,
    .page-user .login-button span:last-child {
        display: none;
    }

    .page-user .nav-link,
    .page-user .logout-button {
        padding: 0.625rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .page-user .login-button {
        padding: 0.625rem 1rem;
        min-height: 2.5rem;
    }

    /* Status page mobile */
    .page-status .header-content {
        padding: 1rem;
    }

    .page-status main {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .page-status .entry-card {
        padding: 1rem;
    }

    .page-status .link-preview-card {
        flex-direction: column;
    }

    .page-status .link-preview-image {
        width: 100%;
        height: 200px;
    }

    /* Error page mobile */
    .page-error .container {
        max-width: 100%;
        padding: 16px;
    }

    .page-error .card {
        padding: 20px;
        border-radius: 16px;
    }

    .page-error .error-box {
        padding: 24px 16px;
    }

    .page-error .error-image {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .page-error .error-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .page-error .error-sub {
        font-size: 15px;
        padding: 0 8px;
    }

    .page-error .error-code {
        font-size: 12px;
        margin-top: 12px;
    }

    .page-error .error-actions {
        margin-top: 24px;
    }

    .page-error .error-actions button {
        padding: 10px 24px;
        font-size: 14px;
    }

    /* API docs mobile */
    .page-api-docs .header h1 {
        font-size: 2rem;
    }

    .page-api-docs .container {
        padding: 1rem;
    }

    .page-api-docs .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-api-docs .path {
        font-size: 1rem;
    }

    /* Admin dashboard & users mobile */
    .page-admin-dashboard header,
    .page-admin-users header {
        padding: 1rem;
    }

    .page-admin-dashboard .header-content,
    .page-admin-users .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-admin-dashboard .header-right,
    .page-admin-users .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .page-admin-dashboard .container,
    .page-admin-users .container {
        padding: 1rem;
    }

    .page-admin-dashboard .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-admin-dashboard .stat-card.iframely {
        grid-column: span 1;
    }

    .page-admin-dashboard .user-email,
    .page-admin-users .user-email {
        display: none;
    }

    .page-admin-dashboard .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-admin-dashboard .section-title {
        font-size: 1.25rem;
    }

    .page-admin-dashboard .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    .page-admin-dashboard .view-mode-toggle {
        width: 100%;
    }

    .page-admin-dashboard .view-mode-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    .page-admin-dashboard .view-mode-btn i {
        font-size: 0.875rem;
    }

    .page-admin-dashboard .view-mode-btn .dupe-badge {
        font-size: 0.65rem;
        padding: 0.125rem 0.375rem;
    }

    .page-admin-dashboard #entries-filters,
    .page-admin-dashboard #duplicates-filters,
    .page-admin-dashboard #broken-links-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .page-admin-dashboard #entries-filters label,
    .page-admin-dashboard #duplicates-filters label,
    .page-admin-dashboard #broken-links-filters label {
        margin: 0 !important;
        font-size: 0.75rem;
    }

    .page-admin-dashboard .source-filter-select {
        width: 100%;
        font-size: 0.875rem;
    }

    .page-admin-dashboard .bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-admin-dashboard .duplicate-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .page-admin-dashboard .duplicate-group-actions {
        flex-direction: column;
    }

    .page-admin-dashboard .duplicate-group-actions .button {
        width: 100%;
        justify-content: center;
    }

    .page-admin-dashboard .stat-card.duplicates {
        grid-column: span 1;
    }

    /* Admin users mobile */
    .page-admin-users .users-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-admin-users .user-card {
        padding: 1rem;
    }

    .page-admin-users .user-meta {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .page-admin-users .user-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .page-admin-users .stat-value {
        font-size: 1.25rem;
    }

    .page-admin-users .stat-label {
        font-size: 0.65rem;
    }

    .page-admin-users .session-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .page-admin-users .session-value {
        font-size: 0.9rem;
    }

    .page-admin-users .session-label {
        font-size: 0.6rem;
    }

    .page-admin-users .user-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .page-admin-users .action-button {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .page-admin-users .action-button i {
        font-size: 0.875rem;
    }

    /* Admin login mobile */
    .page-admin-login .login-card {
        padding: 2rem 1.5rem;
    }

    .page-admin-login h1 {
        font-size: 1.5rem;
    }

    .page-admin-login .logo {
        font-size: 2.5rem;
    }
}

/* ===== Broken Links Cards ===== */
.broken-link-card {
    cursor: default !important;
}

.broken-link-card:hover {
    background: var(--bg-secondary) !important;
}

.broken-link-card .entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.broken-link-card .entry-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.broken-link-card .entry-actions {
    display: flex;
    gap: 0.5rem;
}

.error-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--error);
    color: white;
}

.error-badge.warning {
    background: var(--warning);
}

.error-badge.danger {
    background: var(--error);
}

.broken-link-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.broken-link-url {
    font-size: 0.875rem;
    word-break: break-all;
}

.broken-link-url a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.broken-link-url a:hover {
    color: var(--primary);
}

.broken-link-url a:visited {
    color: var(--text-secondary);
}

.broken-link-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.broken-link-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.broken-link-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.broken-link-error {
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--error);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Bulk selection checkbox for broken links */
.bulk-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.bulk-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.broken-link-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Broken links bulk actions bar */
#broken-links-bulk-actions {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

#broken-links-bulk-actions .bulk-actions-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

#broken-links-bulk-actions .bulk-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================
   SHORT LINKS STYLES
   ============================================ */

.short-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.status-badge.pending {
    background: var(--primary);
    color: white;
}

.status-badge.failed {
    background: var(--warning);
    color: white;
}

.status-badge.resolved {
    background: var(--success);
    color: white;
}

.short-link-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.short-link-url {
    font-size: 0.875rem;
    word-break: break-all;
}

.short-link-url a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.short-link-url a:hover {
    color: var(--primary);
}

.short-link-url a:visited {
    color: var(--text-secondary);
}

.short-link-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.short-link-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.short-link-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================
   TAGS MANAGEMENT STYLES
   ============================================ */

.page-admin-dashboard .tags-table {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.page-admin-dashboard .tags-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-admin-dashboard .tags-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: background-color 0.2s;
}

.page-admin-dashboard .tags-table-row:last-child {
    border-bottom: none;
}

.page-admin-dashboard .tags-table-row:hover {
    background: rgba(30, 41, 59, 0.5);
}

.page-admin-dashboard .tags-col-name {
    font-weight: 500;
    color: var(--text-primary);
}

.page-admin-dashboard .tags-col-name .tag-name-input {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 100%;
    max-width: 200px;
}

.page-admin-dashboard .tags-col-slug code {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-secondary);
}

.page-admin-dashboard .tags-col-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-admin-dashboard .tags-col-count .entry-count {
    font-weight: 600;
    color: var(--text-primary);
}

.page-admin-dashboard .tags-col-actions {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.25rem;
}

.modal-body label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* Tags filters */
.page-admin-dashboard #tags-filters {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.5rem;
}

.page-admin-dashboard #tags-filters input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.page-admin-dashboard #tags-filters input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Mobile responsive styles for tags */
@media (max-width: 768px) {
    .page-admin-dashboard .tags-table-header {
        display: none;
    }

    .page-admin-dashboard .tags-table-row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .page-admin-dashboard .tags-col-name,
    .page-admin-dashboard .tags-col-slug,
    .page-admin-dashboard .tags-col-count,
    .page-admin-dashboard .tags-col-actions {
        width: 100%;
    }

    .page-admin-dashboard .tags-col-actions {
        justify-content: flex-start;
    }

    .page-admin-dashboard #tags-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .page-admin-dashboard #tags-filters input {
        width: 100%;
    }
}

/* ============================================
   SITE FOOTER (legal links)
   ============================================ */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1rem 0.75rem;
    }
    .site-footer-links {
        gap: 1rem;
    }
}

/* Data Section (profile page) */
.data-section .data-section-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Feedback Section (profile page) */
.feedback-section {
    overflow: hidden;
}

.feedback-section .feedback-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    margin: -2rem -2rem 1.5rem -2rem;
    padding: 1.5rem 1rem 0;
    border-radius: 1rem 1rem 0 0;
}

.feedback-section .feedback-mascot img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.feedback-section .feedback-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feedback-section .feedback-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feedback-section .feedback-chip {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.feedback-section .feedback-chip:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb, 99,102,241), 0.1);
}

.feedback-section .feedback-chip.active {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb, 99,102,241), 0.15);
    color: var(--accent);
}

.feedback-section .feedback-textarea-wrapper {
    position: relative;
}

.feedback-section .feedback-textarea-wrapper textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-primary);
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 5rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.feedback-section .feedback-textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.feedback-section .feedback-clear-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: color 0.2s;
    line-height: 1;
}

.feedback-section .feedback-clear-btn:hover {
    color: var(--text-primary);
}

.feedback-section .feedback-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.375rem;
    padding: 0 0.25rem;
}

.feedback-section .feedback-char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.feedback-section .feedback-sending-as {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.feedback-section #submitFeedbackBtn {
    margin-top: 0.5rem;
}

.feedback-section #submitFeedbackBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-section #submitFeedbackBtn .spinner-inline {
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@media (max-width: 768px) {
    .feedback-section .feedback-mascot {
        margin: -1.5rem -1.5rem 1.25rem -1.5rem;
        padding: 0.75rem 0.75rem 0;
    }

    .feedback-section .feedback-mascot img {
        max-width: 200px;
    }
}

/* Danger Zone (profile page) */
.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.danger-zone .profile-section-header i {
    color: var(--error);
}

.danger-zone .profile-section-header h2 {
    color: var(--error);
}

.danger-zone .danger-zone-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.page-profile .btn-danger {
    background: var(--error);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.page-profile .btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

.page-profile .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.page-profile .btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--text-muted);
}

/* Delete Account Modal */
.delete-modal-content {
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

.delete-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.delete-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.delete-modal-mascot {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 0;
}

.delete-modal-mascot img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
}

.delete-modal-content .btn-danger {
    background: var(--error);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.delete-modal-content .btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-modal-content .btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.delete-modal-content .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.delete-modal-content .btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--text-muted);
}

.delete-consequences {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.delete-consequences li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.delete-consequences li i {
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 1.25rem;
    text-align: center;
    color: var(--text-muted);
}

.delete-consequences li a {
    color: var(--accent);
    text-decoration: none;
}

.delete-consequences li a:hover {
    text-decoration: underline;
}

.delete-confirm-input {
    margin-top: 1.25rem;
}

.delete-confirm-input label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.delete-confirm-input input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.delete-confirm-input input:focus {
    outline: none;
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.btn-loading {
    opacity: 0.8;
    pointer-events: none;
}

@media (max-width: 480px) {
    .delete-modal-content {
        max-width: calc(100% - 1rem);
        margin: 0.5rem;
        border-radius: 10px;
    }

    .delete-modal-mascot {
        padding: 0.75rem 0.75rem 0;
    }

    .delete-modal-mascot img {
        max-width: 240px;
    }

    .delete-modal-content .modal-body {
        padding: 1rem;
    }

    .delete-modal-content .modal-body > p {
        font-size: 0.85rem;
    }

    .delete-consequences li {
        font-size: 0.825rem;
    }

    .delete-modal-content .modal-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .delete-modal-content .modal-footer .btn-secondary,
    .delete-modal-content .modal-footer .btn-danger {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Deletion Pending Banner (admin users page) */
.deletion-pending-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.deletion-pending-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.deletion-pending-info i {
    color: #f59e0b;
    flex-shrink: 0;
}

.deletion-pending-banner .button.small {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

/* Account Pending Deletion Blocker Page */
.page-account-pending-deletion {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.deletion-blocker {
    width: 100%;
    max-width: 520px;
    z-index: 1;
}

.deletion-blocker-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.deletion-blocker-mascot {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem 0.5rem;
}

.deletion-blocker-mascot img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.deletion-blocker-body {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.deletion-blocker-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.deletion-blocker-info {
    text-align: left;
    margin-bottom: 2rem;
}

.deletion-blocker-info-item {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.deletion-blocker-info-item i {
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 1.25rem;
    text-align: center;
    color: var(--text-muted);
}

.deletion-blocker-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.deletion-blocker-actions .btn-revert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.deletion-blocker-actions .btn-revert:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.deletion-blocker-actions .btn-revert:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.deletion-blocker-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.deletion-blocker-actions .btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-tertiary);
}

.deletion-blocker-contact {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.deletion-blocker-contact a {
    color: var(--accent);
    text-decoration: none;
}

.deletion-blocker-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .deletion-blocker-card {
        border-radius: 12px;
    }

    .deletion-blocker-mascot {
        padding: 1rem 1rem 0.25rem;
    }

    .deletion-blocker-mascot img {
        max-width: 220px;
    }

    .deletion-blocker-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .deletion-blocker-subtitle {
        font-size: 0.875rem;
    }

    .deletion-blocker-info-item {
        font-size: 0.825rem;
    }

    .deletion-blocker-actions .btn-revert {
        font-size: 0.875rem;
        padding: 0.7rem 1.25rem;
    }
}
