/* ==========================================================================
   Pokazone - Pokemon Card Trading
   Simple & Responsive Style
   ========================================================================== */

/* Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-primary: #ef4444;
    --color-primary-dark: #dc2626;
    --color-accent: #fbbf24;
    --color-accent-dark: #f59e0b;
    --color-ink: #111827;
    --color-body: #374151;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-bg: #ffffff;
    --color-bg-soft: #f9fafb;
    --color-bg-card: #ffffff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

    --container: 1200px;
    --header-h: 64px;

    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
        'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-body);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4 {
    color: var(--color-ink);
    margin: 0 0 12px;
    line-height: 1.3;
    font-weight: 700;
}

p { margin: 0 0 12px; }
ul { margin: 0; padding: 0; list-style: none; }

/* Layout helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: 24px;
    margin: 0;
}

.section-head .link-more {
    font-size: 14px;
    color: var(--color-muted);
    transition: color 0.2s;
}

.section-head .link-more:hover {
    color: var(--color-primary);
}

/* Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: #fff;
    color: var(--color-ink);
    border: 1px solid var(--color-line);
}
.btn-outline:hover {
    border-color: var(--color-ink);
}

.btn-ghost {
    background: transparent;
    color: var(--color-body);
}
.btn-ghost:hover {
    color: var(--color-primary);
}

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-line);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

.logo-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    position: relative;
    box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px var(--color-ink) inset;
}
.logo-dot::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1.5px var(--color-ink);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-body);
    transition: all 0.15s;
}

.nav a:hover,
.nav a.is-active {
    color: var(--color-ink);
    background: var(--color-bg-soft);
}

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

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 240px;
    height: 40px;
    padding: 0 12px 0 36px;
    background: var(--color-bg-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background 0.2s;
}
.search-box:focus-within {
    background: #fff;
    border-color: var(--color-ink);
}
.search-box svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--color-muted);
}
.search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--color-ink);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
}
.menu-toggle span {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--color-ink);
    transition: 0.25s;
}
.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--color-ink);
    transition: 0.25s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }

body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* Header user chip (logged in)
   ========================================================================== */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: var(--color-bg-soft);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink);
    transition: background 0.15s;
}
.user-chip:hover { background: #f3f4f6; }
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.btn-block {
    display: flex;
    width: 100%;
    height: 48px;
    font-size: 15px;
}

/* Auth pages (login / register)
   ========================================================================== */
.auth {
    min-height: calc(100vh - var(--header-h) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.12), transparent 50%),
        radial-gradient(circle at 90% 100%, rgba(239, 68, 68, 0.08), transparent 55%),
        var(--color-bg-soft);
}

.auth-box {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.auth-box-sm { max-width: 420px; }

.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 {
    font-size: 26px;
    margin: 0 0 8px;
}
.auth-head p {
    color: var(--color-muted);
    font-size: 14px;
    margin: 0;
}

.auth-form .field { margin-bottom: 16px; }
.auth-form .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 6px;
}
.auth-form label .optional {
    color: var(--color-muted);
    font-weight: 500;
    margin-left: 4px;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="tel"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-ink);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--color-ink);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.auth-form .help {
    font-size: 12px;
    color: var(--color-muted);
    margin: 6px 0 0;
}

.agree-box {
    margin: 20px 0 24px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
}
.agree-box hr {
    border: 0;
    border-top: 1px solid var(--color-line);
    margin: 12px 0;
}
.agree {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-body);
    margin-bottom: 8px;
    cursor: pointer;
}
.agree:last-child { margin-bottom: 0; }
.agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.agree a { color: var(--color-ink); text-decoration: underline; }
.agree-all { font-size: 14px; }

.login-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
}
.login-opt .forgot {
    font-size: 13px;
    color: var(--color-muted);
}
.login-opt .forgot:hover { color: var(--color-ink); }

