/**
 * ArtForge - Premium Artistic Dark Theme
 * Dark moody aesthetic with teal, purple, and gold accents
 * Inspired by ArtStation, Behance, and professional critique tools
 */

/* ====================== */
/* Base & Typography      */
/* ====================== */
:root {
    --bg: #05080f;
    --bg-elevated: #18181b;
    --bg-card: rgba(18, 24, 36, 0.88);
    --border: #27272a;
    --text: #e5e5e5;
    --text-muted: #9ca3af; /* was #a1a1aa — shared muted / empty-field color */
    --accent-teal: #14b8a6;
    --accent-purple: #8b5cf6;
    --accent-gold: #d4af37;
    --accent-gold-dark: #b38b2e;
    --cosmos-cyan: #38bdf8;
}

body.artforge-body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system_ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* ====================== */
/* Math / science backdrop (from landing page) */
/* ====================== */
.af-cosmos {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1200px 700px at 15% -10%, rgba(56, 189, 248, 0.14), transparent 55%),
        radial-gradient(900px 600px at 90% 10%, rgba(167, 139, 250, 0.12), transparent 50%),
        radial-gradient(800px 500px at 50% 100%, rgba(45, 212, 191, 0.08), transparent 45%),
        linear-gradient(180deg, #05080f 0%, #0a1220 45%, #070b14 100%);
}

.af-grid-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(100, 160, 220, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 160, 220, 0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 15%, transparent 78%);
}

.af-grid-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 180, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 180, 255, 0.1) 1px, transparent 1px);
    background-size: 192px 192px;
}

.af-formulas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.af-formula {
    position: absolute;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: clamp(0.65rem, 1.2vw, 0.9rem);
    color: rgba(148, 190, 230, 0.16);
    white-space: nowrap;
    user-select: none;
    animation: af-drift linear infinite;
    letter-spacing: 0.02em;
}

.af-formula.accent { color: rgba(45, 212, 191, 0.2); }
.af-formula.gold { color: rgba(212, 175, 55, 0.16); }
.af-formula.violet { color: rgba(167, 139, 250, 0.18); }

@keyframes af-drift {
    0%   { transform: translateY(0) rotate(var(--r, 0deg)); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateY(-28vh) rotate(var(--r, 0deg)); opacity: 0; }
}

.af-orbit {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    animation: af-spin 80s linear infinite;
}

.af-orbit::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cosmos-cyan);
    box-shadow: 0 0 14px var(--cosmos-cyan);
    top: -3.5px;
    left: 50%;
    margin-left: -3.5px;
}

.af-orbit.o1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    animation-duration: 70s;
}

.af-orbit.o2 {
    width: 280px;
    height: 280px;
    bottom: 8%;
    left: -60px;
    animation-duration: 95s;
    animation-direction: reverse;
    border-color: rgba(45, 212, 191, 0.1);
}

.af-orbit.o2::before {
    background: var(--accent-teal);
    box-shadow: 0 0 14px var(--accent-teal);
}

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

@media (prefers-reduced-motion: reduce) {
    .af-formula,
    .af-orbit {
        animation: none !important;
    }
    .af-formulas {
        display: none;
    }
}

/* Override Bootstrap muted text so every old muted shade uses the new color */
body.artforge-body .text-muted,
body.artforge-body .form-text,
body.artforge-body .form-control::placeholder,
body.artforge-body .art-input::placeholder {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, .display-5, .display-6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.015em;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
}
a:hover {
    color: #5eead4;
}

/* ====================== */
/* Navigation             */
/* ====================== */
.artforge-nav {
    position: relative;
    z-index: 10;
    background: rgba(5, 8, 15, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 180, 220, 0.12);
    padding: 0.85rem 0;
}

.brand-mark {
    font-size: 1.65rem;
    color: var(--accent-gold);
    line-height: 1;
}

/* Image brand mark (Outlaw Star Press badge) */
.brand-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo-large {
    height: 96px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.brand-logo-empty {
    height: 64px;
    width: auto;
    opacity: 0.45;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-left: 0.35rem;
    font-weight: 400;
    white-space: nowrap;
}

/* Hide long brand subtitle on narrow phones */
@media (max-width: 575.98px) {
    .brand-subtitle {
        display: none;
    }
    .brand-name {
        font-size: 1.25rem;
    }
    .brand-logo {
        height: 34px;
    }
}

.brand-mark-large {
    font-size: 3.2rem;
    color: var(--accent-gold);
}

.user-initial {
    width: 26px;
    height: 26px;
    background: var(--accent-gold);
    color: #0f0f0f;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ====================== */
/* Main Content & Cards   */
/* ====================== */
.main-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 180px);
}

