/* sections.css — page-level layout: header, gallery, about, footer, admin panel.
   Extracted verbatim from the original inline <style>. */

/* Header / hero */
header { padding: 2rem; display: flex; flex-direction: column; align-items: center; position: relative; }

.admin-toggle {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    background: transparent;
    border: 2px solid var(--sketch-line);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.5;
}
.admin-toggle:hover { opacity: 1; border-color: var(--ink-black); }
.admin-toggle svg { width: 18px; height: 18px; stroke: var(--pencil-gray); }
.admin-toggle.active { background: var(--ink-black); border-color: var(--ink-black); opacity: 1; }
.admin-toggle.active svg { stroke: white; }

/* Theme toggle (Phase 0 placeholder; moves to navbar in Phase 1) */
.theme-toggle {
    position: absolute;
    top: 1rem; right: 4rem;
    width: 40px; height: 40px;
    background: transparent;
    border: 2px solid var(--sketch-line);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.5;
}
.theme-toggle:hover { opacity: 1; border-color: var(--ink-black); }
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--pencil-gray); fill: none; stroke-width: 2; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.avatar-container { position: relative; margin-bottom: 1.5rem; animation: dropIn 0.8s ease-out; }
.avatar-ring {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-coral), var(--accent-gold), var(--accent-teal), var(--accent-lavender), var(--accent-coral));
    animation: spin 8s linear infinite;
}
.avatar {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: var(--sketch-line);
    position: relative;
    z-index: 1;
    border: 5px solid var(--paper-cream);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-placeholder { font-family: 'Caveat', cursive; font-size: 2.5rem; color: var(--pencil-gray); }

.artist-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}
.artist-name span { display: inline-block; position: relative; }
.artist-name span::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 0;
    width: 100%; height: 8px;
    background: var(--accent-gold);
    opacity: 0.5;
    z-index: -1;
    transform: skewX(-5deg);
}

.tagline {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--pencil-gray);
    text-align: center;
    animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

.main-tabs {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    justify-content: center;
    animation: fadeSlideUp 0.8s ease-out 0.6s both;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 5px 20px var(--shadow-soft);
}
.main-tab {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--pencil-gray);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}
.main-tab:hover { color: var(--ink-black); }
.main-tab.active { background: var(--ink-black); color: white; }

main { max-width: 1400px; margin: 0 auto; padding: 2rem; }

.tab-content { display: none; animation: fadeIn 0.4s ease-out; }
.tab-content.active { display: block; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.section-title::before {
    content: '';
    position: absolute;
    left: -20px; top: 50%;
    width: 10px; height: 10px;
    background: var(--accent-teal);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Admin panel */
.admin-panel {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px var(--shadow-soft);
    border: 3px solid var(--accent-teal);
    animation: slideDown 0.3s ease-out;
}
.admin-panel.active { display: block; }
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--sketch-line);
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-header h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.admin-badge {
    background: var(--accent-teal); color: white;
    font-family: 'Sora', sans-serif; font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}
.logout-btn {
    background: transparent;
    border: 1px solid color-mix(in oklab, var(--danger-red) 50%, transparent);
    color: var(--danger-red);
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}
.logout-btn:hover { background: var(--danger-red); border-color: var(--danger-red); color: white; }

.admin-tabs {
    display: flex; gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--sketch-line);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}
.admin-tab {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.5rem 1.05rem;
    border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
    background: transparent;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
    color: var(--muted);
    border-bottom: none;
    margin-bottom: -1rem;
    position: relative;
}
.admin-tab:hover { background: var(--paper-cream); }
.admin-tab.active { background: var(--paper-cream); border-color: var(--accent-teal); color: var(--ink-black); font-weight: 600; }
.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 4px;
    background: var(--paper-cream);
}
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.profile-edit-section { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 600px) { .profile-edit-section { grid-template-columns: 1fr; } }

.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.avatar-edit-preview {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: var(--sketch-line);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border: 4px solid var(--accent-teal);
}
.avatar-edit-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit-placeholder { font-family: 'Caveat', cursive; font-size: 2rem; color: var(--pencil-gray); }
.avatar-edit-btn {
    background: var(--ink); color: var(--bg);
    border: 1px solid transparent;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body); font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out);
    display: inline-block;
}
.avatar-edit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(23, 23, 23, 0.18); }
.avatar-edit-btn:active { transform: translateY(0); }
.avatar-edit-btn.loading { opacity: 0.6; pointer-events: none; }

.profile-fields { display: flex; flex-direction: column; gap: 1.5rem; }

/* Gallery */
.gallery-section {
    margin-bottom: 3rem;
    position: relative;
    padding: 4rem 0;
}
.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0 -10%;
    background:
        radial-gradient(50% 40% at 80% 10%, var(--glow-peach), transparent 70%),
        radial-gradient(40% 35% at 10% 90%, var(--glow-lavender), transparent 70%);
    filter: blur(50px);
    opacity: 0.65;
    pointer-events: none;
    z-index: -1;
}
[data-theme="dark"] .gallery-section::before { opacity: 1; }
.gallery-section .section-title { font-family: var(--font-display); }
.gallery-filters { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.45rem 1rem;
    border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
    background: transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
    color: var(--muted);
    -webkit-appearance: none;
}
.filter-btn:hover {
    color: var(--ink);
    border-color: color-mix(in oklab, var(--ink) 28%, transparent);
}
.filter-btn.active, .filter-btn:active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

/* Masonry via CSS columns — no JS, no layout shift, intrinsic aspect-ratio. */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
@media (max-width: 1100px) { .gallery-grid { column-count: 2; } }
@media (max-width: 480px) { .gallery-grid { column-count: 1; } }

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--line);
    box-shadow:
        0 1px 0 color-mix(in oklab, var(--ink) 6%, transparent) inset,
        0 8px 24px var(--shadow-soft);
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                filter var(--dur-base) var(--ease-out);
    animation: scaleIn 0.5s ease-out both;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: block;
}
[data-theme="dark"] .gallery-item {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 14px 36px rgba(0, 0, 0, 0.45);
}
.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.10s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.20s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.30s; }
.gallery-item:hover {
    box-shadow:
        0 1px 0 color-mix(in oklab, var(--ink) 8%, transparent) inset,
        0 30px 70px rgba(0, 0, 0, 0.28),
        0 60px 120px color-mix(in oklab, var(--lavender) 22%, transparent);
    transform: translateY(-6px);
}
.gallery-item-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform var(--dur-base) var(--ease-out);
}
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease-out), filter var(--dur-base) var(--ease-out);
    filter: saturate(0.94);
}
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.05); }

/* Cursor-following soft light */
.gallery-item-light {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 220px at var(--lx, 50%) var(--ly, 50%), rgba(255, 255, 255, 0.30), transparent 60%);
    opacity: 0;
    transition: opacity var(--dur-fast) ease;
    mix-blend-mode: overlay;
}
.gallery-item:hover .gallery-item-light { opacity: 1; }

.gallery-item-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.6rem 1.5rem 1.3rem;
    background:
        linear-gradient(180deg, transparent 0%, rgba(10, 8, 6, 0.55) 55%, rgba(10, 8, 6, 0.85) 100%);
    color: white;
    transform: translateY(20%);
    opacity: 0;
    transition: transform var(--dur-base) var(--ease-out),
                opacity var(--dur-base) var(--ease-out);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(6px) saturate(140%);
}
.gallery-item-overlay::before {
    content: '';
    position: absolute;
    left: 1.5rem; top: 0.8rem;
    width: 28px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out) 80ms;
}
.gallery-item:hover .gallery-item-overlay { transform: translateY(0); opacity: 1; }
.gallery-item:hover .gallery-item-overlay::before { opacity: 1; }
.gallery-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
    transform: translateY(8px);
    opacity: 0;
    transition: transform var(--dur-base) var(--ease-out) 60ms,
                opacity var(--dur-base) var(--ease-out) 60ms;
}
.gallery-item-category {
    font-family: 'Caveat', cursive;
    font-size: 1.05rem;
    opacity: 0;
    color: color-mix(in oklab, var(--peach) 60%, white);
    transform: translateY(8px);
    transition: transform var(--dur-base) var(--ease-out) 120ms,
                opacity var(--dur-base) var(--ease-out) 120ms;
}
.gallery-item:hover .gallery-item-title { opacity: 1; transform: translateY(0); }
.gallery-item:hover .gallery-item-category { opacity: 0.95; transform: translateY(0); }
.gallery-item-delete {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    background: var(--danger-red);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    -webkit-appearance: none;
}
.admin-mode .gallery-item-delete { display: flex; opacity: 0.8; }
.gallery-item:hover .gallery-item-delete { opacity: 1; }
.gallery-item-delete:hover, .gallery-item-delete:active { transform: scale(1.1); }
.gallery-item-delete svg { width: 16px; height: 16px; stroke: white; stroke-width: 2; }

