/* ============================================
   REBEAUTY Design Gallery — Brand System
   Palette matches biz.rebeauty.co.kr (2026.04)
   Primary: #5e10a1 beauty-purple
   ============================================ */

:root {
    /* Rebeauty brand hex references */
    --rb-black:        #1a1a1a;
    --rb-purple:       #5e10a1;
    --rb-purple-dark:  #4a0d82;
    --rb-purple-light: #7a1fc7;

    /* HSL tokens used by existing utilities */
    --background: 0 0% 100%;
    --foreground: 240 6% 10%;        /* #18181b */
    --card: 0 0% 100%;
    --card-foreground: 240 6% 10%;
    --primary: 272 82% 35%;           /* #5e10a1 */
    --primary-foreground: 0 0% 100%;
    --primary-dark: 272 82% 28%;      /* #4a0d82 */
    --primary-light: 272 73% 45%;     /* #7a1fc7 */
    --secondary: 240 5% 96%;          /* #f4f4f5 */
    --secondary-foreground: 240 6% 10%;
    --muted: 240 5% 96%;
    --muted-foreground: 240 4% 46%;   /* #71717a */
    --accent: 272 82% 96%;            /* soft purple tint */
    --accent-foreground: 272 82% 28%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 6% 90%;             /* #e4e4e7 */
    --input: 240 6% 90%;
    --ring: 272 82% 35%;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgb(26 26 26 / 0.05);
    --shadow: 0 1px 3px 0 rgb(26 26 26 / 0.08), 0 1px 2px -1px rgb(26 26 26 / 0.06);
    --shadow-md: 0 4px 10px -1px rgb(94 16 161 / 0.1), 0 2px 4px -2px rgb(26 26 26 / 0.06);
    --shadow-lg: 0 10px 22px -3px rgb(94 16 161 / 0.16), 0 4px 6px -4px rgb(26 26 26 / 0.08);
}

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

html { overflow-x: clip; }
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    letter-spacing: -0.01em;
    overflow-x: clip;
    max-width: 100vw;
}

.brand-display {
    font-family: 'Montserrat', 'Pretendard', sans-serif;
    letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { min-height: calc(100vh - 160px); }

/* ---- Design card: dual PC + Mobile preview (balanced) ---- */
.card-dual {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(180deg, #f6f3ff 0%, #ffffff 100%);
    aspect-ratio: 16/10;
}
.card-dual .cd-pc {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.card-dual .cd-pc img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.card-dual .cd-mobile {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 9/19;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    padding: 5px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.card-dual .cd-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 13px;
    background: #fff;
    display: block;
}
.card-dual .cd-mobile iframe {
    border: 0;
    border-radius: 13px;
    background: #fff;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.card-dual .cd-label {
    position: absolute;
    top: 5px; left: 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    letter-spacing: 0.025em;
    line-height: 1.4;
    z-index: 2;
}
.card-dual .cd-label.cd-mobile-label { background: hsl(var(--primary)); }
@media (max-width: 640px) {
    .card-dual { padding: 8px; gap: 8px; }
}

/* ---- Listing page header ---- */
.page-header { padding: 2.5rem 0 1.25rem; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 1.5rem; background: #fafafa; }
.page-header .page-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1.3; word-break: keep-all; }
.page-header .page-desc { margin: 0; color: #666; font-size: 0.9375rem; }
@media (max-width: 640px) {
    .page-header { padding: 1.5rem 0 1rem; margin-bottom: 1rem; }
    .page-header .page-title { font-size: 1.25rem; }
    .page-header .page-desc { font-size: 0.875rem; }
}

/* ============================================
   TOP ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: hsl(var(--primary));
    color: white;
    text-align: center;
    padding: 0.3125rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.announcement-bar a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

/* ============================================
   HEADER (cafe24-style compact single row)
   ============================================ */
.site-header {
    background: white;
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
    min-height: 52px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.site-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-logo .brand-name {
    font-size: 1.0625rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    letter-spacing: -0.02em;
    line-height: 1;
}

.site-logo-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    padding: 0.1875rem 0.5rem;
    border-radius: 0.375rem;
    margin-left: 0.125rem;
    letter-spacing: -0.01em;
}

/* Inline navigation (no second row) */
.header-nav-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.header-nav-inline::-webkit-scrollbar { display: none; }

.header-nav-inline a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    transition: color 0.12s ease;
    white-space: nowrap;
    border-radius: 0.5rem;
}
.header-nav-inline a:hover { color: hsl(var(--primary)); }
.header-nav-inline a.active {
    color: hsl(var(--primary));
}

/* Right-side icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: auto;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 0.5rem;
    color: hsl(var(--foreground));
    transition: background 0.12s ease, color 0.12s ease;
}
.header-icon-btn:hover {
    background: hsl(var(--accent));
    color: hsl(var(--primary));
}
.header-icon-btn svg { width: 18px; height: 18px; }

.header-text-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    padding: 0.375rem 0.5rem;
    transition: color 0.12s ease;
}
.header-text-link:hover { color: hsl(var(--primary)); }

.header-cta { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

@media (max-width: 768px) {
    .header-bar { gap: 0.75rem; padding: 0.375rem 0; min-height: 48px; }
    .site-logo .brand-name { font-size: 0.9375rem; }
    .site-logo-badge { display: none; }
    .header-nav-inline a { padding: 0.5rem 0.625rem; font-size: 0.8125rem; }
    .header-text-link { display: none; }
}

/* ============================================
   BUTTONS (shadcn)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.25;
}

.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--primary-dark)); }

.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-secondary:hover { background: hsl(240 5% 90%); }

.btn-outline { border: 1px solid hsl(var(--input)); background: white; color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: hsl(var(--primary)); }

.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--accent)); }

.btn-destructive { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.btn-destructive:hover { background: hsl(0 84% 50%); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.625rem 1.5rem; font-size: 1rem; }
.btn-icon { padding: 0.5rem; width: 2.25rem; height: 2.25rem; }
.w-full { width: 100%; }

/* ============================================
   HERO BANNER (utoimage-style big visual)
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a0d82 55%, #5e10a1 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner h1 em {
    color: #d4b8ff;
    font-style: normal;
    font-weight: 800;
}

.hero-banner::after {
    content: '';
    position: absolute;
    right: -120px; top: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(122,31,199,0.5), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-banner .container { position: relative; z-index: 1; }

.hero-banner h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.hero-banner h1 em {
    font-style: normal;
    color: hsl(45 100% 70%);
}

.hero-banner p {
    font-size: 1.0625rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    line-height: 1.5;
}

/* Suggested tags under hero */
.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.hero-tags a {
    padding: 0.3rem 0.875rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: white;
    backdrop-filter: blur(4px);
    transition: all 0.15s ease;
}

.hero-tags a:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .hero-banner { padding: 2rem 0; }
    .hero-banner h1 { font-size: 1.5rem; }
    .hero-banner p { font-size: 0.9375rem; }
}

/* Stats Bar */
.stats-bar {
    background: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
    padding: 0.875rem 0;
}
.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.stats-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.375rem 2rem;
}
.stats-bar-number {
    font-size: 1.375rem;
    font-weight: 800;
    color: hsl(var(--primary));
    line-height: 1.2;
}
.stats-bar-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
}
.stats-bar-divider {
    width: 1px;
    height: 2.5rem;
    background: hsl(var(--border));
}
@media (max-width: 640px) {
    .stats-bar-item { padding: 0.375rem 1rem; }
    .stats-bar-number { font-size: 1.125rem; }
    .stats-bar-divider { display: none; }
}

