/* ============================================================
   ImageHost — Global Design System
   Aesthetic: Editorial Monochrome / Modern Startup
   Font: "DM Sans" (display) + "DM Mono" (code/links)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   1. CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Palette: Monochrome */
    --color-bg: #0a0a0a;
    --color-surface: #111111;
    --color-surface-2: #1a1a1a;
    --color-surface-3: #242424;
    --color-border: #2c2c2c;
    --color-border-2: #3d3d3d;

    /* Text */
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #999999;
    --color-text-muted: #555555;

    /* Accent: Pure white with opacity for highlights */
    --color-accent: #ffffff;
    --color-accent-dim: rgba(255, 255, 255, 0.08);
    --color-accent-hover: rgba(255, 255, 255, 0.12);

    /* Semantic */
    --color-danger: #ff4444;
    --color-danger-bg: rgba(255, 68, 68, 0.08);
    --color-danger-border: rgba(255, 68, 68, 0.3);
    --color-success: #22c55e;
    --color-success-bg: rgba(34, 197, 94, 0.08);
    --color-success-border: rgba(34, 197, 94, 0.3);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.08);

    /* Typography */
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'DM Mono', ui-monospace, monospace;

    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */

    /* Spacing (4px base grid) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;

    /* Layout */
    --max-width-sm: 480px;
    --max-width-md: 720px;
    --max-width-lg: 1024px;
    --max-width-xl: 1280px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

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

/* ============================================================
   3. LAYOUT CONTAINERS
   ============================================================ */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width-sm);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.container--md {
    max-width: var(--max-width-md);
}

.container--lg {
    max-width: var(--max-width-lg);
}

.container--xl {
    max-width: var(--max-width-xl);
}

.main-content {
    flex: 1;
    padding-block: var(--space-8);
}

/* ============================================================
   4. HEADER / NAV
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: var(--space-4);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.site-logo__icon {
    font-size: var(--text-xl);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */

/* Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Variants */
.btn--primary {
    background-color: var(--color-accent);
    color: #0a0a0a;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: var(--color-surface-2);
    color: var(--color-text-primary);
    border-color: var(--color-border-2);
}

.btn--secondary:hover {
    background-color: var(--color-surface-3);
    border-color: var(--color-border-2);
}

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

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

.btn--danger {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: var(--color-danger-border);
}

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

.btn--success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border-color: var(--color-success-border);
}

.btn--success:hover {
    background-color: var(--color-success);
    color: #000;
}

/* Sizes */
.btn--sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn--full {
    width: 100%;
}

.btn--icon {
    padding: var(--space-2);
    aspect-ratio: 1;
}

/* ============================================================
   6. FORM ELEMENTS
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #121214;
    border: 1px solid #27272a;
    border-radius: 10px;
    color: #f4f4f5;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #52525b;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: #52525b;
}

.form-select {
    cursor: pointer;
    appearance: auto;
}

/* Small variant for inline controls */
.form-input--sm {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ============================================================
   7. UPLOAD DROPZONE
   ============================================================ */
.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-12) var(--space-8);
    border: 1.5px dashed var(--color-border-2);
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.dropzone:hover,
.dropzone.is-active {
    border-color: var(--color-accent);
    background-color: var(--color-surface-2);
}

.dropzone__icon {
    font-size: 2.5rem;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
    line-height: 1;
}

.dropzone:hover .dropzone__icon,
.dropzone.is-active .dropzone__icon {
    color: var(--color-text-primary);
}

.dropzone__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
}

.dropzone__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.dropzone__hints {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
}

.dropzone__hint-tag {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background-color: var(--color-surface-2);
    border: 1px solid var(--color-border);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
}

/* Hide native file input */
.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* ============================================================
   8. UPLOAD OPTIONS BAR
   ============================================================ */
.upload-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.upload-options__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ============================================================
   9. RESULT CARDS (Post-Upload)
   ============================================================ */
.upload-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.upload-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-2);
}

.upload-result-header__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
}

