/*
 * FILE: /assets/css/src/10-profiles.css
 * PURPOSE: Styles for profiles/view.php and profiles/edit.php.
 *
 * HOW TO MODIFY:
 *   - Profile card layout is flexbox — on mobile it stacks via
 *     the media query in 16-responsive.css.
 *   - Skill tags: adjust padding/font-size on .skill-tag.
 *   - To show a profile picture: the <img> in view.php gets
 *     the .avatar-img class defined in 9-dashboard.css.
 */

.profile-wrapper { max-width: 800px; margin: 0 auto; }

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.profile-avatar   { flex-shrink: 0; }
.profile-identity { flex: 1; }
.profile-actions  { flex-shrink: 0; }

.profile-username    { font-size: 1.75rem; margin-bottom: var(--space-xs); }
.profile-member-since { font-size: 0.82rem; color: var(--text-faint); margin-top: var(--space-xs); }

.profile-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-lg);
}

.profile-section h2 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.profile-bio { color: var(--text); line-height: 1.7; white-space: pre-line; }

/* ---- Skill tags ---- */
.skills-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.skill-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Avatar preview on edit page */
.avatar-preview { display: flex; justify-content: center; margin-bottom: var(--space-lg); }
/*
 * FILE: /assets/css/src/11-marketplace.css
 * PURPOSE: Styles for index.php, view.php, create.php, edit.php
 *          inside /marketplace — including the homepage hero.
 *
 * HOW TO MODIFY:
 *   - Cards per row: change minmax(280px, 1fr) on .services-grid.
 *     Lower the 280px value to fit more cards per row.
 *   - Hero background tint: adjust the radial-gradient colours
 *     on .hero.
 *   - Listing sidebar width: change the 300px in .listing-layout's
 *     grid-template-columns.
 */

/* ---- Homepage hero ---- */
.hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-xl);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(196,80,42,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(196,80,42,0.04) 0%, transparent 60%);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.featured-section  { margin-top: var(--space-xl); }
.featured-section h2 { margin-bottom: var(--space-xs); }
.section-subtitle  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-lg); }

/* ---- Marketplace listing page ---- */
.marketplace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

/* Filter form */
.filter-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.filter-row { display: flex; gap: var(--space-md); align-items: flex-end; flex-wrap: wrap; }

.filter-group { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 140px; }
.filter-group--wide   { flex: 1; min-width: 200px; }
.filter-group--action { flex-direction: row; align-items: flex-end; gap: var(--space-sm); }

.filter-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.filter-group input {
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}

.filter-group input:focus { border-color: var(--accent); }

/* ---- Services grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

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

.service-card-body { padding: var(--space-lg); flex: 1; }

.service-card-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    transition: color 0.15s;
}

.service-card:hover .service-card-title,
a.service-card-title:hover { color: var(--accent); }

.service-card-description { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }

.service-card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    background: var(--surface-alt);
}

.service-card-meta { display: flex; flex-direction: column; gap: 2px; }

.service-price  { font-weight: 700; font-size: 1rem; color: var(--accent); }
.service-artist { font-size: 0.78rem; color: var(--text-faint); }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.pagination-link { font-size: 0.875rem; font-weight: 500; }
.pagination-info { font-size: 0.875rem; color: var(--text-muted); }

/* ---- Single listing view ---- */
.listing-wrapper { max-width: 900px; margin: 0 auto; }

.listing-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
    align-items: start;
}

.listing-title       { font-size: 2rem; margin-bottom: var(--space-sm); }
.listing-meta        { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-xl); }
.listing-description { font-size: 0.95rem; line-height: 1.75; color: var(--text); }

.listing-price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.listing-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.listing-cta-text { font-size: 0.875rem; color: var(--text-muted); text-align: center; line-height: 1.5; }

.artist-mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.artist-mini-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
}

.artist-mini-name { font-weight: 600; font-size: 1rem; color: var(--text); }

/* ---- Service summary card (transaction request) ---- */
.service-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
}