/* ============================================
   SECTION
   ============================================ */
.section { padding: 2.5rem 0; }
.section + .section { padding-top: 0; }

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

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title small {
    font-size: 0.8125rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
}

.section-title .icon {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
}

/* ============================================
   CARD (refined)
   ============================================ */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #d4d4d8;
    transform: translateY(-2px);
}

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: hsl(var(--muted));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .card-image img { transform: scale(1.06); }

.card-image .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0.875rem;
}

.card:hover .card-overlay { opacity: 1; }

.card-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    padding: 0.1875rem 0.5rem;
    background: hsl(var(--primary));
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 0.375rem;
    letter-spacing: 0.04em;
}

.card-badge-type {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    padding: 0.1875rem 0.5rem;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 0.375rem;
    backdrop-filter: blur(4px);
}

.card-content { padding: 0.875rem; }

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
}

.card-banner .card-image { aspect-ratio: 16/9; }

/* ============================================
   GRID
   ============================================ */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) { .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* ============================================
   CATEGORY PILLS (utoimage tab style)
   ============================================ */
.category-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid hsl(var(--border));
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.12s ease;
    white-space: nowrap;
}

.category-tab:hover { color: hsl(var(--foreground)); }

.category-tab.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
    font-weight: 600;
}

.category-tab .count {
    background: hsl(var(--muted));
    padding: 0.0625rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.category-tab.active .count {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

/* Pill style fallback */
.category-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: all 0.15s ease;
    background: white;
}

.category-pill:hover, .category-pill.active {
    background: hsl(var(--primary));
    color: white;
    border-color: hsl(var(--primary));
}

.category-pill .count {
    background: hsl(var(--muted));
    padding: 0.0625rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
}

.category-pill.active .count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ============================================
   QUICK CATEGORY ICONS (utoimage-style)
   ============================================ */
.quick-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    background: hsl(var(--muted) / 0.5);
}

.quick-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    min-width: 90px;
}

.quick-cat:hover { background: white; box-shadow: var(--shadow-sm); }

.quick-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--primary));
    box-shadow: var(--shadow-sm);
}

.quick-cat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-align: center;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.pagination a:hover { background: hsl(var(--accent)); }
.pagination .active { background: hsl(var(--primary)); color: white; border-color: hsl(var(--primary)); }
.pagination .disabled { opacity: 0.5; pointer-events: none; }

/* ============================================
   FORM / INPUT (shadcn)
   ============================================ */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: hsl(var(--foreground));
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    background: white;
    color: hsl(var(--foreground));
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.5;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

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

.form-hint {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* ============================================
   BADGE
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.badge-primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.2); }
.badge-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.badge-success { background: hsl(142 76% 36% / 0.1); color: hsl(142 76% 30%); border-color: hsl(142 76% 36% / 0.2); }
.badge-warning { background: hsl(38 92% 50% / 0.1); color: hsl(38 92% 40%); }
.badge-danger { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); border-color: hsl(var(--destructive) / 0.2); }

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-hero {
    background: hsl(var(--muted));
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.detail-hero img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    background: #f4f4f5;
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 768px) { .detail-info { grid-template-columns: 1fr; } }

.detail-sidebar { position: sticky; top: 120px; }
.detail-sidebar .card { padding: 1.5rem; }

.detail-meta-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.detail-meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
}

.detail-meta-list li:last-child { border-bottom: none; padding-bottom: 0; }
.detail-meta-list .label { color: hsl(var(--muted-foreground)); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1rem; }

.detail-tags a {
    padding: 0.25rem 0.625rem;
    background: hsl(var(--secondary));
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: hsl(var(--secondary-foreground));
    transition: background 0.15s ease;
}

.detail-tags a:hover { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }

/* ============================================
   AUTH
   ============================================ */