.empty-gallery { text-align: center; padding: 4rem 2rem; color: var(--pencil-gray); }
.empty-gallery-icon { width: 120px; height: 120px; margin: 0 auto 1.5rem; opacity: 0.3; }
.empty-gallery-icon svg { width: 100%; height: 100%; }
.empty-gallery h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-gallery p { font-family: 'Caveat', cursive; font-size: 1.3rem; }

/* About */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .about-content { grid-template-columns: 1fr; } }
.about-text { padding: 2rem 0; }
.about-text p { font-size: 1.1rem; line-height: 1.8; color: var(--pencil-gray); margin-bottom: 1.5rem; white-space: pre-line; }
.about-sketch { position: relative; padding: 2rem; }
.sketch-frame {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px var(--shadow-soft);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}
.sketch-frame:hover { transform: rotate(0deg); }
.sketch-lines {
    height: 200px;
    background: repeating-linear-gradient(transparent, transparent 29px, var(--sketch-line) 30px);
    position: relative;
}
.sketch-doodle {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--pencil-gray);
    transform: rotate(-5deg);
    top: 20px; left: 20px;
}

.contact-box {
    background: linear-gradient(135deg, var(--ink-black), #2a2a2a);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-top: 2rem;
}
.contact-box h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 1rem; }
.contact-email {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}
.contact-email:hover, .contact-email:active { background: white; color: var(--ink-black); border-color: white; }
.contact-email svg { width: 20px; height: 20px; }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
}
.social-link:hover { background: white; color: var(--ink-black); transform: translateY(-3px); }
.social-link svg { width: 20px; height: 20px; }

/* Footer */
footer { text-align: center; padding: 2rem; color: var(--pencil-gray); font-size: 0.9rem; }
footer span { font-family: 'Caveat', cursive; font-size: 1.2rem; }

/* Responsive */
@media (max-width: 600px) {
    header { padding: 1.5rem 1rem; }
    main { padding: 1rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .upload-area { padding: 1.5rem 1rem; }
    .admin-panel { padding: 1.5rem; }
    .main-tabs { flex-direction: column; border-radius: 20px; }
    .main-tab { border-radius: 15px; }
    .upload-form { padding: 1.5rem; margin: 1rem; }
}

/* =========================================================================
   Phase 1 — Navbar + Hero
   ========================================================================= */

/* Floating glass navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    pointer-events: none;
    transition: padding var(--dur-base) var(--ease-out);
}
.navbar.scrolled { padding: 0.5rem 1rem; }
.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.55rem 0.7rem 0.55rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(23, 23, 23, 0.06);
    pointer-events: auto;
    transition: padding var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                background var(--dur-base) var(--ease-out);
}
.navbar.scrolled .navbar-inner {
    padding: 0.4rem 0.55rem 0.4rem 1rem;
    box-shadow: 0 12px 40px rgba(23, 23, 23, 0.10);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.navbar-avatar {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--line);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    font-family: var(--font-accent);
    color: var(--muted);
    font-size: 0.95rem;
    transition: width var(--dur-base) var(--ease-out),
                height var(--dur-base) var(--ease-out);
}
.navbar.scrolled .navbar-avatar { width: 28px; height: 28px; font-size: 0.8rem; }
.navbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.navbar-avatar-initials { line-height: 1; }
.navbar-name { white-space: nowrap; }

.navbar-links {
    display: flex;
    gap: 0.2rem;
    list-style: none;
    margin: 0; padding: 0;
}
.navbar-links a {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out);
}
.navbar-links a:hover {
    color: var(--ink);
    background: color-mix(in oklab, var(--ink) 7%, transparent);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.navbar-icon {
    display: flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--muted);
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease-out);
}
.navbar-icon:hover {
    color: var(--ink);
    background: color-mix(in oklab, var(--ink) 7%, transparent);
}
.navbar-icon svg { width: 18px; height: 18px; }
.navbar-icon[hidden] { display: none; }

/* Override the old absolute-positioned toggle styles when inside the navbar. */
.navbar .theme-toggle,
.navbar .admin-toggle {
    position: static;
    width: 38px; height: 38px;
    background: transparent;
    border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
    color: var(--muted);
    opacity: 1;
    cursor: pointer;
}
.navbar .theme-toggle:hover,
.navbar .admin-toggle:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: color-mix(in oklab, var(--ink) 5%, transparent);
}
.navbar .theme-toggle svg,
.navbar .admin-toggle svg {
    width: 16px; height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.navbar .admin-toggle.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}
.navbar .admin-toggle.active svg { stroke: var(--bg); }

@media (max-width: 900px) {
    .navbar-links { display: none; }
}
@media (max-width: 480px) {
    .navbar-name { display: none; }
    .navbar-actions { gap: 0.15rem; }
    .navbar-icon, .navbar .theme-toggle, .navbar .admin-toggle { width: 34px; height: 34px; }
}

/* Hero */
.hero {
    padding: 9rem 1.5rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 900px) {
    .hero { padding: 7rem 1.25rem 3rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.hero-text { position: relative; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    background: color-mix(in oklab, var(--lavender) 12%, transparent);
    border: 1px solid color-mix(in oklab, var(--lavender) 30%, transparent);
    color: color-mix(in oklab, var(--lavender) 75%, var(--ink));
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-tag-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--lavender);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--lavender) 25%, transparent);
    animation: glowPulse 2.4s var(--ease-in-out) infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-tag-dot { animation: none; } }

.hero-eyebrow {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--lavender);
    margin-bottom: 0.4rem;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 1.5rem;
    font-weight: 700;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.02rem, 1.3vw, 1.12rem);
    line-height: 1.7;
    color: color-mix(in oklab, var(--muted) 70%, var(--ink) 25%);
    max-width: 44ch;
    margin: 0 0 2.25rem;
}

/* Hand-drawn scribble + label under subtitle on the left */
.hero-scribble {
    display: none;
    align-items: center;
    gap: 0.6rem;
    color: color-mix(in oklab, var(--muted) 70%, var(--ink) 30%);
    margin: -0.6rem 0 1.5rem;
    opacity: 0.75;
}
.hero-scribble svg { width: 70px; height: 24px; opacity: 0.7; }
.hero-scribble em {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    font-style: normal;
    color: color-mix(in oklab, var(--peach) 55%, var(--ink));
}
@media (min-width: 900px) { .hero-scribble { display: inline-flex; } }

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
    cursor: pointer;
    border: 1px solid transparent;
}
.hero-cta svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.hero-cta-primary { background: var(--ink); color: var(--bg); }
.hero-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(23, 23, 23, 0.2);
}
.hero-cta-primary:hover svg { transform: translateX(2px); }
.hero-cta-secondary {
    color: var(--ink);
    border-color: color-mix(in oklab, var(--ink) 18%, transparent);
}
.hero-cta-secondary:hover {
    background: color-mix(in oklab, var(--ink) 6%, transparent);
    border-color: color-mix(in oklab, var(--ink) 32%, transparent);
    transform: translateY(-1px);
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    margin: 0;
}
@media (max-width: 600px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
}
.stat { display: flex; flex-direction: column-reverse; gap: 0.3rem; margin: 0; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 500;
    margin: 0;
}
.stat[hidden] { display: none; }

