/* PC 전용 상단 우측 CREON 배지 */
.pc-creon { display: none; }
@media (min-width: 961px) {
  .pc-creon {
    position: fixed; top: 66px; left: 75vw; transform: translateX(-50%);
    font-weight: 1000; letter-spacing: -.5px;
    font-size: clamp(36px, 5vw, 96px);
    color: #ff9800; /* orange */
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
    pointer-events: none; user-select: none;
    z-index: 9999;
    display: block !important;
    font-family: 'Bungee', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  }
  /* PC: make login button full width like inputs */
  .auth-pane #loginForm .btn-primary { width: 100%; display: block; }
  /* PC: make forgot submit full width like inputs */
  .auth-pane #forgotForm .btn-primary { width: 100%; display: block; }
}
:root {
  --neon: #64d2ff;
  --neon-2: #a78bfa;
  --bg: #0e1116;
  --panel: #141923;
  --text: #e9edf3;
  --muted: #97a1b3;
  --border: #232a36;
  --link: #60a5fa; /* blue-400 for dark */
  --accent: #64d2ff; /* will be overridden by platform */
}

.logo-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 10px var(--neon), 0 0 18px var(--neon-2);
}

.navbar-tall { min-height: 112px; display: flex; align-items: center; }
.app-navbar { background: var(--panel); color: var(--text); border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.app-navbar .btn { border-color: rgba(100,210,255,.45); color: #0b111a; box-shadow: 0 0 0 0 rgba(100,210,255,0); transition: box-shadow .2s ease, transform .15s ease; }
.app-navbar .btn:hover { transform: translateY(-1px); box-shadow: 0 0 12px rgba(100,210,255,.55); }

:root[data-theme="dark"] .app-navbar .btn { border-color: rgba(100,210,255,.55); color: #e9edf3; }
:root[data-theme="dark"] .app-navbar .btn:hover { box-shadow: 0 0 16px rgba(100,210,255,.8); }

:root[data-theme="dark"] .app-navbar { background: #121722; color: #e9edf3; border-bottom-color: #232a36; }

/* 글로벌 배경/텍스트 적용 */
body { background: var(--bg); color: var(--text); }
:root[data-theme="light"] {
  --bg: #f8fafc;
  --text: #0f172a;
  --panel: #ffffff;
  --muted: #64748b;
  --border: #e5e7eb;
  --link: #2563eb; /* blue-600 for light */
}

/* 부트스트랩 톤 오버라이드 (전역 테마 적용) */
.bg-body-secondary { background: color-mix(in oklab, var(--panel) 96%, transparent) !important; color: var(--text) !important; border-bottom: 1px solid var(--border) !important; }
.text-muted { color: var(--muted) !important; }
.sidebar { max-height: calc(100vh - 160px); overflow-y: auto; overflow-x: hidden; padding: 8px; }
.sidebar-layer { position: relative; padding: 8px; }

.sidebar .list-group-item {
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  border-color: var(--border);
  padding-top: 48px; padding-bottom: 48px;
  font-size: 1.25rem;
  background: var(--panel); color: var(--text);
  margin: 6px 0;
  position: relative; overflow: visible; z-index: 0;
  width: 100%;
}
.menu-icon { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(100,210,255,.25)); }
.menu-icon-lg { width: 40px; height: 40px; }
.sidebar .list-group-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(100,210,255,.25), 0 6px 20px rgba(0,0,0,.25);
  z-index: 1;
}
.sidebar .list-group-item.active { font-weight: 800; background-color: transparent !important; color: inherit; border-color: rgba(255,255,255,.18); }
.sidebar [data-channel="youtube"].active { box-shadow: none; filter: drop-shadow(0 0 14px rgba(255,0,0,.6)); }
.sidebar [data-channel="instagram"].active { box-shadow: none; filter: drop-shadow(0 0 14px rgba(255,20,147,.6)); }
.sidebar [data-channel="threads"].active { box-shadow: none; filter: drop-shadow(0 0 14px rgba(0,0,0,.6)); }
.sidebar [data-channel="naverblog"].active { box-shadow: none; filter: drop-shadow(0 0 14px rgba(0,200,0,.6)); }

/* 다크 모드에서 활성 네온 강화 (Threads는 흰색) */
:root[data-theme="dark"] .sidebar [data-channel="youtube"].active { filter: drop-shadow(0 0 20px rgba(255,0,0,.85)); }
:root[data-theme="dark"] .sidebar [data-channel="instagram"].active { filter: drop-shadow(0 0 20px rgba(255,20,147,.85)); }
:root[data-theme="dark"] .sidebar [data-channel="threads"].active { color: #ffffff; filter: drop-shadow(0 0 20px rgba(255,255,255,.9)); }
:root[data-theme="dark"] .sidebar [data-channel="naverblog"].active { filter: drop-shadow(0 0 20px rgba(0,200,0,.9)); }

#hashtagList .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08);
  background: #f8f9fb; color: #0d0f14; cursor: pointer;
  transition: box-shadow .2s ease, transform .15s ease, background .2s ease;
}
#hashtagList .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(100,210,255,.45);
  background: #ffffff;
}
#hashtagList .tag.active { box-shadow: 0 0 0 2px rgba(167,139,250,.45); }

/* 공통 패널/테두리 */
.card { border-radius: 16px; overflow: hidden; background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-header { border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--panel) 98%, transparent); }
.card-body { background: var(--panel); color: var(--text); }
.auth-modal .card-body { background: transparent; }
.border { border-color: var(--border) !important; }

