/* ═══════════════════════════════════════════════════════════
   Modest Playbook — Shared Portal Styles
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --maroon: #3D0C11;
    --maroon-light: #5A1A20;
    --cream: #FAF5F0;
    --cream-dark: #F0E8E0;
    --text-dark: #3D0C11;
    --text-light: #FAF5F0;
    --accent: #8B2E38;
    --success: #2D6A4F;
    --warning: #E76F51;
    --info: #457B9D;
    --border: #E0D5CC;
    --sidebar-width: 260px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    min-height: 100vh;
}

/* ── Loading Screen ── */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--maroon);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Layout ── */
.portal-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--maroon);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(250,245,240,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-header img {
    height: 40px;
    mix-blend-mode: lighten;
}

.sidebar-header span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(250,245,240,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--cream);
    background: rgba(250,245,240,0.05);
}

.sidebar-nav a.active {
    color: var(--cream);
    background: rgba(250,245,240,0.1);
    border-left-color: var(--cream);
    font-weight: 500;
}

.sidebar-nav a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(250,245,240,0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cream);
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: rgba(250,245,240,0.5);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.4rem 0;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.sidebar-logout:hover {
    color: var(--cream);
}

.sidebar-logout svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 0.25rem;
}

.page-header p {
    font-size: 0.9rem;
    color: #888;
    font-weight: 300;
}

/* ── Tab Content ── */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Cards ── */
.card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 2px 12px rgba(61,12,17,0.06);
}

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

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maroon);
}

/* ── Stats Grid ── */
/* ── World Clocks ── */
.world-clocks {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--maroon);
    border-radius: 12px;
    overflow: hidden;
}
.clock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem 1rem;
    position: relative;
}
.clock-item + .clock-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.clock-flag {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.clock-info {
    text-align: center;
}
.clock-city {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
    margin-bottom: 0.2rem;
}
.clock-time {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    display: block;
    line-height: 1;
}
@media (max-width: 500px) {
    .clock-time { font-size: 1.05rem; }
    .clock-item { padding: 0.75rem 0.5rem; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 1.5;
}

.stat-icon.maroon { background: var(--maroon); }
.stat-icon.accent { background: var(--accent); }
.stat-icon.success { background: var(--success); }
.stat-icon.info { background: var(--info); }
.stat-icon.warning { background: var(--warning); }

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--maroon);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.2rem;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.4rem; }
}

/* ── Grid Layouts ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* ── Tables ── */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

table th {
    text-align: left;
    padding: 0.75rem;
    font-weight: 500;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

table tr:hover td {
    background: rgba(61,12,17,0.02);
}

/* ── Status Badges ── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active, .badge-open { background: #E8F5E9; color: var(--success); }
.badge-completed, .badge-resolved { background: #E0F2F1; color: #00695C; }
.badge-in-progress, .badge-in_progress { background: #FFF3E0; color: #E65100; }
.badge-pending { background: #FFF8E1; color: #F57F17; }
.badge-paused, .badge-on-hold { background: #EFEBE9; color: #795548; }
.badge-high { background: #FFEBEE; color: #C62828; }
.badge-medium { background: #FF9800; color: #FFFFFF; }
.badge-low { background: #E8F5E9; color: var(--success); }
.badge-mirjana { background: #F3E5F5; color: #6A1B9A; }
.badge-sumayah { background: #E1F5FE; color: #01579B; }
.badge-diana { background: #E8F5E9; color: #2E7D32; }
.badge-unassigned { background: #ECEFF1; color: #607D8B; }

/* ── Filter Pills ── */
.filter-bar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    font-family: inherit;
}
.filter-pill:hover {
    background: #faf6f7;
    border-color: var(--maroon);
    color: var(--maroon);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(61,12,17,0.08);
}
.filter-pill.active {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
    box-shadow: 0 4px 12px rgba(61,12,17,0.22);
}
.filter-pill.active:hover {
    background: var(--maroon);
    color: #fff;
    transform: translateY(-1px);
}
.filter-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}
.filter-pill[data-filter="all"]::before { background: #888; }
.filter-pill[data-filter="mirjana"]::before { background: #6A1B9A; opacity: 1; }
.filter-pill[data-filter="sumayah"]::before { background: #01579B; opacity: 1; }
.filter-pill[data-filter="unassigned"]::before { background: #B0BEC5; opacity: 1; }
.filter-pill.active::before { background: #fff; opacity: 1; }

/* ── Project Stage Stepper ── */
.stage-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 0.5rem 0.5rem;
    margin: 0.5rem 0 0.25rem;
    position: relative;
    gap: 0;
}
.stage-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 0;
}
.stage-step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.stage-step:first-child::before { display: none; }
.stage-step.completed::before,
.stage-step.current::before {
    background: var(--maroon);
}
.stage-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
}
.stage-step.completed .stage-dot {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
}
.stage-step.completed .stage-dot::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}
.stage-step.completed .stage-dot span { display: none; }
.stage-step.current .stage-dot {
    background: #fff;
    border-color: var(--maroon);
    color: var(--maroon);
    box-shadow: 0 0 0 4px rgba(61,12,17,0.12);
}
.stage-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #888;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 80px;
    word-break: break-word;
}
.stage-step.completed .stage-label,
.stage-step.current .stage-label {
    color: var(--text);
    font-weight: 600;
}
.stage-step.current .stage-label {
    color: var(--maroon);
}

