:root {
    --primary: #8b5cf6;
    --secondary: #bd10e0;
    --accent: #f5a623;
    --bg-dark: #0a0e14;
    --bg-card: rgba(var(--surface), 0.05);
    --text-white: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --gradient: #8b5cf6;
    /* 색 채워진 버튼용 — 보라 오로라 느낌 그라디언트 (--gradient 는 color: 로도 쓰여서 별도 토큰) */
    --grad-aurora: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 45%, #6366f1 100%);
    --font-main: 'Outfit', 'Noto Sans KR', sans-serif;
    --bg: #0a0e14;
    --text: #ffffff;
    /* 아래 4개는 rgba(var(--x), α) 형태로만 사용 — 호출부마다 원래 알파값을 그대로 유지한다.
       --text-dim-rgb는 기존 --text-dim(고정 rgba(255,255,255,0.7), 다른 페이지도 참조 중)과
       이름이 겹쳐 별도로 뒀다 — 값이 다양한 디밍 텍스트 전용. */
    --surface: 255, 255, 255;
    --surface-hover: 255, 255, 255;
    --border: 255, 255, 255;
    --text-dim-rgb: 255, 255, 255;
}

/* ========================
   라이트 테마 (옵트인 — [data-theme="light"]이 붙은 페이지에서만 적용)
   속성이 없으면 :root의 다크 기본값이 그대로 유지된다.
   보라(--primary/--secondary/--gradient)는 정체성 유지를 위해 건드리지 않는다.
   ======================== */
[data-theme="light"] {
    --bg: #faf9fc;
    --text: #1a1626;
    /* 다크에서 흰색이던 채널을 브랜드 보라로 바꾼다 — 저알파에서도 무채색이 아니라
       옅은 라벤더 톤으로 보이도록. 표면/보더는 같은 채널을 쓰되 호출부 알파(표면은 낮게,
       보더는 상대적으로 높게)로 자연스럽게 구분된다. */
    --surface: 139, 92, 246;
    --surface-hover: 139, 92, 246;
    --border: 139, 92, 246;
    --text-dim-rgb: 90, 82, 110;
    --text-dim: rgba(90, 82, 110, 0.85);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--grad-aurora);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600 !important;
    transition: box-shadow 0.3s, transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.55);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000;
    z-index: 1;
}

.features, .auction-demo, footer {
    position: relative;
    z-index: 1;
    background-color: var(--bg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.hero-content {
    position: relative;
    z-index: 10; /* 헤더보다 낮지만 오버레이보다는 높게 */
    width: 100%;
}

/* ── 히어로 대시보드 시연 데모 ── */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero-demo {
    position: relative;
    flex: 0 0 320px;
    width: 320px;
}

/* 데모 박스 위에서 한 글자씩 등장하는 CASTELLA 로고 */
.hero-demo-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.4rem;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--gradient);
    text-shadow: 0 4px 22px rgba(139, 92, 246, 0.45);
}

.hero-demo-logo-ch {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.45em);
    letter-spacing: 0.12em;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.hero-demo-logo-ch.is-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-demo-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.3rem 1.2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.hero-demo-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 0.9rem;
}

.hero-demo-item {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hero-demo-item:last-child { margin-bottom: 0; }

.hero-demo-item.hero-demo-item-active {
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
}

.hero-demo-item-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease;
}

.hero-demo-item.hero-demo-item-active .hero-demo-item-detail {
    max-height: 30px;
    margin-top: 0.5rem;
}

.hero-demo-skel {
    display: block;
    height: 6px;
    width: 100%;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.3s ease;
}

.hero-demo-skel.short { width: 55%; }

.hero-demo-item.hero-demo-item-active .hero-demo-skel {
    background: rgba(255, 255, 255, 0.4);
}

.hero-demo-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.18), 0 4px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 5;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.hero-demo-cursor.hero-demo-cursor-click {
    box-shadow: 0 0 0 11px rgba(139, 92, 246, 0.32), 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* ═══════════════════════════════════════════════════════════════════
   오로라 배경 (재사용) — position:relative + overflow:hidden 컨테이너 안에
   <div class="aurora"><span class="aurora-blob a/b/c"></span>…</div> 로 넣는다.
   히어로 + #why 섹션에서 사용.
   ═══════════════════════════════════════════════════════════════════ */
.aurora {
    position: absolute;
    /* inset 축약형은 구형 모바일 사파리(iOS 14.0 이하)가 무시 → 개별 속성으로 */
    top: -25%;
    right: -12%;
    bottom: -25%;
    left: -12%;
    z-index: 0;
    filter: blur(90px);
    opacity: 0.5;
    pointer-events: none;
    transform: translateZ(0); /* iOS: filter + 애니메이션 자식이 안 그려지는 버그 회피 */
}
.aurora-blob {
    position: absolute;
    display: block;
    width: 46vw;
    height: 46vw;
    max-width: 640px;
    max-height: 640px;
    border-radius: 50%;
    will-change: transform;
}
.aurora-blob.a { background: #6d28d9; top: -6%; left: 2%; animation: auroraDrift1 19s ease-in-out infinite alternate; }
.aurora-blob.b { background: #8b5cf6; bottom: -14%; right: 4%; animation: auroraDrift2 23s ease-in-out infinite alternate; }
.aurora-blob.c { background: #2563eb; top: 28%; left: 42%; opacity: 0.65; animation: auroraDrift3 27s ease-in-out infinite alternate; }

@keyframes auroraDrift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(7vw, 6vh) scale(1.15); } }
@keyframes auroraDrift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-6vw, -5vh) scale(0.9); } }
@keyframes auroraDrift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-4vw, 5vh) scale(1.2); } }

/* ═══════════════════════════════════════════════════════════════════
   히어로 꾸미기 (제거 가능)
   끄기: index.html <section class="hero hero-fx"> 에서 hero-fx 만 삭제
   완전 삭제: 이 블록 전체 + index.html 의 "히어로 꾸미기" 주석 블록들
   ═══════════════════════════════════════════════════════════════════ */
.hero .aurora,
.hero-grain,
.hero-tagline,
.hero-roles,
.hero-scroll { display: none; }            /* hero-fx 없으면 히어로 장식 전부 숨김 */

.hero-fx {
    overflow: hidden;
    background: #05060a;
    height: auto;           /* 장식이 늘어나도 콘텐츠가 잘리지 않게 */
    min-height: 100vh;
}
.hero-fx .aurora,
.hero-fx .hero-grain { display: block; }
.hero-fx .hero-tagline { display: block; }
.hero-fx .hero-roles { display: block; }
.hero-fx .hero-scroll { display: flex; }

/* ── 그레인 텍스처 ── */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 오로라 위 은은한 비네트 */
.hero-fx .hero-overlay {
    z-index: 2;
    background: radial-gradient(ellipse at 50% 38%, transparent 32%, rgba(5, 7, 12, 0.55) 100%);
}