.service-summary-title  { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.service-summary-artist { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.service-summary-price  { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
/*
 * FILE: /assets/css/src/12-messages.css
 * PURPOSE: Styles for messages/inbox.php, compose.php, view.php.
 *
 * HOW TO MODIFY:
 *   - Bubble max-width: change max-width on .message-bubble.
 *     72% keeps long messages readable without filling the full width.
 *   - My bubble colour: change background on .message-bubble--mine.
 *     It currently uses --accent (terracotta).
 *   - Their bubble colour: change background on .message-bubble--theirs.
 *   - Thread height: change the calc() on .thread-wrapper to
 *     adjust how much vertical space the conversation takes up.
 */

.messages-wrapper { max-width: 680px; margin: 0 auto; }

.messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

/* ---- Conversation list (inbox) ---- */
.conversation-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.conversation-item { border-bottom: 1px solid var(--border); }
.conversation-item:last-child { border-bottom: none; }

.conversation-item--unread .conversation-name    { font-weight: 700; color: var(--text); }
.conversation-item--unread .conversation-preview { color: var(--text); font-weight: 500; }

.conversation-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
}

.conversation-link:hover { background: var(--surface-alt); color: inherit; }

.conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.conversation-body { flex: 1; min-width: 0; }

.conversation-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: 2px;
}

.conversation-name    { font-size: 0.9rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-time    { font-size: 0.78rem; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.conversation-preview { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.unread-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- Thread view ---- */
.thread-wrapper {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-height) - 120px);
    min-height: 500px;
}

.thread-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-md);
    flex-shrink: 0;
}

.thread-header-identity { display: flex; align-items: center; gap: var(--space-md); flex: 1; }

.thread-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    flex-shrink: 0;
}

.thread-username      { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.thread-message-count { font-size: 0.78rem; color: var(--text-faint); }

/* Scrollable message list */
.thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    scroll-behavior: smooth;
}

/* Date separator */
.thread-date-separator { text-align: center; position: relative; margin: var(--space-md) 0; }

.thread-date-separator span {
    display: inline-block;
    background: var(--bg);
    padding: 0 var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-faint);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.thread-date-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

/* ---- Message bubbles ---- */
.message-bubble-wrapper { display: flex; padding: 0 var(--space-sm); }
.message-bubble-wrapper--mine   { justify-content: flex-end; }
.message-bubble-wrapper--theirs { justify-content: flex-start; }

.message-bubble {
    max-width: 72%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    position: relative;
}

.message-bubble--mine {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: var(--radius-sm);
}

.message-bubble--theirs {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: var(--radius-sm);
}

.message-text { font-size: 0.9rem; line-height: 1.55; margin-bottom: 4px; word-break: break-word; }
.message-time { font-size: 0.72rem; display: block; text-align: right; opacity: 0.65; }

.thread-empty { text-align: center; color: var(--text-faint); font-size: 0.875rem; padding: var(--space-xl); }

/* ---- Reply form ---- */
.thread-reply {
    flex-shrink: 0;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.reply-form { display: flex; flex-direction: column; gap: var(--space-sm); }

.reply-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    outline: none;
    resize: none;
    transition: border-color 0.15s;
    line-height: 1.55;
}

.reply-textarea:focus { border-color: var(--accent); }

.reply-actions { display: flex; align-items: center; justify-content: space-between; }
.reply-hint    { font-size: 0.78rem; color: var(--text-faint); }

/* ---- Compose: recipient locked ---- */
.recipient-locked {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 9px 14px;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
}

.recipient-name { font-weight: 600; font-size: 0.9rem; color: var(--text); flex: 1; }
.link-small     { font-size: 0.78rem; color: var(--text-faint); }
/*
 * FILE: /assets/css/src/13-transactions.css
 * PURPOSE: Styles for transactions/index.php and transactions/view.php.
 *
 * HOW TO MODIFY:
 *   - Filter tab active colour: inherits --accent automatically.
 *   - Timeline dot colours: .timeline-step--done uses --accent,
 *     .timeline-step--active adds a glow ring using --accent-light.
 *   - To add a new status to the timeline: add a new .timeline-step
 *     block in the PHP and it inherits all styles automatically.
 *   - Action panel colours: .action-panel--success and --rejected
 *     use semantic colour variables from 1-variables.css.
 */

.transactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