.section-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 180, 220, 0.12);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.2s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #3f3f46;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 
                0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.project-card-preview {
    position: relative;
    height: 210px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .preview-img {
    transform: scale(1.03);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.7;
}

.preview-icon {
    font-size: 2.8rem;
    margin-bottom: 6px;
}

.preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-pending    { background: #3f3f46; color: #d1d5db; }
.status-in-review  { background: #312e81; color: #c7d2fe; }
.status-approved   { background: #14532d; color: #86efac; }

.project-card-body {
    padding: 1rem 1.1rem 1.05rem;
}

.project-title {
    font-size: 1.02rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #f4f4f5;
}

.project-desc {
    margin-bottom: 0.65rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    font-size: 0.78rem;
}

.empty-state {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 8px;
}

/* ====================== */
/* Beautiful Viewer       */
/* ====================== */
.viewer-frame {
    background: rgba(10, 14, 22, 0.9);
    border: 1px solid rgba(148, 180, 220, 0.12);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.viewer-inner {
    background: #0a0a0a;
    border-radius: 6px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-mat {
    background: #1f1f22;
    padding: 22px;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.65),
                0 0 0 1px #333;
    border: 1px solid #3a3a3d;
    border-radius: 2px;
}

/* Image + pin overlay (position relative to the image box) */
.image-annotate {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
    vertical-align: middle;
    cursor: crosshair;
    line-height: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.image-annotate.has-draft-pin {
    outline: 1px solid rgba(20, 184, 166, 0.35);
}

.viewer-image {
    max-width: 100%;
    max-height: 620px;
    width: auto;
    height: auto;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    display: block;
    margin: 0 auto;
    border: 1px solid #333;
    pointer-events: auto; /* must receive clicks */
    cursor: crosshair;
}

.pin-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Capture clicks on empty image area for pin placement */
    pointer-events: auto;
    cursor: crosshair;
}

.pin-marker {
    position: absolute;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 2px solid #0f0f0f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-gold);
    color: #0f0f0f;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    z-index: 3;
    /* Expand hit area without growing the visible pin */
    touch-action: manipulation;
}

.pin-marker::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
}

.pin-marker:hover,
.pin-marker.active {
    background: var(--accent-teal);
    color: #0f0f0f;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.35), 0 6px 16px rgba(0,0,0,0.5);
    z-index: 5;
}

.pin-marker.pin-draft {
    background: var(--accent-teal);
    color: #0f0f0f;
    border-style: dashed;
    animation: pin-pulse 1.2s ease-in-out infinite;
    z-index: 6;
    pointer-events: none; /* draft is visual only; don't steal clicks */
}

/* Ensure [hidden] always hides draft even if display:flex was set */
.pin-marker.pin-draft[hidden] {
    display: none !important;
}

@keyframes pin-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
}

.pin-toolbar {
    padding: 0 2px;
}

/* Pin history under version history */
.pin-history-panel {
    max-height: none;
}

.pin-history-empty {
    padding: 0.35rem 0.15rem 0.15rem;
    line-height: 1.45;
}

.pin-history-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pin-history-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: #141416;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.65rem 0.7rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.pin-history-item:hover {
    border-color: #333;
    background: #1a1a1a;
}

.pin-history-item.active,
.pin-history-item.pin-highlight {
    border-color: var(--accent-teal);
    background: #1c2423;
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.2);
}

.pin-history-item .pin-badge {
    margin-right: 0;
    flex-shrink: 0;
    margin-top: 1px;
}

.pin-history-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.pin-history-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.pin-history-meta strong {
    color: #f4f4f5;
    font-weight: 600;
}

.pin-history-text {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #d4d4d8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
}

.pin-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--accent-teal);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
}

.pin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-right: 0.4rem;
    border-radius: 999px;
    border: none;
    background: var(--accent-gold);
    color: #0f0f0f;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    vertical-align: middle;
}

