/**
 * Mac Claw - AI-focused Mac mini/Studio CtoC Marketplace
 * Design: White base + Blue accent (#2563eb)
 * Fonts: LINE Seed JP + JetBrains Mono + Sora
 * Icons: Lucide Icons
 */

/* ============================================================
   1. CSS Variables
   ============================================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #f1f5f9;
    --bg-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --accent-blue: #2563eb;
    --accent-blue-dark: #1d4ed8;
    --accent-blue-light: #eff6ff;
    --accent-red: #dc2626;
    --accent-red-light: #fef2f2;
    --accent-green: #16a34a;
    --accent-green-light: #f0fdf4;
    --accent-orange: #ea580c;
    --accent-orange-light: #fff7ed;
    --accent-yellow: #d97706;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'LINE Seed JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-display: 'Sora', 'LINE Seed JP', -apple-system, sans-serif;
    --container: 1140px;
    --header-h: 64px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--accent-blue-dark); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }
input, textarea, select { font-family: var(--font-sans); }

.lucide-icon { width: 16px; height: 16px; flex-shrink: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }
.sp-only { display: none; }
.pc-only { display: inline; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================
   3. Header
   ============================================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo:hover { color: var(--accent-blue); }

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo-text .logo-accent { color: var(--accent-blue); }

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.logo-icon-img { width: 32px; height: 32px; object-fit: contain; }
.logo-icon .lucide-icon { width: 18px; height: 18px; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.header-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
}
.header-nav a:hover { color: var(--accent-blue); background: var(--accent-blue-light); }
.header-nav a.is-active { color: var(--accent-blue); background: var(--accent-blue-light); font-weight: 600; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    position: relative;
    text-decoration: none;
}
.header-icon-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: var(--accent-blue-light); }
.header-icon-btn .lucide-icon { width: 16px; height: 16px; }

.header-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    overflow: hidden;
    text-decoration: none;
}
.header-user-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.header-user-btn .lucide-icon { width: 18px; height: 18px; }
.header-user-btn img { width: 100%; height: 100%; object-fit: cover; }

.notification-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 16px; height: 16px;
    background: var(--accent-red);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg-primary);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-base);
}
.hamburger-btn:hover { background: var(--bg-surface); }

.hamburger-lines { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.hamburger-lines span {
    display: block;
    width: 100%; height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-slow);
}
.hamburger-btn.is-active .hamburger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.is-active .hamburger-lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-active .hamburger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Slide-in Menu */
.mobile-menu {
    position: fixed;
    top: 0; right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.mobile-menu.is-open { right: 0; }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    flex-shrink: 0;
}
.mobile-menu-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); }

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-base);
}
.mobile-menu-close:hover { background: var(--bg-surface); color: var(--text-primary); }
.mobile-menu-close .lucide-icon { width: 16px; height: 16px; }

.mobile-menu-nav { flex: 1; overflow-y: auto; padding: 8px 0; -webkit-overflow-scrolling: touch; }
.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background var(--transition-fast);
}
.mobile-menu-nav a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.mobile-menu-nav a.is-active { color: var(--accent-blue); background: var(--accent-blue-light); }
.mobile-menu-nav a .lucide-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   4. Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 12px 28px;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn .lucide-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--accent-blue); color: var(--text-white); border-color: var(--accent-blue); }
.btn-primary:hover {
    background: var(--accent-blue-dark);
    border-color: var(--accent-blue-dark);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline { background: transparent; color: var(--accent-blue); border-color: var(--accent-blue); }
.btn-outline:hover { background: var(--accent-blue); color: var(--text-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-white { background: var(--text-white); color: var(--accent-blue); border-color: var(--text-white); }
.btn-white:hover { background: var(--bg-secondary); color: var(--accent-blue-dark); border-color: var(--bg-secondary); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-danger { background: var(--accent-red); color: var(--text-white); border-color: var(--accent-red); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: var(--text-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-surface); color: var(--text-primary); }

.btn-success { background: var(--accent-green); color: var(--text-white); border-color: var(--accent-green); }
.btn-success:hover { background: #15803d; border-color: #15803d; color: var(--text-white); transform: translateY(-1px); }

.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-lg .lucide-icon { width: 20px; height: 20px; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-sm .lucide-icon { width: 14px; height: 14px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }

/* ============================================================
   5. Section Base
   ============================================================ */

.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header-left { text-align: left; margin-bottom: 40px; }

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 12px;
}
.section-dark .section-label { color: #60a5fa; }

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-dark .section-title { color: var(--text-white); }

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-dark .section-subtitle { color: var(--text-muted); }
.section-header-left .section-subtitle { margin-left: 0; }

.section-cta { text-align: center; margin-top: 40px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   6. Hero
   ============================================================ */

.hero {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: end;
    min-height: 520px;
}

.hero-content { padding-bottom: 56px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-red-light);
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.hero-badge .lucide-icon { width: 13px; height: 13px; }

.hero-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}
.hero-title .accent { color: var(--accent-blue); }
.hero-title .accent-red { color: var(--accent-red); }

.hero-subtitle { font-size: 17px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.75; max-width: 500px; }

.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; margin-bottom: 24px; }

.hero-note { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.hero-note .lucide-icon { width: 14px; height: 14px; color: var(--accent-green); flex-shrink: 0; }

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    min-height: 400px;
}
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 30% 20%, rgba(37,99,235,0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(37,99,235,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-visual img { max-width: 110%; height: auto; object-fit: contain; }

.hero-stats { display: flex; gap: 36px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stat-item { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--accent-blue); line-height: 1.2; }
.hero-stat-label { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   7. Merit Cards
   ============================================================ */

.merit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.merit-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.merit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.merit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    margin-bottom: 18px;
}
.merit-icon .lucide-icon { width: 26px; height: 26px; }
.merit-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.merit-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   8. Steps / Flow
   ============================================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(10% + 32px);
    right: calc(10% + 32px);
    height: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-blue-dark));
    z-index: 0;
}

.step-card { text-align: center; position: relative; z-index: 1; padding: 0 8px; }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--text-white);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent-blue-light);
}
.step-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); line-height: 1.4; }
.step-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.step-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: var(--text-muted); }
.step-icon .lucide-icon { width: 20px; height: 20px; }

/* ============================================================
   9. Item Grid (Marketplace) - KEY SECTION
   ============================================================ */

.marketplace-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 80px;
}
.items-area { min-width: 0; }

.items-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.items-count { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.items-count strong { color: var(--text-primary); font-weight: 700; }

.items-sort { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.sort-select {
    padding: 7px 32px 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-sans);
    background: var(--bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: var(--text-primary);
}
.sort-select:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }

.view-toggle { display: flex; gap: 4px; }
.view-toggle-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}
.view-toggle-btn:hover { color: var(--accent-blue); border-color: var(--accent-blue); }
.view-toggle-btn.is-active { background: var(--accent-blue); color: var(--text-white); border-color: var(--accent-blue); }
.view-toggle-btn .lucide-icon { width: 14px; height: 14px; }

/* Items Grid - responsive auto-fill */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* Item Card */
.item-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
}
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text-primary); }

/* 1:1 aspect ratio image container */
.item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-surface);
}
.item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.item-card:hover .item-image img { transform: scale(1.04); }

/* Spec Badge - absolute top-left, semi-transparent dark bg */
.spec-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
    line-height: 1.5;
    letter-spacing: 0.02em;
    z-index: 1;
}

/* Condition Badge - top-right */
.condition-badge {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.5;
    z-index: 1;
}
.condition-badge.new { background: var(--accent-blue); color: var(--text-white); }
.condition-badge.used-good { background: var(--accent-green-light); color: var(--accent-green); }
.condition-badge.used-fair { background: var(--accent-orange-light); color: var(--accent-orange); }
.condition-badge.used-poor { background: var(--accent-red-light); color: var(--accent-red); }

/* SOLD overlay */
.item-card.sold .item-image::after {
    content: 'SOLD';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 0.12em;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
}
.item-card.sold { opacity: 0.82; }

/* Item Card Body */
.item-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.item-card > .item-info { padding: 14px; display: flex; flex-direction: column; flex: 1; }

/* Price Tag - large bold blue */
.price-tag {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1.2;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}
.price-tag .price-currency { font-size: 13px; font-weight: 700; margin-right: 1px; }
.price-tag .price-unit { font-size: 11px; font-weight: 500; color: var(--text-muted); }

/* Item Title - truncated 2 lines */
.item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    transition: color var(--transition-base);
}
.item-card:hover .item-title { color: var(--accent-blue); }

/* Item Footer */
.item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 6px; }

/* Seller info */
.item-seller { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); min-width: 0; }
.seller-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-surface); flex-shrink: 0; overflow: hidden; }
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Like count */
.item-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    cursor: pointer;
    transition: color var(--transition-base);
    background: none;
    border: none;
    padding: 4px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
}
.item-likes:hover { color: var(--accent-red); background: var(--accent-red-light); }
.item-likes.is-liked { color: var(--accent-red); }
.item-likes .lucide-icon { width: 13px; height: 13px; }
.item-likes.is-liked .lucide-icon { fill: var(--accent-red); }

/* List view variant */
.items-grid.list-view { grid-template-columns: 1fr; gap: 10px; }
.items-grid.list-view .item-card { flex-direction: row; align-items: center; }
.items-grid.list-view .item-image { width: 100px; height: 100px; aspect-ratio: unset; flex-shrink: 0; }
.items-grid.list-view .item-body { padding: 12px 16px; flex: 1; }
.items-grid.list-view .price-tag { font-size: 18px; }
.items-grid.list-view .item-title { -webkit-line-clamp: 1; font-size: 14px; }

/* ============================================================
   10. Filter Sidebar (PC) + Accordion (SP)
   ============================================================ */

.filter-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--bg-primary);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.filter-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-clear-btn { font-size: 12px; color: var(--accent-blue); font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font-sans); transition: color var(--transition-base); }
.filter-clear-btn:hover { color: var(--accent-blue-dark); }

.filter-group { margin-bottom: 20px; }
.filter-group-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }

.filter-select {
    width: 100%;
    padding: 9px 32px 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-sans);
    background: var(--bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: var(--text-primary);
}
.filter-select:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }

.filter-checkboxes { display: flex; flex-direction: column; gap: 8px; }
.filter-checkbox-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-secondary); user-select: none; }
.filter-checkbox-item input[type="checkbox"] { width: 16px; height: 16px; border: 1.5px solid var(--border); border-radius: 3px; accent-color: var(--accent-blue); cursor: pointer; flex-shrink: 0; }
.filter-checkbox-item:hover { color: var(--text-primary); }
.filter-checkbox-count { margin-left: auto; font-size: 11px; color: var(--text-muted); background: var(--bg-surface); padding: 1px 6px; border-radius: 10px; }