/* ---- Filter tabs ---- */
.filter-tabs {
    display: flex;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: var(--space-xl);
    width: fit-content;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 7px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.filter-tab:hover { color: var(--text); background: var(--surface-alt); }

.filter-tab--active { background: var(--accent); color: #fff; }
.filter-tab--active:hover { color: #fff; background: var(--accent-hover); }

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.filter-tab:not(.filter-tab--active) .tab-count {
    background: var(--surface-alt);
    color: var(--text-muted);
}

/* ---- Transaction list ---- */
.transaction-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.transaction-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.transaction-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); color: inherit; }

.transaction-card-main { flex: 1; min-width: 0; }

.transaction-service-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-meta          { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.transaction-notes-preview { font-size: 0.82rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.transaction-card-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.transaction-date { font-size: 0.78rem; color: var(--text-faint); }

/* ---- Transaction detail ---- */
.transaction-detail-wrapper { max-width: 960px; margin: 0 auto; }

.transaction-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
    align-items: start;
}

.transaction-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.transaction-detail-title { font-size: 1.75rem; }

/* Parties */
.transaction-parties {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.party { flex: 1; }

.party-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    margin-bottom: 2px;
}

.party-name    { font-weight: 600; font-size: 0.95rem; }
.party-divider { color: var(--text-faint); font-size: 1.25rem; }

/* Detail sections */
.detail-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child { border-bottom: none; }

.detail-section h2 {
    font-size: 0.78rem;
    margin-bottom: var(--space-md);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-text  { line-height: 1.7; font-size: 0.95rem; }
.detail-price { margin-top: var(--space-md); font-size: 0.9rem; color: var(--text-muted); }

.client-brief-box {
    background: var(--surface-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    line-height: 1.65;
    white-space: pre-line;
    color: var(--text);
}

/* Status timeline */
.status-timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    position: relative;
    padding-bottom: var(--space-lg);
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-step:last-child::before { display: none; }

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
    z-index: 1;
}

.timeline-step--done   .timeline-dot { background: var(--accent); border-color: var(--accent); }
.timeline-step--active .timeline-dot { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.timeline-step--pending .timeline-dot { background: var(--surface-alt); border-color: var(--border); }

.timeline-content { padding-top: 1px; }
.timeline-content strong { font-size: 0.9rem; }
.timeline-date { display: block; font-size: 0.78rem; color: var(--text-faint); margin-top: 2px; }

/* ---- Action panel (sidebar) ---- */
.action-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.action-panel h3        { font-size: 0.95rem; margin-bottom: var(--space-xs); }
.action-panel-hint      { font-size: 0.82rem; color: var(--text-muted); margin-bottom: var(--space-sm); line-height: 1.5; }

.action-panel--success  { background: var(--color-success-bg); border-color: #BBF7D0; text-align: center; }
.action-panel--rejected { background: var(--color-danger-bg);  border-color: #FECACA; text-align: center; }

.action-complete-label  { font-weight: 600; color: var(--color-success); }
.action-rejected-label  { font-weight: 600; color: var(--color-danger); margin-bottom: var(--space-sm); }

.sidebar-links-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
/*
 * FILE: /assets/css/src/14-stealthdrop.css
 * PURPOSE: Styles for the StealthDrop module —
 *          upload_secure.php and download_secure.php.
 *
 * The most important element here is .password-reveal-box —
 * it deliberately uses a dark background to signal that this
 * password is sensitive and one-time. The monospace font makes
 * the characters easy to read and transcribe accurately.
 *
 * HOW TO MODIFY:
 *   - Password box background: change background on
 *     .password-reveal-box (currently near-black #1A1A18).
 *   - Password box border: change border-color (currently --accent).
 *   - Font size of displayed password: change font-size on
 *     .password-reveal-value.
 */

.stealthdrop-wrapper { max-width: 600px; margin: 0 auto; }

.stealthdrop-hero {
    text-align: center;
    padding: var(--space-lg) 0 var(--space-xl);
}

.stealthdrop-icon { font-size: 3rem; margin-bottom: var(--space-md); }

.stealthdrop-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

/* ---- Password reveal box ---- */
.password-reveal-box {
    background: #1A1A18;
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-lg) 0;
    text-align: center;
    border: 2px solid var(--accent);
}

.password-reveal-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-sm);
}

.password-reveal-value {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.12em;
    word-break: break-all;
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.password-copy-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.password-copy-btn:hover { background: var(--accent-hover); }

.password-warning {
    font-size: 0.82rem;
    color: var(--color-warning);
    background: var(--color-warning-bg);
    border: 1px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    line-height: 1.5;
    margin-top: var(--space-md);
}

/* ---- Download page ---- */
.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.download-icon { font-size: 3rem; margin-bottom: var(--space-md); }

.download-filename {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    display: inline-block;
    margin: var(--space-sm) 0 var(--space-lg);
    color: var(--text-muted);
    word-break: break-all;
}

.expiry-note { font-size: 0.82rem; color: var(--text-faint); margin-top: var(--space-md); }
/*
 * FILE: /assets/css/src/15-utilities.css
 * PURPOSE: Small single-purpose helper classes used throughout
 *          the app wherever a full component class isn't needed.
 *
 * HOW TO MODIFY:
 *   - Add new spacing helpers by following the existing pattern:
 *     .mt-{size}, .mb-{size} using --space-* variables.
 *   - .sr-only is for screen-reader-only text — use it on labels
 *     and descriptions that should be accessible but not visible.
 */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Screen reader only — visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Spacing helpers */
.mt-sm  { margin-top: var(--space-sm);  }
.mt-md  { margin-top: var(--space-md);  }
.mt-lg  { margin-top: var(--space-lg);  }
.mt-xl  { margin-top: var(--space-xl);  }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

/* Generic muted text for empty/placeholder copy */
.empty-text { color: var(--text-muted); font-size: 0.875rem; }
/*
 * FILE: /assets/css/src/16-responsive.css
 * PURPOSE: All media queries for tablet and mobile breakpoints.
 *
 * ALL responsive overrides live here — not scattered across
 * individual module files. This makes it easy to see every
 * layout change that happens at each breakpoint in one place.
 *
 * BREAKPOINTS:
 *   ≤ 900px  → Tablet  (dashboard stacks, listing sidebar stacks)
 *   ≤ 600px  → Mobile  (single column, reduced padding, hidden nav items)
 *
 * HOW TO MODIFY:
 *   - To change a breakpoint: adjust the max-width value.
 *   - To add a new responsive rule: find the right breakpoint
 *     block and add your override there.
 *   - To debug: temporarily add outline: 2px solid red to any
 *     class to see its boundaries at a given screen size.
 */


/* ============================================================
   TABLET — max-width: 900px
   ============================================================ */

@media (max-width: 900px) {

    .main-content {
        padding: var(--space-lg) var(--space-md);
    }

    /* Dashboard: stack sidebar above content */
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }

    /* Listing + transaction detail: stack sidebar below main */
    .listing-layout,
    .transaction-detail-layout {
        grid-template-columns: 1fr;
    }

    /* Profile card: stack vertically */
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    /* Quick actions: keep 3 across on tablet */
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================================
   MOBILE — max-width: 600px
   ============================================================ */

@media (max-width: 600px) {

    :root {
        --space-xl:  28px;
        --space-2xl: 48px;
    }

    /* Nav: show only brand + last two items (login/signup or logout) */
    .nav-links {
        gap: 4px;
    }

    .nav-links li:not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }

    /* Auth card: reduce padding */
    .auth-card {
        padding: var(--space-lg);
    }

    /* Role cards: stack vertically */
    .role-options {
        grid-template-columns: 1fr;
    }

    /* Services grid: single column */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Filter form: stack vertically */
    .filter-row {
        flex-direction: column;
    }

    /* Filter tabs: horizontally scrollable row */
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    /* Thread: tighter height on small screens */
    .thread-wrapper {
        height: calc(100vh - var(--nav-height) - 80px);
    }

    /* Transaction card: stack vertically */
    .transaction-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .transaction-card-aside {
        align-items: flex-start;
        flex-direction: row;
        gap: var(--space-md);
    }

    /* Quick actions: single column */
    .quick-actions {
        grid-template-columns: 1fr;
    }

    /* Form card: reduce padding */
    .form-card {
        padding: var(--space-lg);
    }

    /* Footer: stack and centre */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
/*
 * FILE: /assets/css/src/1-variables.css
 * PURPOSE: All CSS custom properties (design tokens) for ArtistHub.
 *
 * This is the single source of truth for every colour, spacing value,
 * font, shadow, and radius used across the entire app.
 * Change a value here and it updates everywhere automatically.
 *
 * HOW TO MODIFY:
 *   - Brand colour  → update --accent and --accent-hover
 *   - Fonts         → update --font-display / --font-body, and update
 *                     the @import in 3-typography.css to match
 *   - Spacing       → adjust the --space-* scale
 */

:root {
    /* -- Colour palette -- */
    --bg:             #FAFAF7;
    --surface:        #FFFFFF;
    --surface-alt:    #F4F3EF;
    --border:         #E2E0D8;
    --border-strong:  #C8C6BC;

    /* -- Text -- */
    --text:           #1A1A18;
    --text-muted:     #6B6A64;
    --text-faint:     #9E9C96;

    /* -- Accent (terracotta) -- */
    --accent:         #C4502A;
    --accent-hover:   #A83E1F;
    --accent-light:   #F5E8E3;
    --accent-text:    #7A2E14;

    /* -- Semantic colours -- */
    --color-success:     #166534;
    --color-success-bg:  #F0FDF4;
    --color-info:        #1E40AF;
    --color-info-bg:     #EFF6FF;
    --color-warning:     #92400E;
    --color-warning-bg:  #FFFBEB;
    --color-danger:      #991B1B;
    --color-danger-bg:   #FEF2F2;

    /* -- Status badge colours -- */
    --status-pending:      #92400E;
    --status-pending-bg:   #FFFBEB;
    --status-accepted:     #166534;
    --status-accepted-bg:  #F0FDF4;
    --status-rejected:     #991B1B;
    --status-rejected-bg:  #FEF2F2;
    --status-completed:    #1E40AF;
    --status-completed-bg: #EFF6FF;
    --status-active:       #166534;
    --status-active-bg:    #F0FDF4;
    --status-inactive:     #6B6A64;
    --status-inactive-bg:  #F4F3EF;

    /* -- Spacing scale -- */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  40px;
    --space-2xl: 64px;

    /* -- Border radius -- */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   20px;
    --radius-full: 9999px;

    /* -- Shadows -- */
    --shadow-sm: 0 1px 3px rgba(26,26,24,0.08);
    --shadow-md: 0 4px 12px rgba(26,26,24,0.10);
    --shadow-lg: 0 8px 32px rgba(26,26,24,0.12);

    /* -- Typography -- */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* -- Layout -- */
    --nav-height:    64px;
    --max-width:     1160px;
    --sidebar-width: 240px;
}
/*
 * FILE: /assets/css/src/2-reset.css
 * PURPOSE: CSS reset and base element defaults.
 *
 * Normalises browser inconsistencies so the app looks consistent
 * across Chrome, Firefox, Safari, and Edge.
 *
 * HOW TO MODIFY:
 *   - Add base element styles here (e.g. default <table> behaviour).
 *   - Do NOT add class-based styles here — those belong in later files.
 */

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover { color: var(--accent-hover); }

ul, ol { list-style: none; }

table { border-collapse: collapse; width: 100%; }
/*
 * FILE: /assets/css/src/3-typography.css
 * PURPOSE: Font imports and typographic scale.
 *
 * HOW TO MODIFY:
 *   - To swap fonts: change the @import URL and update
 *     --font-display / --font-body in 1-variables.css.
 *   - Heading sizes use clamp() for fluid scaling between
 *     mobile and desktop without media queries.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 0; }

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

strong { font-weight: 600; }
/*
 * FILE: /assets/css/src/4-layout.css
 * PURPOSE: The global page shell — navbar, main content area, footer.
 *
 * These styles wrap every single page in the app.
 * They are loaded via header.php and footer.php on every request.
 *
 * HOW TO MODIFY:
 *   - Nav height: change --nav-height in 1-variables.css.
 *   - Max page width: change --max-width in 1-variables.css.
 *   - To add a nav item: add the <a> tag in includes/header.php —
 *     the styles here will apply automatically.
 */

/* ---- Navbar ---- */
.navbar {
    height: var(--nav-height);
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav-brand:hover { color: var(--accent); }

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-alt);
}

.nav-links .btn-primary,
.nav-links .btn-logout { padding: 6px 14px; }

/* ---- Flash message banner ---- */
.flash {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid transparent;
}

.flash-success { background: var(--color-success-bg); color: var(--color-success); border-color: #BBF7D0; }
.flash-error   { background: var(--color-danger-bg);  color: var(--color-danger);  border-color: #FECACA; }
.flash-info    { background: var(--color-info-bg);    color: var(--color-info);    border-color: #BFDBFE; }
.flash-warning { background: var(--color-warning-bg); color: var(--color-warning); border-color: #FDE68A; }

/* ---- Main content area ---- */
.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-lg);
    margin-top: auto;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }
/*
 * FILE: /assets/css/src/5-buttons.css
 * PURPOSE: All button variants used across the platform.
 *
 * HOW TO MODIFY:
 *   - To add a new variant: copy .btn-secondary as a template,
 *     give it a new class name, and override background/color.
 *   - To change the brand button colour: update --accent in
 *     1-variables.css — .btn-primary inherits it automatically.
 *   - Size variants (.btn-sm, .btn-full) can be combined with
 *     any colour variant: class="btn btn-primary btn-sm"
 */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s,
                border-color 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}
.btn:active { transform: translateY(1px); }

/* Primary — terracotta filled */
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 2px 8px rgba(196,80,42,0.3);
}

/* Secondary — outlined */
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: var(--text-muted);
    color: var(--text);
}

/* Danger — destructive actions */
.btn-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: #FECACA;
}
.btn-danger:hover {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
}

/* Size variants */
.btn-sm   { padding: 6px 12px; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* Logout — subtle destructive link style */
.btn-logout { color: var(--text-muted) !important; font-size: 0.85rem; }
.btn-logout:hover {
    color: var(--color-danger) !important;
    background: var(--color-danger-bg) !important;
}
/*
 * FILE: /assets/css/src/6-forms.css
 * PURPOSE: Form layout, inputs, labels, validation states, and helpers.
 *
 * Used by: auth, profiles/edit, marketplace/create, marketplace/edit,
 *          messages/compose, transactions/request, stealthdrop/upload.
 *
 * HOW TO MODIFY:
 *   - Input focus colour: update --accent in 1-variables.css.
 *   - To add a new input type: add it to the long selector list
 *     under "Text inputs, textareas, selects".
 *   - .has-error on a .form-group turns the input border red
 *     and shows the .field-error span automatically.
 */

.form-page-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.form-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.form-title    { font-size: 1.5rem; margin-bottom: var(--space-xs); }
.form-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-lg); }