.pin-badge:hover {
    background: var(--accent-teal);
}

.pin-badge-muted {
    background: #3f3f46;
    color: var(--text-muted);
    cursor: default;
}

.critique-note.has-pin {
    border-left-color: var(--accent-gold);
}

.critique-note.pin-highlight {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.25);
    background: #1c2423;
}

.pdf-viewer, .video-viewer {
    width: 100%;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #1a1a1a;
    border-bottom: 1px solid #27272a;
    font-weight: 500;
}

.pdf-embed {
    background: #111;
}

.viewer-video {
    width: 100%;
    background: #000;
}

.viewer-meta {
    margin-top: 12px;
    font-size: 0.85rem;
    padding: 0 4px;
    color: var(--text-muted);
}

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

/* ====================== */
/* Critique Notes         */
/* ====================== */
.comments-section {
    max-width: 860px;
}

.critique-note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-teal);
    padding: 1.05rem 1.25rem;
    margin-bottom: 0.85rem;
    border-radius: 0 6px 6px 0;
}

.critique-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
}

.critique-author {
    font-weight: 600;
    color: #f4f4f5;
}

.critique-time {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.critique-body {
    line-height: 1.65;
    color: #d4d4d8;
}

.empty-critique {
    background: #161616;
    border: 1px dashed #333;
    padding: 1.4rem;
    border-radius: 6px;
    color: var(--text-muted);
}

.add-critique .critique-input {
    background: #161616;
    border-color: #333;
    color: var(--text);
    font-size: 0.95rem;
}

.add-critique .critique-input:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* ====================== */
/* Forms & Inputs         */
/* ====================== */
.art-input, .form-control, .form-select {
    background: #161616 !important;
    border: 1px solid #333 !important;
    color: var(--text) !important;
    border-radius: 6px;
}

/* Empty-field / placeholder text — uses shared --text-muted */
.art-input::placeholder,
.form-control::placeholder,
textarea.art-input::placeholder,
textarea.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.art-input::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.art-input::-moz-placeholder,
.form-control::-moz-placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

/* Empty <select> prompt option */
.form-select option[value=""],
.form-select option:disabled {
    color: var(--text-muted);
}

.form-select option {
    background: #161616;
    color: var(--text);
}

/* File input "no file chosen" / button label */
input[type="file"].form-control,
input[type="file"] {
    color: var(--text-muted) !important;
}

input[type="file"]::file-selector-button {
    background: #27272a;
    color: var(--text);
    border: 1px solid #3f3f46;
    border-radius: 4px;
    margin-right: 0.85rem;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

input[type="file"]:hover::file-selector-button {
    background: #3f3f46;
}

/* Browser autofill can force light backgrounds / dark text */
.art-input:-webkit-autofill,
.form-control:-webkit-autofill {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px #161616 inset !important;
    transition: background-color 99999s ease-in-out 0s;
}

.art-input:focus, .form-control:focus, .form-select:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12) !important;
    background: #1a1a1a !important;
    color: var(--text) !important;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") !important; /* matches --text-muted */
}

.btn-gold {
    background: var(--accent-gold);
    color: #0f0f0f;
    border: none;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-gold:hover {
    background: #e8c36b;
    color: #0f0f0f;
    transform: translateY(-1px);
}

.btn-gold:active {
    background: var(--accent-gold-dark);
}

.project-card-actions .btn-gold {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

.project-card-actions .btn-gold:hover {
    transform: none;
}

/* User management */
.manage-users-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 180, 220, 0.12);
    border-radius: 8px;
    color: var(--text);
}

.manage-users-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-hover-bg: #222;
    --bs-table-border-color: var(--border);
    font-size: 0.92rem;
}

.badge-manager {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-weight: 500;
    font-size: 0.7rem;
}

.btn-make-manager {
    color: var(--accent-gold);
    border-color: rgba(212, 175, 55, 0.45);
}