/* ── 태그라인 ── (.hero p 전역규칙보다 우선하도록 .hero-fx 를 함께 명시) */
.hero-fx .hero-tagline {
    position: relative;
    z-index: 10;
    max-width: none;
    margin: 0 auto 2.2rem;
    text-align: center;
    font-size: clamp(1.05rem, 2.6vw, 1.5rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.hero-fx .hero-tagline b {
    font-weight: 800;
    color: #a78bfa;
}

/* ── 데모 박스 뒤 글로우 ── */
.hero-fx .hero-demo { isolation: isolate; }
.hero-fx .hero-demo::before {
    content: "";
    position: absolute;
    inset: -10% -14%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 45%, rgba(139, 92, 246, 0.4), transparent 68%);
    filter: blur(34px);
    pointer-events: none;
}

/* ── 역할 마퀴 ── */
.hero-roles {
    position: relative;
    z-index: 10;
    margin-top: 2.4rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero-roles-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: heroRoles 28s linear infinite;
}
.hero-roles-track span {
    flex: none;
    padding: 0.4rem 0.95rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}
@keyframes heroRoles { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── 스크롤 유도 화살표 ── */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.8rem;
    transform: translateX(-50%);
    z-index: 10;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}
.hero-scroll:hover { color: rgba(255, 255, 255, 0.85); }
.hero-scroll-text {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
}
.hero-scroll-chevron {
    width: 11px;
    height: 11px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: heroScrollBob 1.7s ease-in-out infinite;
}
@keyframes heroScrollBob {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.35; }
    50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

@media (max-width: 768px) {
    .hero-fx .hero-scroll { display: none; }
    .hero-tagline { margin-bottom: 1.6rem; }
    .hero-roles { margin-top: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-blob,
    .hero-roles-track,
    .hero-scroll-chevron { animation: none; }
}
/* ═══ 히어로 꾸미기 끝 ═══ */

/* ═══════════════════════════════════════════════════════════════════
   #why 섹션 — "무엇이 다를까요?" 기존 vs CASTELLA 대비 (투명 버블 + 오로라)
   되돌리기: index.html 의 <section id="why"> 를 예전 story-card 마크업으로 교체
   ═══════════════════════════════════════════════════════════════════ */
.why-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 5.5rem 0;
    background: #05060a;
}
.why-inner {
    position: relative;
    z-index: 2;
}
.why-section .aurora { opacity: 0.4; }

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto 0;
}
.why-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.why-tag {
    align-self: flex-start;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.why-tag-old { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.5); }
.why-tag-new { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.4); }

.bubble {
    padding: 1.05rem 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    /* 아래→위 스크롤 등장 애니메이션: 초기 상태(숨김) */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.why-col-old .bubble { opacity: 0; }
.bubble.bubble-in { opacity: 1; transform: translateY(0); }
.why-col-old .bubble.bubble-in { opacity: 0.7; }
.bubble-break { display: none; }
.bubble-on {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.42);
    color: #fff;
    box-shadow: 0 0 26px rgba(139, 92, 246, 0.18);
}

/* 등록 인원수 — 투명 버블 박스 */
.why-count-wrap {
    text-align: center;
    margin-top: 2.8rem;
}
.why-count {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
    padding: 1.4rem 2.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}
.why-count-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #a78bfa;
}

@media (max-width: 768px) {
    .why-count { padding: 1.1rem 1.9rem; font-size: 1rem; }
    .why-count-num { font-size: 1.55rem; }
}

@media (max-width: 768px) {
    .why-section { padding: 4.5rem 0; }
    .why-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 440px; }
    .why-col { gap: 0.7rem; }
    .why-col-old { margin-bottom: 0.8rem; }
    .bubble { font-size: 0.88rem; padding: 0.9rem 1.05rem; }
    .bubble-break { display: inline; }
    /* 모바일: 뷰포트가 좁아 블롭이 작아지고 90px 블러에 묻힌다 → 키우고 블러↓ 불투명도↑ */
    .aurora { filter: blur(55px); }
    .aurora-blob { width: 78vw; height: 78vw; }
    .why-section .aurora { opacity: 0.6; }
}

@media (max-width: 1000px) and (min-width: 769px) {
    .hero-demo { flex-basis: 260px; width: 260px; }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6.5rem 0 3rem;
    }
    .hero-flex {
        flex-direction: column;
        gap: 2rem;
    }
    .hero-demo {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .hero-demo-logo { font-size: clamp(1.7rem, 9vw, 2.2rem); margin-bottom: 1rem; }
    .hero-demo-panel { padding: 1.1rem 1rem; }
    .hero-demo-title { font-size: 0.68rem; margin-bottom: 0.7rem; }
    .hero-demo-item { padding: 0.55rem 0.75rem; font-size: 0.82rem; margin-bottom: 0.4rem; }
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* 반응형 폰트 크기 */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-main {
    background: var(--grad-aurora);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-main);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(139, 92, 246, 0.55);
}

/* 투명 버블 버튼 (테두리형) */
.btn-outline,
.btn-ghost {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.btn-outline {
    padding: 1rem 2.5rem;
    border-radius: 50px;
}

.btn-ghost {
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    font-size: 0.92rem;
}

.btn-outline:hover,
.btn-ghost:hover {
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* Features */
.features {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--border), 0.1);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: transform 0.3s, border 0.3s;
}

.glass:hover {
    transform: translateY(-10px);
    border: 1px solid rgba(var(--border), 0.3);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-dim);
}

/* Story Card */
.story-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    text-align: center;
}