/* Hero art (right) */
.hero-art {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 380px;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}
.hero-glow-lavender {
    width: 85%; height: 85%;
    top: 8%; left: 2%;
    background: var(--glow-lavender);
    animation: floatY 9s var(--ease-in-out) infinite;
}
.hero-glow-cyan {
    width: 60%; height: 60%;
    top: -4%; right: -10%;
    background: var(--glow-cyan);
    animation: floatY 11s var(--ease-in-out) infinite;
    animation-delay: -3s;
}
.hero-glow-peach {
    width: 50%; height: 50%;
    bottom: -4%; right: 12%;
    background: var(--glow-peach);
    filter: blur(110px);
    animation: floatY 13s var(--ease-in-out) infinite;
    animation-delay: -6s;
}
[data-theme="dark"] .hero-glow-lavender { background: rgba(139, 124, 246, 0.32); }
[data-theme="dark"] .hero-glow-cyan { background: rgba(122, 215, 208, 0.28); }
[data-theme="dark"] .hero-glow-peach { background: rgba(244, 183, 168, 0.30); }
@media (prefers-reduced-motion: reduce) {
    .hero-glow-lavender, .hero-glow-cyan, .hero-glow-peach { animation: none; }
}

/* Tiny corner crops + handwritten label around the stack — gives "selected works" framing. */
.hero-art-mark {
    position: absolute;
    width: 22px; height: 22px;
    color: color-mix(in oklab, var(--ink) 35%, transparent);
    z-index: 0;
    pointer-events: none;
}
.hero-art-mark svg { width: 100%; height: 100%; }
.hero-art-mark-tl { top: -6px; left: -6px; }
.hero-art-mark-br { bottom: -6px; right: -6px; }
.hero-art-label {
    position: absolute;
    bottom: -1.6rem; left: 0;
    font-family: var(--font-accent);
    font-size: 1rem;
    color: color-mix(in oklab, var(--muted) 80%, var(--ink) 20%);
    letter-spacing: 0.02em;
    z-index: 0;
    pointer-events: none;
}

.hero-stack {
    position: relative;
    width: 100%; height: 100%;
    z-index: 1;
    --mx: 0; --my: 0;
}
.hero-stack-card {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow:
        0 1px 0 color-mix(in oklab, var(--ink) 8%, transparent) inset,
        0 30px 60px rgba(0, 0, 0, 0.22),
        0 60px 120px rgba(139, 124, 246, 0.18);
    background: var(--line);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                filter var(--dur-base) var(--ease-out);
    will-change: transform;
}
[data-theme="dark"] .hero-stack-card {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 80px 140px rgba(139, 124, 246, 0.22);
}
.hero-stack-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Dominant card — bigger, sharper. */
.hero-stack-card:nth-child(1) {
    width: 70%; height: 82%; top: 2%; left: 2%; z-index: 3;
    transform: rotate(-3.2deg) translate(calc(var(--mx) * -10px), calc(var(--my) * -10px));
    animation: floatY 7s var(--ease-in-out) infinite;
}
/* Secondary cards — smaller and slightly desaturated for depth. */
.hero-stack-card:nth-child(2) {
    width: 50%; height: 58%; top: 16%; right: 0; z-index: 2;
    transform: rotate(5deg) translate(calc(var(--mx) * -16px), calc(var(--my) * -16px));
    filter: saturate(0.9) brightness(0.96);
    animation: floatY 9s var(--ease-in-out) infinite;
    animation-delay: -2s;
}
.hero-stack-card:nth-child(3) {
    width: 42%; height: 48%; bottom: 0; left: 22%; z-index: 1;
    transform: rotate(1.5deg) translate(calc(var(--mx) * -22px), calc(var(--my) * -22px));
    filter: saturate(0.85) brightness(0.92);
    animation: floatY 11s var(--ease-in-out) infinite;
    animation-delay: -4s;
}
.hero-stack-card:hover {
    box-shadow:
        0 1px 0 color-mix(in oklab, var(--ink) 8%, transparent) inset,
        0 40px 90px rgba(0, 0, 0, 0.30),
        0 80px 160px rgba(139, 124, 246, 0.30);
    filter: saturate(1) brightness(1);
}
@media (prefers-reduced-motion: reduce) {
    .hero-stack-card:nth-child(1),
    .hero-stack-card:nth-child(2),
    .hero-stack-card:nth-child(3) { animation: none; }
}

.hero-stack-empty {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in oklab, var(--bg) 50%, transparent);
}
.hero-stack-empty[hidden] { display: none; }
.hero-stack-empty em { font-family: var(--font-accent); color: var(--lavender); font-style: normal; font-size: 1.05em; }

/* Featured-toggle button on gallery items (admin mode) */
.gallery-item-feature {
    position: absolute;
    top: 10px;
    right: 56px;
    width: 36px; height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
    z-index: 10;
    -webkit-appearance: none;
    background: rgba(255, 217, 61, 0.45);
    color: var(--ink-black);
}
.admin-mode .gallery-item-feature { display: flex; opacity: 0.85; }
.gallery-item:hover .gallery-item-feature { opacity: 1; }
.gallery-item-feature:hover { transform: scale(1.1); }
.gallery-item-feature svg { width: 18px; height: 18px; }
.gallery-item-feature.is-featured {
    background: var(--accent-gold);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-gold) 35%, transparent);
}

/* Section spacing under fixed navbar */
main { padding-top: 0; }
.gallery-section,
.about-section,
.process-section,
.commissions-section,
.testimonials-section { scroll-margin-top: 110px; }

/* =========================================================================
   Phase 4 — About / Process / Footer
   ========================================================================= */

/* Section eyebrow + heading shared utilities */
.section-eyebrow {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    color: var(--lavender);
    margin: 0 0 0.4rem;
}
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 1rem;
    font-weight: 700;
}
.section-lede {
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.7;
    color: color-mix(in oklab, var(--muted) 72%, var(--ink) 25%);
    max-width: 52ch;
    margin: 0 0 2.5rem;
}

/* About */
.about-section { padding: 5rem 0 4rem; }
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}
.about-portrait-glow {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-peach) 0%, transparent 60%);
    filter: blur(40px);
    z-index: 0;
}
.about-portrait-frame {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(23, 23, 23, 0.18);
    background: var(--line);
    transform: rotate(-1.5deg);
    animation: portraitFloat 8s var(--ease-in-out) infinite;
}
@media (prefers-reduced-motion: reduce) {
    .about-portrait-frame { animation: none; }
}
.about-portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-portrait-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-family: var(--font-accent);
    font-size: 1.3rem;
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
}

@keyframes portraitFloat {
    0%, 100% { transform: rotate(-1.5deg) translateY(0); }
    50% { transform: rotate(-1deg) translateY(-8px); }
}

.about-text { position: relative; }
.about-story {
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.85;
    color: color-mix(in oklab, var(--muted) 65%, var(--ink) 32%);
    white-space: pre-line;
    margin-bottom: 2rem;
    max-width: 56ch;
}
.about-story p + p { margin-top: 1.1rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.about-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    background: color-mix(in oklab, var(--lavender) 12%, transparent);
    color: var(--lavender);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid color-mix(in oklab, var(--lavender) 30%, transparent);
}
.about-tag:nth-child(3n+2) {
    background: color-mix(in oklab, var(--cyan) 12%, transparent);
    color: color-mix(in oklab, var(--cyan) 70%, var(--ink));
    border-color: color-mix(in oklab, var(--cyan) 30%, transparent);
}
.about-tag:nth-child(3n+3) {
    background: color-mix(in oklab, var(--peach) 18%, transparent);
    color: color-mix(in oklab, var(--peach) 50%, var(--ink));
    border-color: color-mix(in oklab, var(--peach) 35%, transparent);
}

/* Process */
.process-section {
    padding: 5rem 0 4rem;
    position: relative;
}
.process-section::before {
    content: '';
    position: absolute;
    inset: -10% -20%;
    background:
        radial-gradient(40% 40% at 18% 30%, var(--glow-lavender), transparent 70%),
        radial-gradient(40% 40% at 82% 70%, var(--glow-cyan), transparent 70%);
    filter: blur(40px);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
}
[data-theme="dark"] .process-section::before { opacity: 1; }
.process-empty,
.commissions-empty {
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.process-empty[hidden],
.commissions-empty[hidden] { display: none; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}
/* Animated thread stitching the four steps together. */
.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        color-mix(in oklab, var(--lavender) 50%, transparent) 0 6px,
        transparent 6px 12px
    );
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } .process-steps::before { display: none; } }
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }

.process-step {
    position: relative;
    background: color-mix(in oklab, var(--bg) 60%, white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 32px var(--shadow-soft);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    z-index: 1;
}
[data-theme="dark"] .process-step { background: color-mix(in oklab, var(--bg) 90%, var(--line)); }
.process-step:hover {
    transform: translateY(-6px);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.22),
        0 50px 100px color-mix(in oklab, var(--lavender) 18%, transparent);
    border-color: color-mix(in oklab, var(--lavender) 35%, var(--line));
}
.process-step-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--line);
}
.process-step-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.process-step-image-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-family: var(--font-accent);
}
.process-step-number {
    position: absolute;
    top: 0.8rem; left: 0.8rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-display);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    box-shadow:
        0 0 0 4px color-mix(in oklab, var(--bg) 70%, transparent),
        0 0 0 5px color-mix(in oklab, var(--lavender) 40%, transparent),
        0 8px 18px rgba(0,0,0,0.25);
}
.process-step-body { padding: 1rem 1.2rem 1.2rem; }
.process-step-label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.3rem;
}
.process-step-caption {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

/* Before/after compare slider */
.process-compare[hidden] { display: none; }
.process-compare-title {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--lavender);
    margin: 0 0 1rem;
    text-align: center;
}
.compare-frame {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 60px var(--shadow-soft);
    user-select: none;
    --pos: 50%;
}
.compare-base,
.compare-overlay img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.compare-overlay {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
    -webkit-clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-handle {
    position: absolute;
    top: 50%;
    left: var(--pos);
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--ink);
    color: var(--ink);
    cursor: ew-resize;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 2;
    -webkit-appearance: none;
}
.compare-handle::before,
.compare-handle::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--ink);
    top: 50%;
    height: 200vh;
    transform: translateY(-50%);
}
.compare-handle::before { right: calc(100% + 1px); }
.compare-handle::after { left: calc(100% + 1px); }
.compare-handle svg { width: 18px; height: 18px; }

/* Commissions */
.commissions-section { padding: 5rem 0 4rem; }
.commission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.commission-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 36px var(--shadow-soft);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out);
}
[data-theme="dark"] .commission-card {
    background: color-mix(in oklab, var(--bg) 88%, var(--line));
}
.commission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 56px rgba(23, 23, 23, 0.16);
}
.commission-card-image {
    aspect-ratio: 4 / 3;
    background: var(--line);
    overflow: hidden;
}
.commission-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.commission-card:hover .commission-card-image img { transform: scale(1.04); }
.commission-card-image-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-family: var(--font-accent);
    font-size: 1.1rem;
}
.commission-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}
.commission-card-tier {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}
.commission-card-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    flex: 1;
}
.commission-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
}
.commission-card-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}
.commission-card-delivery {
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.commission-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
    margin-top: 0.5rem;
}
.commission-card-cta:hover { transform: translateY(-2px); background: var(--lavender); color: white; }

/* Testimonials */
.testimonials-section { padding: 5rem 0 4rem; }
.testimonials-section[hidden] { display: none; }
.testimonial-carousel { position: relative; max-width: 900px; margin: 0 auto; }
.testimonial-track {
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.testimonial-track-inner {
    display: flex;
    transition: transform var(--dur-slow) var(--ease-out);
}
.testimonial-card {
    flex: 0 0 100%;
    padding: 3rem 2.5rem;
    background: color-mix(in oklab, var(--bg) 60%, white);
    border-radius: var(--radius-lg);
    text-align: center;
}
[data-theme="dark"] .testimonial-card { background: color-mix(in oklab, var(--bg) 88%, var(--line)); }
.testimonial-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.55;
    color: var(--ink);
    margin: 0 0 1.5rem;
    quotes: "“" "”";
}
.testimonial-quote::before { content: open-quote; opacity: 0.4; margin-right: 0.2em; }
.testimonial-quote::after { content: close-quote; opacity: 0.4; margin-left: 0.2em; }
.testimonial-client {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 500;
}
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.testimonial-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-fast) var(--ease-out);
    -webkit-appearance: none;
}
.testimonial-btn:hover { color: var(--ink); border-color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.testimonial-btn svg { width: 16px; height: 16px; }
.testimonial-dots { display: flex; gap: 0.4rem; }
.testimonial-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--line);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
}
.testimonial-dot.active { background: var(--lavender); transform: scale(1.4); }

/* Footer */
.site-footer {
    position: relative;
    padding: 5rem 1.5rem 2rem;
    border-top: 1px solid var(--line);
    margin-top: 5rem;
    overflow: hidden;
    background:
        radial-gradient(60% 60% at 50% 0%, var(--glow-lavender), transparent 65%),
        radial-gradient(40% 80% at 100% 100%, var(--glow-cyan), transparent 65%);
}
[data-theme="dark"] .site-footer {
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(139, 124, 246, 0.18), transparent 65%),
        radial-gradient(40% 80% at 100% 100%, rgba(122, 215, 208, 0.12), transparent 65%);
}
/* Hairline ornament that opens the footer like a closing curtain. */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: min(440px, 80%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in oklab, var(--lavender) 60%, transparent) 30%,
        color-mix(in oklab, var(--peach) 60%, transparent) 50%,
        color-mix(in oklab, var(--cyan) 60%, transparent) 70%,
        transparent 100%);
    opacity: 0.7;
}
.footer-doodle {
    position: absolute;
    color: var(--lavender);
    opacity: 0.18;
    pointer-events: none;
}
.footer-doodle svg { width: 100%; height: 100%; }
.footer-doodle-1 { top: 2rem; left: 4%; width: 90px; animation: floatY 9s var(--ease-in-out) infinite; }
.footer-doodle-2 { bottom: 3rem; right: 6%; width: 70px; color: var(--cyan); animation: floatY 11s var(--ease-in-out) infinite; animation-delay: -3s; }
.footer-doodle-3 { top: 40%; left: 48%; width: 40px; color: var(--peach); opacity: 0.20; animation: floatY 13s var(--ease-in-out) infinite; animation-delay: -5s; }
@media (prefers-reduced-motion: reduce) {
    .footer-doodle-1, .footer-doodle-2, .footer-doodle-3 { animation: none; }
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.8fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand {}
.footer-signature {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-style: italic;
    color: var(--ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}
.footer-signature::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 70%; height: 2px;
    background: linear-gradient(90deg, var(--lavender), var(--peach));
    border-radius: 2px;
    transform-origin: left;
    animation: shimmerLine 5s var(--ease-in-out) infinite;
}
@media (prefers-reduced-motion: reduce) { .footer-signature::after { animation: none; transform: scaleX(1); } }
.footer-quote {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
    max-width: 30ch;
}

.footer-personality {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-card {
    background: color-mix(in oklab, var(--bg) 70%, white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
    color: inherit;
    text-decoration: none;
}
.footer-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--lavender) 35%, var(--line));
}
.footer-card-link { cursor: pointer; }
.footer-card-link:hover {
    box-shadow: 0 10px 24px color-mix(in oklab, var(--peach) 22%, transparent);
}
.footer-card-arrow {
    width: 16px; height: 16px;
    margin-left: auto;
    color: var(--muted);
    opacity: 0.55;
    transition: transform var(--dur-fast) var(--ease-out),
                opacity var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
    flex-shrink: 0;
}
.footer-card-link:hover .footer-card-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
    color: color-mix(in oklab, var(--peach) 60%, var(--ink));
}
[data-theme="dark"] .footer-card { background: color-mix(in oklab, var(--bg) 90%, var(--line)); }
.footer-card-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in oklab, var(--lavender) 15%, transparent);
    color: var(--lavender);
    position: relative;
}
.footer-card-icon svg { width: 18px; height: 18px; }
.footer-card-bars {
    position: absolute;
    bottom: -3px; right: -3px;
    display: inline-flex; align-items: end; gap: 1.5px;
    background: var(--bg);
    padding: 1px 2px;
    border-radius: 4px;
    height: 12px;
}
.footer-card-bars i {
    display: inline-block;
    width: 2px;
    background: var(--lavender);
    border-radius: 1px;
    animation: barEq 0.9s ease-in-out infinite;
}
.footer-card-bars i:nth-child(1) { height: 5px; animation-delay: -0.2s; }
.footer-card-bars i:nth-child(2) { height: 8px; animation-delay: -0.6s; }
.footer-card-bars i:nth-child(3) { height: 4px; animation-delay: -0.4s; }
.footer-card-bars i:nth-child(4) { height: 7px; animation-delay: -0.8s; }
@keyframes barEq {
    0%, 100% { transform: scaleY(0.4); }
    50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
    .footer-card-bars i { animation: none; transform: scaleY(0.7); }
}
#footer-anime-card .footer-card-icon {
    background: color-mix(in oklab, var(--peach) 18%, transparent);
    color: color-mix(in oklab, var(--peach) 60%, var(--ink));
}
.footer-card[hidden] { display: none; }
.footer-card-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 0.2rem;
}
.footer-card-value {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
    margin: 0;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-self: end;
}
@media (max-width: 900px) { .footer-socials { align-self: start; } }
.footer-socials a {
    display: flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: color-mix(in oklab, var(--ink) 6%, transparent);
    color: var(--ink);
    transition: all var(--dur-fast) var(--ease-out);
    text-decoration: none;
}
.footer-socials a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.footer-socials a svg { width: 18px; height: 18px; }