.form-group { margin-bottom: var(--space-lg); }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.label-optional {
    font-weight: 400;
    color: var(--text-faint);
    font-size: 0.8rem;
}

/* Text inputs, textareas, selects */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196,80,42,0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group input[type="file"] {
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Error state */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select { border-color: #DC2626; }

.field-error {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.82rem;
    color: var(--color-danger);
}

.field-hint {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.82rem;
    color: var(--text-faint);
    line-height: 1.4;
}

/* Price input with $ prefix */
.input-prefix-wrapper { display: flex; align-items: stretch; }

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.input-prefix-wrapper input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

/* Radio options */
.radio-group { display: flex; flex-direction: column; gap: var(--space-sm); }

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.radio-option:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.radio-option input[type="radio"] {
    width: auto;
    margin-top: 3px;
    accent-color: var(--accent);
}

/* Form actions row */
.form-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    transition: color 0.15s;
}

.back-link:hover { color: var(--accent); }
/*
 * FILE: /assets/css/src/7-alerts.css
 * PURPOSE: Alert boxes, status badges, role badges, empty states,
 *          and data tables. All reusable across the entire app.
 *
 * HOW TO MODIFY:
 *   - To add a new alert type: copy .alert-info, give it a new
 *     class, and set background/color/border-color.
 *   - To add a new status: add .status-{name} with its own
 *     background and text colour pair.
 *   - Status badge colours are defined in 1-variables.css
 *     as --status-{name} and --status-{name}-bg.
 */

/* ---- Alert boxes ---- */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
    border: 1px solid transparent;
}