.auth-container { max-width: 420px; margin: 3rem auto; }
.auth-card { padding: 2rem; }
.auth-card h2 { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; }
.auth-card .subtitle { text-align: center; color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.auth-footer a { color: hsl(var(--primary)); font-weight: 500; }

/* ---- Bare layout (no header/footer pages) ---- */
body.bare-layout { background: #fff; }
.main-content-bare { min-height: 100vh; }

/* ---- Split login layout (2-column) ---- */
.auth-split {
    display: grid;
    grid-template-columns: 5fr 4fr;
    min-height: 100vh;
}
.auth-brand {
    position: relative;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, #4a0d80 50%, #2a0852 100%);
    color: #fff;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.auth-brand::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.auth-brand-inner { position: relative; z-index: 1; }
.auth-brand-mark {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem; border-radius: 999px;
    backdrop-filter: blur(8px);
    margin-bottom: 2rem;
}
.auth-brand-dot {
    width: 8px; height: 8px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
    animation: auth-pulse 2s ease-in-out infinite;
}
@keyframes auth-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.auth-brand-headline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
    word-break: keep-all;
}
.auth-brand-gradient {
    background: linear-gradient(90deg, #fff 0%, #ffd9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.auth-brand-sub {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin: 0 0 2.5rem;
    word-break: keep-all;
}
.auth-brand-points {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.875rem;
}
.auth-brand-points li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.9);
    word-break: keep-all;
}
.auth-brand-points li::before {
    content: '✓';
    flex: 0 0 22px;
    width: 22px; height: 22px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    margin-top: 0.0625rem;
}
.auth-brand-foot {
    position: relative; z-index: 1;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.025em;
}

.auth-form-pane {
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 2rem;
    background: #fff;
}
.auth-form-card {
    width: 100%;
    max-width: 400px;
}
.auth-form-title {
    font-size: 1.875rem; font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
}
.auth-form-desc {
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    margin: 0 0 2rem;
}
.auth-form-row {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
}
.auth-form-link-muted { color: hsl(var(--muted-foreground)); }
.auth-form-link-muted:hover { color: hsl(var(--primary)); }
.auth-form-sep { color: hsl(var(--border)); }
.auth-intro-link {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.625rem;
    background: hsl(var(--muted) / 0.4);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    transition: all 0.18s ease;
}
.auth-intro-link:hover {
    border-color: hsl(var(--primary) / 0.4);
    background: hsl(var(--primary) / 0.05);
    transform: translateY(-1px);
}
.auth-intro-link span { color: hsl(var(--muted-foreground)); }
.auth-intro-link strong {
    color: hsl(var(--primary));
    font-weight: 700;
}
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; min-height: auto; margin: 0; }
    .auth-brand { padding: 3rem 2rem; }
    .auth-brand-headline { font-size: 2.25rem; }
    .auth-brand-sub { font-size: 0.9375rem; }
    .auth-brand-foot { display: none; }
}
@media (max-width: 640px) {
    .auth-brand { padding: 2.5rem 1.5rem; }
    .auth-brand-headline { font-size: 1.875rem; }
    .auth-form-pane { padding: 2rem 1.25rem; }
    .auth-form-title { font-size: 1.5rem; }
}

/* ============================================
   INTRO (service landing page)
   ============================================ */
.intro-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.intro-eyebrow {
    display: inline-block;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.intro-title-xl {
    font-size: 3.5rem; font-weight: 800;
    letter-spacing: -0.035em; line-height: 1.1;
    margin: 0 0 1.25rem;
    word-break: keep-all;
}
.intro-gradient {
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, #c43cd8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.intro-lead-xl {
    font-size: 1.125rem; line-height: 1.7;
    color: hsl(var(--muted-foreground));
    margin: 0 0 2rem;
    word-break: keep-all;
}
.intro-hero {
    background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid hsl(var(--border));
}
.intro-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.intro-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.intro-hero-visual {
    position: relative;
    height: 460px;
}
.intro-hero-card {
    position: absolute;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(94, 16, 161, 0.18);
    transition: transform 0.25s ease;
    background: #fff;
}
.intro-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-hero-card:hover { transform: translateY(-4px) scale(1.02); }
.intro-hero-card--0 { width: 70%; height: 75%; top: 0; right: 0; z-index: 3; }
.intro-hero-card--1 { width: 55%; height: 60%; bottom: 0; left: 0; z-index: 2; }
.intro-hero-card--2 { width: 45%; height: 50%; top: 35%; left: 30%; z-index: 1; opacity: 0.85; }

.intro-section { padding: 5rem 0; }
.intro-section-alt { background: #fafafa; }
.intro-title {
    font-size: 2.25rem; font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 0.75rem;
    word-break: keep-all;
}
.intro-lead {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 2.5rem;
}

.intro-stats-section { padding: 3rem 0; background: #fff; border-bottom: 1px solid hsl(var(--border)); }
.intro-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.intro-stat-tile {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.875rem;
    background: #fff;
    transition: all 0.18s ease;
}
.intro-stat-tile:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 16, 161, 0.08);
}
.intro-stat-num {
    font-size: 2rem; font-weight: 800;
    color: hsl(var(--primary));
    letter-spacing: -0.025em;
    line-height: 1;
}
.intro-stat-label {
    font-size: 0.9375rem; font-weight: 600;
    margin-top: 0.5rem; color: #222;
}
.intro-stat-sub {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.intro-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.intro-card {
    padding: 1.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.875rem;
    background: #fff;
    transition: all 0.18s ease;
}
.intro-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(94, 16, 161, 0.1);
}
.intro-card-icon {
    width: 48px; height: 48px;
    border-radius: 0.625rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.intro-card-icon svg { width: 24px; height: 24px; }
.intro-card h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.intro-card p { font-size: 0.875rem; line-height: 1.6; color: hsl(var(--muted-foreground)); margin: 0; word-break: keep-all; }

.intro-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}
.intro-cat-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.625rem;
    background: #fff;
    text-align: center;
    transition: all 0.18s ease;
}
.intro-cat-card:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.04);
    transform: translateY(-2px);
}
.intro-cat-name { font-size: 1rem; font-weight: 700; color: #222; }
.intro-cat-count { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

.intro-faq-list { display: flex; flex-direction: column; gap: 0.625rem; max-width: 800px; margin-top: 2rem; }
.intro-q {
    background: #fff;
    border: 1px solid hsl(var(--border));
    border-radius: 0.625rem;
    overflow: hidden;
}
.intro-q[open] { border-color: hsl(var(--primary) / 0.4); }
.intro-q summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    list-style: none;
    position: relative;
}
.intro-q summary::-webkit-details-marker { display: none; }
.intro-q summary::after {
    content: '+';
    position: absolute; right: 1.25rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem; font-weight: 700;
    color: hsl(var(--primary));
    transition: transform 0.18s ease;
}
.intro-q[open] summary::after { content: '−'; }
.intro-q p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem; line-height: 1.7;
}
.intro-q p a { color: hsl(var(--primary)); font-weight: 500; }