.filter-price-range { display: flex; align-items: center; gap: 8px; }
.filter-price-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    min-width: 0;
}
.filter-price-input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }
.filter-price-sep { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }

/* Filter Chips - pill-shaped toggles */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-sans);
    white-space: nowrap;
    line-height: 1.4;
}
.filter-chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: var(--accent-blue-light); }
.filter-chip.is-active { border-color: var(--accent-blue); color: var(--text-white); background: var(--accent-blue); }
.filter-chip .lucide-icon { width: 12px; height: 12px; }

/* Mobile Filter Accordion */
.filter-accordion { display: none; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.filter-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
}
.filter-accordion-toggle .lucide-icon { width: 16px; height: 16px; color: var(--text-muted); transition: transform var(--transition-slow); flex-shrink: 0; }
.filter-accordion.is-open .filter-accordion-toggle .lucide-icon { transform: rotate(180deg); }
.filter-accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.filter-accordion.is-open .filter-accordion-body { max-height: 640px; }
.filter-accordion-content { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }


/* ============================================================
   My Page (.mypage-*)
   ============================================================ */

.mypage-section {
    padding: calc(var(--header-h) + 40px) 0 80px;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.mypage-header { margin-bottom: 32px; }
.mypage-header h1 { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.mypage-header p { font-size: 14px; color: var(--text-secondary); }

/* Tabs */
.mypage-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mypage-tabs::-webkit-scrollbar { display: none; }

.mypage-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.mypage-tab:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.mypage-tab.is-active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.mypage-tab .lucide-icon { width: 16px; height: 16px; }

/* Stats Cards */
.mypage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}
.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.stat-value { font-size: 26px; font-weight: 900; color: var(--text-primary); line-height: 1.2; }
.stat-value-sm { font-size: 20px; font-weight: 900; color: var(--text-primary); line-height: 1.2; }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Panel Cards */
.mypage-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}
.mypage-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}
.mypage-panel-header h2 { font-size: 16px; font-weight: 700; }
.mypage-panel-body { padding: 24px; }

/* Item rows */
.mypage-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.mypage-item-row:last-child { border-bottom: none; }
.mypage-item-row:hover { background: var(--bg-secondary); }

.mypage-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.mypage-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mypage-item-info { flex: 1; min-width: 0; }
.mypage-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mypage-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.mypage-item-price { font-size: 15px; font-weight: 900; color: var(--accent-blue); flex-shrink: 0; }
.mypage-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.badge-green  { background: var(--accent-green-light); color: var(--accent-green); }
.badge-blue   { background: var(--accent-blue-light); color: var(--accent-blue); }
.badge-gray   { background: var(--bg-surface); color: var(--text-muted); }
.badge-red    { background: #fef2f2; color: #dc2626; }
.badge-orange { background: var(--accent-orange-light); color: var(--accent-orange); }

/* Transaction rows */
.mypage-tx-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.mypage-tx-row:last-child { border-bottom: none; }
.mypage-tx-row:hover { background: var(--bg-secondary); }
.mypage-tx-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mypage-tx-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.mypage-tx-right { text-align: right; flex-shrink: 0; }
.mypage-tx-amount { font-size: 16px; font-weight: 900; color: var(--accent-blue); }

/* Sales table */
.mypage-sales-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mypage-sales-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    white-space: nowrap;
}
.mypage-sales-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.mypage-sales-table tr:last-child td { border-bottom: none; }
.mypage-sales-table tr:hover td { background: var(--bg-secondary); }
.sales-total-row { background: var(--bg-secondary); font-weight: 700; }

/* Connect status */
.connect-status { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; }
.connect-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.connect-status-icon-pending { background: var(--accent-orange-light); color: var(--accent-orange); }
.connect-status-icon-ok      { background: var(--accent-green-light); color: var(--accent-green); }
.connect-status-icon-none    { background: var(--bg-surface); color: var(--text-muted); }
.connect-status-body { flex: 1; }
.connect-status-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.connect-status-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Quick links */
.mypage-quick-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Avatar preview */
.avatar-preview-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
    flex-shrink: 0;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

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

/* Two-col layout for profile page */
.mypage-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* Responsive */
@media (max-width: 1024px) {
    .mypage-stats { grid-template-columns: repeat(2, 1fr); }
    .mypage-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mypage-section { padding: calc(var(--header-h) + 24px) 0 60px; }
    .mypage-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mypage-item-row { flex-wrap: wrap; }
    .mypage-item-actions { width: 100%; justify-content: flex-end; }
    .mypage-tx-row { grid-template-columns: 1fr; }
    .mypage-sales-table { font-size: 12px; }
    .mypage-sales-table th,
    .mypage-sales-table td { padding: 8px 10px; }
    .mypage-tab { padding: 8px 12px; font-size: 13px; }
    .stat-value { font-size: 22px; }
}
@media (max-width: 480px) {
    .mypage-stats { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
   11. Item Detail Page
   ============================================================ */

.item-detail-page { padding-top: calc(var(--header-h) + 32px); padding-bottom: 80px; }

.item-detail { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }

/* Image Gallery */
.image-gallery { position: sticky; top: calc(var(--header-h) + 24px); }

.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    margin-bottom: 12px;
    position: relative;
    border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .spec-badge { top: 12px; left: 12px; font-size: 12px; padding: 5px 12px; }

.gallery-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-thumbnails::-webkit-scrollbar { display: none; }

.gallery-thumb {
    width: 68px; height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition-base);
    background: var(--bg-surface);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--accent-blue); }

/* Item Info Panel (detail page) */
.detail-main .item-info { display: flex; flex-direction: column; gap: 20px; }

.item-detail-price { font-family: var(--font-display); font-size: 36px; font-weight: 900; color: var(--accent-blue); line-height: 1.2; }
.item-detail-price .price-tax { font-size: 13px; font-weight: 400; color: var(--text-muted); display: block; margin-top: 2px; }
.item-detail-title { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--text-primary); }

.item-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.item-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--bg-surface); color: var(--text-secondary); }

/* Spec Table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--border-light); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th { width: 36%; padding: 10px 12px 10px 0; text-align: left; font-weight: 600; color: var(--text-muted); font-size: 13px; vertical-align: top; }
.spec-table td { padding: 10px 0 10px 12px; color: var(--text-primary); font-family: var(--font-mono); font-size: 13px; word-break: break-all; }

/* Item Actions - buy + like row */
.item-actions { display: flex; gap: 10px; align-items: stretch; }
.item-actions .btn-primary { flex: 1; padding: 16px; font-size: 16px; }

.like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    min-width: 52px; height: 52px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 600;
    transition: all var(--transition-base);
    flex-shrink: 0;
    padding: 0 12px;
}
.like-btn:hover { border-color: var(--accent-red); color: var(--accent-red); background: var(--accent-red-light); }
.like-btn.is-liked { border-color: var(--accent-red); color: var(--accent-red); background: var(--accent-red-light); }
.like-btn .lucide-icon { width: 20px; height: 20px; }
.like-btn.is-liked .lucide-icon { fill: var(--accent-red); }

/* Seller Card */
.seller-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: center; gap: 12px; }
.seller-card-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface); overflow: hidden; flex-shrink: 0; }
.seller-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-card-info { flex: 1; min-width: 0; }
.seller-card-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.seller-card-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seller-card-meta .lucide-icon { width: 12px; height: 12px; color: var(--accent-yellow); }

/* Comment List - threaded */
.comment-section { margin-top: 32px; }
.comment-section-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: flex; gap: 10px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-surface); overflow: hidden; flex-shrink: 0; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; background: var(--bg-secondary); border-radius: var(--radius-md); padding: 12px 14px; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-author { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.comment-date { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.comment-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.comment-reply { margin-left: 46px; }
.comment-reply .comment-body { background: var(--accent-blue-light); }
.comment-input-area { display: flex; gap: 10px; margin-top: 20px; }
.comment-input-form { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-sans);
    resize: none;
    min-height: 80px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-base);
}
.comment-textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* ============================================================
   12. Sell Form (Step-based)
   ============================================================ */

.sell-page { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 80px; }
.sell-page-title { font-family: var(--font-display); font-size: 28px; font-weight: 900; margin-bottom: 32px; text-align: center; letter-spacing: -0.02em; }

/* Step Indicator */
.sell-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; }

.sell-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; flex: 1; max-width: 90px; }
.sell-step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    transition: all var(--transition-base);
    font-family: var(--font-display);
}
.sell-step-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-align: center; line-height: 1.3; white-space: nowrap; }
.sell-step.active .sell-step-circle { background: var(--accent-blue); border-color: var(--accent-blue); color: var(--text-white); box-shadow: 0 0 0 4px var(--accent-blue-light); }
.sell-step.active .sell-step-label { color: var(--accent-blue); font-weight: 700; }
.sell-step.done .sell-step-circle { background: var(--accent-green); border-color: var(--accent-green); color: var(--text-white); }
.sell-step.done .sell-step-label { color: var(--accent-green); }
.sell-steps-connector { flex: 1; height: 2px; background: var(--border); margin-bottom: 26px; max-width: 60px; transition: background var(--transition-slow); }
.sell-steps-connector.done { background: var(--accent-green); }

/* Sell Form Panel */
.sell-form-panel { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.sell-form-panel-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sell-form-panel-title .lucide-icon { width: 20px; height: 20px; color: var(--accent-blue); }

/* Image Upload Grid - drag-and-drop + preview */
.image-upload-section { margin-bottom: 28px; }
.image-upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.image-upload-dropzone {
    aspect-ratio: 1 / 1;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    padding: 8px;
}
.image-upload-dropzone:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: var(--accent-blue-light); }
.image-upload-dropzone.is-dragging { border-color: var(--accent-blue); background: var(--accent-blue-light); color: var(--accent-blue); transform: scale(1.02); }
.image-upload-dropzone.main-slot { grid-column: span 2; grid-row: span 2; font-size: 13px; gap: 10px; }
.image-upload-dropzone .lucide-icon { width: 22px; height: 22px; }
.image-upload-dropzone.main-slot .lucide-icon { width: 32px; height: 32px; }

.image-preview { aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--bg-surface); border: 1px solid var(--border); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(15, 23, 42, 0.72); color: var(--text-white); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition-base); }
.image-preview-remove:hover { background: var(--accent-red); }
.image-preview-remove .lucide-icon { width: 12px; height: 12px; }
.image-preview.main-preview { grid-column: span 2; grid-row: span 2; }
.image-upload-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

