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

:root {
    --bg: #0a0a0d;
    --surface: #141417;
    --surface-2: #1a1a1f;
    --border: #232329;
    --border-hover: #34343d;
    --text: #e8e8ea;
    --text-dim: #8b8b95;
    --text-faint: #56565f;
    --violet: #5865F2;
    --violet-hover: #6b76f5;
    --violet-dim: rgba(88, 101, 242, 0.12);
    --yellow: #f5d90a;
    --yellow-hover: #ffe94d;
    --yellow-dim: rgba(245, 217, 10, 0.1);
    --red: #ef4444;
    --red-hover: #f87171;
    --red-dim: rgba(239, 68, 68, 0.1);
    --green: #4ade80;
    --green-dim: rgba(74, 222, 128, 0.1);
    --radius: 14px;
    --radius-sm: 9px;
}

body {
    background: var(--bg);
    background-image: radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.06), transparent 40%);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

svg { display: block; }

/* ========================================================= */
/* LOGIN                                                      */
/* ========================================================= */
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 44px 32px;
    text-align: center;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.logo-box {
    width: 84px;
    height: 84px;
    background: linear-gradient(150deg, #1c1c22, #000);
    border: 1px solid var(--border);
    border-radius: 22px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-fallback {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--yellow), var(--violet-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tag {
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 26px;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.alert svg { flex-shrink: 0; }

.alert-error {
    background: var(--red-dim);
    border: 1px solid var(--red);
    color: var(--red-hover);
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--violet);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #4752c4;
    transition: background 0.15s, transform 0.1s;
}
.btn-discord:hover { background: var(--violet-hover); }
.btn-discord:active { transform: scale(0.98); }

/* ========================================================= */
/* PANEL LAYOUT                                                */
/* ========================================================= */
.panel-wrap {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
}

body.panel-body {
    align-items: flex-start;
    padding: 30px 20px 60px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 22px;
}

.panel-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-user img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.panel-user .name {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-user .sub {
    font-size: 12px;
    color: var(--text-dim);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--yellow-dim);
    color: var(--yellow);
    border: 1px solid rgba(245, 217, 10, 0.4);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 8px 3px 6px;
    border-radius: 6px;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================================= */
/* BUTTONS — custom system, no browser defaults               */
/* ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-dim);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.05s;
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-ghost:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text); }

.btn-violet {
    background: var(--violet-dim);
    border-color: rgba(88, 101, 242, 0.35);
    color: #a5b0ff;
}
.btn-violet:hover:not(:disabled) { border-color: var(--violet); color: #c3caff; background: rgba(88,101,242,0.18); }

.btn-yellow {
    background: var(--yellow-dim);
    border-color: rgba(245, 217, 10, 0.4);
    color: var(--yellow);
}
.btn-yellow:hover:not(:disabled) { border-color: var(--yellow); background: rgba(245,217,10,0.18); }

.btn-danger {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-dim);
}
.btn-danger:hover:not(:disabled) { border-color: var(--red); color: var(--red-hover); background: var(--red-dim); }

.btn-danger-solid {
    background: var(--red-dim);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--red-hover);
}
.btn-danger-solid:hover:not(:disabled) { border-color: var(--red); background: rgba(239,68,68,0.18); }

.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-icon-only { padding: 8px; }

/* ========================================================= */
/* DROPZONE                                                    */
/* ========================================================= */
.dropzone {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 52px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 26px;
}
.dropzone.dragover {
    border-color: var(--violet);
    background: var(--violet-dim);
}
.dropzone-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    color: var(--text-faint);
    transition: color 0.15s;
}
.dropzone.dragover .dropzone-icon { color: var(--violet); }
.dropzone p.title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}
.dropzone p.hint {
    color: var(--text-dim);
    font-size: 13px;
}
.dropzone input[type=file] { display: none; }

/* ========================================================= */
/* UPLOAD QUEUE                                                */
/* ========================================================= */
.upload-queue { margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.upload-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.upload-item-icon {
    width: 18px; height: 18px; flex-shrink: 0; color: var(--text-faint);
}
.upload-item.done .upload-item-icon { color: var(--green); }
.upload-item.error .upload-item-icon { color: var(--red); }
.upload-item-body { flex: 1; min-width: 0; }
.upload-item .fname { color: var(--text); font-weight: 500; }
.upload-item .status { color: var(--text-dim); font-size: 12px; }
.btn-inline-details {
    background: none;
    border: none;
    color: var(--violet-hover);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-family: inherit;
}
.btn-inline-details:hover { color: var(--text); }
.upload-item.done .status { color: var(--green); }
.upload-item.error .status { color: var(--red-hover); }
.upload-item .row-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.upload-item .fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.progress-bar-bg {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--violet);
    width: 0%;
    transition: width 0.15s;
}
.upload-item.done .progress-bar-fill { background: var(--green); }
.upload-item.error .progress-bar-fill { background: var(--red); }

/* ========================================================= */
/* TOOLBAR (search + bulk actions)                             */
/* ========================================================= */
.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.search-box {
    flex: 1;
    min-width: 220px;
    position: relative;
}
.search-box svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-faint);
    pointer-events: none;
}
.search-box input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px 10px 38px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.search-box input:focus { border-color: var(--violet); }
.search-box input::placeholder { color: var(--text-faint); }

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* custom checkbox, used everywhere */
.checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--text-dim);
}
.checkbox-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--border-hover);
    border-radius: 5px;
    background: var(--surface-2);
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: border-color 0.15s, background 0.15s;
}
.checkbox-wrap input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: transform 0.1s ease-in-out;
    box-shadow: inset 1em 1em currentColor;
    color: #0a0a0d;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.checkbox-wrap input[type="checkbox"]:checked {
    background: var(--violet);
    border-color: var(--violet);
}
.checkbox-wrap input[type="checkbox"]:checked::before { transform: scale(1); }
.checkbox-wrap input[type="checkbox"]:indeterminate {
    background: var(--violet);
    border-color: var(--violet);
}