.story-quote {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-body {
    font-size: 0.9rem;
    color: rgba(var(--text-dim-rgb), 0.65);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .story-card { padding: 2rem 1.4rem; gap: 1rem; text-align: left; }
    .story-quote { font-size: 1.05rem; }
    .story-body { font-size: 0.84rem; word-break: keep-all; }
}

/* Auction Demo */
.auction-demo {
    padding: 8rem 0;
    background: rgba(var(--surface), 0.02);
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.demo-info {
    flex: 1;
}

.demo-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.demo-info p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.demo-visual {
    flex: 1;
    padding: 2rem;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Audition Cards (Closing Soon) */
.audition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.audition-card {
    position: relative;
    text-align: left;
    padding: 3rem 2rem;
    border-radius: 20px;
}

.d-day-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent); /* 주황/금색 계열로 강조 */
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.4);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.category {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audition-info h3 {
    font-size: 1.8rem;
    margin: 0.5rem 0 1rem 0;
}

.roles {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.audition-meta {
    border-top: 1px solid rgba(var(--border), 0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}

.pickup-guide {
    margin-top: 4rem;
    color: var(--text-dim);
    text-align: center;
    font-style: italic;
}

/* Signup Specific */
.role-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-selection input {
    display: none;
}

.role-selection label {
    flex: 1;
    padding: 1rem;
    background: rgba(var(--surface), 0.05);
    border: 1px solid rgba(var(--border), 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.role-selection input:checked + label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(var(--surface), 0.05);
    border: 1px solid rgba(var(--border), 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.input-group input:focus {
    outline: none;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0d1219 inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: radial-gradient(circle at top right, #1a1b3a, #0a0e14);
}

/* 이 그라디언트는 토큰화하지 않았다(1단계에서 합의) — 라이트에서는 셀렉터 단위로 직접 오버라이드 */
[data-theme="light"] .login-page {
    background: radial-gradient(circle at top right, #f2eefb, var(--bg));
}

.login-container {
    padding: 3.5rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    border-radius: 30px;
}

.login-header h1 {
    font-size: 2rem;
    margin: 1.5rem 0 0.5rem;
}

.login-header p {
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.btn-sns {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s, filter 0.2s;
}

.btn-sns img {
    width: 20px;
}

.btn-google {
    background: white;
    color: #333;
}

.btn-kakao {
    background: #FEE500;
    color: #3c1e1e;
}

.btn-sns:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.login-footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: rgba(var(--text-dim-rgb), 0.4);
}

.login-footer a {
    color: var(--primary);
    text-decoration: underline;
}

.user-name {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-right: 1.5rem;
}

.btn-logout {
    background: rgba(var(--surface), 0.1);
    border: 1px solid rgba(var(--border), 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 50, 50, 0.2);
    border-color: rgba(255, 50, 50, 0.4);
}

/* ========================
   Mobile Responsive
   ======================== */
@media (max-width: 768px) {

    /* Container */
    .container { padding: 0 1rem; }

    /* Header */
    header { padding: 0.9rem 0; }

    /* Nav */
    .logo { font-size: 1.4rem; letter-spacing: 1.5px; }
    .nav-links { gap: 0.6rem; }
    .nav-text-link a { font-size: 0.75rem; white-space: nowrap; }
    .btn-primary { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
    .btn-myinfo { font-size: 0.8rem; padding: 0.4rem 0.85rem; }

    /* Typography */
    h1 { font-size: 2rem; }
    .section-title h2 { font-size: 1.4rem; }
    .section-title { margin-bottom: 2.5rem; }

    /* Hero */
    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .btn-main, .btn-outline {
        padding: 0.75rem 1.6rem;
        font-size: 0.9rem;
        width: fit-content;
    }
    .hero p { font-size: 0.92rem; margin-bottom: 1.8rem; }

    /* Features */
    .features { padding: 2.5rem 0; }
    .features-grid { grid-template-columns: 1fr; gap: 0.7rem; }
    .feature-card { padding: 1.1rem 1rem; }
    .feature-card .icon { font-size: 1.5rem; margin-bottom: 0.45rem; }
    .feature-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
    .feature-card p { font-size: 0.82rem; line-height: 1.5; }

    /* Auction Demo */
    .flex-row { flex-direction: column; gap: 1rem; }
    .auction-demo { padding: 2.5rem 0; }
    .demo-info h2 { font-size: 1.15rem; margin-bottom: 0.7rem; }
    .demo-info p { font-size: 0.84rem; }
    .demo-visual { padding: 0.8rem; }
    .stat-number { font-size: 1.7rem; }
    .stat-label { font-size: 0.78rem; }
    .stats-container { gap: 0.8rem; padding: 0.5rem; }

    /* Audition grid */
    .audition-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.8rem;
    }
    .audition-card { padding: 1.5rem 1.2rem; }
    .audition-info h3 { font-size: 1.15rem; }
    .roles { font-size: 0.85rem; margin-bottom: 1.2rem; }
    .d-day-badge { font-size: 0.88rem; padding: 0.35rem 0.9rem; }

    /* Login / Signup */
    .login-container { padding: 2rem 1.4rem; }
    .login-header h1 { font-size: 1.6rem; }
    .login-header p { font-size: 0.88rem; margin-bottom: 2rem; }

    /* Dashboard */
    .dashboard-main { padding-top: 76px; padding-bottom: 3rem; }
    .section-row { gap: 0.6rem; }
    .dashboard-title { font-size: 1.2rem; }
    .dashboard-subtitle { font-size: 0.85rem; margin-bottom: 1.2rem; }
    .postings-grid { grid-template-columns: 1fr; gap: 1rem; }
    .posting-card { padding: 1.3rem; }
    .posting-title { font-size: 1.05rem; }
    .posting-desc { font-size: 0.84rem; }
    .artist-search-input { font-size: 0.9rem; padding: 0.65rem 0.85rem 0.65rem 2.5rem; border-radius: 12px; }

    /* Producer posting form */
    .form-row { flex-direction: column; }
    .form-input { min-width: unset; font-size: 0.9rem; }
    .form-textarea { font-size: 0.9rem; }
    .form-actions { flex-wrap: wrap; }
    .btn-post-new { font-size: 0.82rem; padding: 0.5rem 1.1rem; }

    /* Admin cards */
    .admin-cards { gap: 1rem; }
    .admin-card { padding: 1.8rem 1.4rem; }
    .admin-card-icon { font-size: 2rem; }
    .admin-card h3 { font-size: 1.2rem; }
    .admin-card p { font-size: 0.88rem; }

    /* My info page */
    .myinfo-page { padding: 1.8rem 0.8rem; }
    .btn-logout-page { font-size: 0.88rem; padding: 0.75rem; }

    /* Filmography */
    .filmography-input-row input { font-size: 0.88rem; padding: 0.8rem 0.85rem; }
    .btn-add { font-size: 0.82rem; padding: 0 0.95rem; }
    .film-chip { font-size: 0.8rem; }

    /* My posting item */
    .my-posting-item { flex-wrap: wrap; gap: 0.5rem; }

}

@media (max-width: 480px) {

    /* Logo */
    .logo { font-size: 1.0rem; letter-spacing: 1px; }

    /* Header */
    header { padding: 0.75rem 0; }

    /* Nav */
    .btn-myinfo { font-size: 0.74rem; padding: 0.35rem 0.7rem; }
    .btn-primary { font-size: 0.74rem; padding: 0.38rem 0.75rem; }

    /* Typography */
    h1 { font-size: 1.6rem; }
    .section-title h2 { font-size: 1.2rem; }

    /* Hero */
    .hero p { font-size: 0.85rem; margin-bottom: 1.4rem; }
    .btn-main, .btn-outline {
        padding: 0.65rem 1.3rem;
        font-size: 0.85rem;
    }

    /* Features */
    .features { padding: 2rem 0; }
    .feature-card { padding: 0.9rem 0.85rem; }
    .feature-card .icon { font-size: 1.3rem; margin-bottom: 0.35rem; }
    .feature-card h3 { font-size: 0.88rem; margin-bottom: 0.25rem; }
    .feature-card p { font-size: 0.78rem; line-height: 1.45; }

    /* Auction Demo */
    .auction-demo { padding: 2rem 0; }
    .demo-info h2 { font-size: 1rem; margin-bottom: 0.5rem; }
    .demo-info p { font-size: 0.78rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.72rem; }
    .stats-container { gap: 0.6rem; }

    /* Audition */
    .audition-card { padding: 1.2rem 1rem; }
    .audition-info h3 { font-size: 1rem; }
    .roles { font-size: 0.8rem; }
    .d-day-badge { font-size: 0.78rem; }
    .audition-meta { font-size: 0.78rem; }

    /* Login / Signup */
    .login-container { padding: 1.8rem 1.1rem; border-radius: 20px; }
    .login-header h1 { font-size: 1.4rem; }
    .login-header p { font-size: 0.82rem; margin-bottom: 1.5rem; }
    .btn-sns { font-size: 0.88rem; padding: 0.85rem; }

    /* My info page */
    .myinfo-page { padding: 1.2rem 0.5rem; }
    .hw-row { flex-direction: column; gap: 0; }
    .input-group input { font-size: 0.9rem; padding: 0.85rem; }
    .input-group textarea { font-size: 0.9rem; padding: 0.85rem; }
    .btn-logout-page { font-size: 0.85rem; padding: 0.7rem; }

    /* Filmography */
    .filmography-input-row { gap: 0.4rem; }
    .filmography-input-row input { font-size: 0.82rem; padding: 0.7rem 0.75rem; }
    .btn-add { font-size: 0.78rem; padding: 0 0.75rem; border-radius: 10px; }
    .film-chip { font-size: 0.75rem; padding: 0.22rem 0.55rem 0.22rem 0.75rem; }

    /* (artist-grid 오버라이드는 기본 스타일 이후 미디어쿼리에서 처리) */

    /* Modal */
    .profile-modal-inner { padding: 1.8rem 1rem; border-radius: 20px; }
    .modal-info-grid { gap: 1rem; padding: 0.8rem; }
    .modal-avatar { width: 80px; height: 80px; }
    .modal-avatar-placeholder { width: 80px; height: 80px; }
    .profile-modal-inner h2 { font-size: 1.2rem; }

    /* Dashboard */
    .dashboard-title { font-size: 1.05rem; }
    .dashboard-subtitle { font-size: 0.8rem; }
    .posting-card { padding: 1.1rem; }
    .posting-title { font-size: 0.98rem; }
    .posting-desc { font-size: 0.8rem; }
    .search-input { font-size: 0.9rem; padding: 0.8rem 0.8rem 0.8rem 2.5rem; }

    /* Admin */
    .admin-card { padding: 1.4rem 1.1rem; }
    .admin-card h3 { font-size: 1.05rem; }
    .admin-card p { font-size: 0.82rem; }
}

/* Field labels */
.field-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Textarea */
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(var(--surface), 0.05);
    border: 1px solid rgba(var(--border), 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    resize: vertical;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.input-group textarea::placeholder {
    color: rgba(var(--text-dim-rgb), 0.3);
}

/* Filmography */
.filmography-group {
    margin-bottom: 1rem;
    text-align: left;
}

.filmography-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.filmography-input-row input {
    flex: 1;
    padding: 1rem;
    background: rgba(var(--surface), 0.05);
    border: 1px solid rgba(var(--border), 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
}

.filmography-input-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.filmography-input-row input::placeholder {
    color: rgba(var(--text-dim-rgb), 0.3);
}

.btn-add {
    padding: 0 1.2rem;
    background: var(--grad-aurora);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-add:hover { opacity: 0.85; }

.filmography-input-row select {
    flex-shrink: 0;
    padding: 0 0.7rem;
    height: 100%;
    min-height: 3.2rem;
    background: rgba(var(--surface), 0.05);
    border: 1px solid rgba(var(--border), 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-family: var(--font-main);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 1.8rem;
}

.filmography-input-row select:focus { border-color: var(--primary); }

.filmography-input-row select option {
    background: #1a2235;
    color: #fff;
}

.film-genre-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.25);
    color: rgba(196, 181, 253, 1);
    border: 1px solid rgba(139, 92, 246, 0.4);
    letter-spacing: 0.02em;
    line-height: 1.5;
    flex-shrink: 0;
}

.filmography-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 10px;
}

.film-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 20px;
    padding: 0.3rem 0.8rem 0.3rem 1rem;
    font-size: 0.85rem;
    color: var(--primary);
}

.film-chip button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.film-chip button:hover { opacity: 1; }

/* Role badge (read-only display) */
.role-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
}

/* My Info page */
.myinfo-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: radial-gradient(circle at top right, #1a1b3a, #0a0e14);
    padding: 3rem 1rem;
}

.myinfo-container {
    width: 90%;
    max-width: 560px;
}

.myinfo-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.5rem;
}

.btn-back {
    position: absolute;
    left: 0;
    background: none;
    border: none;
    color: rgba(var(--text-dim-rgb), 0.6);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.btn-back:hover {
    color: #fff;
    background: rgba(var(--surface-hover), 0.08);
}

/* Save success banner */
.save-message {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(74, 226, 144, 0.12);
    border: 1px solid rgba(74, 226, 144, 0.3);
    border-radius: 12px;
    color: #4ae290;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

/* Avatar upload */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.5);
    display: none;
}

.avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.08);
    border: 2px dashed rgba(139, 92, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.avatar-placeholder:hover { background: rgba(139, 92, 246, 0.14); }

.btn-upload {
    font-size: 0.82rem;
    color: #a78bfa;
    cursor: pointer;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 8px;
    padding: 0.35rem 0.9rem;
    transition: background 0.2s;
    font-family: var(--font-main);
}

.btn-upload:hover { background: rgba(139, 92, 246, 0.22); }

.btn-upload-extra { font-size: 0.76rem !important; padding: 0.38rem 0.75rem !important; margin-top: 0.3rem; }
.btn-upload-extra:disabled { opacity: 0.45; cursor: default; }

.extra-photos-grid {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

.extra-photo-item {
    position: relative;
    width: 76px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(var(--border), 0.12);
    flex-shrink: 0;
}

.extra-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.extra-photo-new { border-color: rgba(139,92,246,0.5); }

.extra-photo-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.72);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.extra-photo-remove:hover { background: rgba(220,50,50,0.85); }

/* Height / Weight row */
.hw-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.hw-row .input-group { flex: 1; }

/* Nav: 내정보 button */
.btn-myinfo {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    background: rgba(var(--surface), 0.08);
    border-radius: 8px;
    transition: background 0.2s;
    font-weight: 600;
    white-space: nowrap;
}

.btn-myinfo:hover { background: rgba(var(--surface-hover), 0.16); }

/* myinfo 페이지 로그아웃 버튼 */
.btn-logout-page {
    width: 100%;
    padding: 0.9rem;
    background: rgba(220, 38, 38, 0.10);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #ff6b6b;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-main);
    transition: background 0.2s, border-color 0.2s;
    margin-top: 0.5rem;
}

.btn-logout-page:hover {
    background: rgba(220, 38, 38, 0.22);
    border-color: rgba(220, 38, 38, 0.55);
}

/* ========================
   Dashboard Shared
   ======================== */
.dashboard-body {
    background: var(--bg);
    min-height: 100vh;
}

.dashboard-main {
    padding-top: 108px;
    padding-bottom: 5rem;
}

.dashboard-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.dashboard-subtitle {
    color: var(--text-dim);
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.section-block {
    margin-bottom: 4rem;
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.count-badge {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.loading-text {
    color: var(--text-dim);
    text-align: center;
    padding: 3rem;
    font-size: 0.95rem;
}

.empty-text {
    color: var(--text-dim);
    text-align: center;
    padding: 3rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.empty-text-sm {
    color: var(--text-dim);
    font-size: 0.88rem;
    padding: 0.8rem 0;
}

/* ========================
   Admin Dashboard
   ======================== */
.admin-badge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-badge {
    background: linear-gradient(135deg, #f5a623, #e8438e);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.admin-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.admin-card {
    text-decoration: none;
    color: inherit;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    transition: transform 0.3s, border 0.3s, box-shadow 0.3s;
}

.admin-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--border), 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.admin-card-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.admin-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.admin-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; }
.admin-card-btn { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; }

@media (max-width: 600px) {
    .admin-cards { grid-template-columns: 1fr; }
}

/* ========================
   Search Bar (Artist)
   ======================== */
.dashboard-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-badge-inline {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.85rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.search-bar-wrap {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(var(--surface), 0.06);
    border: 1px solid rgba(var(--border), 0.12);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: rgba(var(--text-dim-rgb), 0.3); }

/* ========================
   Posting Cards (Artist)
   ======================== */
.postings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.posting-card {
    padding: 1.8rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.posting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.posting-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.posting-dday {
    padding: 0.22rem 0.7rem;
    border-radius: 12px;
    background: rgba(var(--surface), 0.08);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
}

.posting-dday.dday-orange { background: rgba(245, 166, 35, 0.18); color: var(--accent); }
.posting-dday.dday-red    { background: rgba(255, 50,  50, 0.18); color: #ff6b6b; }

.posting-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.posting-desc {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.posting-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(var(--border), 0.08);
    padding-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.posting-agency { font-weight: 600; }

/* ========================
   Producer: Posting Form
   ======================== */
.btn-post-new {
    background: var(--grad-aurora);
    color: white;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    font-family: var(--font-main);
}

.btn-post-new:hover { opacity: 0.85; }

.posting-form-wrap { margin-bottom: 1.5rem; }

.posting-form {
    padding: 1.8rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.form-input {
    flex: 1;
    min-width: 150px;
    padding: 0.9rem 1rem;
    background: rgba(var(--surface), 0.06);
    border: 1px solid rgba(var(--border), 0.12);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: rgba(var(--text-dim-rgb), 0.3); }

.form-select { cursor: pointer; }
.form-select option { background: #1a1b3a; color: white; }

.form-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(var(--surface), 0.06);
    border: 1px solid rgba(var(--border), 0.12);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-main);
    resize: vertical;
    outline: none;
    line-height: 1.5;
}

.form-textarea:focus { border-color: var(--primary); }
.form-textarea::placeholder { color: rgba(var(--text-dim-rgb), 0.3); }

.form-actions { display: flex; gap: 1rem; align-items: center; }

.btn-post-submit {
    background: var(--grad-aurora);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: opacity 0.2s;
}

.btn-post-submit:hover { opacity: 0.85; }

.btn-outline-sm {
    padding: 0.65rem 1.5rem;
    border: 1px solid rgba(var(--border), 0.2);
    background: none;
    color: var(--text-dim);
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-outline-sm:hover { background: rgba(var(--surface-hover), 0.06); }

.my-postings { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }

.my-posting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(var(--surface), 0.04);
    border: 1px solid rgba(var(--border), 0.08);
    border-radius: 12px;
    flex-wrap: wrap;
}

.my-posting-title { flex: 1; font-weight: 600; min-width: 80px; font-size: 0.92rem; }
.my-posting-deadline { color: var(--text-dim); font-size: 0.8rem; white-space: nowrap; }

.btn-delete-post {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.2);
    color: #ff6b6b;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: var(--font-main);
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-delete-post:hover { background: rgba(255, 50, 50, 0.22); }

/* ========================
   Artist Search
   ======================== */
.artist-search-wrap {
    margin-bottom: 0.6rem;
    position: relative;
}

.genre-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
    padding: 0.6rem 0.2rem 0.2rem;
}

.genre-chip {
    padding: 0.35rem 0.9rem;
    background: rgba(var(--surface), 0.06);
    border: 1px solid rgba(var(--border), 0.15);
    border-radius: 20px;
    color: rgba(var(--text-dim-rgb), 0.65);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.genre-chip:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
}

.genre-chip.active {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.7);
    color: #8b5cf6;
    font-weight: 600;
}

.artist-search-input {
    width: 100%;
    background: rgba(var(--surface), 0.05);
    border: 1px solid rgba(var(--border), 0.1);
    border-radius: 14px;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.artist-search-input::placeholder {
    color: rgba(var(--text-dim-rgb), 0.3);
}

.artist-search-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(var(--surface), 0.07);
}

.artist-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--text-dim-rgb), 0.3);
    font-size: 1rem;
    pointer-events: none;
}

.artist-search-empty {
    text-align: center;
    color: rgba(var(--text-dim-rgb), 0.3);
    font-size: 0.9rem;
    padding: 3rem 0;
}

/* ========================
   Artist Photo Grid (Producer)
   ======================== */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1.2rem;
}

.artist-card {
    cursor: pointer;
    background: rgba(var(--surface), 0.04);
    border: 1px solid rgba(var(--border), 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.artist-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.15);
}

.artist-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.artist-card:hover .artist-photo { transform: scale(1.06); }

.artist-photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(139, 92, 246, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.artist-name {
    padding: 0.65rem 0.7rem;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================
   Profile Modal
   ======================== */
.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 2rem 1rem;
    animation: fadeIn 0.2s ease;
}

.profile-modal-inner {
    width: 90%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 28px;
    position: relative;
    text-align: center;
    animation: slideUp 0.28s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: rgba(var(--surface), 0.08);
    border: none;
    color: var(--text-dim);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover { background: rgba(var(--surface-hover), 0.16); color: white; }

.modal-avatar-wrap { margin-bottom: 1.2rem; }

.modal-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.45);
}

.modal-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.07);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto;
}

.profile-modal-inner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-info-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 1.2rem 0;
    padding: 1rem;
    background: rgba(var(--surface), 0.04);
    border-radius: 14px;
}

.modal-info-item { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.modal-info-label { font-size: 0.72rem; color: var(--text-dim); font-weight: 600; }
.modal-info-val   { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

.modal-section { text-align: left; margin-top: 1.2rem; }

.modal-section-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.modal-bio-text {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-line;
}

/* ========================
   아티스트 상세 모달 (디렉터용)
   ======================== */

/* 사진 갤러리 */
.modal-photo-gallery {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    margin-bottom: 1.6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--border), 0.18) transparent;
}

.modal-photo-gallery::-webkit-scrollbar { height: 4px; }
.modal-photo-gallery::-webkit-scrollbar-track { background: transparent; }
.modal-photo-gallery::-webkit-scrollbar-thumb { background: rgba(var(--surface), 0.2); border-radius: 2px; }

.modal-gallery-item {
    flex-shrink: 0;
    width: 150px;
    height: 190px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(var(--border), 0.1);
}

.modal-gallery-main {
    border-color: rgba(139,92,246,0.5);
}

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-gallery-placeholder {
    flex-shrink: 0;
    width: 150px;
    height: 190px;
    border-radius: 14px;
    background: rgba(139,92,246,0.07);
    border: 2px solid rgba(139,92,246,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.modal-gallery-item:hover img { opacity: 0.85; }
.modal-gallery-item:hover { border-color: rgba(139,92,246,0.7); }
.modal-gallery-item { touch-action: manipulation; }

/* 라이트박스 */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#lightbox-img {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 60px);
    border-radius: 12px;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#lightbox-close {
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    background: rgba(var(--surface), 0.12);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 100000;
}
#lightbox-close:hover { background: rgba(var(--surface-hover), 0.25); }

#lightbox-prev, #lightbox-next {
    background: rgba(var(--surface), 0.1);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, opacity 0.2s;
    line-height: 1;
}
#lightbox-prev:hover, #lightbox-next:hover { background: rgba(var(--surface-hover), 0.22); }

@media (max-width: 480px) {
    #lightbox-img { max-width: calc(100vw - 80px); }
    #lightbox-prev, #lightbox-next { width: 36px; height: 36px; font-size: 1.8rem; }
}

.adm-modal {
    width: 100%;
    max-width: 820px;
    flex-shrink: 0;
    margin: 0 0 2rem 0;
    padding: 2.5rem;
    border-radius: 28px;
    position: relative;
    animation: slideUp 0.28s ease;
    background: rgba(var(--surface), 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--border), 0.1);
}

.adm-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.adm-left { flex-shrink: 0; }

.adm-avatar-img {
    width: 220px;
    height: 280px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.4);
    display: block;
}

.adm-avatar-placeholder {
    width: 220px;
    height: 280px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.07);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.adm-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.adm-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0.5rem 0 1.2rem;
    line-height: 1.2;
}

.adm-fields {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.adm-field {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.adm-field-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 68px;
    flex-shrink: 0;
}

.adm-field-val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.adm-field-bio {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    margin: 0;
}

.modal-youtube-wrap {
    width: 100%;
    min-width: 0;
}

.modal-youtube-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: none;
    display: block;
}

@media (max-width: 640px) {
    .adm-modal { padding: 1.8rem 1.2rem; }
    .adm-layout { flex-direction: column; align-items: center; gap: 1.5rem; }
    .adm-avatar-img, .adm-avatar-placeholder { width: 160px; height: 200px; }
    .adm-right { width: 100%; }
    .adm-name { font-size: 1.4rem; }
    .modal-gallery-item, .modal-gallery-placeholder { width: 120px; height: 152px; }
}

/* ========================
   Artist Dashboard Full Layout
   ======================== */
.apl-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.apl-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 108px;
    width: 260px;
}

.apl-avatar-img {
    width: 260px;
    height: 320px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.4);
    display: block;
}