/* platform accent glow on category card */
.glow-target { transition: box-shadow .25s ease; }
.glow-target.glow { box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.accent-text { color: var(--accent); font-weight: 800; }

/* Auth modals polish */
.modal-content { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.modal-header { border-bottom: 1px solid var(--border); }
.modal .form-control, .modal .form-select { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.modal .form-control::placeholder { color: var(--muted); }
.modal .btn-primary { background: var(--accent); border-color: var(--accent); }
.modal .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black 12%); border-color: color-mix(in srgb, var(--accent) 88%, black 12%); }

/* Auth pages (standalone) */
.auth-modal.card,
.card.auth-modal,
.auth-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  border: 0;
}
.auth-modal .form-control, .auth-modal .form-select { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.auth-modal .form-control::placeholder { color: var(--muted); }
.auth-modal .btn-primary { background: var(--accent); border-color: var(--accent); }
.auth-modal .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black 12%); border-color: color-mix(in srgb, var(--accent) 88%, black 12%); }

/* Modern auth modal */
.auth-modal .modal-dialog { max-width: 720px; }
.auth-modal .modal-content {
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 98%, transparent), color-mix(in oklab, var(--panel) 92%, transparent));
  box-shadow: 0 24px 60px rgba(15,23,42,.32);
  backdrop-filter: blur(10px) saturate(1.1);
}
.auth-modal .modal-header { border-bottom: 0; padding-bottom: 0; }
.auth-title { font-weight: 900; letter-spacing: -.3px; color: var(--text); font-size: 1.4rem; }
.auth-sub { color: var(--muted); font-size: 1rem; }
.auth-modal .form-control, .auth-modal .form-select {
  border-radius: 14px; padding: 14px 16px;
  box-shadow: inset 0 3px 10px rgba(15,23,42,.14);
}
.auth-modal .btn-primary.w-100 { padding: 14px 18px; border-radius: 14px; box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 28%, transparent); font-weight: 800; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); flex: 1; font-weight: 800; font-size: 1rem; }
.btn-social:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15,23,42,.12); }
.social-icon { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(0,0,0,.15)); }
.btn-google { background: #ea4335; color: #fff; border-color: #ea4335; }
.btn-google { transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
:root[data-theme="light"] .btn-google:hover { background: #fff; color: #ea4335; border-color: #ea4335; box-shadow: 0 10px 22px rgba(234,67,53,.35); }
:root[data-theme="dark"] .btn-google:hover { background: #000; color: #ea4335; border-color: #ea4335; box-shadow: 0 10px 22px rgba(234,67,53,.35); }
.btn-naver:hover { box-shadow: 0 10px 22px rgba(3,199,90,.35); }
.btn-instagram:hover { box-shadow: 0 10px 22px rgba(221,42,123,.35); }
.btn-threads { border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
:root[data-theme="light"] .btn-threads:hover { background: #fff; color: #000; border-color: #000; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
:root[data-theme="dark"] .btn-threads:hover { background: #000; color: #fff; border-color: #fff; box-shadow: 0 10px 22px rgba(255,255,255,.35); }

/* 2행 그리드로 동일 크기 정렬 */
.auth-social-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 580px) { .auth-social-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .auth-social-row { grid-template-columns: repeat(2, 1fr); } }
.auth-social-row .btn { width: 100%; height: 52px; }
.btn-naver { background: #03c75a; color: #fff; border-color: #03c75a; }
.btn-instagram { background: linear-gradient(45deg,#f58529,#feda77,#dd2a7b,#8134af,#515bd4); color: #fff; border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn-threads { background: color-mix(in srgb, var(--text) 100%, black 0%); color: #fff; border: 1px solid transparent; }
:root[data-theme="light"] .btn-instagram:hover { background: #fff; color: #dd2a7b; border-color: #dd2a7b; box-shadow: 0 10px 22px rgba(221,42,123,.35); }
:root[data-theme="dark"] .btn-instagram:hover { background: #000; color: #dd2a7b; border-color: #dd2a7b; box-shadow: 0 10px 22px rgba(221,42,123,.35); }
:root[data-theme="light"] .btn-threads { background: #000; color: #fff; }
:root[data-theme="dark"] .btn-threads { background: #fff; color: #000; }

/* Search inline layer (dark/light aware) */
.search-wrap {
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 96%, transparent), color-mix(in oklab, var(--panel) 88%, transparent));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(15,23,42,.14), inset 0 1px 0 color-mix(in oklab, var(--panel) 70%, white 30%);
  backdrop-filter: blur(8px) saturate(1.1);
}
.search-wrap .input-group { gap: 8px; }
.search-wrap .input-group .form-control {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.12);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.search-wrap .input-group .form-control:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.search-wrap .input-group .form-control::placeholder { color: var(--muted); }
.search-wrap .input-group .btn {
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, white 4%), color-mix(in srgb, var(--panel) 88%, black 12%));
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
  transition: transform .15s ease, box-shadow .2s ease;
}
.search-wrap .input-group .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,23,42,.18); }
.search-wrap .input-group .btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(15,23,42,.14) inset; }
.search-wrap .input-group .btn.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white 8%), color-mix(in srgb, var(--accent) 80%, black 20%));
  border-color: color-mix(in srgb, var(--accent) 90%, black 10%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
}
.search-wrap .input-group .btn.btn-primary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 96%, white 4%), color-mix(in srgb, var(--accent) 86%, black 14%));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* 다크/라이트 카드 */
:root[data-theme="dark"] .card-header { border-bottom-color: #232a36; }

.neon-hover {
  transition: box-shadow .2s ease, transform .2s ease;
}
.neon-hover:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 6px 24px rgba(15,23,42,.18); }

/* Video card preview */
.video-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--panel); color: var(--text); transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.video-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .25s ease; }
.video-meta { padding: 12px; }
.video-title { margin: 0 0 4px; font-weight: 800; letter-spacing: -.2px; }
.video-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.video-card:hover .video-thumb { transform: scale(1.03); }
.video-card:hover .video-title { color: var(--link); }