.upload-result-header__count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.result-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: slideUp 0.3s ease forwards;
}

.result-card__thumb-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.result-card__thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: var(--color-surface-2);
    flex-shrink: 0;
}

.result-card__filename {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-card__status {
    margin-left: auto;
    font-size: var(--text-xs);
    color: var(--color-success);
    background-color: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.result-card__url-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
}

.result-card__url-input {
    flex: 1;
    background-color: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    outline: none;
    cursor: pointer;
    min-width: 0;
}

.result-card__url-input:focus {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

/* ============================================================
   10. ALERTS / FEEDBACK
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    border: 1px solid transparent;
    animation: slideUp 0.2s ease;
}

.alert__icon {
    flex-shrink: 0;
    font-size: 1em;
    line-height: 1.6;
}

.alert__content {
    flex: 1;
}

.alert__title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.alert--error {
    background-color: var(--color-danger-bg);
    border-color: var(--color-danger-border);
    color: var(--color-danger);
}

.alert--success {
    background-color: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success);
}

.alert--info {
    background-color: var(--color-accent-dim);
    border-color: var(--color-border-2);
    color: var(--color-text-secondary);
}

.alert--warning {
    background-color: var(--color-warning-bg);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--color-warning);
}

.alert ul {
    list-style: none;
    margin-top: var(--space-2);
}

.alert ul li {
    padding: var(--space-1) 0;
    opacity: 0.9;
}

.alert ul li::before {
    content: '→ ';
    opacity: 0.6;
}

/* ============================================================
   11. LOADING STATE
   ============================================================ */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
}

.loading-overlay.is-visible {
    display: flex;
}

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

.loading-overlay__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
}

/* ============================================================
   12. EMPTY STATE
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    gap: var(--space-4);
}

.empty-state__icon {
    font-size: 3rem;
    color: var(--color-text-muted);
    line-height: 1;
}

.empty-state__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
}

.empty-state__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    max-width: 320px;
    line-height: 1.7;
}

/* ============================================================
   13. CARD / PANEL
   ============================================================ */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.card--hoverable:hover {
    border-color: var(--color-border-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card__header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.card__title {
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card__body {
    padding: var(--space-6);
}

.card__footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface-2);
}

/* ============================================================
   14. STATS / METRICS
   ============================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
}

.stat-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: border-color var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--color-border-2);
}

.stat-card__label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-2);
}

.stat-card__value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.04em;
    font-feature-settings: "tnum";
    line-height: 1;
}

/* ============================================================
   15. IMAGE GALLERY GRID
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-3);
}

.gallery-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    border-color: var(--color-border-2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-card__checkbox {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 10;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-card:hover .gallery-card__checkbox,
.gallery-card__checkbox:checked {
    opacity: 1;
}

.gallery-card__thumb {
    aspect-ratio: 1;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--color-surface-2);
}

.gallery-card__footer {
    padding: var(--space-2) var(--space-3);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.gallery-card__name {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-family: var(--font-mono);
}

.btn--copy-link {
    flex-shrink: 0;
    padding: var(--space-1) var(--space-2);
    background-color: var(--color-surface-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--transition-fast);
}

.btn--copy-link:hover {
    background-color: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
}

/* ============================================================
   16. ALBUM SCROLL
   ============================================================ */
.album-scroll {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-1);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.album-chip {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--color-text-secondary);
    position: relative;
}

.album-chip:hover {
    border-color: var(--color-border-2);
    color: var(--color-text-primary);
    background-color: var(--color-surface-2);
}

.album-chip.is-active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #0a0a0a;
    font-weight: 600;
}

.album-chip__del {
    display: none;
    margin-left: var(--space-1);
    color: inherit;
    opacity: 0.6;
}

.album-chip:hover .album-chip__del {
    display: inline;
}

/* ============================================================
   17. BULK ACTION BAR
   ============================================================ */