.auth-foot {
    margin: 20px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-muted);
}
.auth-foot a {
    color: var(--color-ink);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 560px) {
    .auth-box { padding: 28px 20px; }
    .auth-form .field-row { grid-template-columns: 1fr; gap: 0; }
    .auth-head h1 { font-size: 22px; }
    .user-nick { display: none; }
    .user-chip { padding: 2px; }
}

/* Hero
   ========================================================================== */
.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 85% 0%, rgba(251, 191, 36, 0.18), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(239, 68, 68, 0.12), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, var(--color-bg-soft) 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.hero-title .accent {
    color: var(--color-primary);
}
.hero-desc {
    font-size: 16px;
    color: var(--color-muted);
    margin-bottom: 28px;
    max-width: 460px;
}

.hero-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: var(--shadow-sm);
    max-width: 460px;
}
.hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    height: 44px;
    padding: 0 14px;
    background: transparent;
    font-size: 15px;
    color: var(--color-ink);
}
.hero-search .btn { height: 44px; }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}
.hero-stats li span {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
    margin-top: 4px;
}
.hero-stats li strong {
    font-size: 22px;
    color: var(--color-ink);
    font-weight: 700;
}

.hero-visual {
    position: relative;
    height: 380px;
}
.floating-card {
    position: absolute;
    width: 180px;
    aspect-ratio: 5 / 7;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-ink);
    padding: 16px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}
.floating-card .emoji {
    font-size: 56px;
    margin-bottom: 10px;
}
.floating-card .rare {
    font-size: 11px;
    color: var(--color-muted);
    font-weight: 500;
    letter-spacing: 0.06em;
    margin-top: 6px;
    text-transform: uppercase;
}
.floating-card-1 {
    top: 20px; right: 120px;
    transform: rotate(-8deg);
    background: linear-gradient(135deg, #fff3cd 0%, #fde68a 100%);
    animation-delay: 0s;
}
.floating-card-2 {
    top: 80px; right: 20px;
    transform: rotate(6deg);
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    animation-delay: 1.5s;
}
.floating-card-3 {
    bottom: 10px; right: 180px;
    transform: rotate(-4deg);
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -12px; }
}

/* Category / Chips
   ========================================================================== */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--color-line);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-body);
    transition: all 0.15s;
}
.chip:hover {
    border-color: var(--color-ink);
    color: var(--color-ink);
}
.chip.is-active {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: #fff;
}

/* Card Grid
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: block;
}
.card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-thumb {
    position: relative;
    aspect-ratio: 5 / 7;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    overflow: hidden;
}
.card-thumb .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.card-thumb .badge.hot {
    background: var(--color-primary);
}
.card-thumb .like {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-muted);
    transition: color 0.15s, transform 0.15s;
}
.card-thumb .like:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.card-body {
    padding: 14px 14px 16px;
}
.card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-set {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 10px;
}
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-ink);
}
.card-price small {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 500;
    margin-right: 2px;
}
.card-trade {
    font-size: 11px;
    color: var(--color-muted);
}

/* Trending list
   ========================================================================== */
.trending {
    background: var(--color-bg-soft);
}

.trend-list {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.trend-row {
    display: grid;
    grid-template-columns: 48px 1fr 120px 120px 100px;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-line);
    transition: background 0.15s;
}
.trend-row:last-child { border-bottom: 0; }
.trend-row:hover { background: var(--color-bg-soft); }

.trend-row.is-head {
    font-size: 12px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    background: var(--color-bg-soft);
}
.trend-row.is-head:hover { background: var(--color-bg-soft); }

.rank {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-ink);
    text-align: center;
}
.rank-top { color: var(--color-primary); }

.trend-name strong {
    display: block;
    color: var(--color-ink);
    font-weight: 600;
}
.trend-name span {
    font-size: 12px;
    color: var(--color-muted);
}