.intro-cta-band {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, #4a0d80 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}
.intro-cta-title { font-size: 2.25rem; font-weight: 800; margin: 0 0 0.75rem; letter-spacing: -0.025em; }
.intro-cta-desc { font-size: 1.0625rem; color: rgba(255,255,255,0.85); margin: 0 0 2rem; word-break: keep-all; }
.intro-cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: hsl(var(--primary)); border-color: #fff; font-weight: 700; }
.btn-white:hover { background: rgba(255,255,255,0.92); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

@media (max-width: 1024px) {
    .intro-hero-grid { grid-template-columns: 1fr; }
    .intro-hero-visual { height: 360px; max-width: 480px; margin: 0 auto; }
    .intro-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .intro-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .intro-hero { padding: 3rem 0 2.5rem; }
    .intro-title-xl { font-size: 2.25rem; }
    .intro-lead-xl { font-size: 1rem; }
    .intro-section { padding: 3rem 0; }
    .intro-title { font-size: 1.75rem; }
    .intro-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
    .intro-stat-num { font-size: 1.5rem; }
    .intro-grid-3 { grid-template-columns: 1fr; }
    .intro-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-cta-band { padding: 3rem 0; }
    .intro-cta-title { font-size: 1.75rem; }
}

/* ============================================
   ALERT
   ============================================ */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem; border: 1px solid; }
.alert-error { background: hsl(0 84% 60% / 0.1); color: hsl(0 84% 40%); border-color: hsl(0 84% 60% / 0.2); }
.alert-success { background: hsl(142 76% 36% / 0.1); color: hsl(142 76% 30%); border-color: hsl(142 76% 36% / 0.2); }
.alert-info { background: hsl(221 83% 53% / 0.1); color: hsl(221 83% 40%); border-color: hsl(221 83% 53% / 0.2); }

/* ============================================
   TABLE (admin shared)
   ============================================ */
.table-wrapper { border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; background: white; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; padding: 0.75rem 1rem; font-weight: 500; color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / 0.5); border-bottom: 1px solid hsl(var(--border)); font-size: 0.8125rem; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--border)); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: hsl(var(--muted) / 0.3); }
.table .thumb { width: 48px; height: 48px; border-radius: calc(var(--radius) - 4px); object-fit: cover; }

/* ============================================
   FOOTER (utoimage-style)
   ============================================ */
.footer {
    background: hsl(var(--rb-black) replace);
    color: #d4d4d8;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-brand svg { width: 28px; height: 28px; }

.footer-desc { font-size: 0.8125rem; line-height: 1.7; max-width: 320px; }

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.8125rem; color: #a1a1aa; transition: color 0.15s ease; }
.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #27272a;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #71717a;
}

@media (max-width: 768px) { .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; } }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 4rem 2rem; color: hsl(var(--muted-foreground)); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 1rem; opacity: 0.3; }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; max-width: 400px; margin: 0 auto; }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-bar .form-select { width: auto; min-width: 140px; }

/* ============================================
   STATS (admin)
   ============================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { padding: 1.25rem; }
.stat-card .stat-label { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.025em; }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: hsl(var(--muted-foreground)); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease forwards; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--muted)); }
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }

/* Quick Preview Modal */
.quick-preview-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center}
.quick-preview-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.7);backdrop-filter:blur(4px)}
.quick-preview-content{position:relative;max-width:80vw;max-height:85vh;background:white;border-radius:0.75rem;overflow:hidden;box-shadow:0 25px 50px rgba(0,0,0,0.3)}
.quick-preview-content img{max-width:80vw;max-height:70vh;object-fit:contain}
.quick-preview-actions{display:flex;gap:0.5rem;justify-content:center;padding:1rem}

/* ============================================
   SORT BAR
   ============================================ */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}
.sort-bar-label {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-right: 0.25rem;
}
.sort-btn {
    font-size: 0.8125rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.12s ease;
    background: white;
}
.sort-btn:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.sort-btn.active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: white;
    font-weight: 500;
}

/* ============================================
   FAVORITE BUTTON
   ============================================ */
.btn-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    border: 1.5px solid hsl(var(--border));
    background: white;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 0.5rem;
}
.btn-favorite:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}
.btn-favorite.active {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
}
.btn-favorite.active svg { fill: hsl(var(--primary)); }
.btn-favorite svg { transition: fill 0.15s ease; }

/* ============================================
   MY PAGE
   ============================================ */
.my-header {
    background: linear-gradient(135deg, hsl(var(--rb-black) replace) 0%, #27272a 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 0;
}
.my-header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.my-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #3f3f46;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d4d4d8;
}
.my-header-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.my-header-info p {
    font-size: 0.875rem;
    color: #a1a1aa;
}
.my-tabs {
    background: white;
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 56px;
    z-index: 10;
}
.my-tabs-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.my-tabs-inner::-webkit-scrollbar { display: none; }
.my-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.12s ease;
}
.my-tab:hover { color: hsl(var(--foreground)); }
.my-tab.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
    font-weight: 600;
}
.my-content {
    padding: 2rem 0;
}
.my-form-card {
    max-width: 520px;
}
.my-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.875rem;
}
.my-resource-card {
    background: white;
    border: 1px solid hsl(var(--border));
    border-radius: 0.625rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.12s ease, transform 0.12s ease;
    display: block;
}
.my-resource-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.my-resource-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: hsl(var(--muted));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.my-resource-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-resource-body { padding: 0.625rem 0.75rem; }
.my-resource-title {
    font-size: 0.8125rem;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}
.my-resource-meta {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
}

@media (max-width: 768px) {
    .my-resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
    .my-tab { padding: 0.75rem 1rem; font-size: 0.8125rem; }
    .my-header { padding: 1.25rem 0; }
}

/* ============================================
   CAFE24-STYLE HOME LAYOUT (purple-tone)
   Hero combo / chip row / 6-col grid / promo tiles
   ============================================ */

/* ---- Hero combo (left feature + right promo stack) ---- */
.hero-combo {
    padding: 0.875rem 0 0.5rem;
}
.hero-combo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 0.875rem;
}
.hero-feature {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/8;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a0d82 55%, #5e10a1 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* ---- Hero slider (auto-rotating, ~10 slides) ---- */
.hero-slider {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/8;
    background: hsl(var(--muted));
    color: #fff;
    box-shadow: var(--shadow-md);
    isolation: isolate;
}
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.6s ease, transform 1.2s ease, visibility 0s linear 0.6s;
    will-change: opacity, transform;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 6s linear, visibility 0s linear 0s;
    z-index: 1;
}
.hero-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 1;
}
.hero-slide .hero-feature-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.75rem 2rem 3.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