.sell-form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); gap: 12px; }


/* ============================================================
   Sell Form (.sell-*)
   ============================================================ */

.sell-section {
    padding: calc(var(--header-h) + 40px) 0 80px;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.sell-header { text-align: center; margin-bottom: 32px; }
.sell-page-title { font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.sell-page-subtitle { font-size: 14px; color: var(--text-secondary); }

/* Step indicator */
.sell-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 32px; list-style: none;
}

.sell-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-muted); position: relative;
}

.sell-step + .sell-step::before {
    content: ''; display: block; width: 40px; height: 2px;
    background: var(--border); margin: 0 12px; flex-shrink: 0;
}

.sell-step.done + .sell-step::before { background: var(--accent-blue); }

.sell-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg-surface); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.sell-step.active { color: var(--accent-blue); }
.sell-step.active .sell-step-num { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.sell-step.done { color: var(--accent-green); }
.sell-step.done .sell-step-num { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }

/* Panels */
.sell-form-panel { display: none; max-width: 680px; margin: 0 auto; }
.sell-form-panel.active { display: block; }

.sell-form-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 36px 40px; box-shadow: var(--shadow-sm);
}

.sell-form-card-title {
    font-size: 18px; font-weight: 700; margin-bottom: 28px;
    display: flex; align-items: center; gap: 8px; color: var(--text-primary);
}

/* Fields */
.sell-field { margin-bottom: 24px; }