/* Summary layer refresh */
.summary-card { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 94%, transparent), color-mix(in oklab, var(--panel) 86%, transparent)); box-shadow: 0 10px 26px rgba(15,23,42,.12); }
.summary-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--panel) 96%, transparent); }
.summary-title { font-weight: 900; letter-spacing: -.2px; }
.summary-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: .85rem; border: 1px solid var(--border); background: color-mix(in oklab, var(--panel) 88%, transparent); }
.summary-body { padding: 16px; }
.summary-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .summary-grid { grid-template-columns: 1fr 1fr; } }
.summary-col h6 { margin: 0 0 8px; font-weight: 800; }
.summary-col ul { margin: 0; padding-left: 18px; }
.source-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in oklab, var(--panel) 90%, transparent); font-size: .85rem; }
.hashes { display: flex; flex-wrap: wrap; gap: 8px; }
.hash-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in oklab, var(--panel) 92%, transparent); font-weight: 700; }
.hash-badge::before { content: '#'; margin-right: 4px; opacity: .9; }

/* 5 styles in summary modal */
.sum-style { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sum-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.sum-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--panel); }
.sum-title { font-weight: 900; margin-bottom: 8px; }
.sum-list { margin: 0; padding-left: 18px; }

.sum-style.style-2 { grid-template-columns: 1fr; }
.sum-style.style-2 .sum-card { background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 96%, transparent), color-mix(in oklab, var(--panel) 84%, transparent)); }