.gallery-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}
.gallery-title .count-badge {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ========================================================= */
/* GALLERY                                                     */
/* ========================================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.gallery-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gallery-item.selected {
    border-color: var(--violet);
    box-shadow: 0 0 0 1px var(--violet);
}
.gallery-item.hidden-by-search { display: none; }

.gallery-thumb-wrap {
    position: relative;
    background: #000;
}

.select-checkbox-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
}
.select-checkbox-overlay input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    background: rgba(10,10,13,0.65);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: border-color 0.15s, background 0.15s;
}
.select-checkbox-overlay input[type="checkbox"]::before {
    content: "";
    width: 11px;
    height: 11px;
    transform: scale(0);
    transition: transform 0.1s ease-in-out;
    box-shadow: inset 1em 1em currentColor;
    color: #0a0a0d;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.select-checkbox-overlay input[type="checkbox"]:checked {
    background: var(--violet);
    border-color: var(--violet);
}
.select-checkbox-overlay input[type="checkbox"]:checked::before { transform: scale(1); }

.gallery-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #000;
}

.gallery-thumb.file-generic {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.gallery-thumb.file-generic svg { width: 26px; height: 26px; margin-bottom: 6px; }
.gallery-thumb.file-generic .thumb-inner { display: flex; flex-direction: column; align-items: center; }

.gallery-info {
    padding: 10px 11px;
}

.gallery-info .fname {
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 9px;
    font-weight: 500;
}

.gallery-actions {
    display: flex;
    gap: 6px;
}

.gallery-actions .btn {
    flex: 1;
    padding: 6px 4px;
    font-size: 11px;
    border-radius: 7px;
    gap: 4px;
}
.gallery-actions .btn svg { width: 12px; height: 12px; }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-faint);
    padding: 50px 20px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.empty-state svg { width: 34px; height: 34px; color: var(--border-hover); }

/* ========================================================= */
/* ADMIN                                                        */
/* ========================================================= */
.admin-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.admin-title-row svg { width: 22px; height: 22px; color: var(--yellow); }
.admin-title-row h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: -0.3px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-card svg {
    width: 20px; height: 20px;
    color: var(--yellow);
    flex-shrink: 0;
}
.stat-card .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

.admin-search-wrap { position: relative; margin-bottom: 20px; }
.admin-search-wrap svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--text-faint); pointer-events: none;
}
.admin-search-wrap input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 16px 11px 40px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}
.admin-search-wrap input:focus { border-color: var(--yellow); }
.admin-search-wrap input::placeholder { color: var(--text-faint); }