.sell-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.sell-label-sub { font-weight: 400; color: var(--text-muted); font-size: 12px; margin-left: 8px; }
.sell-required { color: #dc2626; font-size: 11px; font-weight: 700; margin-left: 4px; }

.sell-input {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-md); font-size: 15px; font-family: var(--font-sans);
    color: var(--text-primary); background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.sell-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.sell-input::placeholder { color: var(--text-muted); }
.sell-input.is-invalid { border-color: #dc2626; }
.sell-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

.sell-select {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-md); font-size: 15px; font-family: var(--font-sans);
    color: var(--text-primary); background: #fff; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    cursor: pointer; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.sell-select:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.sell-select.is-invalid { border-color: #dc2626; }

.sell-textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-md); font-size: 15px; font-family: var(--font-sans);
    color: var(--text-primary); background: #fff; resize: vertical; min-height: 100px;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s; line-height: 1.7;
}
.sell-textarea:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.sell-textarea.is-invalid { border-color: #dc2626; }

.sell-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.sell-error { display: block; font-size: 12px; color: #dc2626; margin-top: 5px; font-weight: 600; }

/* Radio cards */
.sell-radio-group { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.sell-radio-card { cursor: pointer; }
.sell-radio-input { position: absolute; opacity: 0; width: 0; height: 0; }

.sell-radio-body {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 16px; border: 2px solid var(--border); border-radius: var(--radius-lg);
    background: #fff; transition: all 0.2s; text-align: center;
}
.sell-radio-body .lucide-icon { width: 24px; height: 24px; color: var(--text-muted); }
.sell-radio-card:hover .sell-radio-body { border-color: var(--accent-blue); background: var(--accent-blue-light); }
.sell-radio-card.is-selected .sell-radio-body { border-color: var(--accent-blue); background: var(--accent-blue-light); color: var(--accent-blue); }
.sell-radio-card.is-selected .sell-radio-body .lucide-icon { color: var(--accent-blue); }
.sell-radio-name { font-size: 14px; font-weight: 700; }

/* Checkbox */
.sell-checkbox-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.sell-checkbox { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 4px; accent-color: var(--accent-blue); cursor: pointer; flex-shrink: 0; }

/* Price */
.sell-price-row { display: flex; align-items: center; gap: 8px; }
.sell-price-symbol { font-size: 20px; font-weight: 700; color: var(--text-secondary); flex-shrink: 0; }
.sell-input-price { font-family: var(--font-mono); font-size: 20px; font-weight: 700; max-width: 240px; }

.sell-fee-calc {
    display: flex; align-items: center; gap: 6px; margin-top: 10px;
    padding: 10px 14px; background: var(--accent-green-light); border-radius: var(--radius-md);
    font-size: 13px; color: var(--accent-green); font-weight: 500; opacity: 0; transition: opacity 0.2s;
}
.sell-fee-calc.is-visible { opacity: 1; }
.sell-fee-calc .lucide-icon { width: 15px; height: 15px; flex-shrink: 0; }
.sell-fee-calc strong { font-weight: 800; color: #15803d; }

/* Image upload */
.sell-image-upload {
    position: relative; border: 2px dashed var(--border);
    border-radius: var(--radius-lg); background: var(--bg-secondary);
    transition: border-color 0.2s, background 0.2s; cursor: pointer;
}
.sell-image-upload:hover { border-color: var(--accent-blue); background: var(--accent-blue-light); }

.sell-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.sell-upload-label {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 40px 24px; cursor: pointer; pointer-events: none;
}
.sell-upload-icon { width: 40px; height: 40px; color: var(--text-muted); }
.sell-upload-text { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.sell-upload-sub { font-size: 12px; color: var(--text-muted); }

/* Actions */
.sell-actions {
    display: flex; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}
.sell-actions-right { justify-content: flex-end; }
.sell-actions-between { justify-content: space-between; }

/* Confirm */
.sell-confirm-section { margin-bottom: 28px; }
.sell-confirm-heading {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sell-confirm-table { display: grid; gap: 0; }

.sell-confirm-row {
    display: grid; grid-template-columns: 140px 1fr; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px;
}
.sell-confirm-row:last-child { border-bottom: none; }
.sell-confirm-row-block { grid-template-columns: 1fr; }
.sell-confirm-row-block dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.sell-confirm-row dt { font-weight: 700; color: var(--text-secondary); font-size: 13px; }
.sell-confirm-row dd { color: var(--text-primary); }

.sell-confirm-multiline {
    white-space: pre-wrap; font-size: 13px; color: var(--text-secondary); line-height: 1.7;
    background: var(--bg-secondary); padding: 10px 12px; border-radius: var(--radius-md); margin-top: 6px;
}
.sell-confirm-price { font-size: 20px; font-weight: 900; color: var(--accent-blue); font-family: var(--font-mono); }
.sell-confirm-amount { font-size: 18px; font-weight: 700; color: var(--accent-green); }

.sell-confirm-note {
    display: flex; align-items: flex-start; gap: 8px; padding: 14px 16px;
    background: var(--accent-blue-light); border-radius: var(--radius-md);
    font-size: 13px; color: var(--accent-blue); margin-bottom: 0;
}
.sell-confirm-note .lucide-icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.sell-confirm-note p { margin: 0; line-height: 1.6; }

@media (max-width: 768px) {
    .sell-form-card { padding: 24px 20px; border-radius: var(--radius-lg); }
    .sell-step + .sell-step::before { width: 24px; margin: 0 8px; }
    .sell-step-label { display: none; }
    .sell-radio-group { grid-template-columns: repeat(2,1fr); }
    .sell-confirm-row { grid-template-columns: 1fr; gap: 4px; }
    .sell-confirm-row dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
}

/* ============================================================
   Upload Preview (sell form)
   ============================================================ */

.upload-preview { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 12px; }
.upload-preview-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-remove {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%;
    width: 20px; height: 20px; font-size: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.upload-preview-main {
    position: absolute; bottom: 4px; left: 4px;
    background: var(--accent-blue); color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 3px;
}

/* ============================================================
   Items Page (.items-*)
   ============================================================ */

.items-section {
    padding: calc(var(--header-h) + 32px) 0 80px;
    min-height: 100vh; background: var(--bg-secondary);
}

.items-page-header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.items-page-title { font-size: 24px; font-weight: 900; }
.items-page-count { font-size: 14px; color: var(--text-muted); }

.items-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }

/* Filter sidebar */
.items-filter-sidebar {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; position: sticky; top: calc(var(--header-h) + 16px);
}

.filter-block { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }

.filter-radio-label {
    display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer;
    padding: 4px 0; color: var(--text-secondary); transition: color 0.15s;
}
.filter-radio-label:hover { color: var(--text-primary); }
.filter-radio-label input { accent-color: var(--accent-blue); }

.filter-select { font-size: 14px; padding: 9px 12px; }

.filter-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.filter-price-input { font-size: 14px; padding: 8px 10px; max-width: 80px; }
.filter-price-sep { flex-shrink: 0; color: var(--text-muted); font-size: 13px; }
.filter-price-btn { width: 100%; }
.filter-reset-btn { width: 100%; justify-content: center; color: var(--text-muted); font-size: 13px; }

/* SP filter bar */
.items-filter-bar { margin-bottom: 16px; display: none; }
.filter-bar-form { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.filter-bar-form::-webkit-scrollbar { display: none; }
.filter-bar-select {
    padding: 8px 28px 8px 12px; border: 1.5px solid var(--border); border-radius: 20px;
    font-size: 13px; font-family: var(--font-sans); color: var(--text-primary); background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    white-space: nowrap; cursor: pointer; flex-shrink: 0; outline: none;
}

/* Items main */
.items-main { min-width: 0; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 40px; }
.pagination-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 600; color: var(--text-secondary); background: #fff;
    border: 1px solid var(--border); transition: all 0.15s; text-decoration: none;
}
.pagination-btn:hover:not(.is-disabled):not(.is-current) { background: var(--accent-blue-light); border-color: var(--accent-blue); color: var(--accent-blue); }
.pagination-btn.is-current { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.pagination-btn.is-disabled { opacity: 0.35; cursor: not-allowed; }
.pagination-ellipsis { color: var(--text-muted); font-size: 14px; padding: 0 4px; }

@media (max-width: 900px) {
    .items-layout { grid-template-columns: 1fr; }
    .items-filter-sidebar { position: static; display: none; }
    .items-filter-bar { display: block; }
}

/* ============================================================
   Detail Page (.detail-*)
   ============================================================ */

.detail-section {
    padding: calc(var(--header-h) + 24px) 0 80px;
    min-height: 100vh; background: var(--bg-secondary);
}

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb-sep { color: var(--border); }

/* Layout */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.detail-main { min-width: 0; }

/* Gallery */
.gallery-main-wrap {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    background: #fff; border: 1px solid var(--border); aspect-ratio: 4/3; margin-bottom: 12px;
}
.gallery-main-img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-surface); }
.gallery-placeholder { display: flex; align-items: center; justify-content: center; }
.gallery-placeholder-icon { width: 64px; height: 64px; color: var(--text-muted); }

.gallery-sold-badge {
    position: absolute; top: 16px; right: 16px;
    background: rgba(220,38,38,0.9); color: #fff; font-weight: 900;
    font-size: 13px; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 4px;
}

.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius-md);
    overflow: hidden; border: 2px solid var(--border); background: none;
    cursor: pointer; padding: 0; transition: border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--accent-blue); }

/* Cards */
.detail-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 28px 32px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.detail-card-title {
    font-size: 16px; font-weight: 700; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px; color: var(--text-primary);
}
.detail-card-count {
    background: var(--bg-surface); color: var(--text-muted);
    font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 12px; margin-left: 4px;
}

/* Spec table */
.spec-table { display: grid; gap: 0; }
.spec-row {
    display: grid; grid-template-columns: 160px 1fr; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-weight: 700; color: var(--text-secondary); font-size: 13px; }
.spec-row dd { color: var(--text-primary); }

.spec-chip-tag {
    background: var(--accent-blue-light); color: var(--accent-blue);
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}

.ai-env-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.ai-env-initialized { background: var(--bg-surface); color: var(--text-secondary); }
.ai-env-scripts_included { background: var(--accent-orange-light); color: var(--accent-orange); }
.ai-env-full_env { background: var(--accent-green-light); color: var(--accent-green); }

/* Title block (SP) */
.detail-title-block { margin-bottom: 16px; }

.spec-badge-lg {
    display: inline-block; background: rgba(37,99,235,0.9); color: #fff;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 6px; margin-bottom: 10px;
}

.detail-title { font-size: 22px; font-weight: 900; line-height: 1.4; margin-bottom: 12px; color: var(--text-primary); }
.detail-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.detail-price { font-size: 32px; font-weight: 700; color: var(--accent-blue); font-family: var(--font-display); line-height: 1; letter-spacing: -0.02em; }
.detail-price-sub { font-size: 13px; color: var(--text-muted); }
.detail-description { font-size: 15px; color: var(--text-secondary); line-height: 1.85; white-space: pre-wrap; }

/* Comments */
.comments-empty { font-size: 14px; color: var(--text-muted); text-align: center; padding: 24px 0; }
.comments-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.comment-item { display: flex; gap: 12px; }
.comment-item-new { animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.comment-avatar {
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; border: 1px solid var(--border);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-avatar-placeholder {
    width: 100%; height: 100%; background: var(--bg-surface); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.comment-avatar-placeholder .lucide-icon { width: 18px; height: 18px; }

.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.comment-form { border-top: 1px solid var(--border); padding-top: 20px; }
.comment-form-row { display: flex; gap: 12px; align-items: flex-start; }
.comment-input-wrap { flex: 1; position: relative; }
.comment-textarea { min-height: 80px; padding-bottom: 40px; }
.comment-submit-btn { position: absolute; bottom: 10px; right: 10px; }
.comment-login-prompt { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }

/* Related Items */
.related-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-title {
    font-size: 18px; font-weight: 700; color: var(--text-primary);
    display: flex; align-items: center; gap: 8px; margin-bottom: 24px;
}
.related-title .lucide-icon { width: 20px; height: 20px; color: var(--accent-blue); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 768px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Sidebar */
.detail-sidebar { min-width: 0; }
.sidebar-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
    position: sticky; top: calc(var(--header-h) + 16px);
}
.sidebar-card-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }

.sidebar-buy-btn { margin-bottom: 10px; width: 100%; }

.sidebar-like-btn {
    width: 100%; font-size: 14px; gap: 6px; color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: var(--radius-md);
}
.sidebar-like-btn.is-liked { color: #e11d48; border-color: #e11d48; }
.sidebar-like-btn.is-liked .lucide-icon { fill: currentColor; }

.sidebar-meta { display: flex; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.sidebar-meta span { display: flex; align-items: center; gap: 4px; }
.sidebar-meta .lucide-icon { width: 13px; height: 13px; }

.sidebar-owner-note {
    display: flex; align-items: center; gap: 6px; padding: 12px;
    background: var(--bg-secondary); border-radius: var(--radius-md);
    font-size: 13px; color: var(--text-muted); margin-bottom: 10px;
}
.sidebar-owner-note .lucide-icon { width: 15px; height: 15px; }

.sidebar-sold-note {
    display: flex; align-items: center; gap: 6px; padding: 12px;
    background: #fef2f2; color: #dc2626; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.sidebar-sold-note .lucide-icon { width: 15px; height: 15px; }

/* Seller */
.seller-info { display: flex; align-items: center; gap: 12px; }
.seller-avatar {
    width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; border: 2px solid var(--border);
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-avatar-placeholder {
    width: 100%; height: 100%; background: var(--accent-blue-light); color: var(--accent-blue);
    display: flex; align-items: center; justify-content: center;
}
.seller-detail { min-width: 0; }
.seller-name { font-size: 15px; font-weight: 700; display: block; margin-bottom: 4px; }
.seller-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.seller-star { width: 14px; height: 14px; color: #f59e0b; fill: #f59e0b; }
.seller-rating-val { font-weight: 700; color: var(--text-primary); }
.seller-rating-count { color: var(--text-muted); }
.seller-no-rating { font-size: 12px; color: var(--text-muted); }

/* Alerts shared */
.alert { padding: 14px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.alert-success { background: var(--accent-green-light); color: #15803d; }
.alert-error { background: #fef2f2; color: #dc2626; }
.alert-info { background: var(--accent-blue-light); color: var(--accent-blue); }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: var(--bg-dark); color: #fff; padding: 12px 20px; border-radius: var(--radius-md);
    font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s; max-width: 320px;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-success { background: #15803d; }
.toast-error { background: #dc2626; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; margin-bottom: 20px; }

@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr 300px; gap: 24px; }
}

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .sidebar-card { position: static; }
    .detail-card { padding: 20px; }
    .detail-title { font-size: 18px; }
    .detail-price { font-size: 26px; }
    .spec-row { grid-template-columns: 120px 1fr; }
}
/* ============================================================
   13. Transaction / Chat
   ============================================================ */

.transaction-page { padding-top: var(--header-h); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* Transaction Status - badge strip at top */
.transaction-status {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.transaction-status::-webkit-scrollbar { display: none; }

.transaction-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.transaction-status-badge.status-pending { background: #fffbeb; color: var(--accent-yellow); }
.transaction-status-badge.status-paid { background: var(--accent-blue-light); color: var(--accent-blue); }
.transaction-status-badge.status-shipped { background: var(--accent-orange-light); color: var(--accent-orange); }
.transaction-status-badge.status-delivered { background: var(--accent-green-light); color: var(--accent-green); }
.transaction-status-badge.status-completed { background: var(--bg-surface); color: var(--text-secondary); }
.transaction-status-badge .lucide-icon { width: 13px; height: 13px; }

.transaction-item-summary { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); flex: 1; min-width: 0; }
.transaction-item-img { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-surface); overflow: hidden; flex-shrink: 0; }
.transaction-item-img img { width: 100%; height: 100%; object-fit: cover; }
.transaction-item-name { font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-item-price { font-weight: 700; color: var(--accent-blue); flex-shrink: 0; }

/* Chat Container - full-height flex */
.chat-container { display: flex; flex: 1; overflow: hidden; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.chat-header { padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-shrink: 0; background: var(--bg-primary); }
.chat-header-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-surface); overflow: hidden; flex-shrink: 0; }
.chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.chat-header-status { font-size: 12px; color: var(--text-muted); }

/* Chat Messages - scrollable area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-secondary);
    -webkit-overflow-scrolling: touch;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-date-sep { text-align: center; font-size: 11px; color: var(--text-muted); padding: 3px 12px; background: var(--border-light); border-radius: 20px; align-self: center; }

/* Chat Bubble */
.chat-bubble-wrap { display: flex; gap: 8px; align-items: flex-end; max-width: 72%; }
.chat-bubble-wrap.sender { flex-direction: row-reverse; align-self: flex-end; }
.chat-bubble-wrap.receiver { align-self: flex-start; }
.chat-bubble-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-surface); overflow: hidden; flex-shrink: 0; margin-bottom: 2px; }
.chat-bubble-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chat-bubble { padding: 10px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.6; word-break: break-word; max-width: 100%; }

/* Sender - right, blue bg */
.chat-bubble-wrap.sender .chat-bubble {
    background: var(--accent-blue);
    color: var(--text-white);
    border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
}

/* Receiver - left, gray bg */
.chat-bubble-wrap.receiver .chat-bubble {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
    box-shadow: var(--shadow-sm);
}

.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; align-self: flex-end; }
.chat-time { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.chat-bubble-wrap.sender .chat-meta { align-items: flex-start; }

.chat-bubble-info { background: var(--accent-blue-light); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; font-size: 13px; color: var(--text-secondary); align-self: center; max-width: 90%; text-align: center; }

/* Chat Input - bottom fixed bar */
.chat-input { border-top: 1px solid var(--border); padding: 12px 16px; background: var(--bg-primary); display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.chat-input-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    font-size: 14px;
    font-family: var(--font-sans);
    resize: none;
    min-height: 42px;
    max-height: 120px;
    overflow-y: auto;
    transition: border-color var(--transition-base);
    line-height: 1.5;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.chat-input-field:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }

.chat-input-send {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--text-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-base);
}
.chat-input-send:hover { background: var(--accent-blue-dark); transform: scale(1.05); }
.chat-input-send .lucide-icon { width: 18px; height: 18px; }

/* Shipping Info - only shown after payment */
.shipping-info { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin: 0 16px 12px; background: var(--bg-primary); }
.shipping-info-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.shipping-info-title .lucide-icon { width: 14px; height: 14px; color: var(--accent-blue); }
.shipping-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.shipping-info dt { font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.shipping-info dd { color: var(--text-primary); }

/* Chat Sidebar */
.chat-sidebar { width: 280px; border-left: 1px solid var(--border); background: var(--bg-primary); overflow-y: auto; display: flex; flex-direction: column; flex-shrink: 0; }
.chat-sidebar-section { padding: 16px; border-bottom: 1px solid var(--border); }
.chat-sidebar-section-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }

/* ============================================================
   14. Mypage
   ============================================================ */

.mypage { padding-top: calc(var(--header-h) + 32px); padding-bottom: 80px; }

.mypage-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mypage-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-surface); overflow: hidden; flex-shrink: 0; }
.mypage-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mypage-user-info { flex: 1; min-width: 0; }
.mypage-username { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; font-family: var(--font-display); }
.mypage-user-meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mypage-user-meta span { display: flex; align-items: center; gap: 4px; }
.mypage-user-meta .lucide-icon { width: 13px; height: 13px; }

/* Mypage Tabs - horizontal, scrollable on mobile */
.mypage-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mypage-tabs::-webkit-scrollbar { display: none; }

.mypage-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none; border-left: none; border-right: none;
    font-family: var(--font-sans);
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}
.mypage-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }
.mypage-tab.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); font-weight: 700; }
.mypage-tab .lucide-icon { width: 16px; height: 16px; }

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: var(--accent-blue);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    line-height: 1;
}

.mypage-content { display: none; }
.mypage-content.is-active { display: block; }

/* Stats Grid - 4 col */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-blue-light); color: var(--accent-blue); margin: 0 auto 12px; }
.stat-icon .lucide-icon { width: 22px; height: 22px; }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--text-primary); line-height: 1.2; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   15. Review / Rating
   ============================================================ */