.trend-price {
    font-weight: 700;
    color: var(--color-ink);
}
.trend-delta { font-weight: 600; font-size: 13px; }
.trend-delta.up   { color: #16a34a; }
.trend-delta.down { color: var(--color-primary); }

.trend-volume { font-size: 13px; color: var(--color-muted); }

/* CTA
   ========================================================================== */
.cta {
    padding: 56px 0;
}
.cta-box {
    background: linear-gradient(135deg, var(--color-ink) 0%, #1f2937 100%);
    border-radius: var(--radius-lg);
    padding: 56px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -80px; right: -40px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
}
.cta-box h2 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 8px;
}
.cta-box p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}
.cta-box .btn-primary {
    background: var(--color-accent);
    color: var(--color-ink);
    position: relative;
    z-index: 1;
}
.cta-box .btn-primary:hover {
    background: var(--color-accent-dark);
}

/* Footer
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 56px 0 32px;
    font-size: 13px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-dot { box-shadow: 0 0 0 2px #0f172a inset, 0 0 0 3px #fff inset; }
.footer-brand .logo-dot::after { box-shadow: 0 0 0 1.5px #fff; }
.footer-brand p {
    margin-top: 14px;
    max-width: 320px;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 16px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul a {
    color: #94a3b8;
    transition: color 0.15s;
}
.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
}
.footer-bottom .sns {
    display: flex;
    gap: 10px;
}
.footer-bottom .sns a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: background 0.15s, color 0.15s;
}
.footer-bottom .sns a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 36px; }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .trend-row { grid-template-columns: 40px 1fr 100px 90px; }
    .trend-row .trend-volume { display: none; }
    .search-box { width: 180px; }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }

    .nav,
    .header-actions .search-box,
    .header-actions .btn-ghost { display: none; }
    .menu-toggle { display: inline-flex; }

    .nav.is-open {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        background: #fff;
        border-bottom: 1px solid var(--color-line);
        box-shadow: var(--shadow-md);
    }
    .nav.is-open a {
        padding: 14px 16px;
        border-radius: var(--radius-sm);
    }

    .hero { padding: 48px 0 32px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-visual {
        height: 280px;
        order: -1;
    }
    .floating-card { width: 140px; }
    .floating-card-1 { right: auto; left: 20px; top: 10px; }
    .floating-card-2 { right: 20px; top: 50px; }
    .floating-card-3 { right: auto; left: 80px; bottom: 0; }
    .hero-title { font-size: 30px; }
    .hero-stats { gap: 20px; }
    .hero-stats li strong { font-size: 18px; }

    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .trend-row {
        grid-template-columns: 36px 1fr auto;
        padding: 12px 14px;
        font-size: 13px;
    }
    .trend-row .trend-delta { display: none; }
    .trend-row.is-head .trend-delta { display: none; }

    .cta-box {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    .cta-box h2 { font-size: 22px; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 24px;
    }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .section-head h2 { font-size: 20px; }
    .hero-title { font-size: 26px; }
    .card-thumb { font-size: 52px; }
}

/* Community Board
   ========================================================================== */
.community {
    padding: 48px 0 72px;
    background: var(--color-bg-soft);
    min-height: calc(100vh - var(--header-h) - 200px);
}

.board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.board-title {
    font-size: 28px;
    margin: 0 0 6px;
}
.board-desc {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

/* Category tabs */
.board-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
}
.board-tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-body);
    transition: all 0.15s;
}
.board-tab:hover { background: var(--color-bg-soft); color: var(--color-ink); }
.board-tab.is-active {
    background: var(--color-ink);
    color: #fff;
}