.btn-make-manager:hover {
    color: #0f0f0f;
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.form-check-input {
    background-color: #27272a;
    border-color: #52525b;
}

.form-check-input:checked {
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.btn-outline-danger {
    color: #f87171;
    border-color: #7f1d1d;
    background: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background: #991b1b;
    border-color: #991b1b;
}

.btn-danger {
    background: #b91c1c;
    border-color: #991b1b;
    color: #fff;
    font-weight: 600;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #b91c1c;
    color: #fff;
}

.artforge-alert {
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: var(--text);
}

.alert-success.artforge-alert {
    border-color: #14532d;
    background: rgba(20, 83, 45, 0.35);
    color: #86efac;
}

.alert-danger.artforge-alert {
    border-color: #7f1d1d;
    background: rgba(127, 29, 29, 0.35);
    color: #fca5a5;
}

.delete-warning {
    background: rgba(127, 29, 29, 0.2);
    border: 1px solid #7f1d1d;
    border-radius: 6px;
    padding: 0.9rem 1rem;
}

.status-select {
    background: #1f1f22 !important;
    color: var(--text);
    border-color: #333;
    font-weight: 500;
}

/* ====================== */
/* Versions Panel         */
/* ====================== */
.versions-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 180, 220, 0.12);
    border-radius: 8px;
    padding: 1.1rem;
}

.version-list {
    max-height: 520px;
    overflow-y: auto;
}

.version-item {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 4px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.1s ease;
}

.version-item:hover {
    background: #222;
    border-color: #333;
}

.version-item.active {
    background: #27272a;
    border-color: var(--accent-teal);
}

.version-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 32px;
}

.version-file {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ====================== */
/* Modals                 */
/* ====================== */
.artforge-modal {
    background: #18181b;
    border: 1px solid var(--border);
    color: var(--text);
}

.artforge-modal .modal-header {
    border-bottom: 1px solid #27272a;
}

.artforge-modal .modal-footer {
    border-top: 1px solid #27272a;
}

/* ====================== */
/* Auth Pages             */
/* ====================== */
.auth-container {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 180, 220, 0.14);
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}

/* .brand-mark-large removed - using .brand-logo-large for image instead */

.text-accent {
    color: var(--accent-teal);
}

/* ====================== */
/* Misc                   */
/* ====================== */
.tracking-wide {
    letter-spacing: 1px;
    font-weight: 500;
}

.project-description {
    font-size: 1rem;
    max-width: 820px;
    color: #c7c7cc;
}

.alert {
    border-radius: 6px;
}

/* Footer */
.artforge-footer {
    position: relative;
    z-index: 2;
    padding: 1.6rem 0;
    border-top: 1px solid rgba(148, 180, 220, 0.12);
    margin-top: 4rem;
    font-size: 0.8rem;
    background: rgba(5, 8, 15, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Project overflow menu (mobile) */
.artforge-dropdown {
    background: #141820;
    border: 1px solid rgba(148, 180, 220, 0.16);
    --bs-dropdown-link-color: #e5e5e5;
    --bs-dropdown-link-hover-bg: #1e2633;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-active-bg: #243044;
    min-width: 11.5rem;
}

.artforge-dropdown .dropdown-item {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.artforge-dropdown .dropdown-divider {
    border-color: rgba(148, 180, 220, 0.12);
}

.project-toolbar .status-select {
    min-width: 7.5rem;
}

/* Sticky mobile “+ Note” FAB */
.mobile-note-fab {
    position: fixed;
    right: 1rem;
    bottom: 1.15rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    min-height: 3.4rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--accent-gold);
    color: #0f0f0f !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.35);
    touch-action: manipulation;
}

.mobile-note-fab:hover,
.mobile-note-fab:focus {
    background: #e8c36b;
    color: #0f0f0f !important;
}

/* Sticky critique composer on small screens */
@media (max-width: 767.98px) {
    .add-critique {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding: 0.85rem 0.75rem 1rem;
        background: rgba(8, 12, 20, 0.94);
        border-top: 1px solid rgba(148, 180, 220, 0.14);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
    }

    .pin-marker {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .pin-marker::before {
        inset: -12px;
    }

    .display-6 {
        font-size: 1.55rem;
    }

    .project-toolbar {
        width: 100%;
        justify-content: space-between;
    }
}

/* Manage users — mobile cards */
.manage-users-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-mobile-card {
    background: rgba(12, 16, 26, 0.9);
    border: 1px solid rgba(148, 180, 220, 0.12);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .viewer-frame {
        padding: 10px;
    }
    .art-mat {
        padding: 10px;
    }
    .project-card-preview {
        height: 170px;
    }
}