/* Arrows — always visible, prominent */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.95);
    color: hsl(var(--primary));
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 9999px;
    cursor: pointer;
    z-index: 3;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    opacity: 1;
}
.hero-arrow:hover {
    background: hsl(var(--primary));
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(94,16,161,0.4), 0 3px 8px rgba(0,0,0,0.2);
}
.hero-arrow svg { width: 22px; height: 22px; stroke-width: 3; }
.hero-arrow--prev { left: 1rem; }
.hero-arrow--next { right: 1rem; }

/* Foot bar: counter + dots + pause */
.hero-slider-foot {
    position: absolute;
    left: 0; right: 0; bottom: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 0 1.25rem;
    z-index: 3;
}
.hero-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    background: rgba(0,0,0,0.4);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
}
.hero-counter-sep { opacity: 0.55; margin: 0 0.125rem; }

.hero-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0,0,0,0.4);
    padding: 0.4375rem 0.625rem;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
}
.hero-dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, width 0.25s ease;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.is-active { background: #fff; width: 18px; }

.hero-pause {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.12s ease;
}
.hero-pause:hover { background: rgba(0,0,0,0.6); }
.hero-pause svg { width: 12px; height: 12px; }

/* Progress bar (top edge) */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #fff, #d4b8ff);
    z-index: 4;
    transition: width 0.1s linear;
    pointer-events: none;
}
.hero-slider.is-progress::after { width: var(--hero-progress, 0%); }

@media (max-width: 768px) {
    .hero-arrow { display: none !important; }
    .hero-slide .hero-feature-body,
    .hero-slide .hero-feature-sticker { display: none !important; }
}
@media (max-width: 480px) {
    .hero-slider-foot { gap: 0.5rem; padding: 0 0.75rem; bottom: 0.625rem; }
    .hero-dot.is-active { width: 14px; }
}
.hero-feature img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.5s ease, opacity 0.3s ease;
}
.hero-feature:hover img { transform: scale(1.04); opacity: 0.65; }
.hero-feature-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.75rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0.05) 90%, transparent);
    z-index: 1;
}
.hero-feature-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Montserrat', 'Pretendard', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    background: rgba(255,255,255,0.18);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    margin-bottom: 0.875rem;
}
.hero-feature-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 0.375rem;
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-feature-sub {
    font-size: 0.9375rem;
    opacity: 0.92;
    max-width: 26rem;
}
.hero-feature-sticker {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: hsl(var(--primary));
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.06em;
    box-shadow: 0 6px 18px rgba(94,16,161,0.45);
    z-index: 2;
}