.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars .star { width: 16px; height: 16px; color: #d1d5db; fill: #d1d5db; }
.stars .star.filled { color: #f59e0b; fill: #f59e0b; }
.stars.stars-lg .star { width: 24px; height: 24px; }
.stars.stars-sm .star { width: 12px; height: 12px; }

.rating-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.rating-average { text-align: center; flex-shrink: 0; padding-right: 20px; border-right: 1px solid var(--border); }
.rating-number { font-family: var(--font-display); font-size: 52px; font-weight: 900; color: var(--text-primary); line-height: 1; margin-bottom: 6px; }
.rating-count { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.rating-breakdown { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.rating-bar-label { width: 20px; text-align: right; flex-shrink: 0; font-weight: 600; }
.rating-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f59e0b; border-radius: 3px; transition: width 0.6s ease; }
.rating-bar-count { width: 28px; flex-shrink: 0; font-size: 11px; }

/* Review Card */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface); overflow: hidden; flex-shrink: 0; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-user-info { flex: 1; min-width: 0; }
.review-user-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.review-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.review-date { margin-left: auto; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.review-comment { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }
.review-item-ref { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px; background: var(--bg-surface); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-muted); }
.review-item-ref img { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

/* ============================================================
   16. FAQ
   ============================================================ */

.faq-page { padding: calc(var(--header-h) + 32px) 0 80px; }
.faq-page-header { text-align: center; margin-bottom: 32px; }
.faq-page-header h1 { font-family: var(--font-sora); font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.faq-page-header p { font-size: 15px; color: var(--text-secondary); }
.faq-category { margin-bottom: 32px; text-align: center; }
.faq-category-title { font-family: var(--font-sora); font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-blue); display: inline-block; }
.faq-page .faq-list { max-width: 780px; margin: 0 auto; text-align: left; }
.faq-page .filter-badges { max-width: 780px; margin: 0 auto 32px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; background: var(--bg-primary); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    gap: 12px;
    transition: background var(--transition-fast);
}
.faq-question:hover { background: transparent; }
.faq-question span::before { content: 'Q. '; color: var(--accent-red); font-weight: 800; }
.faq-question .lucide-icon { width: 20px; height: 20px; color: var(--text-muted); transition: transform var(--transition-slow); flex-shrink: 0; }
.faq-item.is-open .faq-question { background: transparent; }
.faq-item.is-open .faq-question .lucide-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item.is-open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 4px 24px 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.faq-answer-inner::before { content: 'A. '; color: var(--accent-blue); font-weight: 800; }
.faq-answer-inner a { color: var(--accent-blue); text-decoration: underline; }
.faq-contact-cta {
    text-align: center;
    margin-top: 48px;
}
.faq-contact-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ============================================================
   17. CTA Section
   ============================================================ */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 200%; background: rgba(255, 255, 255, 0.04); border-radius: 50%; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; }
.cta-label { display: inline-block; background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.9); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 16px; border-radius: 20px; margin-bottom: 16px; }
.cta-title { font-family: var(--font-display); font-size: 36px; font-weight: 900; color: var(--text-white); margin-bottom: 16px; line-height: 1.3; letter-spacing: -0.02em; }
.cta-subtitle { font-size: 16px; color: rgba(255, 255, 255, 0.82); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-outline-white { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: #fff; }

/* ============================================================
   17b. Top Articles Grid (ClawBuilder style)
   ============================================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card .card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 8px;
    text-align: center;
}
.article-card .card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}
.article-card .card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* ============================================================
   18. Footer
   ============================================================ */

.site-footer { background: var(--bg-dark); color: var(--text-muted); padding: 56px 0 40px; }

.footer-top { display: flex; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 28px; }
.footer-brand { flex-shrink: 0; max-width: 220px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-white); text-decoration: none; letter-spacing: -0.02em; margin-bottom: 10px; }
.footer-logo:hover { color: var(--accent-blue); }
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.footer-logo-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--accent-blue); border-radius: 6px; color: var(--text-white); flex-shrink: 0; }
.footer-logo-icon .lucide-icon { width: 16px; height: 16px; }
.footer-brand-desc { font-size: 12px; line-height: 1.7; color: var(--text-muted); }

/* 3-column nav */
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; flex: 1; }
.footer-col-title { color: var(--text-white); font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col-links { display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a { color: var(--text-muted); font-size: 13px; transition: color var(--transition-base); display: inline-flex; align-items: center; gap: 5px; }
.footer-col-links a:hover { color: var(--text-white); }
.footer-col-links a .lucide-icon { width: 13px; height: 13px; flex-shrink: 0; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { color: var(--text-muted); font-size: 12px; transition: color var(--transition-base); }
.footer-legal-links a:hover { color: var(--text-white); }
.footer-copyright { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   19. Auth Pages (Login / Signup)
   ============================================================ */

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg-secondary); }

/* Centered card - max-width 440px */
.auth-card { width: 100%; max-width: 440px; background: var(--bg-primary); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 40px; }

.auth-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.auth-logo-img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 8px; }
.auth-logo a { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.auth-logo a:hover { color: var(--accent-blue); }
.auth-logo .logo-icon { width: 36px; height: 36px; }

/* Large centered title */
.auth-title { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--text-primary); text-align: center; margin-bottom: 8px; line-height: 1.3; }

/* Muted description */
.auth-description { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 28px; line-height: 1.6; }

.auth-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 11px 20px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-primary); color: var(--text-primary);
    font-size: 14px; font-weight: 600; cursor: pointer;
    font-family: var(--font-sans); text-decoration: none;
    transition: all var(--transition-base);
}
.btn-social:hover { background: var(--bg-secondary); border-color: var(--text-muted); color: var(--text-primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-social img { width: 18px; height: 18px; object-fit: contain; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-terms { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; line-height: 1.6; }
.auth-terms a { color: var(--accent-blue); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--accent-blue); font-weight: 600; }

/* Mail Providers - Gmail/Yahoo/Outlook quick links after sending */
.mail-providers { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mail-providers-label { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 4px; }
.mail-provider-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 16px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-primary); color: var(--text-secondary);
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: var(--font-sans); text-decoration: none;
    transition: all var(--transition-base);
}
.mail-provider-btn:hover { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--text-muted); transform: translateY(-1px); }
.mail-provider-btn img { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   20. Legal Pages
   ============================================================ */

.legal-page { padding: calc(var(--header-h) + 40px) 0 80px; }
.legal-content { max-width: 780px; margin: 0 auto; padding: calc(var(--header-h) + 32px) 24px 80px; }
.legal-content h1 { font-family: var(--font-display); font-size: 28px; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.02em; }
.legal-date { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 40px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-content h3 { font-size: 17px; font-weight: 700; margin-top: 24px; margin-bottom: 8px; }
.legal-content p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.85; }
.legal-content ul, .legal-content ol { margin-bottom: 16px; padding-left: 24px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 8px; color: var(--text-secondary); line-height: 1.8; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; border: 1px solid var(--border); }
.legal-table th { background: var(--bg-secondary); font-weight: 700; width: 32%; color: var(--text-primary); }
.legal-table td { color: var(--text-secondary); }


/* ============================================================
   21. ARTICLE PAGES
   ============================================================ */

.articles-page {
    padding: calc(var(--header-h) + 32px) 0 80px;
}

/* Articles Page Header */
.articles-page-header {
    text-align: center;
    margin-bottom: 32px;
}
.articles-page-title {
    font-family: var(--font-sora);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.articles-page-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Category Filter Tabs */
.articles-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}
.articles-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    transition: all 0.2s;
}
.articles-filter-tab:hover { color: var(--accent-blue); background: var(--accent-blue-light, #eff6ff); }
.articles-filter-tab.is-active { color: var(--accent-blue); background: var(--accent-blue-light, #eff6ff); border-color: var(--accent-blue); font-weight: 700; }
.articles-filter-tab .lucide-icon { width: 14px; height: 14px; }
.articles-filter-count { font-family: var(--font-mono); font-size: 11px; background: rgba(0,0,0,0.06); padding: 1px 7px; border-radius: 99px; }
.articles-filter-tab.is-active .articles-filter-count { background: rgba(37,99,235,0.15); }

/* Category Label */
.articles-category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Articles Empty */
.articles-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.articles-empty-icon { width: 48px; height: 48px; margin-bottom: 12px; }
.articles-empty p { margin-bottom: 16px; }

/* Articles CTA */
.articles-cta {
    margin-top: 48px;
}
.articles-cta-inner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    color: #fff;
}
.articles-cta-title { font-family: var(--font-sora); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.articles-cta-desc { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.articles-cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.articles-header {
    margin-bottom: 48px;
    text-align: center;
}

.articles-header h1 {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.articles-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-thumbnail .thumb-placeholder {
    font-size: 40px;
    color: var(--text-muted);
}

.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-category-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--accent-light);
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    width: fit-content;
}

.article-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.article-card-meta time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Article Detail */
.article-detail-page {
    padding: 40px 0 80px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: opacity var(--transition);
}

.article-breadcrumb a:hover {
    opacity: 0.75;
}

.article-breadcrumb span {
    color: var(--border-strong);
}

.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-header {
    margin-bottom: 32px;
}

.article-header .article-category-badge {
    margin-bottom: 12px;
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-meta-row time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-eye-catch {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.article-eye-catch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Table of Contents */
.article-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 36px;
}

.article-toc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.article-toc li {
    counter-increment: toc-counter;
    margin-bottom: 6px;
}

.article-toc li a {
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    transition: opacity var(--transition);
}

.article-toc li a::before {
    content: counter(toc-counter) ".";
    font-weight: 700;
    flex-shrink: 0;
    color: var(--accent-blue);
}

.article-toc li a:hover {
    opacity: 0.75;
}

.article-toc li.toc-h3 {
    padding-left: 20px;
}

/* Article Content */
.article-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 16px;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 48px 0 20px;
    padding-left: 16px;
    border-left: 4px solid var(--accent-blue);
    line-height: 1.4;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.article-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.article-content a:hover {
    opacity: 0.75;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 4px solid var(--border-strong);
    background: var(--bg-secondary);
    margin: 28px 0;
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content pre {
    background: var(--text-primary);
    color: #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
}

.article-content code {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--accent-blue);
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
}

.article-content th {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
}

.article-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    color: var(--text-secondary);
    vertical-align: top;
}

.article-content tr:nth-child(even) td {
    background: var(--bg-secondary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 20px 0;
    display: block;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-sidebar-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-sidebar-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.article-sidebar-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.article-sidebar-list li a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 13px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    line-height: 1.5;
}

.article-sidebar-list li a:hover {
    background: var(--bg-secondary);
    color: var(--accent-blue);
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}

.related-articles-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Article CTA */
.article-cta-box {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin: 48px 0;
    text-align: center;
    color: var(--text-white);
}

.article-cta-box h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-white);
    border: none;
    padding: 0;
}

.article-cta-box p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    color: var(--text-white);
}

.article-cta-box .btn {
    background: var(--text-white);
    color: var(--accent-blue);
    font-weight: 700;
}

.article-cta-box .btn:hover {
    background: var(--accent-light);
}


/* Toast: see line ~1890 for definitions */


/* ============================================================
   23. MODAL
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.modal-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-overlay.modal-open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}

/* Modal variants */
.modal-sm .modal-content { max-width: 380px; }
.modal-lg .modal-content { max-width: 720px; }
.modal-xl .modal-content { max-width: 960px; }

/* Confirm modal */
.modal-confirm .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 32px 24px;
}

.modal-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-confirm-icon.icon-warning {
    background: #fef3c7;
    color: #d97706;
}

.modal-confirm-icon.icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.modal-confirm-icon.icon-info {
    background: var(--accent-light);
    color: var(--accent-blue);
}

.modal-confirm-text h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-confirm-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Image modal / lightbox */
.modal-image-content {
    background: transparent;
    max-width: 90vw;
    box-shadow: none;
}

.modal-image-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

/* Bottom sheet on mobile */
@media (max-width: 480px) {
    .modal-overlay.modal-sheet {
        align-items: flex-end;
        padding: 0;
    }

    .modal-overlay.modal-sheet .modal-content {
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 88vh;
        transform: translateY(100%);
    }

    .modal-overlay.modal-sheet.modal-open .modal-content {
        transform: translateY(0);
    }

    .modal-overlay.modal-sheet .modal-header {
        padding-top: 24px;
    }

    /* Drag handle */
    .modal-overlay.modal-sheet .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-strong);
        border-radius: 2px;
        margin: 12px auto -4px;
    }
}