.footer-baseline {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
}
.footer-baseline span:first-child { font-family: var(--font-accent); font-size: 1rem; }

/* =========================================================================
   Phase 5 — Admin tabs for Process / Commissions / Testimonials
   ========================================================================= */

.admin-list { display: flex; flex-direction: column; gap: 1rem; }
.admin-list-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 2px dashed var(--sketch-line);
    border-radius: var(--radius-md);
}
.admin-row {
    background: var(--paper-cream);
    border: 1px solid var(--sketch-line);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.8rem;
}
.admin-row .form-row { gap: 0.75rem; }
.admin-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.admin-row-thumb {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--sketch-line);
    flex-shrink: 0;
}
.admin-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-add-btn {
    background: transparent;
    color: var(--muted);
    border: 1px dashed color-mix(in oklab, var(--ink) 22%, transparent);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-appearance: none;
    transition: background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}
.admin-add-btn:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: color-mix(in oklab, var(--ink) 4%, transparent);
}

/* =========================================================================
   Phase 6 — Mobile bottom nav
   ========================================================================= */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 99;
    padding: 0.5rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 40px rgba(23, 23, 23, 0.18);
    justify-content: space-around;
}
.mobile-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.55rem 0.4rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.mobile-nav-link:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.mobile-nav-link svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
    .mobile-nav { display: flex; }
    main { padding-bottom: 5rem; }
    body { padding-bottom: 5rem; }
}

/* Admin self-portrait upload */
.portrait-edit {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 1rem;
}
.portrait-edit-preview {
    width: 80px; height: 100px;
    border-radius: var(--radius-sm);
    background: var(--sketch-line);
    overflow: hidden;
    border: 2px solid var(--accent-teal);
}
.portrait-edit-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =====================================================================
 * Payments — checkout modal, hire/tip strip, sale badge, orders table
 * ===================================================================== */

/* --- Commission card: extra Pay button --- */
.commission-card-cta-pay {
    background: var(--lavender);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    box-shadow: 0 8px 22px var(--glow-lavender);
}
.commission-card-cta-pay:hover {
    background: var(--ink);
    color: var(--bg);
    box-shadow: 0 10px 26px var(--shadow-soft);
}
.commission-card-cta-secondary {
    display: inline-flex;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    color: var(--muted);
    font-size: 0.82rem;
    text-decoration: none;
    border-bottom: 1px dashed var(--line);
    align-self: flex-start;
}
.commission-card-cta-secondary:hover { color: var(--ink); }

/* --- Hire / Tip strip --- */
.support-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}
.support-strip[hidden] { display: none; }
.support-card {
    background: var(--paper-cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}
.support-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, var(--glow-lavender), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}
.support-card-tip::before {
    background: radial-gradient(ellipse at top right, var(--glow-peach), transparent 60%);
}
.support-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
    margin: 0;
    position: relative;
}
.support-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    position: relative;
}
.support-card .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
    position: relative;
}
@media (max-width: 700px) {
    .support-strip { grid-template-columns: 1fr; }
}

/* --- Gallery sale badge --- */
.gallery-item-sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px var(--shadow-soft);
    pointer-events: none;
}
.gallery-item-sale-badge::before {
    content: '●';
    margin-right: 0.35rem;
    color: var(--cyan);
}

/* --- Art modal buy block --- */
.art-modal-buy {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: color-mix(in oklab, var(--lavender) 8%, transparent);
}
.art-modal-buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.art-modal-buy-label {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.art-modal-buy-price {
    margin: 0.15rem 0 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink);
}
.art-modal-buy-note {
    margin: 0.7rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

/* --- Payment modal --- */
.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}
.payment-modal.active { display: flex; }
.payment-form {
    background: var(--paper-cream);
    color: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}
.payment-close {
    position: absolute;
    top: 0.85rem; right: 0.95rem;
    width: 36px; height: 36px;
    border: none; background: transparent;
    font-size: 1.6rem; line-height: 1;
    color: var(--muted);
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--dur-fast);
}
.payment-close:hover { background: var(--line); color: var(--ink); }
.payment-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0.25rem 0 0.4rem;
    color: var(--ink);
}
.payment-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.payment-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}
.payment-amount-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.payment-amount-value {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--ink);
}
.payment-amount-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.payment-currency-prefix {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--muted);
}
.payment-amount-input-wrap input {
    flex: 1;
    font-size: 1.2rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
}
.payment-amount-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.payment-tip-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.tip-preset-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    transition: all var(--dur-fast);
}
.tip-preset-btn:hover { border-color: var(--ink); }
.tip-preset-btn.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.payment-error {
    margin: 0.75rem 0 0;
    color: var(--danger-red);
    font-size: 0.88rem;
    padding: 0.6rem 0.8rem;
    background: color-mix(in oklab, var(--danger-red) 10%, transparent);
    border-radius: var(--radius-sm);
}
.payment-note {
    margin: 1rem 0 0.5rem;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
}
.payment-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    margin-left: 0.4rem;
    animation: paymentSpin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes paymentSpin { to { transform: rotate(360deg); } }

/* --- Toast --- */
.payment-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    max-width: 420px;
    width: calc(100% - 2rem);
    animation: paymentToastIn 0.45s var(--ease-out);
}
.payment-toast[hidden] { display: none; }
.payment-toast-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: var(--bg);
    box-shadow: var(--shadow-elevated);
}
.payment-toast-success .payment-toast-inner { background: linear-gradient(135deg, #1f8b78, #178a76); color: #fff; }
.payment-toast-cancel .payment-toast-inner { background: var(--ink); color: var(--bg); }
.payment-toast-icon {
    flex: 0 0 auto;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.payment-toast-title { margin: 0; font-weight: 600; font-size: 0.95rem; }
.payment-toast-body  { margin: 0.15rem 0 0; font-size: 0.85rem; opacity: 0.85; line-height: 1.45; }
.payment-toast-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}
.payment-toast-close:hover { opacity: 1; }
@keyframes paymentToastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } }

/* --- Orders admin table --- */
.orders-table-wrap { overflow-x: auto; margin-top: 0.5rem; }
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.orders-table th, .orders-table td {
    text-align: left;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.orders-table th {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}
.orders-table tr:hover td { background: color-mix(in oklab, var(--lavender) 4%, transparent); }
.orders-empty {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem !important;
    font-style: italic;
}
.order-status {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--line);
    color: var(--muted);
}
.order-status-paid     { background: color-mix(in oklab, var(--cyan) 30%, transparent); color: #0e6d63; }
.order-status-pending  { background: color-mix(in oklab, var(--accent-gold) 30%, transparent); color: #6d5500; }
.order-status-failed   { background: color-mix(in oklab, var(--danger-red) 25%, transparent); color: #7a1f15; }
.order-status-refunded { background: color-mix(in oklab, var(--peach) 35%, transparent); color: #7a3625; }

[data-theme="dark"] .order-status-paid    { color: #b6f1e7; }
[data-theme="dark"] .order-status-pending { color: #f4dc7b; }
[data-theme="dark"] .order-status-failed  { color: #f5b3aa; }
[data-theme="dark"] .order-status-refunded{ color: #f5c7b3; }

/* Mobile adjustments */
@media (max-width: 640px) {
    .payment-form { padding: 1.5rem 1.25rem; }
    .payment-title { font-size: 1.35rem; }
    .payment-amount-value { font-size: 1.4rem; }
    .orders-table { font-size: 0.82rem; }
    .orders-table th, .orders-table td { padding: 0.5rem 0.4rem; }
}

/* =====================================================================
 * Mission Board — slot bar, tier badge, contract card extensions
 * ===================================================================== */

.mission-contract .commission-card-image { position: relative; }
.mission-badge {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--lavender), var(--cyan));
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px var(--glow-lavender);
    z-index: 2;
}
.mission-slots {
    margin: 0.75rem 0 0.5rem;
}
.mission-slots-bar {
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.mission-slots-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--lavender));
    border-radius: 999px;
    transition: width var(--dur-base) var(--ease-out);
}
.mission-slots-label {
    margin: 0.4rem 0 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.mission-wait {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    font-style: italic;
}
.commission-card-cta-full {
    background: var(--line);
    color: var(--muted);
    cursor: not-allowed;
    border: none;
}
.commission-card-cta-full:hover { transform: none; }

/* =====================================================================
 * Intake modal — Mission Board commission booking
 * ===================================================================== */

.intake-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}
.intake-modal.active { display: flex; }
.intake-form-wrap {
    background: var(--paper-cream);
    color: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: 2.25rem 2rem 2rem;
    max-width: 720px;
    width: 100%;
    margin: auto;
    position: relative;
}
.intake-header { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.intake-header .section-eyebrow {
    background: linear-gradient(90deg, var(--lavender), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.15em;
}
.intake-tier-name {
    font-family: var(--font-display);
    font-size: 1.9rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--ink);
}
.intake-tier-summary {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.intake-tier-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.intake-pill {
    padding: 0.3rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: var(--ink);
    font-weight: 500;
}
.intake-pill-slots { background: color-mix(in oklab, var(--cyan) 18%, transparent); border-color: transparent; }
.intake-pill-wait  { font-style: italic; color: var(--muted); }
.intake-tier-terms {
    margin-top: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: color-mix(in oklab, var(--lavender) 6%, transparent);
    border-left: 3px solid var(--lavender);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.intake-section {
    border: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.intake-section legend {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.75rem;
    padding: 0;
}
.intake-section-lede {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.85rem;
}
.intake-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    cursor: pointer;
}
.intake-checkbox input { width: auto; }
.form-optional { color: var(--muted); font-weight: normal; font-size: 0.85em; }
.form-hint { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.8rem; }

.intake-rush-group { display: flex; flex-direction: column; justify-content: flex-end; }

/* Reference upload zone */
.intake-refs-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 2px dashed var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--dur-fast);
    text-align: center;
}
.intake-refs-drop:hover { border-color: var(--lavender); background: color-mix(in oklab, var(--lavender) 4%, var(--bg)); }
.intake-refs-drop.dragging { border-color: var(--lavender); background: color-mix(in oklab, var(--lavender) 10%, transparent); }
.intake-refs-drop-text { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.intake-refs-drop-hint { font-size: 0.8rem; color: var(--muted); }
.intake-refs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}
.intake-ref-item {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}
.intake-ref-item img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    display: block;
}
.intake-ref-meta {
    padding: 0.3rem 0.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.intake-ref-name {
    font-size: 0.7rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.intake-ref-size { font-size: 0.65rem; color: var(--muted); }
.intake-ref-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pay-mode picker */
.intake-pay-options { display: grid; gap: 0.6rem; }
.intake-pay-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "radio title amount" "radio sub sub";
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--dur-fast);
}
.intake-pay-option input[type="radio"] { grid-area: radio; width: auto; }
.intake-pay-option strong { grid-area: title; font-weight: 600; }
.intake-pay-option span { grid-area: amount; font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.intake-pay-option small { grid-area: sub; color: var(--muted); font-size: 0.8rem; }
.intake-pay-option:hover { border-color: var(--ink); }
.intake-pay-option.active {
    border-color: var(--lavender);
    background: color-mix(in oklab, var(--lavender) 7%, transparent);
    box-shadow: 0 4px 14px var(--glow-lavender);
}

@media (max-width: 640px) {
    .intake-form-wrap { padding: 1.5rem 1.25rem; }
    .intake-tier-name { font-size: 1.5rem; }
    .intake-pay-option { grid-template-columns: auto 1fr; grid-template-areas: "radio title" "radio sub" "radio amount"; }
    .intake-pay-option span { font-size: 0.9rem; }
}

/* =====================================================================
 * Public order tracking page
 * ===================================================================== */

.order-page { padding: 5rem 0 4rem; min-height: 70vh; }
.order-page-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.order-page-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    margin: 0.5rem 0 1.25rem;
    color: var(--ink);
}

.order-banner {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
}
.order-banner-success {
    background: color-mix(in oklab, var(--cyan) 18%, transparent);
    color: #0e6d63;
    border-left: 3px solid var(--cyan);
}
.order-banner-cancel {
    background: color-mix(in oklab, var(--accent-gold) 16%, transparent);
    color: #6d5500;
    border-left: 3px solid var(--accent-gold);
}
[data-theme="dark"] .order-banner-success { color: #b6f1e7; }
[data-theme="dark"] .order-banner-cancel { color: #f4dc7b; }

.order-card {
    background: var(--paper-cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}
.order-card-h {
    font-family: var(--font-display);
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--ink);
}
.order-card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.order-card-tier {
    font-family: var(--font-display);
    margin: 0.25rem 0 0;
    font-size: 1.7rem;
    color: var(--ink);
}
.order-stage-badge {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--line);
    color: var(--muted);
}
.order-stage-pending_review  { background: color-mix(in oklab, var(--accent-gold) 30%, transparent); color: #6d5500; }
.order-stage-accepted        { background: color-mix(in oklab, var(--cyan) 22%, transparent);        color: #0e6d63; }
.order-stage-sketching       { background: color-mix(in oklab, var(--lavender) 22%, transparent);    color: #4b3e9c; }
.order-stage-waiting_payment { background: color-mix(in oklab, var(--peach) 28%, transparent);       color: #7a3625; }
.order-stage-rendering       { background: color-mix(in oklab, var(--lavender) 30%, transparent);    color: #3b2e88; }
.order-stage-revisions       { background: color-mix(in oklab, var(--accent-gold) 24%, transparent); color: #6d5500; }
.order-stage-completed       { background: color-mix(in oklab, var(--cyan) 32%, transparent);        color: #0e6d63; }
.order-stage-delivered       { background: var(--ink); color: var(--bg); }
.order-stage-cancelled       { background: color-mix(in oklab, var(--danger-red) 20%, transparent);  color: #7a1f15; }

[data-theme="dark"] .order-stage-pending_review,
[data-theme="dark"] .order-stage-revisions    { color: #f4dc7b; }
[data-theme="dark"] .order-stage-accepted,
[data-theme="dark"] .order-stage-completed    { color: #b6f1e7; }
[data-theme="dark"] .order-stage-sketching,
[data-theme="dark"] .order-stage-rendering    { color: #cfc6ff; }
[data-theme="dark"] .order-stage-waiting_payment { color: #f5c7b3; }
[data-theme="dark"] .order-stage-cancelled    { color: #f5b3aa; }

.rush-flag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--accent-coral);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.order-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 1rem 0 0;
}
.order-card-meta div { display: flex; flex-direction: column; }
.order-card-meta dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.order-card-meta dd { margin: 0.15rem 0 0; font-family: var(--font-body); color: var(--ink); }

/* Timeline */
.order-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    counter-reset: stage;
    position: relative;
}
.order-timeline-step {
    flex: 1 1 110px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    counter-increment: stage;
    position: relative;
}
.order-timeline-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--line);
    border: 2px solid var(--line);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.order-timeline-step::before {
    content: '';
    position: absolute;
    left: 50%; top: 11px;
    width: 100%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}
.order-timeline-step:last-child::before { display: none; }
.order-timeline-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    line-height: 1.3;
}
.order-timeline-done .order-timeline-dot,
.order-timeline-done::before {
    background: var(--cyan);
    border-color: var(--cyan);
}
.order-timeline-done .order-timeline-label { color: var(--ink); }
.order-timeline-current .order-timeline-dot {
    background: var(--lavender);
    border-color: var(--lavender);
    box-shadow: 0 0 0 6px var(--glow-lavender);
    animation: timelinePulse 2s ease-out infinite;
}
.order-timeline-current .order-timeline-label {
    color: var(--ink);
    font-weight: 600;
}
@keyframes timelinePulse {
    0% { box-shadow: 0 0 0 0 var(--glow-lavender); }
    100% { box-shadow: 0 0 0 12px transparent; }
}

.order-latest-note {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    background: color-mix(in oklab, var(--lavender) 6%, transparent);
    border-left: 3px solid var(--lavender);
    border-radius: var(--radius-sm);
}
.order-latest-note-label {
    margin: 0 0 0.3rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.order-latest-note-body { margin: 0; line-height: 1.55; color: var(--ink); }

.order-final-cta {
    margin-top: 1.25rem;
    padding: 1.25rem 1.25rem;
    background: linear-gradient(135deg, color-mix(in oklab, var(--peach) 18%, transparent), color-mix(in oklab, var(--accent-gold) 12%, transparent));
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in oklab, var(--peach) 25%, var(--line));
}
.order-final-cta p { margin: 0 0 0.75rem; line-height: 1.55; }
.order-final-cta-note { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0 !important; }

/* Activity history */
.order-history {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--line);
    padding-left: 1.25rem;
}
.order-history li { margin-bottom: 1.25rem; position: relative; }
.order-history li::before {
    content: '';
    position: absolute;
    left: -1.4rem;
    top: 0.4rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--lavender);
    border: 2px solid var(--bg);
}
.order-history-stage { margin: 0 0 0.25rem; font-weight: 600; color: var(--ink); }
.order-history-date { color: var(--muted); font-size: 0.78rem; font-weight: normal; }
.order-history-note { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.92rem; }

/* Brief block */
.order-brief-text { margin-top: 1rem; }
.order-brief-label {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.order-brief-text p { margin: 0; line-height: 1.55; color: var(--ink); }

.order-refs { margin-top: 1.25rem; }
.order-refs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}
.order-ref-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    display: block;
}
.order-ref-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base); }
.order-ref-thumb:hover img { transform: scale(1.05); }

/* Find-my-order form */
.order-find {
    background: var(--paper-cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}
.order-find-lede { margin: 0 0 1.25rem; color: var(--muted); }
.order-find-status {
    margin: 1rem 0 0;
    padding: 0.7rem 0.9rem;
    background: color-mix(in oklab, var(--cyan) 14%, transparent);
    color: var(--ink);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* =====================================================================
 * Admin order detail panel
 * ===================================================================== */

.order-row { cursor: default; }
.order-detail-row td { padding: 0 !important; background: var(--bg); }
.order-detail-loading {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-style: italic;
}
.order-detail {
    padding: 1.5rem 1.25rem;
    border-top: 2px solid var(--lavender);
    border-bottom: 1px solid var(--line);
}
.order-detail-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
}
.order-detail h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin: 0 0 0.75rem;
    color: var(--ink);
}
.order-detail h5 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 0.4rem;
}
.order-detail-block { margin-top: 0.85rem; }
.order-detail-block p { margin: 0; line-height: 1.55; font-size: 0.92rem; }

.order-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.order-detail-actions .btn { font-size: 0.85rem; padding: 0.5rem 0.9rem; }
.order-detail-status {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--accent-teal);
}

.order-detail-history {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--line);
    padding-left: 1rem;
    max-height: 280px;
    overflow-y: auto;
}
.order-detail-history li { margin-bottom: 0.85rem; font-size: 0.88rem; }

.order-intake-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem 1rem;
    margin: 0;
}
.order-intake-meta div { display: flex; flex-direction: column; }
.order-intake-meta dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.order-intake-meta dd {
    margin: 0.1rem 0 0;
    font-size: 0.92rem;
    color: var(--ink);
}

.order-detail-refs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.order-ref-thumb-admin {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    display: block;
}
.order-ref-thumb-admin img { width: 100%; height: 100%; object-fit: cover; }

/* Pipeline pill in admin orders table */
.order-pipeline {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--line);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.order-pipeline-pending_review  { background: color-mix(in oklab, var(--accent-gold) 24%, transparent); color: #6d5500; }
.order-pipeline-accepted        { background: color-mix(in oklab, var(--cyan) 18%, transparent); color: #0e6d63; }
.order-pipeline-sketching,
.order-pipeline-rendering       { background: color-mix(in oklab, var(--lavender) 22%, transparent); color: #4b3e9c; }
.order-pipeline-waiting_payment { background: color-mix(in oklab, var(--peach) 22%, transparent); color: #7a3625; }
.order-pipeline-revisions       { background: color-mix(in oklab, var(--accent-gold) 18%, transparent); color: #6d5500; }
.order-pipeline-completed       { background: color-mix(in oklab, var(--cyan) 28%, transparent); color: #0e6d63; }
.order-pipeline-delivered       { background: var(--ink); color: var(--bg); }
.order-pipeline-cancelled       { background: color-mix(in oklab, var(--danger-red) 18%, transparent); color: #7a1f15; }

[data-theme="dark"] .order-pipeline-pending_review,
[data-theme="dark"] .order-pipeline-revisions    { color: #f4dc7b; }
[data-theme="dark"] .order-pipeline-accepted,
[data-theme="dark"] .order-pipeline-completed    { color: #b6f1e7; }
[data-theme="dark"] .order-pipeline-sketching,
[data-theme="dark"] .order-pipeline-rendering    { color: #cfc6ff; }
[data-theme="dark"] .order-pipeline-waiting_payment { color: #f5c7b3; }
[data-theme="dark"] .order-pipeline-cancelled    { color: #f5b3aa; }

.order-rush-pill {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    background: var(--accent-coral);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-left: 0.25rem;
}

.admin-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.92rem;
}
.admin-checkbox-row input { width: auto; }

@media (max-width: 800px) {
    .order-detail-grid { grid-template-columns: 1fr; }
    .order-detail-history { max-height: none; }
}

/* =====================================================================
 * Public Shop section
 * ===================================================================== */

.shop-section { padding: 5rem 0 4rem; }
.shop-section[hidden] { display: none; }

.shop-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem auto;
    max-width: 1100px;
    padding: 0 1rem;
}
.shop-filter-chip {
    padding: 0.45rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper-cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--dur-fast);
}
.shop-filter-chip:hover { border-color: var(--ink); }
.shop-filter-chip.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.shop-empty {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem;
    font-style: italic;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.shop-card {
    background: var(--paper-cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}
.shop-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg);
    overflow: hidden;
}
.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.shop-card:hover .shop-card-image img { transform: scale(1.04); }
.shop-card-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-family: var(--font-accent);
    font-size: 1.2rem;
}
.shop-card-cat {
    position: absolute;
    top: 0.6rem; left: 0.6rem;
    padding: 0.25rem 0.7rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.shop-card-body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.shop-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0;
    color: var(--ink);
}
.shop-card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
}
.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 0.75rem;
}
.shop-card-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink);
}
.shop-card-buy {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
}
.shop-card-coming {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: italic;
}

/* =====================================================================
 * Admin shop manager
 * ===================================================================== */

.product-admin-row { padding: 1rem; }
.product-admin-row-grid {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1rem;
    align-items: center;
}
.product-admin-thumb {
    width: 90px; height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
}
.product-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-admin-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: center;
}
.product-admin-meta { color: var(--muted); font-size: 0.82rem; }
.product-admin-pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--line);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.product-admin-pill-ok   { background: color-mix(in oklab, var(--cyan) 30%, transparent); color: #0e6d63; }
.product-admin-pill-warn { background: color-mix(in oklab, var(--accent-gold) 30%, transparent); color: #6d5500; }
[data-theme="dark"] .product-admin-pill-ok    { color: #b6f1e7; }
[data-theme="dark"] .product-admin-pill-warn  { color: #f4dc7b; }
.product-admin-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
@media (max-width: 600px) {
    .product-admin-row-grid {
        grid-template-columns: 1fr;
    }
    .product-admin-actions { flex-direction: row; }
}

/* New/Edit product overlay */
.product-form-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}
.product-form-card {
    background: var(--paper-cream);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: 2rem;
    max-width: 640px;
    width: 100%;
    margin: auto;
    position: relative;
}
.product-form-preview-current {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.product-form-preview-current img {
    width: 60px; height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}
.product-form-preview-current small {
    color: var(--muted);
    font-size: 0.78rem;
}

/* =====================================================================
 * PayPal — secondary button, provider toggle, provider pill
 * ===================================================================== */

/* PayPal button — sits below the primary Stripe button in the payment modal.
   Uses PayPal's brand colors so it's instantly recognizable. */
.btn-paypal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem 1.2rem;
    background: #ffc439;
    color: #003087;
    border: 1px solid #ffc439;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast);
}
.btn-paypal:hover:not(:disabled) {
    background: #ffb014;
    border-color: #ffb014;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 196, 57, 0.4);
}
.btn-paypal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn-paypal[hidden] { display: none; }
.paypal-logo {
    height: 22px;
    width: auto;
}

/* When the modal has both Stripe + PayPal buttons, the form-buttons row stays a row
   and the PayPal button stacks below it. */
.payment-form-buttons { margin-top: 1rem; }

/* Intake provider toggle (Stripe / PayPal) */
.intake-provider-row {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line);
}
.intake-provider-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.intake-provider-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--dur-fast);
    font-size: 0.9rem;
}
.intake-provider-option input[type="radio"] { width: auto; margin: 0; }
.intake-provider-option:hover { border-color: var(--ink); }
.intake-provider-option.active {
    border-color: var(--lavender);
    background: color-mix(in oklab, var(--lavender) 7%, transparent);
}
.intake-provider-option[data-provider="paypal"].active {
    border-color: #003087;
    background: color-mix(in oklab, #ffc439 18%, transparent);
}

/* Provider pill in admin orders table */
.order-provider-pill {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-left: 0.35rem;
    vertical-align: middle;
}
.order-provider-stripe {
    background: color-mix(in oklab, #635bff 18%, transparent);
    color: #4b41d9;
}
.order-provider-paypal {
    background: color-mix(in oklab, #ffc439 28%, transparent);
    color: #003087;
}
[data-theme="dark"] .order-provider-stripe { color: #b0acff; }
[data-theme="dark"] .order-provider-paypal { color: #ffd97a; }

/* =====================================================================
 * Admin Dashboard
 * ===================================================================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dashboard-title {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.5rem;
    color: var(--ink);
}
.dashboard-subtitle {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.dashboard-loading {
    text-align: center;
    color: var(--muted);
    padding: 3rem 1rem;
    font-style: italic;
}
.dashboard-empty {
    color: var(--muted);
    font-size: 0.88rem;
    padding: 1rem 0;
    margin: 0;
    font-style: italic;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.kpi-card {
    background: var(--paper-cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-card);
}
.kpi-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}
.kpi-value {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1.2;
}
.kpi-hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
}
.kpi-trend {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
}
.kpi-trend-up   { background: color-mix(in oklab, var(--cyan) 28%, transparent); color: #0e6d63; }
.kpi-trend-down { background: color-mix(in oklab, var(--peach) 28%, transparent); color: #7a3625; }
[data-theme="dark"] .kpi-trend-up   { color: #b6f1e7; }
[data-theme="dark"] .kpi-trend-down { color: #f5c7b3; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 800px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dashboard-card {
    background: var(--paper-cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}
.dashboard-card-wide { grid-column: 1 / -1; }
.dashboard-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
}
.dashboard-card-head h4 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.05rem;
    color: var(--ink);
}
.dashboard-card-meta {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Bar chart */
.dashboard-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 160px;
    padding-top: 0.5rem;
}
.chart-col {
    flex: 1;
    min-width: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
    justify-content: flex-end;
}
.chart-bar {
    width: 70%;
    max-width: 28px;
    background: linear-gradient(180deg, var(--lavender), var(--cyan));
    border-radius: 4px 4px 0 0;
    transition: height var(--dur-base) var(--ease-out);
    min-height: 2px;
}
.chart-col:hover .chart-bar { filter: brightness(1.1); }
.chart-x {
    font-size: 0.65rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    transform: rotate(-30deg) translateY(4px);
    transform-origin: top left;
    white-space: nowrap;
}

/* Pipeline rows */
.pipeline-row, .capacity-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}
.pipeline-row-label, .capacity-row-label {
    font-size: 0.85rem;
    color: var(--ink);
}
.pipeline-row-bar, .capacity-row-bar {
    height: 10px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.pipeline-row-bar > div {
    height: 100%;
    background: linear-gradient(90deg, var(--lavender), var(--cyan));
    border-radius: 999px;
    transition: width var(--dur-base) var(--ease-out);
}
.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--lavender));
    border-radius: 999px;
}
.capacity-fill-warn { background: linear-gradient(90deg, var(--accent-gold), var(--peach)); }
.capacity-fill-full { background: linear-gradient(90deg, var(--peach), var(--accent-coral)); }
.pipeline-row-count, .capacity-row-count {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
    text-align: right;
    min-width: 48px;
}

/* Deadline list */
.deadline-list { list-style: none; margin: 0; padding: 0; }
.deadline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all var(--dur-fast);
}
.deadline-row:hover { transform: translateX(2px); border-color: var(--ink); }
.deadline-row-tier { margin: 0; font-weight: 600; color: var(--ink); }
.deadline-row-meta { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.8rem; }
.deadline-row-when { text-align: right; }
.deadline-row-when strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--ink);
}
.deadline-row-when small { color: var(--muted); font-size: 0.72rem; }
.deadline-row-urgent  { border-left: 4px solid var(--accent-coral); background: color-mix(in oklab, var(--accent-coral) 6%, transparent); }
.deadline-row-soon    { border-left: 4px solid var(--accent-gold); background: color-mix(in oklab, var(--accent-gold) 6%, transparent); }
.deadline-row-past    { border-left: 4px solid var(--danger-red); background: color-mix(in oklab, var(--danger-red) 8%, transparent); }
.deadline-row-past .deadline-row-when strong { color: var(--danger-red); }

/* Top lists (products / customers) */
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.top-list li:last-child { border-bottom: none; }
.top-list-title { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.top-list-meta { font-size: 0.78rem; color: var(--muted); grid-column: 1 / -1; }
.top-list-rev { font-family: var(--font-display); color: var(--ink); }

/* Provider split bar */
.provider-split-bar {
    display: flex;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--line);
}
.provider-split-bar > span { display: block; height: 100%; transition: width var(--dur-base) var(--ease-out); }
.provider-split-stripe { background: linear-gradient(90deg, #635bff, #4b41d9); }
.provider-split-paypal { background: linear-gradient(90deg, #ffc439, #003087); }
.provider-split-legend {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--ink);
}
.legend-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
}
.legend-stripe { background: #635bff; }
.legend-paypal { background: #ffc439; border: 1px solid #003087; }

/* =====================================================================
 * Legal page + footer legal nav
 * ===================================================================== */

.legal-page { padding: 5rem 0 4rem; min-height: 70vh; }
.legal-page-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.legal-page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin: 0.5rem 0 0.5rem;
    color: var(--ink);
}
.legal-page-updated {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
}
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}
.legal-nav a {
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-pill);
    background: var(--paper-cream);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--dur-fast);
}
.legal-nav a:hover { border-color: var(--ink); }
.legal-nav a.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.legal-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
}
.legal-body p { margin: 0 0 1.25rem; }
.legal-body strong { font-weight: 700; color: var(--ink); }
.legal-body ul {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}
.legal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}
.legal-page-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.legal-page-back a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
}
.legal-page-back a:hover { color: var(--ink); }

/* Footer legal nav */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.25rem;
    padding: 1rem 1rem 0.5rem;
    font-size: 0.82rem;
}
.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--dur-fast);
}
.footer-legal a:hover { color: var(--ink); }

/* Admin legal row save flash */
.legal-row-success.show {
    display: block !important;
    margin-top: 0.5rem;
}

/* Watermark settings — minor extras (most styling reuses existing form-group) */
#admin-legal .payments-toggle { background: color-mix(in oklab, var(--lavender) 6%, var(--paper-cream)); }