.apl-avatar-placeholder {
    width: 260px;
    height: 320px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.07);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.apl-right {
    flex: 1;
}

.apl-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.apl-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.apl-input {
    width: 100%;
    padding: 1rem;
    background: rgba(var(--surface), 0.05);
    border: 1px solid rgba(var(--border), 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s;
}

.apl-input:focus { border-color: var(--primary); }
.apl-input::placeholder { color: rgba(var(--text-dim-rgb), 0.3); }

.apl-input:-webkit-autofill,
.apl-input:-webkit-autofill:hover,
.apl-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0d1219 inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

.apl-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(var(--surface), 0.05);
    border: 1px solid rgba(var(--border), 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    resize: vertical;
    outline: none;
    line-height: 1.5;
}

.apl-textarea:focus { border-color: var(--primary); }
.apl-textarea::placeholder { color: rgba(var(--text-dim-rgb), 0.3); }

.apl-hw-row {
    display: flex;
    gap: 1rem;
}

.apl-hw-row .apl-field-group { flex: 1; }

.apl-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ========================
   캐스팅 현황 섹션
   ======================== */
.casting-section {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: rgba(var(--surface), 0.03);
    border: 1px solid rgba(var(--border), 0.08);
    border-radius: 24px;
}

.casting-week-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.casting-status-msg {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 0;
}

/* ========================
   알림 수신함
   ======================== */
.notif-section {
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(var(--surface), 0.03);
    border: 1px solid rgba(var(--border), 0.08);
    border-radius: 24px;
}

.notif-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.notif-unread-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0.18rem 0.6rem;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
}