/* Search */
.board-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: flex-end;
}
.board-search input[type="search"] {
    width: 260px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.board-search input[type="search"]:focus { border-color: var(--color-ink); }

/* Category badge */
.cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #eef2ff;
    color: #4338ca;
}
.cat-badge.cat-free     { background: #f1f5f9; color: #475569; }
.cat-badge.cat-brag     { background: #fef3c7; color: #b45309; }
.cat-badge.cat-question { background: #dbeafe; color: #1d4ed8; }
.cat-badge.cat-info     { background: #dcfce7; color: #15803d; }
.cat-badge.cat-tip      { background: #fce7f3; color: #be185d; }

/* Board list */
.board-list {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.board-row {
    display: grid;
    grid-template-columns: 70px 80px 1fr 140px 110px 70px;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-line);
    font-size: 14px;
    color: var(--color-body);
    transition: background 0.15s;
}
.board-row:last-child { border-bottom: 0; }
a.board-row:hover { background: var(--color-bg-soft); }
a.board-row:hover .board-subject { color: var(--color-primary); }

.board-row.is-head {
    background: var(--color-bg-soft);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.col-num, .col-cat, .col-views { text-align: center; }
.col-date { color: var(--color-muted); font-size: 13px; }
.col-author { color: var(--color-ink); font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-title { min-width: 0; }

.board-subject {
    color: var(--color-ink);
    font-weight: 500;
    transition: color 0.15s;
}
.board-comments {
    margin-left: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 12px;
}
.board-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 3px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    letter-spacing: 0.04em;
}

.board-empty {
    padding: 80px 20px;
    text-align: center;
    color: var(--color-muted);
}
.board-empty .empty-emoji { font-size: 44px; margin-bottom: 12px; }
.board-empty p { margin: 0; font-size: 14px; line-height: 1.8; }

/* Pagination */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 28px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-body);
    transition: all 0.15s;
}
.page-link:hover { border-color: var(--color-ink); color: var(--color-ink); }
.page-link.is-active {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: #fff;
}

/* Post detail */
.post {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 32px 36px;
}
.post-head { border-bottom: 1px solid var(--color-line); padding-bottom: 20px; margin-bottom: 24px; }
.post-cat { margin-bottom: 10px; }
.post-title {
    font-size: 24px;
    margin: 0 0 14px;
    color: var(--color-ink);
    line-height: 1.4;
    word-break: break-word;
}
.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.post-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-ink);
}
.post-author .user-avatar { width: 30px; height: 30px; font-size: 13px; }
.post-stats {
    color: var(--color-muted);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-body {
    min-height: 200px;
    padding: 10px 0 28px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-ink);
    word-break: break-word;
    white-space: normal;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
}
.post-actions-right { display: flex; gap: 8px; }
.inline-form { display: inline-flex; margin: 0; }

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid transparent;
}
.btn-danger:hover { background: #fecaca; color: #991b1b; }

/* Prev / Next nav */
.post-nav {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.post-nav-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-line);
    font-size: 14px;
    transition: background 0.15s;
}
.post-nav-item:last-child { border-bottom: 0; }
a.post-nav-item:hover { background: var(--color-bg-soft); }
a.post-nav-item:hover .post-nav-title { color: var(--color-primary); }
.post-nav-label {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.post-nav-title {
    color: var(--color-ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}
.post-nav-item.is-disabled .post-nav-title { color: var(--color-muted); font-weight: 400; }

/* Post write form */
.post-form {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 28px 32px;
}
.post-form .field { margin-bottom: 18px; }
.post-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 8px;
}
.post-form input[type="text"],
.post-form select,
.post-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-ink);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.post-form input[type="text"] { height: 46px; padding: 0 14px; }
.post-form select { height: 46px; padding: 0 12px; }
.post-form textarea { resize: vertical; line-height: 1.7; min-height: 280px; }
.post-form input:focus,
.post-form select:focus,
.post-form textarea:focus {
    outline: none;
    border-color: var(--color-ink);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}
.post-form .help {
    font-size: 12px;
    color: var(--color-muted);
    margin: 6px 0 0;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
}

/* Community responsive */
@media (max-width: 1024px) {
    .board-row { grid-template-columns: 60px 70px 1fr 100px 90px; }
    .board-row .col-views { display: none; }
}

@media (max-width: 768px) {
    .community { padding: 28px 0 48px; }
    .board-title { font-size: 22px; }
    .post { padding: 22px 18px; }
    .post-title { font-size: 20px; }

    .board-row {
        grid-template-columns: 60px 1fr 80px;
        padding: 12px 14px;
        gap: 8px;
        font-size: 13px;
    }
    .board-row .col-num,
    .board-row .col-author,
    .board-row .col-views { display: none; }
    .board-row.is-head .col-num,
    .board-row.is-head .col-author,
    .board-row.is-head .col-views { display: none; }

    .board-search input[type="search"] { width: 100%; }
    .board-search { flex-direction: row; }

    .post-form { padding: 20px 16px; }
    .post-nav-item { grid-template-columns: 70px 1fr; padding: 12px 16px; }

    .post-actions { flex-direction: column; align-items: stretch; }
    .post-actions-right { justify-content: flex-end; }
}

/* Trade Board
   ========================================================================== */

/* Trade type badges (카테고리 뱃지와 동일 기법, 색상만 달리) */
.cat-badge.type-sell,
.trade-type.type-sell     { background: #fee2e2; color: #b91c1c; }
.cat-badge.type-buy,
.trade-type.type-buy      { background: #dbeafe; color: #1d4ed8; }
.cat-badge.type-exchange,
.trade-type.type-exchange { background: #ede9fe; color: #6d28d9; }

/* Deal status chip */
.deal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    height: 22px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-left: 6px;
}
.deal-status.ds-active   { background: #dcfce7; color: #15803d; }
.deal-status.ds-reserved { background: #fef3c7; color: #b45309; }
.deal-status.ds-done     { background: #e5e7eb; color: #4b5563; }

/* Trade search extra */
.board-search .toggle-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-body);
    padding: 0 8px;
    cursor: pointer;
    margin-right: auto;
}
.board-search .toggle-active input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Trade grid */
.trade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.trade-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.trade-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.trade-item.is-done { opacity: 0.6; }
.trade-item.is-done .trade-thumb::after {
    content: '거래완료';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.06em;
}

.trade-thumb {
    position: relative;
    aspect-ratio: 5 / 4;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.trade-thumb .trade-emoji { font-size: 64px; }

.trade-type {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 1;
}
.trade-thumb .deal-status {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 1;
}

.trade-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.trade-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 40px;
}
.trade-card {
    font-size: 12px;
    color: var(--color-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trade-grade {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--color-accent);
    color: var(--color-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.trade-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-ink);
    margin-top: 2px;
}
.trade-price small {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 500;
    margin-right: 2px;
}
.trade-price-free {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}
.trade-foot {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--color-line);
}

/* Trade detail spec */
.trade-spec {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 24px;
    margin-bottom: 24px;
    padding: 22px 24px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
}
.trade-spec dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.trade-spec dt {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 500;
}
.trade-spec dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink);
}
.trade-spec .spec-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-accent);
    color: var(--color-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.trade-spec .spec-price dd strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
}
.trade-spec .price-none { color: var(--color-muted); font-size: 14px; }

/* Deal status control */
.deal-status-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 14px 16px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-line);
}
.deal-status-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink);
    margin-right: 6px;
}