.bulk-bar {
    display: none;
    position: fixed;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background-color: rgba(24, 24, 27, 0.85); /* Zinc 900 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
    z-index: 200;
    white-space: nowrap;
    animation: slideUpIsland 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpIsland {
    from {
        opacity: 0;
        transform: translate(-50%, 24px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.bulk-bar.is-visible {
    display: flex;
}

.bulk-bar__count {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #f4f4f5;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.bulk-bar__divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   18. ADMIN TABLE
   ============================================================ */
.data-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.data-table th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background-color: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
}

.data-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    vertical-align: middle;
}

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

.data-table tbody tr:hover {
    background-color: var(--color-surface-2);
}

.data-table__thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: var(--color-surface-2);
    border: 1px solid var(--color-border);
}

/* ============================================================
   19. BADGES / TAGS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge--member {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-2);
}

.badge--guest {
    background-color: var(--color-surface-3);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.badge--danger {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
}

.badge--success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.badge--vip {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============================================================
   20. MODAL
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background-color: rgba(9, 9, 11, 0.85); /* zinc 900 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal.is-open {
    display: flex;
}

.modal__box {
    background-color: #18181b; /* zinc 900 */
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: var(--space-8);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: scaleInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
    color: #fafafa;
}

.modal__actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

/* ============================================================
   21. SEARCH BAR
   ============================================================ */
.search-bar {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.search-bar__input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    padding-left: 2.5rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    transition: border-color var(--transition-fast);
    outline: none;
    position: relative;
}

.search-bar__input:focus {
    border-color: var(--color-accent);
}

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

/* Wrapper needed for icon overlay */
.search-bar__wrapper {
    position: relative;
    flex: 1;
}

.search-bar__icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: var(--text-base);
    pointer-events: none;
}

/* ============================================================
   22. PAGE SECTIONS / TYPOGRAPHY HELPERS
   ============================================================ */
.section-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    line-height: 1.15;
}

.page-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

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

/* ============================================================
   23. FOOTER
   ============================================================ */
.site-footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.site-footer__links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer__link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.site-footer__link:hover {
    color: var(--color-text-primary);
}

.site-footer__copy {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================================
   24. AD CONTAINER
   ============================================================ */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    border: 1px dashed var(--color-border);
    overflow: hidden;
}

/* ============================================================
   25. MAINTENANCE NOTICE
   ============================================================ */
.maint-notice {
    text-align: center;
    padding: var(--space-3) var(--space-5);
    background-color: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-danger);
    font-weight: 500;
}

/* ============================================================
   26. LOGIN / AUTH PAGE
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    background-color: var(--color-bg);
    background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.auth-card__logo {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-card__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-2);
    text-align: center;
}

.auth-card__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-8);
}

.btn--google {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-surface-2);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn--google:hover {
    background-color: var(--color-surface-3);
    border-color: var(--color-accent);
}

/* ============================================================
   27. ADMIN DASHBOARD HERO
   ============================================================ */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.admin-header__title {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-header__badge {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.admin-control-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================================
   28. TOAST NOTIFICATION
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background-color: var(--color-surface-2);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: var(--shadow-md);
    pointer-events: all;
    animation: slideInRight 0.3s ease;
    max-width: 320px;
}

.toast--success {
    border-color: var(--color-success-border);
    color: var(--color-success);
}

.toast--error {
    border-color: var(--color-danger-border);
    color: var(--color-danger);
}

/* ============================================================
   29. UTILITY CLASSES
   ============================================================ */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin-block: var(--space-6);
}

.stack {
    display: flex;
    flex-direction: column;
}

.stack--2 {
    gap: var(--space-2);
}

.stack--4 {
    gap: var(--space-4);
}

.stack--6 {
    gap: var(--space-6);
}