.notif-empty {
    color: rgba(var(--text-dim-rgb), 0.28);
    font-size: 0.88rem;
    text-align: center;
    padding: 1.5rem 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(var(--border), 0.06);
}

.notif-item:last-child { border-bottom: none; }

.notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b5cf6;
    flex-shrink: 0;
    margin-top: 0.38rem;
}

.notif-dot.read {
    background: rgba(var(--surface), 0.12);
}

.notif-body { flex: 1; }

.notif-director {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.18rem;
}

.notif-text {
    font-size: 0.8rem;
    color: rgba(var(--text-dim-rgb), 0.45);
    margin: 0;
}

.notif-time {
    font-size: 0.74rem;
    color: rgba(var(--text-dim-rgb), 0.28);
    flex-shrink: 0;
    margin-top: 0.1rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .notif-section { padding: 1rem 0.8rem; border-radius: 12px; }
    .notif-director { font-size: 0.82rem; }
    .notif-text { font-size: 0.75rem; }
    .notif-time { font-size: 0.68rem; }
}

@media (max-width: 768px) {
    .apl-layout {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .apl-left {
        position: static;
        width: 100%;
    }
    .apl-avatar-img,
    .apl-avatar-placeholder {
        width: 110px;
        height: 135px;
        font-size: 2.6rem;
        border-radius: 14px;
    }
    .apl-right { width: 100%; }
    .apl-hw-row { flex-direction: row; gap: 0.6rem; }
    .apl-form { gap: 0.7rem; }
    .apl-field-group { gap: 0.25rem; }
    .apl-input, .apl-textarea { font-size: 0.88rem; padding: 0.65rem 0.8rem; }
    .apl-textarea { rows: 3; min-height: 80px; }
    .apl-actions .btn-main { padding: 0.6rem 1.4rem; font-size: 0.85rem; width: auto; }
    .filmography-input-row .btn-add { font-size: 0.78rem; padding: 0 0.8rem; border-radius: 10px; }
    .casting-section { margin-top: 1.8rem; padding: 1.2rem 1rem; border-radius: 16px; }
    .casting-week-label { font-size: 0.72rem; margin-bottom: 1rem; }
}

@media (max-width: 480px) {
    .apl-layout { gap: 0.9rem; }
    .apl-avatar-img,
    .apl-avatar-placeholder {
        width: 88px;
        height: 108px;
        font-size: 2rem;
        border-radius: 12px;
    }
    .apl-form { gap: 0.55rem; }
    .apl-input, .apl-textarea { font-size: 0.82rem; padding: 0.55rem 0.7rem; border-radius: 10px; }
    .apl-hw-row { gap: 0.4rem; }
    .apl-actions { gap: 0.4rem; }
    .apl-actions .btn-main { padding: 0.5rem 1.1rem; font-size: 0.8rem; width: auto; }
    .filmography-input-row .btn-add { font-size: 0.72rem; padding: 0 0.65rem; border-radius: 8px; height: 36px; }
    .casting-section { margin-top: 1.2rem; padding: 1rem 0.8rem; border-radius: 12px; }
    .casting-week-label { font-size: 0.68rem; margin-bottom: 0.7rem; }
    .casting-status-msg { font-size: 0.82rem; padding: 1rem 0; }
}

/* ========================
   AI 셀프테이프 피드백 (모바일 우선 — 375px 기준, 768px 태블릿, 1024px+ 데스크톱)
   ======================== */
.selftape-section {
    margin-top: 1.25rem;
    padding: 1rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.selftape-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }

.selftape-beta-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
    border-radius: 10px;
    padding: 0.12rem 0.5rem;
}

