:root {
  --bg: #07111f;
  --panel: #121d31;
  --panel-2: #15233b;
  --line: rgba(180, 217, 255, 0.12);
  --text: #eff6ff;
  --muted: #8ea1bb;
  --soft: #18263e;
  --accent: #5df2d6;
  --accent-2: #37b8ff;
  --accent-soft: rgba(93, 242, 214, 0.14);
  --sidebar-bg: rgba(11, 23, 40, 0.9);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] {
  --bg: #f7f8fc;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --line: #e7eaf1;
  --text: #181b24;
  --muted: #707887;
  --soft: #f1f4f9;
  --accent: #ff8d6c;
  --accent-2: #ffb59f;
  --accent-soft: #fff2ed;
  --sidebar-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 50px rgba(24, 27, 36, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "SUIT", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(93, 242, 214, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(55, 184, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #0e1a2e 0%, var(--bg) 100%);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top right, rgba(255, 141, 108, 0.12), transparent 22%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}

button,
a {
  font: inherit;
}

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

.dashboard-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--sidebar-bg);
  backdrop-filter: blur(14px);
  overflow-y: auto;
}

.dashboard-sidebar {
  scrollbar-width: none;
}

.dashboard-sidebar::-webkit-scrollbar {
  display: none;
}

:root[data-theme="light"] .dashboard-sidebar {
  border-right: 1px solid rgba(24, 27, 36, 0.06);
}

.sidebar-brand {
  display: grid;
  gap: 6px;
  order: 1;
}

.brand-logo-text {
  display: block;
  width: 100%;
  min-height: 54px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1.05;
}

:root[data-theme="light"] .brand-logo-text {
  color: #181b24;
}

.sidebar-brand span {
  display: block;
  padding-left: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  order: 2;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] .sidebar-profile {
  border: 1px solid rgba(24, 27, 36, 0.06);
  background: #fff;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffcfbf, #ff9b7b);
  color: #fff;
  font-weight: 800;
}

:root[data-theme="light"] .profile-avatar {
  background: linear-gradient(135deg, #ffd1c3, #ff9b7b);
}

.theme-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  order: 4;
  gap: 8px;
  margin-top: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.theme-option {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.theme-option.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041019;
  box-shadow: 0 10px 24px rgba(93, 242, 214, 0.16);
}

:root[data-theme="light"] .theme-switcher {
  border: 1px solid rgba(24, 27, 36, 0.06);
  background: #fff;
}

:root[data-theme="light"] .theme-option.is-active {
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 141, 108, 0.16);
}

.sidebar-profile strong {
  display: block;
  font-size: 15px;
}

.sidebar-profile p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-entry {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(93, 242, 214, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.profile-entry-active {
  box-shadow: inset 0 0 0 1px rgba(93, 242, 214, 0.24);
}

.profile-entry-fill {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041019;
}

:root[data-theme="light"] .profile-entry {
  background: #fff2ed;
  color: #e15f43;
}

:root[data-theme="light"] .profile-entry-active {
  box-shadow: inset 0 0 0 1px rgba(255, 141, 108, 0.24);
}

:root[data-theme="light"] .profile-entry-fill {
  background: linear-gradient(135deg, #ffb59f, #ff8d6c);
  color: #fff;
}

.sidebar-nav {
  display: grid;
  order: 3;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 24px;
}

.nav-group {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

:root[data-theme="light"] .nav-group {
  border: 1px solid rgba(24, 27, 36, 0.06);
  background: rgba(255, 255, 255, 0.92);
}

.nav-group.is-selected {
  border-color: rgba(93, 242, 214, 0.22);
  background: linear-gradient(180deg, rgba(93, 242, 214, 0.14), rgba(255, 255, 255, 0.03));
}

:root[data-theme="light"] .nav-group.is-selected {
  border-color: rgba(255, 141, 108, 0.24);
  background: linear-gradient(180deg, #fff8f4, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 141, 108, 0.04);
}

.nav-group-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-link {
  cursor: pointer;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.nav-icon-instagram {
  background: linear-gradient(135deg, #ff9a62, #ff4d6d);
}

.nav-icon-instagram span {
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.nav-icon-naver {
  background: #2dc76d;
}

.nav-icon-kakao {
  position: relative;
  background: #fee500;
  color: #191600;
  font-size: 0;
}

.nav-icon-kakao::before {
  content: "";
  width: 12px;
  height: 9px;
  border-radius: 999px;
  background: #191600;
}

.nav-icon-kakao::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  background: #191600;
  transform: rotate(45deg);
}

.nav-icon-youtube {
  background: #ff2f2f;
  font-size: 9px;
}

.nav-icon-map {
  background: linear-gradient(135deg, #4285f4, #34a853 48%, #fbbc05 72%, #ea4335);
}

.nav-icon-shopping {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
}

.nav-icon-shooting {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 9px;
}

.nav-icon-press {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.nav-icon-order {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041019;
}

.nav-copy {
  font-size: 16px;
  font-weight: 700;
}

.nav-arrow {
  color: #96a3b6;
  font-size: 14px;
  transition: transform 220ms ease;
}

:root[data-theme="light"] .nav-arrow {
  color: #98a1b0;
}

.nav-group:not(.is-open) .nav-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  display: grid;
  gap: 4px;
  padding: 0 12px 12px;
  max-height: 420px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 260ms ease,
    opacity 200ms ease,
    padding 260ms ease,
    transform 220ms ease;
}

.nav-group:not(.is-open) .nav-submenu {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.nav-subitem {
  padding: 13px 16px 13px 48px;
  border-radius: 16px;
  color: #9da8bb;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

:root[data-theme="light"] .nav-subitem {
  color: #626b7b;
}

.nav-subitem:hover {
  background: rgba(93, 242, 214, 0.08);
  color: #ffffff;
  box-shadow: inset 3px 0 0 rgba(93, 242, 214, 0.68);
  transform: translateX(3px);
}

:root[data-theme="light"] .nav-subitem:hover {
  background: #fff2ed;
  color: #e15f43;
  box-shadow: inset 3px 0 0 rgba(255, 141, 108, 0.72);
}

.nav-subitem.is-active {
  background: rgba(93, 242, 214, 0.1);
  color: #fff;
}

:root[data-theme="light"] .nav-subitem.is-active {
  background: var(--soft);
  color: var(--text);
}

.dashboard-main {
  padding: 28px;
}

.intro-panel,
.summary-card,
.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .intro-panel,
:root[data-theme="light"] .summary-card,
:root[data-theme="light"] .panel {
  border: 1px solid rgba(24, 27, 36, 0.05);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-panel h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
}

.intro-text {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.intro-status {
  display: flex;
  justify-content: center;
}

.status-ring {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 84%, rgba(255, 255, 255, 0.08) 84% 100%);
  box-shadow: 0 0 30px rgba(93, 242, 214, 0.14);
}

:root[data-theme="light"] .status-ring {
  background: conic-gradient(var(--accent) 0 84%, #edf1f6 84% 100%);
  box-shadow: none;
}

.status-ring-inner {
  display: grid;
  place-items: center;
  width: 136px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0f1728;
}

:root[data-theme="light"] .status-ring-inner {
  background: #fff;
}

.status-ring-inner strong {
  font-size: 34px;
  font-weight: 800;
}

.status-ring-inner span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.summary-card {
  padding: 22px;
  border-radius: 24px;
}

.summary-card.accent {
  background: linear-gradient(180deg, rgba(93, 242, 214, 0.14), rgba(18, 29, 49, 1));
  border-color: rgba(93, 242, 214, 0.18);
}

:root[data-theme="light"] .summary-card.accent {
  background: linear-gradient(180deg, #fff8f4, #ffffff);
  border-color: rgba(255, 141, 108, 0.18);
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 32px;
  font-weight: 800;
}

.summary-card span {
  display: inline-block;
  margin-top: 10px;
  color: #c5cfde;
  font-size: 13px;
  font-weight: 700;
}

:root[data-theme="light"] .summary-card span {
  color: #525b6c;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  min-width: 0;
  border-radius: 28px;
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.panel-label {
  margin: 0 0 8px;
  color: #7f97b6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

:root[data-theme="light"] .panel-label {
  color: #9ba3b3;
}

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

.panel-head a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.focus-list,
.guide-stack {
  display: grid;
  gap: 12px;
}

.focus-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  background: var(--soft);
}

.focus-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.focus-state.high {
  background: rgba(93, 242, 214, 0.16);
  color: #92fff0;
}

:root[data-theme="light"] .focus-state.high {
  background: #ffe8e1;
  color: #e15f43;
}

.focus-state.medium {
  background: rgba(255, 208, 122, 0.14);
  color: #ffd694;
}

:root[data-theme="light"] .focus-state.medium {
  background: #fff4e5;
  color: #dd9a31;
}

.focus-state.low {
  background: rgba(55, 184, 255, 0.16);
  color: #9dcfff;
}

:root[data-theme="light"] .focus-state.low {
  background: #edf6ff;
  color: #4f89d8;
}

.focus-item strong {
  display: block;
  font-size: 17px;
}

.focus-item p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.mini-chart {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #18263d, #121c2f);
}

:root[data-theme="light"] .mini-chart {
  background: linear-gradient(180deg, #fafbfd, #f4f7fb);
}

.bar-group {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  height: 180px;
}

.bar-group span {
  display: block;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, #8cfff0, #38d7c2);
  box-shadow: 0 0 18px rgba(93, 242, 214, 0.12);
}

:root[data-theme="light"] .bar-group span {
  background: linear-gradient(180deg, #ffc2b0, #ff8d6c);
  box-shadow: none;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  color: #7f8ca1;
  font-size: 12px;
  text-align: center;
  font-weight: 700;
}

:root[data-theme="light"] .chart-labels {
  color: #8d95a4;
}

.chart-foot {
  margin-top: 16px;
}

.chart-foot strong {
  display: block;
  font-size: 18px;
}

.chart-foot p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #18263d;
}

:root[data-theme="light"] .notice-row {
  background: #fafbfd;
}

.notice-row strong {
  font-size: 15px;
  line-height: 1.5;
}

.notice-row span {
  color: #8f9db1;
  font-size: 13px;
  text-align: right;
  font-weight: 700;
}

:root[data-theme="light"] .notice-row span {
  color: #8d95a4;
}

.guide-card {
  padding: 20px;
  border-radius: 22px;
}

.guide-card strong {
  display: block;
  font-size: 18px;
}

.guide-card p {
  margin: 8px 0 0;
  color: #c2cddb;
  line-height: 1.65;
  font-size: 14px;
}

:root[data-theme="light"] .guide-card p {
  color: #5d6676;
}

.guide-card.peach {
  background: linear-gradient(180deg, rgba(93, 242, 214, 0.16), rgba(93, 242, 214, 0.06));
}

:root[data-theme="light"] .guide-card.peach {
  background: #fff2ed;
}

.guide-card.cream {
  background: linear-gradient(180deg, rgba(255, 208, 122, 0.16), rgba(255, 208, 122, 0.06));
}

:root[data-theme="light"] .guide-card.cream {
  background: #fff8ef;
}

.guide-card.mist {
  background: linear-gradient(180deg, rgba(55, 184, 255, 0.16), rgba(55, 184, 255, 0.06));
}

:root[data-theme="light"] .guide-card.mist {
  background: #f0f6ff;
}

.profile-hero {
  grid-template-columns: minmax(0, 1fr);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.profile-panel {
  min-width: 0;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--soft);
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 22px;
}

.profile-summary-copy strong {
  display: block;
  font-size: 22px;
}

.profile-summary-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-detail-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--soft);
}

.profile-detail-item span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.profile-detail-item strong {
  text-align: right;
  font-size: 15px;
  font-weight: 800;
}

.profile-action-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: var(--soft);
}

.profile-action-card strong {
  font-size: 20px;
}

.profile-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.profile-action-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.profile-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff7e64, #ff4d6d);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(255, 77, 109, 0.18);
}

:root[data-theme="light"] .profile-logout-button {
  box-shadow: 0 12px 24px rgba(255, 141, 108, 0.16);
}

@media (max-width: 1180px) {
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .summary-row,
  .dashboard-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    height: auto;
  }

  .dashboard-main {
    padding: 20px;
  }

  .summary-row,
  .dashboard-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-detail-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-detail-item strong {
    text-align: left;
  }
}