.sum-style.style-3 .sum-card { border-left: 4px solid var(--accent); }
.sum-style.style-4 .sum-card { box-shadow: 0 10px 26px rgba(15,23,42,.16); }
.sum-style.style-5 .sum-card { background: color-mix(in oklab, var(--panel) 92%, white 8%); }

/* 채널별 네온 컬러 */
.sidebar [data-channel="youtube"]:hover { box-shadow: 0 0 14px rgba(255,0,0,.5), 0 0 0 2px rgba(255,0,0,.35) inset; }
.sidebar [data-channel="instagram"]:hover { box-shadow: 0 0 14px rgba(255,20,147,.5), 0 0 0 2px rgba(255,20,147,.35) inset; }
.sidebar [data-channel="threads"]:hover { box-shadow: none; filter: drop-shadow(0 0 12px rgba(0,0,0,.5)); }
:root[data-theme="dark"] .sidebar [data-channel="threads"]:hover { filter: drop-shadow(0 0 14px rgba(255,255,255,.9)); color: #ffffff; }
.sidebar [data-channel="naverblog"]:hover { box-shadow: 0 0 14px rgba(0,200,0,.55), 0 0 0 2px rgba(0,200,0,.35) inset; }

/* 트리 UI */
.tree-levels { grid-template-columns: 1fr; overflow: visible; }
.tree-node { display: flex; align-items: center; justify-content: center; padding: 20px 16px; min-height: 96px; font-size: 1.125rem; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; text-align: center; margin: 6px 0; position: relative; overflow: visible; }
.tree-node:hover { box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--panel) 90%, var(--bg) 10%); }
.tree-node.glow { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 75%, transparent); }
.tree-node.leaf + .fetch-wrap { grid-column: 1 / -1; }
.tree-children { padding-left: 12px; border-left: 2px dashed rgba(0,0,0,.08); margin-left: 6px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: color-mix(in oklab, var(--panel) 80%, white 20%); color: var(--text); font-weight: 600; }

/* 전환 효과 */
.fade-in { animation: fadeIn .9s ease both; }
.fade-out { animation: fadeOut .9s ease both; }
.fade-in-node { animation: fadeIn .9s ease both; }
.fade-out-node { animation: fadeOut .9s ease both; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOut { from { opacity: 1 } to { opacity: 0 } }

/* Home quick auth CTA (bottom) */
.home-auth-cta {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 96%, transparent), color-mix(in oklab, var(--panel) 90%, transparent));
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15,23,42,.28);
  backdrop-filter: blur(8px) saturate(1.05);
  z-index: 1050;
}
.home-auth-cta .btn { font-weight: 800; border-radius: 12px; }
.home-auth-cta .btn-primary { background: var(--accent); border-color: var(--accent); }
.home-auth-cta .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black 12%); border-color: color-mix(in srgb, var(--accent) 88%, black 12%); }
.home-auth-cta .btn-outline-light { color: var(--text); border-color: var(--border); background: transparent; }
.home-auth-cta .btn-outline-light:hover { background: color-mix(in oklab, var(--panel) 96%, transparent); }