/* Trade form extras */
.post-form .field-row-3 {
    grid-template-columns: 1.5fr 1fr 1fr;
}
.post-form input[type="number"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-ink);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.post-form input[type="number"]:focus {
    outline: none;
    border-color: var(--color-ink);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

@media (max-width: 1024px) {
    .trade-grid { grid-template-columns: repeat(3, 1fr); }
    .trade-spec { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .trade-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trade-thumb .trade-emoji { font-size: 48px; }
    .trade-price { font-size: 16px; }

    .post-form .field-row-3 { grid-template-columns: 1fr; }
    .trade-spec { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; }
    .deal-status-form { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .trade-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Trade - 상품유형 / 이미지 / 갤러리
   ========================================================================== */

/* Sub tabs (item filter) */
.board-tabs-sub {
    margin-top: -10px;
    margin-bottom: 14px;
    background: transparent;
    border: 0;
    padding: 0;
}
.board-tabs-sub .board-tab {
    background: #fff;
    border: 1px solid var(--color-line);
    padding: 7px 14px;
}
.board-tabs-sub .board-tab.is-active {
    background: var(--color-accent);
    color: var(--color-ink);
    border-color: var(--color-accent);
}

/* Item type chip (카드/상자) */
.item-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.item-type-chip.item-card { background: #eef2ff; color: #4338ca; }
.item-type-chip.item-box  { background: #fef3c7; color: #92400e; }

/* 목록 카드 내 item-type-chip 위치 */
.trade-thumb .item-type-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    margin-top: 28px;  /* trade-type 밑으로 */
    z-index: 1;
}

/* 실제 이미지 사용 시 thumb */
.trade-thumb.has-image {
    background: #f3f4f6;
}
.trade-thumb .trade-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.trade-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 1;
}

.trade-qty {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--color-ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 2px;
}

/* Radio card (상품 종류 선택) */
.radio-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 2px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-body);
    transition: all 0.15s;
}
.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.radio-card:hover {
    border-color: var(--color-ink);
}
.radio-card.is-active {
    border-color: var(--color-primary);
    background: #fef2f2;
    color: var(--color-primary);
}

/* Image uploader */
.image-uploader {
    margin-top: 10px;
}
.image-uploader-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px dashed var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    color: var(--color-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.image-uploader-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fef2f2;
}
.image-uploader-btn input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.image-manager {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    min-height: 0;
}
.image-manager:empty { display: none; }

.image-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-line);
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    user-select: none;
}
.image-thumb:hover {
    border-color: var(--color-ink);
    box-shadow: var(--shadow-sm);
}
.image-thumb:active { cursor: grabbing; }
.image-thumb.is-dragging {
    opacity: 0.4;
    transform: scale(0.95);
}
.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.image-thumb.is-removing {
    opacity: 0.35;
    cursor: default;
}
.image-thumb.is-removing::before {
    content: '삭제예정';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    z-index: 4;
    pointer-events: none;
}