.hero-promo-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}
.hero-promo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 120px;
}
.hero-promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-promo-body { flex: 1; min-width: 0; z-index: 1; }
.hero-promo-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    opacity: 0.8;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
}
.hero-promo-title {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.hero-promo-sub {
    font-size: 0.8125rem;
    opacity: 0.85;
    line-height: 1.45;
}
.hero-promo-icon {
    width: 64px; height: 64px;
    flex: 0 0 64px;
    border-radius: 1rem;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    z-index: 1;
}
.hero-promo-icon svg { width: 32px; height: 32px; }

.hero-promo--purple {
    background: linear-gradient(135deg, #5e10a1 0%, #7a1fc7 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.hero-promo--purple .hero-promo-icon { background: rgba(255,255,255,0.22); color:#fff; }

.hero-promo--soft {
    background: linear-gradient(135deg, #f7f0ff 0%, #ffffff 100%);
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}
.hero-promo--soft .hero-promo-eyebrow { color: hsl(var(--primary)); opacity: 1; }
.hero-promo--soft .hero-promo-icon {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

/* ---- Compact stats line (cafe24-style single row) ---- */
.stats-line {
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.4);
    padding: 0.4375rem 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}
.stats-line-inner {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap;
    gap: 0 1.75rem;
}
.stats-line-item { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.stats-line-item b {
    color: hsl(var(--primary));
    font-weight: 800;
    font-size: 0.9375rem;
    font-family: 'Montserrat', 'Pretendard', sans-serif;
    letter-spacing: -0.01em;
}
.stats-line-sep { color: hsl(var(--border)); }

/* ---- Chip filter row + horizontal scroll ---- */
.chip-row {
    display: flex; gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    padding: 0.4375rem 0.875rem;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: #fff;
    transition: all 0.12s ease;
    white-space: nowrap;
    cursor: pointer;
}
.chip:hover { border-color: hsl(var(--primary) / 0.5); color: hsl(var(--primary)); }
.chip.active {
    background: hsl(var(--primary));
    color: #fff;
    border-color: hsl(var(--primary));
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.scroll-row.scroll-row-dual { grid-auto-columns: minmax(360px, 1fr); }
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 9999px; }
.scroll-row > * { scroll-snap-align: start; }

/* ---- '지금 핫한 디자인' 좌우 자동 롤링 마퀴 ---- */
.hot-marquee { overflow: hidden; position: relative; }
/* 양 끝 페이드 처리 */
.hot-marquee::before,
.hot-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none; }
.hot-marquee::before { left: 0;  background: linear-gradient(90deg, hsl(var(--background)), transparent); }
.hot-marquee::after  { right: 0; background: linear-gradient(270deg, hsl(var(--background)), transparent); }
.hot-marquee-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    padding-bottom: 0.75rem;
    animation: hot-roll 30s linear infinite;
    will-change: transform;
}
.hot-marquee:hover .hot-marquee-track { animation-play-state: paused; }
.hot-marquee-track .card { flex: 0 0 360px; width: 360px; }
@keyframes hot-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
    .hot-marquee-track .card { flex-basis: 300px; width: 300px; }
    .hot-marquee::before, .hot-marquee::after { width: 24px; }
}
/* 모션 최소화 선호 시 자동 롤링 끄고 일반 가로 스크롤로 폴백 */
@media (prefers-reduced-motion: reduce) {
    .hot-marquee { overflow-x: auto; }
    .hot-marquee-track { animation: none; }
    .hot-marquee-track .card.is-clone { display: none; }
}

/* ---- 6-column grid (cafe24-style tighter cards) ---- */
.grid-6 { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1180px) { .grid-6 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .grid-6 { grid-template-columns: repeat(3, 1fr); gap: 0.625rem; } }
@media (max-width: 480px)  { .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }

/* ---- Dual-preview grid (PC + Mobile cards need more width) ---- */
.grid-dual { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .grid-dual { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-dual { grid-template-columns: 1fr; } }

/* Compact card for 6-col rows */
.card-compact { border-radius: 0.625rem; }
.card-compact .card-image { aspect-ratio: 16/11; }
.card-compact .card-content { padding: 0.625rem 0.5rem 0.75rem; }
.card-compact .card-title { font-size: 0.8125rem; line-height: 1.35; }
.card-compact .card-meta { font-size: 0.6875rem; }
.card-compact .card-badge {
    top: 0.5rem; left: 0.5rem;
    padding: 0.125rem 0.4rem;
    font-size: 0.625rem;
    border-radius: 0.25rem;
}
.card-compact .card-badge-type {
    top: 0.5rem; right: 0.5rem;
    padding: 0.125rem 0.4rem;
    font-size: 0.5625rem;
}

/* ---- Cafe24-style section header (emoji + view all) ---- */
.section-c24 { padding: 2.75rem 0 1.5rem; }
.section + .section-c24, .section-c24 + .section-c24 { padding-top: 2.75rem; }
.section-c24 .section-header { margin-bottom: 1.5rem; padding-bottom: 0.625rem; border-bottom: 1px solid hsl(var(--border)); }
@media (max-width: 640px) {
    .section-c24 { padding: 2rem 0 1rem; }
    .section + .section-c24, .section-c24 + .section-c24 { padding-top: 2rem; }
    .section-c24 .section-header { margin-bottom: 1.125rem; }
}
.section-c24 .section-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    gap: 0.5rem;
}
.section-c24 .section-title .emoji {
    font-size: 1.375rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}
.section-c24 .section-title .label-tip {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.25rem;
}
.section-c24 .view-all {
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    display: inline-flex; align-items: center; gap: 0.25rem;
    transition: color 0.12s ease;
}
.section-c24 .view-all:hover { color: hsl(var(--primary)); }
.section-c24 .view-all::after { content: '+'; font-weight: 700; }

/* ---- Big category quick-access (cafe24 footer-of-page tiles) ---- */
.cat-tiles {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 0 0.5rem;
}
@media (max-width: 1024px) { .cat-tiles { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 640px)  { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
.cat-tile {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: #fff;
    border: 1px solid hsl(var(--border));
    border-radius: 0.875rem;
    transition: all 0.15s ease;
    text-align: center;
}
.cat-tile:hover {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.cat-tile-icon {
    width: 44px; height: 44px;
    border-radius: 0.75rem;
    display: grid; place-items: center;
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
}
.cat-tile-icon svg { width: 22px; height: 22px; }
.cat-tile-label { font-size: 0.8125rem; font-weight: 700; }
.cat-tile-count { font-size: 0.6875rem; color: hsl(var(--muted-foreground)); }

/* ---- Designer-shop-style curator cards ---- */
.curator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 1180px) { .curator-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .curator-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .curator-grid { grid-template-columns: 1fr; } }

.curator-card {
    display: block;
    background: #fff;
    border: 1px solid hsl(var(--border));
    border-radius: 0.875rem;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}
.curator-card:hover {
    transform: translateY(-3px);
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-lg);
}

.curator-thumbs {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    aspect-ratio: 16/10;
    background: hsl(var(--muted));
    position: relative;
    overflow: hidden;
}
.curator-thumb { overflow: hidden; }
.curator-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.curator-card:hover .curator-thumb img { transform: scale(1.05); }
.curator-thumb--0 { grid-row: 1 / span 2; }
.curator-thumb--1 { grid-column: 2; grid-row: 1; }
.curator-thumb--2 { grid-column: 2; grid-row: 2; }

.curator-hot-badge {
    position: absolute;
    top: 0.625rem; left: 0.625rem;
    background: hsl(var(--primary));
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.1875rem 0.4375rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(94,16,161,0.35);
    z-index: 2;
}

.curator-body {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 0.875rem 0.5rem;
}
.curator-avatar {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-light)) 100%);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 4px 10px rgba(94,16,161,0.25);
}
.curator-avatar svg { width: 20px; height: 20px; }

.curator-info { min-width: 0; flex: 1; }
.curator-name {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
    line-height: 1.2;
    margin-bottom: 0.1875rem;
}
.curator-verified { display: inline-flex; }
.curator-verified svg { width: 14px; height: 14px; }
.curator-tagline {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.curator-stats {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem 0.875rem;
    border-top: 1px dashed hsl(var(--border));
    margin-top: 0.25rem;
}
.curator-stat { display: flex; flex-direction: column; gap: 0.0625rem; }
.curator-stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.curator-stat-lbl {
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}
.curator-stat-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.08);
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.curator-card:hover .curator-stat-cta {
    background: hsl(var(--primary));
    color: #fff;
}

/* ---- Hero combo responsive ---- */
@media (max-width: 900px) {
    .hero-combo-grid { grid-template-columns: 1fr; }
    .hero-feature { aspect-ratio: 16/10; }
    .hero-feature-title { font-size: 1.5rem; }
    .hero-promo-stack { grid-template-rows: auto auto; }
}
@media (max-width: 480px) {
    .hero-feature-body { padding: 1.25rem 1.25rem 1.5rem; }
    .hero-feature-title { font-size: 1.25rem; }
    .hero-promo { padding: 1.125rem 1.25rem; min-height: 96px; }
    .hero-promo-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 0.75rem; }
    .hero-promo-icon svg { width: 24px; height: 24px; }
    .hero-promo-title { font-size: 1rem; }
}

/* ============================================
   IMAGE MANAGER (admin)
   ============================================ */