@media (max-width: 600px) {
    .stage-stepper { padding: 1rem 0.25rem 0.25rem; }
    .stage-dot { width: 24px; height: 24px; font-size: 0.65rem; }
    .stage-label { font-size: 0.6rem; max-width: 55px; }
    .stage-step::before { top: 11px; }
}

/* ── Task Board (Kanban by assignee) ── */
.task-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    align-items: start;
}
.task-column {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
.task-column-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}
.task-column-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--maroon);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.task-column-avatar.unassigned { background: #B0BEC5; }
.task-column-name {
    flex: 1;
    min-width: 0;
}
.task-column-name strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.2;
}
.task-column-name small {
    font-size: 0.7rem;
    color: #888;
}
.task-column-add {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 0.6rem;
    font-family: inherit;
    width: 100%;
}
.task-column-add:hover {
    border-color: var(--maroon);
    color: var(--maroon);
    background: #faf6f7;
}
.task-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.6rem;
    transition: all 0.15s;
    position: relative;
}
.task-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border-color: rgba(61,12,17,0.2);
}
.task-card.done {
    opacity: 0.55;
    background: #f5f5f5;
}
.task-card.done .task-card-title {
    text-decoration: line-through;
    color: #888;
}
.task-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.task-card-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.15s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.task-card-check:hover { border-color: var(--maroon); }
.task-card.done .task-card-check {
    background: var(--maroon);
    border-color: var(--maroon);
}
.task-card.done .task-card-check::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}
.task-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    flex: 1;
    line-height: 1.3;
    word-break: break-word;
}
.task-card-desc {
    font-size: 0.75rem;
    color: #888;
    margin: 0.25rem 0 0.5rem 26px;
    line-height: 1.4;
}
.task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-left: 26px;
    font-size: 0.7rem;
    color: #888;
}
.task-card-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: none;
    gap: 0.2rem;
}
.task-card:hover .task-card-actions {
    display: flex;
}
.task-card-actions button {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}
.task-card-actions button:hover { color: var(--maroon); border-color: var(--maroon); }
.task-card-actions svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Progress Bar ── */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--maroon);
    border-radius: 3px;
    transition: width 0.4s;
}

.progress-text {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.btn-primary {
    background: var(--maroon);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--maroon-light);
}

.btn-secondary {
    background: white;
    color: var(--maroon);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--maroon);
}

.ticket-filter-btn.active {
    background: var(--maroon);
    color: white;
    border-color: var(--maroon);
}

.btn-danger {
    background: #FFEBEE;
    color: #C62828;
}

.btn-danger:hover {
    background: #FFCDD2;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 0.4rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--maroon);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: white;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--maroon);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2rem;
}

/* ── Modals ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--maroon);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--maroon); }

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ── Ticket Chat ── */
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-message.sent {
    align-self: flex-end;
    background: var(--maroon);
    color: var(--cream);
    border-bottom-right-radius: 4px;
}

.chat-message.received {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-meta {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.25rem;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
}

.chat-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}

.chat-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.chat-tab-btn.active {
    color: var(--maroon);
    border-bottom-color: var(--maroon);
}