/* ============================================================
   24. 404 PAGE
   ============================================================ */

.page-404 {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.page-404-inner {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.page-404-code {
    font-family: var(--font-mono);
    font-size: clamp(80px, 20vw, 140px);
    font-weight: 900;
    line-height: 1;
    color: var(--accent-blue);
    letter-spacing: -4px;
    margin-bottom: 16px;
    opacity: 0.15;
    user-select: none;
}

.page-404-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 28px;
    color: var(--accent-blue);
    position: relative;
    z-index: 1;
}

.page-404-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-404-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.page-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-404-search {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.page-404-search input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: border-color var(--transition);
}

.page-404-search input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-primary);
}

.page-404-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.page-404-links a {
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid var(--accent-blue);
    border-radius: 100px;
    transition: background var(--transition), color var(--transition);
}

.page-404-links a:hover {
    background: var(--accent-blue);
    color: var(--text-white);
}

/* 403 / 500 variants */
.page-error {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.page-error-inner {
    text-align: center;
    max-width: 480px;
}

.page-error-code {
    font-family: var(--font-mono);
    font-size: clamp(60px, 15vw, 100px);
    font-weight: 900;
    color: #dc2626;
    opacity: 0.12;
    line-height: 1;
    margin-bottom: 0;
}

.page-error-icon {
    width: 72px;
    height: 72px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -48px auto 24px;
    color: #dc2626;
    position: relative;
    z-index: 1;
}

.page-error-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-error-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}


/* ============================================================
   25. LOADING / EMPTY STATES
   ============================================================ */

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.skeleton-sm { height: 12px; width: 60%; }
.skeleton-text.skeleton-md { height: 14px; width: 85%; }
.skeleton-text.skeleton-lg { height: 18px; width: 70%; }
.skeleton-text.skeleton-title { height: 24px; width: 55%; }

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
}

.skeleton-image-wide {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-badge {
    width: 60px;
    height: 20px;
    border-radius: 100px;
}

/* Item card skeleton */
.item-card-skeleton {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}

.item-card-skeleton .skeleton-image {
    border-radius: 0;
    aspect-ratio: 1 / 1;
}

.item-card-skeleton .skeleton-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Page loading overlay */
.page-loading {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

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

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

.page-loading-text {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Inline spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    opacity: 0.7;
    vertical-align: middle;
}

.spinner-sm { width: 14px; height: 14px; }
.spinner-lg { width: 24px; height: 24px; border-width: 3px; }

/* Button loading state */
.btn.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-primary.btn-loading::after { color: var(--text-white); }

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
    gap: 16px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.empty-state-icon svg {
    width: 32px;
    height: 32px;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-state-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 320px;
}

.empty-state-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* Empty state variants */
.empty-state-sm {
    padding: 32px 16px;
}

.empty-state-sm .empty-state-icon {
    width: 52px;
    height: 52px;
}

.empty-state-sm .empty-state-icon svg {
    width: 24px;
    height: 24px;
}

.empty-state-sm .empty-state-title {
    font-size: 15px;
}


/* Infinite scroll loader */
.load-more-trigger {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    gap: 8px;
}

.load-more-btn-wrap {
    text-align: center;
    padding: 32px 0;
}



/* ==========================================================================
   SUPPLEMENTAL - All required classes not yet defined above
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header: subnav, user area, hamburger label, mobile-menu-logout
   -------------------------------------------------------------------------- */
.header-subnav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    margin-left: 20px;
}
.header-subnav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: color 0.2s, background-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.header-subnav a:hover {
    color: var(--accent-blue);
    background-color: var(--accent-blue-light);
}
.header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.header-user:hover { background-color: var(--bg-surface); }
.header-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
}
.header-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-logout-btn {
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-md);
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
}
.header-logout-btn:hover { color: #dc2626; background-color: #fee2e2; }
.hamburger-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.mobile-menu-logout {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}
.mobile-menu-logout:hover { background-color: #fee2e2 !important; }

/* --------------------------------------------------------------------------
   Hero Spec Cards
   -------------------------------------------------------------------------- */
.hero-visual-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    position: relative;
    z-index: 1;
}
.hero-spec-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    backdrop-filter: blur(8px);
    transition: transform 0.2s, background-color 0.2s;
}
.hero-spec-card:hover { transform: translateX(-4px); background-color: rgba(255,255,255,0.16); }
.hero-spec-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    background-color: var(--accent-blue);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    letter-spacing: 0.04em;
}
.hero-spec-mem {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}
.hero-spec-price {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Merit Icon Variants
   -------------------------------------------------------------------------- */
.merit-icon-green { background-color: #f0fdf4; color: #16a34a; }
.merit-icon-orange { background-color: #fff7ed; color: #ea580c; }

/* --------------------------------------------------------------------------
   Flow Steps
   -------------------------------------------------------------------------- */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 16px;
    position: relative;
}
.flow-grid::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--border);
    z-index: 0;
}
.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
.flow-number {
    width: 40px;
    height: 40px;
    background-color: var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 14px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    margin: 0 auto 12px;
}
.flow-icon .lucide-icon { width: 20px; height: 20px; }
.flow-step h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.flow-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }
@media (max-width: 768px) {
    .flow-grid { grid-template-columns: 1fr; gap: 16px; }
    .flow-grid::before { display: none; }
    .flow-step { flex-direction: row; text-align: left; gap: 16px; }
}

/* --------------------------------------------------------------------------
   Item Image Placeholder + Item Meta
   -------------------------------------------------------------------------- */
.item-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}
.item-image-placeholder .lucide-icon { width: 40px; height: 40px; }
.item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ Supplements
   -------------------------------------------------------------------------- */
.faq-more { text-align: center; margin-top: 24px; }

/* --------------------------------------------------------------------------
   Filter Badges (FAQ & Articles)
   -------------------------------------------------------------------------- */
.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 780px;
    margin: 0 auto 24px;
}
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.filter-badge .lucide-icon { width: 14px; height: 14px; }
.filter-badge:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.filter-badge.is-active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}
.filter-item-hidden { display: none !important; }