/* 대표 이미지 배지 (기본 숨김, is-cover 일때만 표시) */
.image-cover-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    z-index: 3;
    display: none;
}
.image-thumb.is-cover .image-cover-badge { display: inline-flex; }
.image-thumb.is-cover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary) inset, var(--shadow-sm);
}

/* NEW 배지 (새 파일) */
.image-new-badge {
    position: absolute;
    top: 6px;
    right: 40px;
    background: var(--color-accent);
    color: var(--color-ink);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    z-index: 3;
}

.image-thumb-actions {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    z-index: 3;
}
.image-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.image-btn:hover { transform: scale(1.1); }
.image-btn.image-set-cover:hover  { background: var(--color-primary); }
.image-btn.image-remove-btn:hover { background: #b91c1c; }

.image-counter {
    font-size: 13px;
    color: var(--color-muted);
    font-weight: 600;
    margin-left: 8px;
}
.image-counter.is-max { color: var(--color-primary); }

/* Gallery (상세페이지) */
.gallery {
    margin: 0 0 28px;
}
.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: var(--color-bg-soft);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb.is-active {
    border-color: var(--color-ink);
}

@media (max-width: 768px) {
    .radio-card-group { grid-template-columns: 1fr; }
    .gallery-main { aspect-ratio: 1 / 1; }
    .image-thumb { width: 90px; height: 90px; }
    .gallery-thumb { width: 60px; height: 60px; }
    .trade-thumb .item-type-chip { margin-top: 26px; }
}

/* ==========================================================================
   A11y / Skip link / Breadcrumb (SEO)
   ========================================================================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-ink);
    color: #fff;
    padding: 10px 14px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus {
    left: 0;
    top: 0;
}

.breadcrumb {
    margin: 16px auto 0;
    font-size: 13px;
    color: var(--color-muted);
}
.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumb li + li::before {
    content: '›';
    margin-right: 6px;
    color: var(--color-line);
}
.breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb [aria-current="page"] {
    color: var(--color-ink);
    font-weight: 600;
}