.chat-tab-btn .unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E65100;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.chat-message .sender-label {
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.chat-message.sent .sender-label {
    color: rgba(255,255,255,0.7);
}

.chat-message.received .sender-label {
    color: #888;
}

.chat-message .chat-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    margin-top: 0.35rem;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
}

.chat-message .chat-time {
    font-size: 0.6rem;
    margin-top: 0.25rem;
    opacity: 0.6;
}

/* ── Community Chat ── */
.chat-message.pending-review {
    opacity: 0.6;
    border: 1px dashed #FFB300;
}

.comm-request-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.comm-request-card:last-child {
    border-bottom: none;
}

.comm-request-actions {
    display: flex;
    gap: 0.5rem;
}

.comm-chat-notice {
    font-size: 0.7rem;
    color: #aaa;
    padding: 0.5rem 1rem;
    margin: 0;
}

/* ── File List ── */
.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--maroon);
    fill: none;
    stroke-width: 1.5;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--maroon);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.7rem;
    color: #888;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    stroke: var(--border);
    fill: none;
    stroke-width: 1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--maroon);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.85rem;
    font-weight: 300;
}

/* ── Milestones ── */
.milestone-list {
    list-style: none;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.milestone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.milestone-dot.done {
    background: var(--success);
    border-color: var(--success);
}

/* ── Mobile Bottom Tabs (only on mobile) ── */
.mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--maroon);
    z-index: 100;
    justify-content: space-around;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(250,245,240,0.1);
}

.mobile-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: rgba(250,245,240,0.5);
    text-decoration: none;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.mobile-tabs a.active {
    color: var(--cream);
}

.mobile-tabs a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* ── Mobile Hamburger ── */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--maroon);
    z-index: 101;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.mobile-header img {
    height: 32px;
    mix-blend-mode: lighten;
}

.mobile-header button {
    background: none;
    border: none;
    color: var(--cream);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-header button svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* ── Toast Notifications ── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.toast-success { background: var(--success); }
.toast-error { background: #C62828; }

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

/* ── AI Assistant ── */
.ai-chat-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.ai-chat-card .card-header {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.ai-chat-messages {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-chat-card .chat-message.sent {
    align-self: flex-end;
    background: var(--maroon);
    color: var(--cream);
    border-bottom-right-radius: 4px;
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ai-chat-card .chat-message.received {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.ai-chat-card .chat-meta {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 0.4rem;
}

.ai-attachment-preview {
    padding: 0.5rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--cream);
}

.ai-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    max-width: 300px;
}

.ai-attachment-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ai-attachment-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--maroon);
}

.ai-attachment-item button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.ai-attachment-item button:hover {
    color: #C62828;
}

.ai-chat-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: white;
    border-radius: 0 0 8px 8px;
}

.ai-chat-input input[type="text"] {
    flex: 1;
}

.ai-chat-input .btn {
    flex-shrink: 0;
    padding: 0.6rem 0.8rem;
}

.ai-chat-input .btn-icon {
    flex-shrink: 0;
    border: none;
    color: #888;
}

.ai-chat-input .btn-icon:hover {
    color: var(--maroon);
    border: none;
}

.ai-welcome {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.ai-welcome svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1;
    margin-bottom: 1rem;
}

.ai-welcome h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--maroon);
    margin-bottom: 0.5rem;
}

.ai-welcome p {
    font-size: 0.85rem;
    font-weight: 300;
    max-width: 400px;
    margin: 0 auto;
}

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        background: var(--border);
    }
    40% {
        transform: scale(1);
        background: var(--maroon);
    }
}