.faq-section { padding: calc(var(--header-h) + 40px) 0 80px; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header h1 { font-size: 30px; font-weight: 900; margin-bottom: 10px; }
.faq-header p { font-size: 15px; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-page { padding: calc(var(--header-h) + 32px) 0 80px; }
.contact-page-header { text-align: center; margin-bottom: 40px; }
.contact-page-header h1 { font-family: var(--font-sora); font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.contact-page-header p { font-size: 15px; color: var(--text-secondary); }
.contact-form { max-width: 600px; margin: 0 auto 40px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form .form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.contact-form .form-required { color: var(--accent-red); margin-left: 4px; }
.contact-form .form-input,
.contact-form .form-select,
.contact-form .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}
.contact-form .form-input:focus,
.contact-form .form-select:focus,
.contact-form .form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.contact-form .form-textarea { resize: vertical; min-height: 120px; }
.contact-form .form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.contact-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.contact-success { text-align: center; padding: 32px 16px; }
.contact-success-icon { width: 48px; height: 48px; color: #16a34a; margin-bottom: 16px; }
.contact-success-title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.contact-success-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.contact-info { max-width: 600px; margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 200px; padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-md); }
.contact-info-item .lucide-icon { width: 20px; height: 20px; color: var(--accent-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item a { color: var(--accent-blue); font-size: 14px; text-decoration: none; }
.contact-info-item a:hover { text-decoration: underline; }
.contact-info-item p { font-size: 14px; color: var(--text-primary); margin: 0; }

/* --------------------------------------------------------------------------
   Flow Tabs (Seller / Buyer)
   -------------------------------------------------------------------------- */
.flow-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}
.flow-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 2px solid var(--border);
    border-radius: 99px;
    background: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.flow-tab:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.flow-tab.is-active {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.flow-tab .lucide-icon { width: 16px; height: 16px; }
.flow-panel { display: none; }
.flow-panel.is-active { display: grid; }

/* --------------------------------------------------------------------------
   Scroll Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-red);
    z-index: 9999;
    transition: width 0.1s;
}

/* --------------------------------------------------------------------------
   Fixed CTA (PC only, right-bottom)
   -------------------------------------------------------------------------- */
.fixed-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
    max-width: 200px;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s;
}
.fixed-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fixed-cta:hover { box-shadow: 0 12px 40px rgba(37, 99, 235, 0.55); }
.fixed-cta-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.fixed-cta-close:hover { color: #fff; }
.fixed-cta-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}
.fixed-cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 99px;
    letter-spacing: 0.05em;
}
.fixed-cta-heading {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}
.fixed-cta .btn-white {
    background: #fff;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.fixed-cta .btn-white .lucide-icon { width: 14px; height: 14px; }

@media (max-width: 768px) {
    .fixed-cta { display: none !important; }
}

/* --------------------------------------------------------------------------
   Footer col (standalone)
   -------------------------------------------------------------------------- */
.footer-col { min-width: 0; }

/* --------------------------------------------------------------------------
   Auth Section (wraps .auth-card on a centered page)
   -------------------------------------------------------------------------- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 40px) 24px 80px;
    background-color: var(--bg-secondary);
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.7;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-label { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.form-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-primary);
    background-color: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    line-height: 1.5;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-hint { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   Verify Page
   -------------------------------------------------------------------------- */
.verify-page,
.verify-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 40px) 24px 80px;
    background-color: var(--bg-secondary);
}
.verify-card {
    background-color: #fff;
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    text-align: center;
}
.verify-card h2 {
    font-family: var(--font-sora);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.verify-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0; }
.verify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    margin: 0 auto 24px;
}
.verify-icon-error { background-color: var(--accent-red-light); color: var(--accent-red); }
.verify-icon .lucide-icon { width: 32px; height: 32px; }
.verify-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.verify-title {
    font-family: var(--font-sora);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.verify-message { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* --------------------------------------------------------------------------
   Legal Pages (semantic sections)
   -------------------------------------------------------------------------- */
.legal-section { padding: calc(var(--header-h) + 40px) 0 80px; }
.legal-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.legal-title {
    font-family: var(--font-sora);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.legal-body {
    max-width: 760px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.85;
}
.legal-body h2 {
    font-family: var(--font-sora);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
}
.legal-body h3 { font-family: var(--font-sora); font-size: 17px; font-weight: 700; color: var(--text-primary); margin-top: 24px; margin-bottom: 10px; }
.legal-body p { margin-bottom: 16px; }
.legal-body ul, .legal-body ol { margin-bottom: 16px; padding-left: 24px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin-bottom: 8px; line-height: 1.75; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0 32px; font-size: 14px; }
.legal-body th { background-color: var(--bg-secondary); font-weight: 700; text-align: left; padding: 12px 16px; border: 1px solid var(--border); white-space: nowrap; vertical-align: top; }
.legal-body td { padding: 12px 16px; border: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; line-height: 1.7; }

/* --------------------------------------------------------------------------
   404 Error Page
   -------------------------------------------------------------------------- */
.error-section {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}
.error-code {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
    user-select: none;
}
.error-title { font-family: var(--font-sora); font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.error-message { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; max-width: 400px; line-height: 1.75; }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15,23,42,0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    backdrop-filter: blur(3px);
}
.modal-overlay.is-visible { opacity: 1; visibility: visible; }
.modal-content {
    background-color: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.is-visible .modal-content { transform: translateY(0) scale(1); }
.modal-body { padding: 32px 32px 20px; }
.modal-body p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 32px 28px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Detail Page: spec items, actions, buy button
   -------------------------------------------------------------------------- */
.detail-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
@media (min-width: 480px) { .detail-specs { grid-template-columns: repeat(3, 1fr); } }
.detail-spec-item {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    border: 1px solid var(--border);
}
.detail-spec-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.detail-spec-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.detail-actions {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.detail-buy-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.detail-buy-btn:hover { background-color: var(--accent-blue-dark); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.detail-buy-btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   Comments: section container, user avatar, timestamp
   -------------------------------------------------------------------------- */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.comment-user {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
    overflow: hidden;
}
.comment-user img { width: 100%; height: 100%; object-fit: cover; }
.comment-time {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Filter Range + Bar
   -------------------------------------------------------------------------- */
.filter-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-range input[type="number"] {
    display: block;
    flex: 1;
    padding: 9px 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    background-color: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    text-align: right;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-range input[type="number"]:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.filter-range span { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    margin-bottom: 20px;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .btn { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Chat Section: required class names
   -------------------------------------------------------------------------- */
.chat-section {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-h));
    padding-top: var(--header-h);
}
.chat-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--accent-blue-light);
    border-bottom: 1px solid rgba(37,99,235,0.2);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
    flex-shrink: 0;
}
.chat-status-bar .lucide-icon { width: 14px; height: 14px; flex-shrink: 0; }
.chat-bubble-mine {
    align-self: flex-end;
    align-items: flex-end;
    max-width: 72%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-bubble-other {
    align-self: flex-start;
    align-items: flex-start;
    max-width: 72%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-bubble-system {
    align-self: center;
    align-items: center;
    max-width: 90%;
    display: flex;
    flex-direction: column;
}
.chat-bubble-body {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}
.chat-bubble-mine .chat-bubble-body { background-color: var(--accent-blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble-other .chat-bubble-body { background-color: #fff; color: var(--text-primary); border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-bubble-system .chat-bubble-body { background-color: var(--bg-surface); color: var(--text-secondary); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 6px 16px; }
.chat-bubble-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    padding: 0 4px;
}
.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background-color: #fff;
    flex-shrink: 0;
}
.chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.chat-send-btn:hover { background-color: var(--accent-blue-dark); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.chat-send-btn:active { transform: scale(0.94); }
.chat-send-btn .lucide-icon { width: 18px; height: 18px; }
.address-bar {
    background-color: #fefce8;
    border: 1px solid rgba(202,138,4,0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 12px 16px;
}
.address-info {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #ca8a04;
}
.address-info .lucide-icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Mypage: item list
   -------------------------------------------------------------------------- */
.mypage-item-list { display: flex; flex-direction: column; gap: 10px; }
.mypage-panel.active { display: block; }

/* --------------------------------------------------------------------------
   Review Stars
   -------------------------------------------------------------------------- */
.review-stars { display: flex; align-items: center; gap: 3px; }
.review-star { width: 16px; height: 16px; color: var(--border); flex-shrink: 0; }
.review-star.filled { color: #f59e0b; }
.review-star.half-filled { color: #fcd34d; }

/* --------------------------------------------------------------------------
   Articles (Phase 6)
   -------------------------------------------------------------------------- */
.article-section { padding: calc(var(--header-h) + 32px) 0 80px; }
.article-section > .container { max-width: 820px; }
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-category-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; }
.article-category-tag .lucide-icon { width: 13px; height: 13px; }
.article-meta .lucide-icon { width: 13px; height: 13px; }
.article-toc-title .lucide-icon { width: 14px; height: 14px; }
.articles-category-label .lucide-icon { width: 16px; height: 16px; }
.articles-empty-icon { width: 48px; height: 48px; }
.article-related-title { font-family: var(--font-sora); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.article-title {
    font-family: var(--font-sora);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.article-date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
.article-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 760px;
}
.article-body h2 { font-family: var(--font-sora); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-top: 48px; margin-bottom: 16px; padding-left: 16px; border-left: 4px solid var(--accent-blue); }
.article-body h3 { font-family: var(--font-sora); font-size: 17px; font-weight: 700; color: var(--text-primary); margin-top: 32px; margin-bottom: 12px; }
.article-body p { margin-bottom: 20px; }
.article-body a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.article-body a:hover { color: var(--accent-blue-dark); }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.75; }
.article-body code { font-family: var(--font-mono); font-size: 0.875em; background-color: var(--bg-surface); color: var(--accent-blue); padding: 0.15em 0.45em; border-radius: 4px; }
.article-body pre { background-color: var(--bg-dark); color: #e2e8f0; border-radius: var(--radius-md); padding: 24px; overflow-x: auto; margin-bottom: 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body img { border-radius: var(--radius-md); margin-bottom: 24px; }
.article-body blockquote { border-left: 4px solid var(--accent-blue); padding-left: 20px; margin-bottom: 24px; color: var(--text-secondary); font-style: italic; }
.article-body .spec-table-wrap { overflow-x: auto; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.article-body .spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-body .spec-table th { background: var(--bg-secondary); border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-weight: 700; font-size: 13px; color: var(--text-primary); white-space: nowrap; }
.article-body .spec-table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 13px; color: var(--text-secondary); }
.article-body .spec-table tr:nth-child(even) td { background: var(--bg-secondary); }
.article-body .code-block { margin-bottom: 24px; }

/* Table of Contents */
.article-toc {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.article-toc-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.article-toc-list { display: flex; flex-direction: column; gap: 6px; list-style: none; padding: 0; margin: 0; }
.article-toc-list li a { font-size: 13px; color: var(--text-secondary); text-decoration: none; display: flex; gap: 8px; padding: 4px 8px; border-radius: 4px; line-height: 1.5; transition: color 0.2s, background-color 0.2s; }
.article-toc-list li a:hover { color: var(--accent-blue); background-color: var(--accent-blue-light); }
.article-toc-list li a::before { content: '—'; color: var(--text-muted); flex-shrink: 0; font-size: 11px; margin-top: 2px; }

/* TOC Toggle */
.article-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    margin-bottom: 14px;
}
.article-toc-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.article-toc.is-collapsed .article-toc-chevron {
    transform: rotate(180deg);
}
.article-toc .article-toc-body {
    overflow: hidden;
    max-height: 600px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.article-toc.is-collapsed .article-toc-body {
    max-height: 0;
    opacity: 0;
}
.article-toc.is-collapsed .article-toc-toggle {
    margin-bottom: 0;
}
.article-toc {
    transition: padding 0.3s ease;
}
.article-toc.is-collapsed {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    text-align: center;
    color: #fff;
}
.article-cta h2, .article-cta h3 { font-family: var(--font-sora); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.article-cta p { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.article-cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.article-cta-inline { margin-bottom: 48px; }

/* SP: Fixed CTA Bar */
.article-cta-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.article-cta-fixed.is-visible {
    transform: translateY(0);
}
.article-cta-fixed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
}
.article-cta-fixed-btn .lucide-icon {
    width: 18px;
    height: 18px;
}

/* PC: Sticky TOC */
.article-toc-sticky {
    position: fixed;
    top: calc(var(--header-h) + 32px);
    right: max(16px, calc((100vw - 820px) / 2 - 280px));
    width: 240px;
    max-height: calc(100vh - var(--header-h) - 64px);
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 50;
}
.article-toc-sticky.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.article-toc-sticky-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    margin-bottom: 12px;
}
.article-toc-sticky-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-toc-sticky-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.article-toc-sticky.is-collapsed .article-toc-sticky-chevron {
    transform: rotate(180deg);
}
.article-toc-sticky .article-toc-sticky-body {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.article-toc-sticky.is-collapsed .article-toc-sticky-body {
    max-height: 0;
    opacity: 0;
}
.article-toc-sticky.is-collapsed .article-toc-sticky-toggle {
    margin-bottom: 0;
}
.article-toc-sticky ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-toc-sticky li {
    margin-bottom: 4px;
}
.article-toc-sticky a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    line-height: 1.5;
}
.article-toc-sticky a:hover {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}
.article-toc-sticky a.is-active {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    font-weight: 700;
}

/* SP: TOC FAB Button + Panel */
.toc-fab {
    position: fixed;
    bottom: 72px;
    right: 16px;
    z-index: 899;
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 10px 16px;
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}
.toc-fab .lucide-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}
.toc-fab.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.toc-fab-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--bg-primary);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    padding: 20px 24px 32px;
    box-shadow: var(--shadow-xl);
    transform: translateY(100%);
    transition: transform 0.3s;
}
.toc-fab-panel.is-open {
    transform: translateY(0);
}
.toc-fab-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
}
.toc-fab-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
}
.toc-fab-close .lucide-icon {
    width: 20px;
    height: 20px;
}
.toc-fab-panel ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-fab-panel li {
    margin-bottom: 2px;
}
.toc-fab-panel a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.toc-fab-panel a:hover {
    background: var(--bg-secondary);
}
.toc-fab-panel a.is-active {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    font-weight: 700;
}
.toc-fab-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.toc-fab-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Article FAQ */
.article-faq { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.article-faq h2 { font-family: var(--font-sora); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }

/* Related Articles */
.article-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

/* Articles Grid + Card */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    padding: 20px;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-top { margin-bottom: 10px; text-align: center; }
.article-card-category { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.article-card-category .lucide-icon { width: 12px; height: 12px; }
.article-card-date .lucide-icon, .article-card-time .lucide-icon { width: 12px; height: 12px; }
.article-card-title { font-family: var(--font-sora); font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); margin-top: auto; }
.article-card-date, .article-card-time { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11px; }

/* --------------------------------------------------------------------------
   Breadcrumb Item
   -------------------------------------------------------------------------- */
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-item a:hover { color: var(--accent-blue); }
.breadcrumb-item:last-child { color: var(--text-secondary); }
.breadcrumb-item:not(:last-child)::after { content: '/'; color: var(--border); flex-shrink: 0; }

/* ============================================================
   GLOBAL: FORMS
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label .required {
    color: #dc2626;
    margin-left: 3px;
}

.form-label .optional {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
    background: var(--bg-secondary);
    padding: 1px 6px;
    border-radius: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #dc2626;
    background: #fff5f5;
}

.form-input.success,
.form-textarea.success {
    border-color: #16a34a;
}

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

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.5;
}

.form-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Checkbox and radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    background: var(--bg-secondary);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: border-color var(--transition), background var(--transition);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

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

.form-check-input:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: white;
    border-radius: 2px;
}

.form-check-input[type="radio"]:checked::after {
    border-radius: 50%;
}

.form-check-label {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    cursor: pointer;
}

/* Input group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-input {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    flex-shrink: 0;
}

.input-group-text {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.input-group-text:first-child {
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group-text:last-child {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Range input */
.form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    outline: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Price range */
.price-range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.price-range-input {
    width: 110px;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-family: var(--font-mono);
    text-align: right;
}

.price-range-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.price-range-sep {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================================
   GLOBAL: PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.pagination-item a,
.pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    background: var(--bg-primary);
}

.pagination-item a:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-light);
}

.pagination-item.active span {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-white);
    font-weight: 700;
}

.pagination-item.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-prev a,
.pagination-next a {
    gap: 4px;
    font-size: 13px;
}

.pagination-ellipsis span {
    border-color: transparent;
    background: none;
    color: var(--text-muted);
    cursor: default;
}

/* Compact pagination */
.pagination-compact {
    gap: 4px;
}

.pagination-compact .pagination-item a,
.pagination-compact .pagination-item span {
    min-width: 30px;
    height: 30px;
    font-size: 13px;
}

/* ============================================================
   GLOBAL: BADGES & TAGS
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.4;
}

.badge-blue {
    background: var(--accent-light);
    color: var(--accent-blue);
}

.badge-green {
    background: #dcfce7;
    color: #16a34a;
}

.badge-yellow {
    background: #fef9c3;
    color: #a16207;
}

.badge-red {
    background: #fee2e2;
    color: #dc2626;
}

.badge-gray {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge-dark {
    background: var(--text-primary);
    color: var(--text-white);
}

.badge-outline {
    background: transparent;
    border: 1.5px solid currentColor;
}

/* Tag chips (filterable) */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--bg-secondary);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    user-select: none;
    white-space: nowrap;
}

.tag-chip:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-light);
}

.tag-chip.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-white);
}

.tag-chip .tag-remove {
    display: flex;
    align-items: center;
    margin-left: 2px;
    opacity: 0.7;
}

/* ============================================================
   GLOBAL: UTILITY CLASSES
   ============================================================ */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flexbox helpers */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-blue); }