.stack--8 {
    gap: var(--space-8);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.cluster--2 {
    gap: var(--space-2);
}

.cluster--3 {
    gap: var(--space-3);
}

.cluster--4 {
    gap: var(--space-4);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   30. ANIMATIONS
   ============================================================ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* ============================================================
   31. RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .container {
        padding-inline: var(--space-4);
    }

    .card__body {
        padding: var(--space-4);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: var(--space-2);
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .bulk-bar {
        width: calc(100% - var(--space-8));
        border-radius: var(--radius-lg);
        flex-wrap: wrap;
    }

    .auth-card {
        padding: var(--space-6);
    }

    .page-title {
        font-size: var(--text-2xl);
    }

    .site-footer__links {
        gap: var(--space-4);
    }

    .admin-control-group {
        gap: var(--space-2);
    }

    .data-table th,
    .data-table td {
        padding: var(--space-2) var(--space-3);
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (min-width: 1025px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* ============================================================
   DONATION BUTTON
   ============================================================ */
.btn--donate {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn--donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: donate-shimmer 2.4s ease-in-out infinite;
}

.btn--donate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    filter: brightness(1.1);
}

@keyframes donate-shimmer {
    0% {
        left: -100%;
    }

    60% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

/* ============================================================
   24. USER DASHBOARD LAYOUT
   ============================================================ */

/* ── Body override ─────────────────────────────────────────── */
.usr-body {
    background: #09090b;
    overflow: hidden;
    /* prevent double scrollbar */
    height: 100vh;
}

/* ── Root wrapper ──────────────────────────────────────────── */
.usr-wrap {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.usr-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #121214;
    border-right: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #27272a transparent;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

/* Brand / User block */
.usr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid #27272a;
    flex-shrink: 0;
}

.usr-brand__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3f3f46;
    flex-shrink: 0;
}

.usr-brand__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #27272a;
    color: #a1a1aa;
    font-weight: 600;
    font-size: 1.125rem;
}

.usr-brand__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.usr-brand__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f4f4f5;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.usr-brand__role {
    font-size: 0.7rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Stats mini */
.usr-sidebar-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #27272a;
    flex-shrink: 0;
}

.usr-stat-mini {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.usr-stat-mini__value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f4f4f5;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
    line-height: 1.2;
}

.usr-stat-mini__label {
    font-size: 0.65rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.usr-stat-mini__sep {
    width: 1px;
    height: 32px;
    background: #27272a;
    margin: 0 16px;
}

/* Navigation */
.usr-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.usr-nav-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #71717a;
    padding: 8px 12px 6px;
    font-weight: 600;
}

.usr-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    position: relative;
    white-space: nowrap;
}

.usr-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.usr-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e4e4e7;
}

.usr-nav-link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fafafa;
}

.usr-nav-link.is-active i {
    color: #fafafa;
}

.usr-nav-link__text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.usr-nav-link__count {
    font-size: 0.7rem;
    color: #e4e4e7;
    background: #27272a;
    padding: 2px 8px;
    border-radius: 12px;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.usr-nav-link__del {
    position: absolute;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #a1a1aa;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.usr-nav-link:hover .usr-nav-link__del {
    display: flex;
}

.usr-nav-link__del:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Sidebar footer */
.usr-sidebar-footer {
    padding: 12px 12px 16px;
    border-top: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.usr-sidebar-footer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.usr-sidebar-footer__link i {
    font-size: 1.1rem;
    width: 20px;
}

.usr-sidebar-footer__link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e4e4e7;
}

.usr-sidebar-footer__link--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ── Main area ─────────────────────────────────────────────── */
.usr-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Topbar */
.usr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #27272a;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
    flex-shrink: 0;
}

.usr-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.usr-topbar-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fafafa;
    letter-spacing: -0.01em;
}

.usr-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usr-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #a1a1aa;
    font-size: 1.2rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #27272a;
}

.usr-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fafafa;
}

.usr-donate-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

.usr-donate-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ── Content area ──────────────────────────────────────────── */
.usr-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: #27272a transparent;
}

/* Ad wrapper */
.usr-ad-wrap {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    max-height: 100px;
}

/* ── Toolbar ───────────────────────────────────────────────── */
.usr-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.usr-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Search */
.usr-search {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 400px;
    display: flex;
    align-items: center;
}

.usr-search__icon {
    position: absolute;
    left: 14px;
    color: #a1a1aa;
    font-size: 1.1rem;
    pointer-events: none;
}