.alert-success { background: var(--color-success-bg); color: var(--color-success); border-color: #BBF7D0; }
.alert-error   { background: var(--color-danger-bg);  color: var(--color-danger);  border-color: #FECACA; }
.alert-info    { background: var(--color-info-bg);    color: var(--color-info);    border-color: #BFDBFE; }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); border-color: #FDE68A; }

/* ---- Status badges ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pending   { background: var(--status-pending-bg);   color: var(--status-pending);   }
.status-accepted  { background: var(--status-accepted-bg);  color: var(--status-accepted);  }
.status-rejected  { background: var(--status-rejected-bg);  color: var(--status-rejected);  }
.status-completed { background: var(--status-completed-bg); color: var(--status-completed); }
.status-active    { background: var(--status-active-bg);    color: var(--status-active);    }
.status-inactive  { background: var(--status-inactive-bg);  color: var(--status-inactive);  }
.status-badge--large { padding: 4px 14px; font-size: 0.85rem; }

/* ---- Role badges ---- */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.role-badge--artist { background: var(--accent-light); color: var(--accent-text); }
.role-badge--client { background: var(--color-info-bg); color: var(--color-info); }

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--text-muted);
}

.empty-state p { margin-bottom: var(--space-md); }

/* ---- Data table ---- */
.data-table { width: 100%; font-size: 0.875rem; }

.data-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 2px solid var(--border);
}

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

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-alt); }