.text-white { color: var(--text-white); }
.text-danger { color: #dc2626; }
.text-success { color: #16a34a; }
.text-warning { color: #d97706; }
.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-md { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.font-mono { font-family: var(--font-mono); }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Backgrounds */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-accent { background: var(--accent-blue); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-xs { max-width: 320px; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Border radius */
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

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

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(37, 99, 235, 0.15);
    color: var(--text-primary);
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.divider-vertical {
    width: 1px;
    height: auto;
    background: var(--border);
    align-self: stretch;
}

/* Alert boxes */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--text-white);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    transform: translateX(-50%) translateY(4px);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Global Responsive (Hero + Merit + Sections)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid { gap: 32px; }
    .hero-title { font-size: 36px; }
    .hero-visual { min-height: 340px; padding: 32px 24px; }
    .merit-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-content { padding-bottom: 0; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-note { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { min-height: 280px; padding: 28px 20px; margin-top: 24px; }
    .hero-title { font-size: clamp(26px, 6vw, 36px); }
    .merit-grid { grid-template-columns: 1fr; }
    .section-title { font-size: clamp(22px, 5vw, 32px); }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 24px; }
    .footer-nav { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-legal-links { flex-direction: column; gap: 8px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { justify-content: center; }

    /* SP: Sticky TOC非表示、FAB/CTA fixed表示 */
    .article-toc-sticky { display: none !important; }
    .article-cta-fixed { display: block; }
    .toc-fab { display: flex; }
}
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    .hero-stat-value { font-size: 22px; }
    .footer-nav { grid-template-columns: 1fr; gap: 24px; }
}

/* Print */
@media print {
    .header, .footer, .sidebar, .filter-sidebar,
    .btn, .modal-overlay, .toast-container {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a { text-decoration: none; color: #000; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ============================================================
   Seller Info Link
   ============================================================ */

.seller-info-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-sm);
    padding: 4px;
    margin: -4px;
    transition: background var(--transition-fast);
}

.seller-info-link:hover {
    background: var(--bg-surface);
    color: inherit;
}

/* ============================================================
   Profile Page
   ============================================================ */

.profile-section {
    padding: 48px 0 80px;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-large .lucide-icon {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

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

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.profile-display-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    padding: 2px 8px;
    border-radius: 99px;
}

.badge-verified .lucide-icon {
    width: 12px;
    height: 12px;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-meta-item .lucide-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-yellow);
    font-weight: 600;
}

.profile-rating .lucide-icon {
    width: 14px;
    height: 14px;
}

.profile-rating-count {
    color: var(--text-muted);
    font-weight: 400;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.profile-bio {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 32px;
}

.profile-bio-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.profile-blocked-notice {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.profile-listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.profile-listings-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.profile-filter-toggle input[type="checkbox"] {
    accent-color: var(--accent-blue);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.profile-reviews {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-top: 32px;
}

.profile-reviews-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.profile-review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.profile-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.profile-review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--accent-yellow);
}

.profile-review-stars .lucide-icon {
    width: 14px;
    height: 14px;
}

.profile-review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-review-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--text-muted);
}

/* ============================================================
   Avatar Crop Modal
   ============================================================ */

.crop-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.crop-modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.crop-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.crop-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 380px;
    overflow: hidden;
    background: #111;
    border-radius: var(--radius-md);
    cursor: move;
    touch-action: none;
}

.crop-container canvas {
    display: block;
}

.crop-frame {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.crop-frame::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    pointer-events: all;
}

.crop-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* ============================================================
   More Menu (⋯ dropdown)
   ============================================================ */

.more-menu-wrap {
    position: relative;
    display: inline-block;
}

.more-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: background var(--transition-fast);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.more-menu-btn:hover {
    background: var(--border);
}

.more-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
    display: none;
}

.more-menu-dropdown.is-open {
    display: block;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.more-menu-item:hover {
    background: var(--bg-surface);
}

.more-menu-item.is-danger {
    color: var(--accent-red);
}

.more-menu-item .lucide-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================================
   Report Modal
   ============================================================ */

.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.report-modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.report-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.report-modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.report-reason-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.report-reason-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.report-reason-label:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.report-reason-label input[type="radio"] {
    accent-color: var(--accent-blue);
    flex-shrink: 0;
}

.report-detail-textarea {
    width: 100%;
    height: 80px;
    resize: vertical;
    margin-bottom: 16px;
}

.report-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================================
   Profile Page Responsive
   ============================================================ */

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }

    .profile-info {
        width: 100%;
    }

    .profile-name-row {
        justify-content: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
    }

    .profile-bio {
        padding: 20px;
    }

    .profile-reviews {
        padding: 20px;
    }

    .profile-listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