.selftape-desc { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); margin: 0 0 1rem; line-height: 1.5; }

.selftape-tabs { display: flex; gap: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.selftape-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.55rem 0.05rem;
    cursor: pointer;
    position: relative;
}

.selftape-tab.active { color: #fff; }
.selftape-tab.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: #8b5cf6;
    border-radius: 2px;
}

.selftape-panel { margin-bottom: 0.4rem; }
.selftape-file-name { display: inline-block; margin-left: 0.6rem; font-size: 0.76rem; color: rgba(255, 255, 255, 0.6); vertical-align: middle; }
.selftape-hint { font-size: 0.7rem; color: rgba(255, 255, 255, 0.32); margin: 0.55rem 0 0; }
.st-duration-warn { color: #ffc107; font-size: 0.72rem; }

.selftape-actions { margin-top: 1rem; }

.selftape-progress { margin-top: 1rem; }
.selftape-progress-bar-track { width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.selftape-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #8b5cf6, #bd10e0); transition: width 0.25s ease; }
.selftape-progress-msg { font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); margin: 0.5rem 0 0; }

.selftape-error { margin-top: 1rem; background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255, 107, 107, 0.3); border-radius: 12px; padding: 0.8rem 0.9rem; }
.selftape-error p { margin: 0 0 0.6rem; font-size: 0.78rem; color: #ff9b9b; }

.selftape-result-actions { display: none; justify-content: flex-end; margin-top: 1.1rem; }
.selftape-result-actions .btn-upload { font-size: 0.76rem; padding: 0.5rem 0.9rem; }
.selftape-result { margin-top: 1.1rem; }
.st-summary { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); line-height: 1.55; background: rgba(255, 255, 255, 0.04); border-radius: 12px; padding: 0.7rem 0.85rem; margin: 0 0 1rem; }
.st-section-title { font-size: 0.68rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 0.55rem; }