.img-mgr-filter-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 0.8fr 1.6fr auto;
    gap: 0.75rem;
    align-items: end;
}
.img-mgr-field { display: flex; flex-direction: column; gap: 0.25rem; }
.img-mgr-field label { font-size: 0.6875rem; font-weight: 600; color: hsl(var(--muted-foreground)); letter-spacing: 0.025em; text-transform: uppercase; }
.img-mgr-field select,
.img-mgr-field input[type="text"] {
    height: 32px;
    padding: 0 0.625rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.8125rem;
}
.img-mgr-field select:focus,
.img-mgr-field input:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15); }
.img-mgr-field-actions { display: flex; gap: 0.375rem; }
@media (max-width: 900px) {
    .img-mgr-filter-row { grid-template-columns: 1fr 1fr; }
    .img-mgr-field-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

.img-mgr-list { display: flex; flex-direction: column; gap: 0.625rem; }
.img-mgr-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 0.625rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: #fff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.img-mgr-row:hover { border-color: hsl(var(--primary) / 0.45); box-shadow: 0 4px 14px rgba(94, 16, 161, 0.08); }
.img-mgr-thumb {
    display: block;
    width: 200px; height: 130px;
    border-radius: 0.375rem;
    overflow: hidden;
    background: repeating-conic-gradient(#f5f5f5 0% 25%, #fafafa 0% 50%) 50% / 16px 16px;
    border: 1px solid hsl(var(--border));
    flex-shrink: 0;
}
.img-mgr-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.img-mgr-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.375rem; padding: 0.25rem 0; }
.img-mgr-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; font-size: 0.9375rem; }
.img-mgr-fname { font-weight: 700; color: #222; word-break: break-all; }
.img-mgr-chip {
    display: inline-flex; align-items: center;
    font-size: 0.6875rem; font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: #f3f3f5;
    color: #555;
    letter-spacing: 0.025em;
}
.img-mgr-chip-tpl { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.img-mgr-chip-pc  { background: #e0f2fe; color: #075985; }
.img-mgr-chip-mo  { background: #fce7f3; color: #9d174d; }
.img-mgr-chip-ext { background: #fef3c7; color: #92400e; }
.img-mgr-path {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    word-break: break-all;
}
.img-mgr-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.75rem; color: #555; }
.img-mgr-meta span strong { color: hsl(var(--primary)); font-weight: 700; }

.img-mgr-alts { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.img-mgr-alt-chip {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 0.75rem;
    padding: 0.1875rem 0.625rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.07);
    border: 1px solid hsl(var(--primary) / 0.18);
    color: #333;
    max-width: 100%;
    word-break: break-all;
}
.img-mgr-alt-key {
    font-size: 0.625rem; font-weight: 700;
    color: hsl(var(--primary));
    background: #fff;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.img-mgr-alt-empty {
    font-size: 0.6875rem;
    color: #aaa;
    font-style: italic;
}

.img-mgr-role {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.6875rem;
    font-weight: 700;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    padding: 0.0625rem 0.5rem;
    border-radius: 0.25rem;
}
.img-mgr-prompt {
    margin-top: 0.375rem;
    padding: 0.625rem 0.75rem;
    background: linear-gradient(180deg, #faf7ff 0%, #fff 100%);
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}
.img-mgr-prompt-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.375rem;
}
.img-mgr-prompt-label {
    font-size: 0.6875rem; font-weight: 700;
    color: hsl(var(--primary));
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.img-mgr-copy-btn {
    border: 1px solid hsl(var(--border));
    background: #fff;
    color: hsl(var(--foreground));
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.12s ease;
}
.img-mgr-copy-btn:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.img-mgr-copy-btn.is-copied { background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary)); }
.img-mgr-prompt-body {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #333;
    word-break: break-word;
    white-space: pre-wrap;
}

.img-mgr-elig {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.025em;
}
.img-mgr-elig-yes { background: #dcfce7; color: #166534; }
.img-mgr-elig-no  { background: #f3f4f6; color: #6b7280; }

.enhance-panel {
    margin-bottom: 1.25rem;
    padding: 1rem 1.125rem;
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #faf7ff 0%, #fff 100%);
}
.enhance-panel-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.625rem; font-size: 0.9375rem; }
.enhance-panel-head strong { color: hsl(var(--primary)); }
.enhance-model-badge {
    font-size: 0.6875rem; font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
}
.enhance-panel-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem 1rem;
    padding: 0.625rem 0;
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 0.75rem;
}
.enhance-panel-stats > div { display: flex; flex-direction: column; gap: 0.125rem; }
.enhance-panel-stats .lbl { font-size: 0.6875rem; color: #777; letter-spacing: 0.025em; }
.enhance-panel-stats .lbl.small { font-size: 0.625rem; color: #999; }
.enhance-panel-stats .val { font-size: 1.0625rem; font-weight: 700; color: #222; }
.enhance-panel-stats .val.excluded { color: #999; }
.enhance-panel-stats .val.cost { color: hsl(var(--primary)); }
.enhance-panel-actions { display: flex; gap: 0.375rem; flex-wrap: wrap; }

.enhance-jobs-list { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.75rem; padding-top: 0.625rem; border-top: 1px dashed hsl(var(--border)); }
.enhance-job-row { display: flex; gap: 0.875rem; align-items: center; font-size: 0.75rem; padding: 0.25rem 0; }
.enhance-job-row .job-id { font-weight: 700; color: hsl(var(--primary)); min-width: 36px; }
.enhance-job-row .job-status { font-size: 0.6875rem; font-weight: 700; padding: 0.0625rem 0.5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.025em; }
.enhance-job-row .status-queued     { background:#fef3c7; color:#92400e; }
.enhance-job-row .status-submitted  { background:#dbeafe; color:#1e40af; }
.enhance-job-row .status-succeeded  { background:#dcfce7; color:#166534; }
.enhance-job-row .status-partial    { background:#fee2e2; color:#991b1b; }
.enhance-job-row .status-failed     { background:#fecaca; color:#7f1d1d; }
.enhance-job-row .status-cancelled  { background:#f3f4f6; color:#6b7280; }
.enhance-job-row .job-time { margin-left:auto; color:#999; font-size:0.6875rem; }
@media (max-width: 900px) {
    .enhance-panel-stats { grid-template-columns: repeat(2, 1fr); }
}

.img-mgr-pager {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0 0.5rem;
}
.img-mgr-pager-gap { padding: 0 0.25rem; color: hsl(var(--muted-foreground)); }
.img-mgr-pager-info {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-left: 0.75rem;
}

@media (max-width: 640px) {
    .img-mgr-row { grid-template-columns: 130px 1fr; }
    .img-mgr-thumb { width: 130px; height: 90px; }
    .img-mgr-name { font-size: 0.8125rem; }
}

/* ============================================
   API LOG TABLE
   ============================================ */
.api-log-table { display: flex; flex-direction: column; gap: 1px; background: hsl(var(--border)); border: 1px solid hsl(var(--border)); border-radius: 0.5rem; overflow: hidden; }
.api-log-row {
    display: grid;
    grid-template-columns: 60px 1.6fr 1.4fr 60px 2fr 70px 70px 90px 1.2fr;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    background: #fff;
    align-items: center;
}
.api-log-head { background: #fafafa; font-weight: 700; font-size: 0.6875rem; color: #777; letter-spacing: 0.025em; text-transform: uppercase; }
.api-log-link { text-decoration: none; color: inherit; cursor: pointer; }
.api-log-link:hover { background: hsl(var(--primary) / 0.04); }
.api-log-id { font-weight: 700; color: hsl(var(--primary)); }
.api-log-provider { font-size: 0.75rem; }
.api-log-provider strong { display: inline-block; padding: 0.0625rem 0.4rem; border-radius: 0.25rem; }
.log-batch  strong { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.log-gemini strong { background: #dbeafe; color: #1e40af; }
.log-claude strong { background: #fef3c7; color: #92400e; }
.log-int    strong { background: #f3f4f6; color: #555; }
.log-bad    strong { background: #fee2e2; color: #991b1b; }
.api-log-summary { font-size: 0.75rem; color: #444; word-break: break-all; }
.api-log-err { color: #dc2626; font-size: 0.6875rem; display: block; margin-top: 0.125rem; }
.api-log-job { font-family: monospace; font-size: 0.75rem; color: #555; }
.api-log-http { font-family: monospace; font-weight: 700; font-size: 0.75rem; }
.api-log-http.http-ok { color: #16a34a; }
.api-log-http.http-bad { color: #dc2626; }
.api-log-cost { font-weight: 700; font-size: 0.75rem; color: hsl(var(--primary)); }

.api-log-detail { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.api-log-detail th { text-align: left; padding: 0.375rem 0.5rem; color: #777; font-weight: 600; font-size: 0.75rem; width: 90px; vertical-align: top; }
.api-log-detail td { padding: 0.375rem 0.5rem; vertical-align: top; }
.api-log-pre { background: #fafafa; padding: 0.75rem 1rem; border-radius: 0.375rem; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.75rem; line-height: 1.55; max-height: 400px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }

/* ============================================
   BATCH CARDS
   ============================================ */
.batch-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.batch-card {
    display: block;
    border: 1px solid hsl(var(--border));
    border-radius: 0.625rem;
    padding: 0.875rem 1rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}
.batch-card:hover { border-color: hsl(var(--primary) / 0.5); box-shadow: 0 4px 14px rgba(94, 16, 161, 0.08); transform: translateY(-1px); }
.batch-card-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.batch-card-id { font-weight: 800; color: hsl(var(--primary)); font-size: 0.9375rem; }
.batch-card-scope { font-size: 0.75rem; color: #555; flex: 1; }
.batch-card-status { font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.025em; }
.batch-card-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.75rem; color: #444; margin-bottom: 0.5rem; }
.batch-card-progress { height: 4px; background: #f3f4f6; border-radius: 999px; overflow: hidden; margin-bottom: 0.5rem; }
.batch-card-bar { height: 100%; background: linear-gradient(90deg, hsl(var(--primary)), #c43cd8); transition: width 0.3s ease; }
.batch-card-thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; margin-bottom: 0.5rem; }
.batch-card-thumb { aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: #f3f4f6; position: relative; }
.batch-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.batch-card-thumb.failed { opacity: 0.4; filter: grayscale(0.6); }
.batch-card-foot { font-size: 0.6875rem; color: #999; display: flex; gap: 0.5rem; }

/* ============================================
   JOB DETAIL — before/after rows
   ============================================ */
.job-req-list { display: flex; flex-direction: column; gap: 0.625rem; }
.job-req-row {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: #fff;
}
.job-req-failed { border-color: #fecaca; background: #fef9f9; }
.job-req-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.job-req-thumb { position: relative; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background: #f3f4f6; border: 1px solid #e5e7eb; }
.job-req-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.job-req-thumb .lbl { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,0.7); color: #fff; font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 999px; letter-spacing: 0.025em; }
.job-req-thumb .lbl.after { background: hsl(var(--primary)); }
.job-req-info { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.job-req-id { font-weight: 700; color: hsl(var(--primary)); font-size: 0.875rem; }
.job-req-cid { font-family: monospace; font-size: 0.75rem; color: #555; }
.job-req-status { font-size: 0.6875rem; font-weight: 700; padding: 0.0625rem 0.5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.025em; }
.job-req-status-done    { background: #dcfce7; color: #166534; }
.job-req-status-failed  { background: #fee2e2; color: #991b1b; }
.job-req-status-pending { background: #fef3c7; color: #92400e; }
.job-req-path { font-family: monospace; font-size: 0.6875rem; color: #777; word-break: break-all; }
.job-req-err { font-size: 0.75rem; color: #dc2626; padding: 0.375rem 0.625rem; background: #fef2f2; border-radius: 4px; }
.job-req-prompt summary { font-size: 0.75rem; color: #555; cursor: pointer; padding: 0.25rem 0; }
.job-req-prompt pre { font-size: 0.6875rem; line-height: 1.55; padding: 0.5rem 0.75rem; background: #fafafa; border-radius: 4px; max-height: 200px; overflow: auto; white-space: pre-wrap; }

@media (max-width: 900px) {
    .api-log-row { grid-template-columns: 50px 1fr 100px 100px; }
    .api-log-row > :nth-child(n+5) { display: none; }
    .job-req-row { grid-template-columns: 1fr; }
}