.usr-search__input {
    width: 100%;
    padding: 10px 36px 10px 42px;
    background: #121214;
    border: 1px solid #27272a;
    border-radius: 10px;
    color: #f4f4f5;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.usr-search__input:focus {
    border-color: #52525b;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.usr-search__input::placeholder {
    color: #52525b;
}

.usr-search__clear {
    position: absolute;
    right: 12px;
    color: #71717a;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.usr-search__clear:hover {
    color: #f4f4f5;
}

/* Sort buttons */
.usr-sort-group {
    display: flex;
    background: #121214;
    border: 1px solid #27272a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.usr-sort-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #a1a1aa;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border-right: 1px solid #27272a;
}

.usr-sort-btn:last-child {
    border-right: none;
}

.usr-sort-btn:hover,
.usr-sort-btn.is-active {
    background: rgba(255, 255, 255, 0.05);
    color: #fafafa;
}

/* ── Context bar ───────────────────────────────────────────── */
.usr-context-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #a1a1aa;
    padding: 8px 16px;
    background: #121214;
    border: 1px solid #27272a;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.usr-context-bar i {
    font-size: 1rem;
    color: #71717a;
}

.usr-context-bar__count {
    margin-left: 4px;
    color: #d4d4d8;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
}

.usr-context-bar__clear {
    margin-left: auto;
    color: #71717a;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.usr-context-bar__clear:hover {
    color: #fafafa;
}

/* ── Gallery card enhancements ─────────────────────────────── */
.gallery-card {
    border-radius: 12px;
    background: #121214;
    border: 1px solid #27272a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #3f3f46;
}

.gallery-card__thumb {
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.gallery-card__thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.gallery-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.gallery-card:hover .gallery-card__overlay {
    opacity: 1;
}

.gallery-card__overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f4f4f5;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card__overlay-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.gallery-card__overlay-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

/* Gallery card footer override */
.gallery-card__footer {
    padding: 10px 12px;
    background: #121214;
    border-top: 1px solid #27272a;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
}

.gallery-card__name {
    font-size: 0.8rem;
    color: #a1a1aa;
}

/* Gallery card stagger animation */
.gallery-card {
    animation: usr-card-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes usr-card-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger via nth-child groups */
.gallery-card:nth-child(1) {
    animation-delay: 0.03s;
}

.gallery-card:nth-child(2) {
    animation-delay: 0.06s;
}

.gallery-card:nth-child(3) {
    animation-delay: 0.09s;
}

.gallery-card:nth-child(4) {
    animation-delay: 0.12s;
}

.gallery-card:nth-child(5) {
    animation-delay: 0.15s;
}

.gallery-card:nth-child(6) {
    animation-delay: 0.18s;
}

.gallery-card:nth-child(7) {
    animation-delay: 0.21s;
}

.gallery-card:nth-child(8) {
    animation-delay: 0.24s;
}

.gallery-card:nth-child(n+9) {
    animation-delay: 0.27s;
}

/* Bulk bar select override */
.bulk-bar__select {
    width: auto;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
    outline: none;
    transition: all 0.2s ease;
}

.bulk-bar__select:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile overlay */
.usr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
    backdrop-filter: blur(2px);
}

.usr-overlay.is-visible {
    display: block;
}

/* Toast visibility animation */
.toast {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .usr-body {
        overflow: auto;
        height: auto;
    }

    .usr-wrap {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }

    .usr-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
    }

    .usr-sidebar.is-open {
        transform: translateX(0);
    }

    .usr-main {
        flex: 1;
        overflow: visible;
    }

    .usr-content {
        overflow: visible;
        height: auto;
    }

    .usr-menu-toggle {
        display: flex;
    }

    .usr-topbar-text {
        display: none;
    }

    .usr-toolbar {
        flex-wrap: wrap;
    }

    .usr-toolbar-actions {
        margin-left: 0;
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .usr-sidebar {
        width: 200px;
    }
}