.link-action  { font-size: 0.85rem; font-weight: 500; color: var(--accent); }
.view-all-link { display: inline-block; margin-top: var(--space-md); font-size: 0.875rem; font-weight: 500; color: var(--accent); }
/*
 * FILE: /assets/css/src/8-auth.css
 * PURPOSE: Styles for login.php, register.php.
 *
 * HOW TO MODIFY:
 *   - Card max-width: change max-width on .auth-card.
 *   - To add a third role option: the .role-options grid will
 *     expand automatically — no CSS change needed.
 */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - var(--nav-height) - 120px);
    padding: var(--space-xl) var(--space-md);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-md);
}

.auth-title    { font-size: 1.75rem; margin-bottom: var(--space-xs); }
.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-xl); }

.auth-footer-link {
    margin-top: var(--space-lg);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Role selection cards */
.role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}

.role-card:hover,
.role-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.role-card input[type="radio"] { display: none; }

.role-icon  { font-size: 1.75rem; }
.role-label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.role-desc  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }
/*
 * FILE: /assets/css/src/9-dashboard.css
 * PURPOSE: Styles for dashboard/index.php — the sidebar layout,
 *          navigation, section cards, and quick-action cards.
 *
 * HOW TO MODIFY:
 *   - Sidebar width: change --sidebar-width in 1-variables.css.
 *   - To add a sidebar link: add the <a> in dashboard/index.php —
 *     the .sidebar-link class handles it automatically.
 *   - To add a quick action card: copy the .quick-action-card block
 *     in the PHP and add an icon + label.
 */

.dashboard-wrapper {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* ---- Sidebar ---- */
.dashboard-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-lg));
}

.sidebar-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* Avatar (shared with profiles) */
.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-placeholder--large { width: 88px; height: 88px; font-size: 2rem; }

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

.sidebar-username { font-weight: 600; font-size: 0.9rem; color: var(--text); }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar-link--logout { margin-top: var(--space-lg); color: var(--text-faint); }
.sidebar-link--logout:hover { background: var(--color-danger-bg); color: var(--color-danger); }

/* Unread message count badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---- Dashboard main ---- */
.dashboard-heading { font-size: 1.75rem; margin-bottom: var(--space-xl); }

.dashboard-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-lg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.section-header h2 { font-size: 1.15rem; }

/* ---- Quick action cards (client) ---- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.quick-action-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.quick-action-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text);
}

.qa-icon  { font-size: 1.75rem; }
.qa-label { font-size: 0.875rem; font-weight: 600; }