/* Fullscreen auth layout */
.auth-full { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-left {
  position: relative; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(60% 80% at 15% 20%, rgba(100,210,255,.12), transparent 60%),
    radial-gradient(60% 80% at 85% 25%, rgba(167,139,250,.12), transparent 60%),
    radial-gradient(60% 80% at 60% 80%, rgba(99,102,241,.10), transparent 60%),
    linear-gradient(180deg, color-mix(in oklab, var(--panel) 94%, transparent), color-mix(in oklab, var(--panel) 86%, transparent));
  border-right: 1px solid var(--border);
}
.brand-hero { text-align: center; }
.brand-hero img { width: min(560px, 70%); height: auto; filter: drop-shadow(0 16px 32px rgba(0,0,0,.24)); border-radius: 12px; }
.brand-hero h2 { margin: 16px 0 4px; font-weight: 1000; letter-spacing: -.5px; }
.brand-hero .muted { color: var(--muted); }

.auth-right { display: grid; place-items: center; padding: 24px; }
.auth-pane { width: min(680px, 92vw); background: transparent; border: 0; box-shadow: none; }
.auth-pane form { width: 100%; }
/* Unified control heights */
.auth-pane form .form-control,
.auth-pane form .form-select { height: 60px; font-size: 16px; }
.auth-pane .btn { height: 60px; }
.auth-pane #registerForm .row.g-2 > [class^="col-"],
.auth-pane #registerForm .row.g-2 > [class*=" col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
.auth-pane #registerForm .btn-primary { width: 100%; display: block; }
.auth-pane .nav-tabs .nav-link { font-weight: 800; }
.auth-pane .nav-tabs .nav-link.active { color: var(--text); background: color-mix(in oklab, var(--panel) 96%, transparent); border-color: var(--border) var(--border) transparent; }

@media (max-width: 960px) {
  .auth-full { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

/* --- Auth left overlay layout overrides for hero/form on the left --- */
.auth-left { position: relative; padding: 0; min-height: 100vh; }
.brand-hero { position: relative; height: 100vh; overflow: hidden; }
.brand-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 28% center; filter: brightness(.8); border-radius: 0; }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; padding: 40px 10%; }
.hero-title { font-weight: 1000; font-size: clamp(32px, 6vw, 72px); letter-spacing: -.5px; }
.hero-sub { color: var(--muted); font-weight: 700; font-size: clamp(14px, 2.6vw, 20px); }
.hero-tabs .btn { min-width: 120px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hero-tabs .btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255,255,255,.7) !important;
  background: transparent !important;
}
.hero-tabs .btn-light {
  color: #ffffff !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: none !important;
}
.hero-tabs .btn:hover { filter: brightness(1.05); }
.auth-pane.inline { margin-top: 6px; background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 96%, transparent), color-mix(in oklab, var(--panel) 88%, transparent)); border: 1px solid var(--border); }

/* Brand line on auth right */
.brand-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 3rem; }
.brand-creon { font-weight: 1000; letter-spacing: -.4px; color: #ffd54f; font-size: clamp(22px, 4.2vw, 40px); font-family: 'Bungee', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.brand-rest { font-weight: 1000; letter-spacing: -.2px; color: #ffffff; font-size: clamp(20px, 4.4vw, 36px); font-family: 'Bungee', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

@media (max-width: 960px) {
  .auth-right { display: block; padding: 16px; }
  .auth-left { display: none; }
  .brand-hero { height: 0; }
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .hero-overlay { padding: 24px 6%; gap: 8px; }
  .brand-line { margin-bottom: 1.5rem; }
  .brand-hero img { object-position: center; }
  .hero-tabs { width: 100%; }
  .hero-tabs .btn { flex: 1 1 0; min-width: 0; }
  .auth-right { padding: 12px; }
  .auth-pane { width: 100%; }
  .auth-pane form .form-control,
  .auth-pane form .form-select { height: 60px; font-size: 16px; }
  .auth-pane .btn { height: 60px; }
  .brand-rest { color: #0d0f14 !important; }
}

/* Stack register form columns on smaller screens */
@media (max-width: 960px) {
  .auth-pane .row.g-2 > [class^="col-"],
  .auth-pane .row.g-2 > [class*=" col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .auth-pane .btn-primary { width: 100%; }
}

/* Mobile-only helpers */
.mobile-only { display: none; }
@media (max-width: 960px) {
  .mobile-only { display: flex !important; }
}