/* ── Order Status Badges ── */
.badge-submitted { background: #E3F2FD; color: #1565C0; }
.badge-approved { background: #E8F5E9; color: #2E7D32; }
.badge-rejected { background: #FFEBEE; color: #C62828; }
.badge-production { background: #FFF3E0; color: #E65100; }
.badge-payment_pending { background: #FFF8E1; color: #F57F17; }
.badge-payment_confirmed { background: #E0F2F1; color: #00695C; }
.badge-payment_received { background: #E8F5E9; color: #2E7D32; }
.badge-cancelled { background: #EFEBE9; color: #795548; }
.badge-quoted { background: #E3F2FD; color: #1565C0; }
.badge-confirmed { background: #E8F5E9; color: #2E7D32; }
.badge-scheduled { background: #F3E5F5; color: #7B1FA2; }

/* ── Order Detail Grid ── */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-detail-grid .detail-item label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 0.2rem;
}

.order-detail-grid .detail-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ── Inspiration Image Grid ── */
.inspo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.inspo-grid img {
    width: 100%;
    aspect-ratio: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fafafa;
    cursor: pointer;
    transition: transform 0.2s;
}

.inspo-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ── Upload Zone ── */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: #888;
    font-size: 0.85rem;
}

.upload-zone:hover {
    border-color: var(--maroon);
    background: rgba(61,12,17,0.02);
}

.upload-zone svg {
    width: 32px;
    height: 32px;
    stroke: var(--border);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 0.5rem;
}

.upload-zone:hover svg {
    stroke: var(--maroon);
}

.upload-zone input[type="file"] {
    display: none;
}

.upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.upload-previews .preview-item {
    position: relative;
    width: 72px;
    height: 72px;
}

.upload-previews .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.upload-previews .preview-item button {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #C62828;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Status Timeline ── */
.status-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    position: relative;
    flex: 1;
}

.timeline-step .step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #f0f0f0;
    z-index: 1;
    transition: all 0.3s;
}

.timeline-step.done .step-dot {
    width: 14px;
    height: 14px;
    background: #2E7D32;
    border-color: #2E7D32;
}

.timeline-step.active .step-dot {
    width: 18px;
    height: 18px;
    background: var(--maroon);
    border-color: var(--maroon);
    box-shadow: 0 0 0 4px rgba(61,12,17,0.2);
}

.timeline-step .step-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: #bbb;
    margin-top: 0.4rem;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    max-width: 80px;
    word-wrap: break-word;
}

.timeline-step.done .step-label {
    color: #2E7D32;
    font-weight: 600;
}

.timeline-step.active .step-label {
    color: var(--maroon);
    font-weight: 700;
    font-size: 0.6rem;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 7px;
    left: calc(50% + 10px);
    right: calc(-50% + 10px);
    height: 3px;
    background: #ddd;
    border-radius: 2px;
}

.timeline-step.done:not(:last-child)::after {
    background: #2E7D32;
}

/* ── Order Filter Buttons ── */
.order-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.order-filters .filter-btn {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    color: #888;
}

.order-filters .filter-btn:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}

.order-filters .filter-btn.active {
    background: var(--maroon);
    color: var(--cream);
    border-color: var(--maroon);
}

.order-filters .filter-btn .count {
    display: inline-block;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0 0.4rem;
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

.order-filters .filter-btn.active .count {
    background: rgba(255,255,255,0.25);
}

/* ── Invoice Print Styles ── */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ── Notification Bell ── */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.4rem 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(250,245,240,0.6);
    font-size: 0.8rem;
    transition: color 0.2s;
}
.notification-bell:hover { color: var(--cream); }
.notification-bell svg {
    width: 20px; height: 20px;
    stroke: currentColor; fill: none; stroke-width: 1.5;
}
.notif-badge {
    position: absolute; top: 2px; left: 32px;
    min-width: 18px; height: 18px;
    background: #C62828; color: white;
    border-radius: 9px; font-size: 0.65rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.notif-badge:empty, .notif-badge[data-count="0"] { display: none; }

/* Notification Panel */
.notification-panel {
    display: none; position: fixed; top: 0; right: 0;
    width: 380px; max-width: 100vw; height: 100vh;
    background: white; z-index: 1001;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    flex-direction: column;
    animation: slideInPanel 0.3s ease;
}
.notification-panel.open { display: flex; }
@keyframes slideInPanel {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.notif-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 700; color: var(--maroon);
}
.notif-header button {
    background: none; border: none; cursor: pointer;
    color: #888; padding: 0.25rem; transition: color 0.2s;
}
.notif-header button:hover { color: var(--maroon); }
.notif-header button svg {
    width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2;
}
.notif-actions {
    display: flex; justify-content: flex-end;
    padding: 0.5rem 1.5rem; border-bottom: 1px solid var(--border);
}
.notif-actions button {
    background: none; border: none; color: var(--accent);
    font-size: 0.75rem; font-family: 'Inter', sans-serif;
    cursor: pointer; padding: 0.25rem 0;
}
.notif-actions button:hover { text-decoration: underline; }
.notif-list { flex: 1; overflow-y: auto; padding: 0; }
.notif-item {
    display: flex; gap: 0.75rem; padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border); cursor: pointer;
    transition: background 0.2s; position: relative;
}
.notif-item:hover { background: var(--cream); }
.notif-item.unread { background: rgba(139,46,56,0.04); }
.notif-item.unread::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--accent);
}
.notif-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notif-icon svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 1.5; }
.notif-icon.ticket { background: var(--warning); }
.notif-icon.file { background: var(--success); }
.notif-icon.order { background: var(--info); }
.notif-icon.project { background: var(--accent); }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 0.85rem; font-weight: 500; color: var(--text-dark); margin-bottom: 0.15rem; }
.notif-msg { font-size: 0.8rem; color: #888; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 0.7rem; color: #aaa; margin-top: 0.2rem; }
.notif-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 1000; }
.notif-overlay.open { display: block; }
.notif-empty { text-align: center; padding: 3rem 1rem; color: #888; }
.notif-empty svg { width: 48px; height: 48px; stroke: var(--border); fill: none; stroke-width: 1; margin-bottom: 1rem; }
.notif-empty p { font-size: 0.85rem; font-weight: 300; }

/* ── File Preview Thumbnails ── */
.file-item .file-thumb {
    width: 48px; height: 48px; border-radius: 8px;
    object-fit: cover; border: 1px solid var(--border);
    flex-shrink: 0; cursor: pointer; transition: transform 0.2s;
}
.file-item .file-thumb:hover {
    transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.file-lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.85); z-index: 2000;
    align-items: center; justify-content: center; cursor: pointer;
}
.file-lightbox.open { display: flex; }
.file-lightbox img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.file-lightbox .lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: rgba(255,255,255,0.15); border: none; color: white;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.file-lightbox .lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ── Project Timeline (Client Dashboard) ── */
.project-timeline {
    display: flex; align-items: flex-start; gap: 0;
    margin-top: 1.25rem; padding: 0.5rem 0; position: relative;
}
.project-timeline .tl-step {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; position: relative; min-width: 0;
}
.project-timeline .tl-dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--border); background: white;
    z-index: 1; flex-shrink: 0; transition: all 0.3s;
}
.project-timeline .tl-step.done .tl-dot { background: var(--success); border-color: var(--success); }
.project-timeline .tl-step.current .tl-dot {
    background: var(--maroon); border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(61,12,17,0.15);
}
.project-timeline .tl-label {
    font-size: 0.65rem; color: #888; margin-top: 0.4rem;
    text-align: center; line-height: 1.3; padding: 0 0.15rem; word-break: break-word;
}
.project-timeline .tl-step.done .tl-label { color: var(--success); font-weight: 500; }
.project-timeline .tl-step.current .tl-label { color: var(--maroon); font-weight: 600; }
.project-timeline .tl-step:not(:last-child)::after {
    content: ''; position: absolute; top: 7px;
    left: calc(50% + 9px); right: calc(-50% + 9px);
    height: 2px; background: var(--border);
}
.project-timeline .tl-step.done:not(:last-child)::after { background: var(--success); }

/* ── Responsive ── */
@media (max-width: 768px) {
    #msgLayout {
        grid-template-columns: 1fr !important;
        grid-template-rows: 200px 1fr !important;
        height: calc(100vh - 180px) !important;
    }
    .sidebar {
        transform: translateX(-100%);
    }

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

    .mobile-header {
        display: flex;
    }

    .mobile-tabs {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 72px 1rem 80px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .modal {
        max-width: 100%;
        margin: 0.5rem;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 5rem;
    }

    .ai-chat-messages {
        min-height: 250px;
        max-height: 350px;
    }

    .ai-chat-input {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Inspiration image download buttons */
.inspo-item { display: flex; flex-direction: column; gap: 0.4rem; }
.inspo-dl {
    display: inline-block; text-align: center;
    font-size: 0.75rem; font-weight: 600;
    color: var(--maroon, #8B2E38); text-decoration: none;
    border: 1px solid var(--border); border-radius: 6px;
    padding: 5px 8px; background: #fff; cursor: pointer;
    transition: background 0.15s;
}
.inspo-dl:hover { background: #f5f0eb; }