/* 고칠 것 TOP3 — 항상 펼쳐진 상태로 노출 */
.st-top3-list { display: flex; flex-direction: column; gap: 0.6rem; }
.st-top3-card { display: flex; gap: 0.65rem; padding: 0.8rem 0.85rem; background: rgba(189, 16, 224, 0.07); border: 1px solid rgba(189, 16, 224, 0.3); border-radius: 14px; }
.st-top3-rank {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #bd10e0);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
}
.st-top3-body { flex: 1; min-width: 0; }
.st-top3-meta { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; flex-wrap: wrap; }
.st-cat-chip { font-size: 0.65rem; font-weight: 700; color: #c4b5fd; background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 10px; padding: 0.1rem 0.42rem; }
.st-timestamp { font-size: 0.68rem; font-weight: 800; color: #0a0e14; background: #ffc107; border-radius: 8px; padding: 0.08rem 0.4rem; white-space: nowrap; }
.st-timestamp-sm { font-size: 0.63rem; padding: 0.04rem 0.35rem; margin-right: 0.3rem; }
.st-top3-issue { font-size: 0.82rem; color: #fff; font-weight: 600; margin: 0 0 0.3rem; line-height: 1.5; }
.st-top3-suggestion { font-size: 0.76rem; color: rgba(255, 255, 255, 0.6); margin: 0; line-height: 1.5; }

/* 항목별 상세 — 그룹(accordion) > 카테고리 카드(accordion, notes 접힘) */
.st-group {
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
}
.st-group > summary.st-group-title {
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.85rem;
    margin: 0;
    min-height: 44px;
    box-sizing: border-box;
}
.st-group > summary.st-group-title::-webkit-details-marker { display: none; }
.st-group > summary.st-group-title::after {
    content: '▾';
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.st-group[open] > summary.st-group-title { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.st-group[open] > summary.st-group-title::after { transform: rotate(180deg); }
.st-group .st-cat-grid { padding: 0.75rem; }

.st-cat-grid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.st-cat-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; overflow: hidden; }
.st-cat-card > summary.st-cat-header {
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    margin: 0;
    min-height: 40px;
    box-sizing: border-box;
}
.st-cat-card > summary.st-cat-header::-webkit-details-marker { display: none; }
.st-cat-card > summary.st-cat-header::after {
    content: '▾';
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.st-cat-card[open] > summary.st-cat-header { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.st-cat-card[open] > summary.st-cat-header::after { transform: rotate(180deg); }
.st-cat-title { font-size: 0.78rem; font-weight: 700; color: #fff; }
.st-cat-score { font-size: 0.82rem; font-weight: 800; color: #4caf7d; flex-shrink: 0; }
.st-cat-score-max { font-size: 0.62rem; font-weight: 600; color: rgba(255, 255, 255, 0.3); margin-left: 0.1rem; }
.st-cat-notes { margin: 0; padding: 0.65rem 0.8rem; list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.st-cat-notes li { font-size: 0.74rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; }
.st-cat-note-empty { color: rgba(255, 255, 255, 0.28); }

.selftape-history { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.st-history-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.st-history-item:hover { background: rgba(255, 255, 255, 0.06); }
.st-history-date { font-size: 0.7rem; color: rgba(255, 255, 255, 0.35); }
.st-history-label { font-size: 0.82rem; color: #fff; font-weight: 600; }

/* 태블릿: 카테고리 카드 2단 그리드 + 여백/폰트 확장 */
@media (min-width: 768px) {
    .selftape-section { padding: 1.5rem 1.8rem; border-radius: 20px; }
    .selftape-desc { font-size: 0.85rem; margin-bottom: 1.2rem; }
    .selftape-tab { font-size: 0.88rem; padding: 0.6rem 0.1rem; }
    .st-summary { font-size: 0.88rem; padding: 0.85rem 1rem; margin-bottom: 1.2rem; }
    .st-section-title { font-size: 0.75rem; margin-bottom: 0.75rem; }
    .st-top3-list { gap: 0.75rem; }
    .st-top3-card { padding: 1rem 1.1rem; gap: 0.85rem; }
    .st-top3-rank { width: 28px; height: 28px; font-size: 0.88rem; }
    .st-top3-issue { font-size: 0.86rem; }
    .st-top3-suggestion { font-size: 0.8rem; }
    .st-group > summary.st-group-title { font-size: 0.8rem; padding: 0.85rem 1rem; }
    .st-group .st-cat-grid { padding: 0.9rem; }
    .st-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .st-cat-card > summary.st-cat-header { padding: 0.75rem 0.95rem; }
    .st-cat-title { font-size: 0.84rem; }
    .st-cat-score { font-size: 0.92rem; }
    .st-cat-notes { padding: 0.8rem 0.95rem; }
    .st-cat-notes li { font-size: 0.8rem; }
    .selftape-result-actions .btn-upload { font-size: 0.82rem; padding: 0.55rem 1.1rem; }
}

/* 데스크톱 */
@media (min-width: 1024px) {
    .selftape-section { padding: 1.5rem 2rem; border-radius: 24px; }
    .st-summary { font-size: 0.92rem; padding: 0.9rem 1.1rem; }
    .st-section-title { font-size: 0.78rem; }
    .st-top3-card { padding: 1.1rem 1.2rem; gap: 0.9rem; }
    .st-top3-rank { width: 30px; height: 30px; font-size: 0.95rem; }
    .st-top3-issue { font-size: 0.92rem; }
    .st-top3-suggestion { font-size: 0.85rem; }
    .st-group > summary.st-group-title { font-size: 0.82rem; padding: 0.9rem 1.1rem; }
    .st-cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
    .st-cat-card > summary.st-cat-header { padding: 0.85rem 1.05rem; }
    .st-cat-title { font-size: 0.88rem; }
    .st-cat-score { font-size: 1rem; }
    .st-cat-notes { padding: 0.9rem 1.05rem; }
    .st-cat-notes li { font-size: 0.82rem; }
}

/* ========================
   Artist Dashboard Profile Card (legacy — unused)
   ======================== */
.artist-profile-card {
    display: flex;
    gap: 3rem;
    padding: 2.5rem;
    border-radius: 28px;
    align-items: flex-start;
    max-width: 820px;
    transition: none;
}

.artist-profile-card:hover {
    transform: none;
}

.ap-avatar-side {
    flex-shrink: 0;
}

.ap-avatar-img {
    width: 240px;
    height: 240px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.4);
    display: block;
}

.ap-avatar-placeholder {
    width: 240px;
    height: 240px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.07);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.ap-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ap-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.6rem 0 1.2rem;
    line-height: 1.2;
}

.ap-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ap-field {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
}

.ap-field-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 52px;
    flex-shrink: 0;
}

.ap-field-val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.ap-field-bio-text {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-line;
    margin: 0;
}

.btn-edit-profile {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.65rem 1.5rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    width: fit-content;
}

.btn-edit-profile:hover {
    background: rgba(139, 92, 246, 0.22);
}

/* Artist grid — 기본 스타일 이후에 선언해야 올바르게 오버라이드됨 */
@media (max-width: 768px) {
    .artist-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.6rem; }
    .artist-name { font-size: 0.78rem; padding: 0.45rem 0.4rem; }
    .artist-card { border-radius: 10px; }

    .artist-profile-card {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.6rem 1.2rem;
        border-radius: 20px;
    }
    .ap-avatar-img,
    .ap-avatar-placeholder {
        width: 130px;
        height: 130px;
        font-size: 3rem;
    }
    .ap-info-side { width: 100%; }
    .ap-name { font-size: 1.35rem; margin: 0.4rem 0 0.8rem; }
    .ap-field-val { font-size: 0.92rem; }
    .ap-field-bio-text { font-size: 0.85rem; }
    .ap-fields { gap: 0.7rem; }
}

@media (max-width: 480px) {
    .artist-grid { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
    .artist-name { font-size: 0.7rem; padding: 0.35rem 0.25rem; }
    .artist-photo-placeholder { font-size: 1.8rem; }
    .artist-card { border-radius: 8px; }

    .artist-profile-card {
        gap: 1.2rem;
        padding: 1.2rem 0.9rem;
        border-radius: 16px;
    }
    .ap-avatar-img,
    .ap-avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.2rem;
        border-radius: 14px;
    }
    .ap-name { font-size: 1.15rem; }
    .ap-field-label { font-size: 0.65rem; min-width: 42px; }
    .ap-field-val { font-size: 0.85rem; }
    .ap-field-bio-text { font-size: 0.8rem; }
    .btn-edit-profile { font-size: 0.82rem; padding: 0.55rem 1.1rem; margin-top: 1rem; }
}

/* ========================
   Tutorial Section
   ======================== */
.tutorial { padding: 4rem 0; }

/* 하이라이트 텍스트 */
.hl {
    color: var(--gradient);
    font-weight: 700;
}

/* How-to 단계 카드 */
.how-steps {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.how-step {
    flex: 1;
    min-width: 220px;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.how-step-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gradient);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.how-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.how-step-desc {
    font-size: 0.82rem;
    color: rgba(var(--text-dim-rgb), 0.6);
    line-height: 1.65;
    margin: 0;
}

.how-step-arrow {
    font-size: 2rem;
    color: rgba(var(--text-dim-rgb), 0.18);
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 720px) {
    .how-steps { flex-direction: column; }
    .how-step-arrow { transform: rotate(90deg); text-align: center; }
}

.tutorial-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    background: #111827;
}

.tutorial-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