/* ---- Section cards (donner accès / gérer admins) ---- */
.admin-section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 18px;
}

.admin-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-section-header svg {
    width: 20px; height: 20px;
    color: var(--yellow);
    flex-shrink: 0;
    margin-top: 2px;
}
.admin-section-header h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.admin-section-header p {
    font-size: 12px;
    color: var(--text-dim);
}

.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.inline-form input {
    flex: 1;
    min-width: 220px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.inline-form input:focus { border-color: var(--violet); }
.inline-form input::placeholder { color: var(--text-faint); }

.form-msg {
    font-size: 12.5px;
    margin-top: 10px;
    display: none;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
}
.form-msg svg { width: 14px; height: 14px; flex-shrink: 0; }
.form-msg.show { display: flex; }
.form-msg.success {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.35);
}
.form-msg.error {
    background: var(--red-dim);
    color: var(--red-hover);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.admin-id-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.admin-id-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px 8px 12px;
    font-size: 12px;
}
.chip-name {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.chip-id {
    color: var(--text-faint);
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 10.5px;
}
.super-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--yellow);
    background: var(--yellow-dim);
    border: 1px solid rgba(245, 217, 10, 0.4);
    padding: 1px 6px;
    border-radius: 5px;
    letter-spacing: 0.3px;
}
.chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.chip-remove svg { width: 12px; height: 12px; }
.chip-remove:hover { background: var(--red-dim); color: var(--red-hover); }

.user-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.user-card:hover { border-color: var(--border-hover); }

.user-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    gap: 14px;
    flex-wrap: wrap;
}

.user-card-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.user-card-identity img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.user-card-identity .uname {
    font-weight: 700;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-card-identity .uid {
    font-size: 10.5px;
    color: var(--text-faint);
    font-family: 'SF Mono', 'Courier New', monospace;
}

.role-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.role-tag.has-role {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.4);
}
.role-tag.no-role {
    background: var(--red-dim);
    color: var(--red-hover);
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.role-tag.unknown {
    background: var(--surface-2);
    color: var(--text-faint);
    border: 1px solid var(--border);
}

.user-card-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    gap: 16px;
    align-items: center;
}
.user-card-meta .meta-item { display: flex; align-items: center; gap: 5px; }
.user-card-meta svg { width: 13px; height: 13px; color: var(--text-faint); }

.user-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-card-files {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.user-card-files.open {
    max-height: 2000px;
}
.user-card-files-inner {
    padding: 0 18px 18px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.admin-gallery-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.admin-gallery-item .thumb {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    background: #000;
}

.admin-gallery-item .thumb.file-generic {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
}

.admin-gallery-item .info {
    padding: 8px;
}

.admin-gallery-item .fname {
    font-size: 10.5px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 7px;
}

.admin-gallery-item .actions {
    display: flex;
    gap: 4px;
}
.admin-gallery-item .actions .btn {
    flex: 1;
    font-size: 10px;
    padding: 5px 3px;
    border-radius: 6px;
    gap: 3px;
}
.admin-gallery-item .actions .btn svg { width: 10px; height: 10px; }

.no-files-msg {
    color: var(--text-faint);
    font-size: 12px;
    padding: 10px 0;
}

.access-denied {
    text-align: center;
    padding: 60px 32px;
}
.access-denied svg { width: 48px; height: 48px; color: var(--red); margin: 0 auto 18px; }
.access-denied h1 { font-size: 20px; margin-bottom: 10px; }
.access-denied p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.6s linear infinite; }

@media (max-width: 640px) {
    .user-card-header { flex-direction: column; align-items: flex-start; }
    .user-card-actions { width: 100%; }
    .user-card-actions .btn { flex: 1; }
}
