:root {
  --bg: #eef7ff;
  --bg-2: #f8fbff;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(146, 180, 214, 0.22);
  --line-strong: rgba(116, 160, 205, 0.34);
  --text: #10223d;
  --muted: #6480a2;
  --navy: #10223d;
  --sky: #74c6ff;
  --sky-strong: #3faeff;
  --sky-deep: #258de5;
  --sky-soft: #e8f6ff;
  --sky-pale: #f4fbff;
  --mint-soft: #e9f8ff;
  --danger-bg: #fff2f4;
  --danger-text: #ca5670;
  --amber-bg: #fff7ea;
  --amber-text: #a16b13;
  --shadow: 0 18px 45px rgba(45, 91, 141, 0.12);
  --shadow-lg: 0 26px 60px rgba(45, 91, 141, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Pretendard, Apple SD Gothic Neo, Noto Sans KR, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(116, 198, 255, 0.35), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(168, 223, 255, 0.55), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 42%, #eaf5ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 34%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
}

input,
textarea,
select,
button {
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(63, 174, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(116, 198, 255, 0.18);
}

.app-root {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 14px;
}

.phone-shell {
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 28px);
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.66);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(244,250,255,0.98)),
    linear-gradient(135deg, rgba(116,198,255,0.12), transparent 48%);
  box-shadow: 0 36px 90px rgba(34, 68, 110, 0.18);
  backdrop-filter: blur(18px);
}

.phone-shell::before,
.phone-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.phone-shell::before {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -70px;
  background: radial-gradient(circle, rgba(116,198,255,0.24), transparent 68%);
}

.phone-shell::after {
  width: 180px;
  height: 180px;
  left: -55px;
  bottom: 100px;
  background: radial-gradient(circle, rgba(205,237,255,0.28), transparent 65%);
}

.statusbar {
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
}

.statusbar-pill {
  width: 124px;
  height: 22px;
  border-radius: 999px;
  background: #0f172a;
  opacity: 0.9;
}

.screen {
  position: relative;
  z-index: 1;
  padding: 16px 16px 118px;
}

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

.between {
  justify-content: space-between;
}

.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }

.section-stack > * + * {
  margin-top: 14px;
}

.section-stack-tight {
  padding-top: 10px;
}

.role-card,
.surface,
.stat-card,
.quick-card,
.profile-card,
.product-card,
.list-card,
.input-card,
.tab-card,
.glass-card,
.mini-card,
.metric-chip,
.timeline-card,
.content-card,
.banner-card,
.note-card,
.spotlight-card,
.auth-feature,
.editor-summary {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.role-card {
  border-radius: var(--radius-xl);
  padding: 18px;
}

.app-role-card {
  position: relative;
  overflow: hidden;
}

.app-role-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 36px;
  background: rgba(255,255,255,0.34);
  transform: rotate(20deg);
}

.role-cover {
  position: relative;
  min-height: 170px;
  border-radius: 26px;
  padding: 18px;
  overflow: hidden;
}

.role-cover::before,
.role-cover::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.role-cover::before {
  width: 140px;
  height: 140px;
  right: -40px;
  top: -40px;
  background: rgba(255,255,255,0.35);
}

.role-cover::after {
  width: 120px;
  height: 120px;
  right: 26px;
  bottom: -42px;
  background: rgba(255,255,255,0.18);
}

.role-cover.no-shape::after {
  display: block;
}

.role-cover.influencer {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #77c9ff 0%, #4ab6ff 42%, #a9e3ff 100%);
  color: #fff;
}

.role-cover.manufacturer {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #dfeeff 0%, #b8d8ff 55%, #edf6ff 100%);
}

.role-cover-sub {
  max-width: 220px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-kicker {
  background: rgba(116, 198, 255, 0.12);
  color: var(--sky-deep);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #1579c8;
}

.badge.dark {
  background: linear-gradient(135deg, #10223d 0%, #23446f 100%);
  color: #fff;
  letter-spacing: 0.06em;
}

.badge.sky {
  background: rgba(116,198,255,0.16);
  color: #1f88d9;
}

.badge.soft {
  background: var(--sky-soft);
  color: #2284d6;
}

.title-xl {
  margin: 14px 0 0;
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.title-lg {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.title-md {
  margin: 0;
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.text-muted {
  color: var(--muted);
}

.text-sm {
  font-size: 13px;
  line-height: 1.6;
}

.text-xs {
  font-size: 12px;
  line-height: 1.55;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wordmark img {
  width: 34px;
  height: 34px;
}

.wordmark strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.wordmark span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.role-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.role-actions .btn {
  width: 100%;
}

.btn {
  border: 0;
  border-radius: 20px;
  min-height: 54px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  filter: brightness(1.01);
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #43b4ff 0%, #2397eb 58%, #167ed0 100%);
  box-shadow: 0 18px 28px rgba(44, 153, 230, 0.28);
}

.btn-soft {
  color: #187fcd;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(232,246,255,0.96));
  border: 1px solid rgba(116,198,255,0.2);
}

.btn-line {
  background: rgba(255,255,255,0.86);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: rgba(255,255,255,0.28);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-pill {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12px;
}

.icon-chip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.icon-chip {
  border-radius: 20px;
  padding: 12px 8px;
  text-align: center;
}

.icon-bubble,
.quick-emoji {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(116,198,255,0.18), rgba(116,198,255,0.08));
  color: #1a84d4;
}

.icon-chip span,
.quick-card span {
  font-size: 12px;
  font-weight: 700;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.topbar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.round-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--navy);
}

.auth-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)),
    linear-gradient(135deg, #dff2ff 0%, #f8fcff 50%, #edf8ff 100%);
  box-shadow: var(--shadow-lg);
  margin-bottom: 14px;
}

.auth-hero.influencer {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #8bd5ff 0%, #57bfff 45%, #d8f3ff 100%);
  color: #fff;
}

.auth-hero.manufacturer {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06)),
    linear-gradient(135deg, #edf5ff 0%, #dbeeff 48%, #f7fbff 100%);
}

.auth-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 140px;
  height: 140px;
  border-radius: 36px;
  background: rgba(255,255,255,0.18);
  transform: rotate(18deg);
}

.hero-stats,
.auth-feature-grid,
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hero-stat,
.auth-feature,
.metric-chip {
  border-radius: 18px;
  padding: 12px;
}

.hero-stat {
  background: rgba(255,255,255,0.22);
}

.auth-feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(241,248,255,0.76));
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 14px 26px rgba(23, 77, 126, 0.10);
  color: #143253;
}

.auth-feature strong,
.hero-stat strong,
.metric-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.auth-feature strong {
  color: #1a7fd0;
  text-shadow: none;
}

.hero-stat span,
.metric-chip span,
.auth-feature span {
  font-size: 11px;
  color: inherit;
  opacity: 0.82;
}

.auth-feature span {
  color: #5d7d9f;
  opacity: 1;
  font-weight: 700;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-tab {
  flex: 1;
  min-height: 48px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.78);
  color: var(--muted);
}

.auth-tab.active {
  background: linear-gradient(135deg, #43b4ff 0%, #2397eb 60%, #167ed0 100%);
  color: #fff;
  border-color: transparent;
}

.form-stack > * + * {
  margin-top: 12px;
}

.field-group,
.surface {
  border-radius: 24px;
  padding: 16px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.field,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(247, 251, 255, 0.95);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--text);
}

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

.helper-card,
.banner-soft,
.note-card {
  border-radius: 22px;
  padding: 14px 16px;
  background: var(--sky-soft);
  color: #227fc8;
  font-size: 13px;
  line-height: 1.6;
}

.file-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed rgba(63, 174, 255, 0.35);
  background: rgba(248, 252, 255, 0.96);
  border-radius: 20px;
  padding: 14px 16px;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload-name {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(231, 247, 255, 0.94);
  color: #1e7fc8;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(116,198,255,0.16);
  box-shadow: var(--shadow);
}

.hero-profile {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #46b7ff 0%, #2b99eb 45%, #8fe0ff 100%);
  box-shadow: 0 26px 58px rgba(37, 141, 229, 0.28);
}

.hero-profile::before,
.hero-profile::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-profile::before {
  width: 190px;
  height: 190px;
  right: -70px;
  top: -70px;
  background: rgba(255,255,255,0.18);
}

.hero-profile::after {
  width: 140px;
  height: 140px;
  left: -50px;
  bottom: -50px;
  background: rgba(255,255,255,0.1);
}

.hero-profile.brand {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08)),
    linear-gradient(135deg, #eff7ff 0%, #cfe6ff 52%, #f9fcff 100%);
  box-shadow: var(--shadow-lg);
}

.hero-content,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero-profile .text-sm,
.hero-profile .text-xs {
  color: rgba(255,255,255,0.84);
}

.hero-profile.brand .text-sm,
.hero-profile.brand .text-xs {
  color: var(--muted);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(15,23,42,.12);
  background: rgba(255,255,255,0.92);
  flex: 0 0 auto;
}

.avatar.lg {
  width: 74px;
  height: 74px;
  border-radius: 24px;
}

.avatar.xl {
  width: 86px;
  height: 86px;
  border-radius: 28px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat-card {
  border-radius: 22px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.56);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(232,245,255,0.84));
  box-shadow: 0 12px 22px rgba(17, 55, 95, 0.08);
}

.hero-profile.brand .stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,247,255,0.9));
}

.stat-k {
  font-size: 11px;
  color: #6a88aa;
}

.hero-profile.brand .stat-k {
  color: var(--muted);
}

.stat-v {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #10223d;
}

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-card {
  border-radius: 22px;
  padding: 14px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.horizontal-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.product-card,
.content-card,
.timeline-card,
.spotlight-card {
  min-width: 168px;
  border-radius: 24px;
  padding: 12px;
}

.product-thumb {
  width: 100%;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #eff7ff, #dceeff);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-card {
  border-radius: 22px;
  padding: 14px 8px;
  text-align: center;
}

.list-card {
  border-radius: 24px;
  padding: 14px;
}

.rank-item,
.influencer-item,
.profile-row,
.info-row,
.media-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-item + .rank-item,
.influencer-item + .influencer-item,
.media-row + .media-row,
.info-row + .info-row {
  margin-top: 12px;
}

.rank-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #49b8ff 0%, #2e96e4 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(37, 141, 229, 0.22);
}

.grow {
  flex: 1 1 auto;
  min-width: 0;
}

.tag-row,
.chip-row,
.filter-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.filter-chip,
.metric-pill,
.soft-dot {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(116,198,255,0.12);
  color: #297fca;
  font-size: 11px;
  font-weight: 700;
}

.filter-chip.active {
  background: linear-gradient(135deg, #49b8ff, #2e96e4);
  color: #fff;
}

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 74px;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 20px 40px rgba(15,23,42,.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 10px;
  backdrop-filter: blur(18px);
}

.nav-item {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav-item .emoji {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

.nav-item.active {
  color: var(--sky-deep);
}

.alert-soft {
  border-radius: 24px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.alert-soft.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.alert-soft.amber {
  background: var(--amber-bg);
  color: var(--amber-text);
}

.profile-edit-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.avatar-option input {
  display: none;
}

.avatar-option label {
  display: block;
  border-radius: 22px;
  padding: 8px;
  background: rgba(255,255,255,.94);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.avatar-option input:checked + label {
  border-color: var(--sky-strong);
  transform: translateY(-2px);
}

.avatar-option img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(116,198,255,0.14);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #77c9ff 0%, #2f9ae8 100%);
}

.influencer-spark,
.brand-spark {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.banner-card {
  border-radius: 26px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #d9f1ff 0%, #edf8ff 55%, #ffffff 100%);
}

.banner-card.deep {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #2999e8 0%, #46b7ff 48%, #8fe0ff 100%);
}

.banner-card.deep .text-muted {
  color: rgba(255,255,255,0.78);
}

.calendar-list,
.feed-list {
  display: grid;
  gap: 10px;
}

.calendar-item,
.feed-item,
.metric-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.calendar-day {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(116,198,255,0.18), rgba(116,198,255,0.08));
  color: #1f88d9;
  font-weight: 800;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stack-grid {
  display: grid;
  gap: 12px;
}

.profile-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(116,198,255,0.08);
}

.copy-feedback {
  font-size: 11px;
  color: #1f88d9;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.copy-feedback.show {
  opacity: 1;
}

.top-note {
  margin-top: 10px;
}

.editor-summary {
  border-radius: 24px;
  padding: 16px;
}

.editor-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.metric-block {
  flex: 1;
  padding: 12px;
  border-radius: 18px;
  background: rgba(116,198,255,0.1);
}

.muted-divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, rgba(116,198,255,0), rgba(116,198,255,0.28), rgba(116,198,255,0));
}

.empty-soft {
  padding: 18px;
  border-radius: 22px;
  text-align: center;
  background: rgba(116,198,255,0.07);
  color: var(--muted);
}

.spacer-6 { height: 6px; }
.spacer-10 { height: 10px; }
.spacer-16 { height: 16px; }
.spacer-20 { height: 20px; }
.spacer-24 { height: 24px; }

@media (max-width: 380px) {
  .hero-stats,
  .auth-feature-grid,
  .metric-row,
  .stat-grid,
  .quick-grid,
  .mini-stat-row,
  .dual-grid,
  .influencer-spark,
  .role-actions {
    grid-template-columns: 1fr;
  }

  .calendar-item,
  .feed-item,
  .metric-item {
    grid-template-columns: auto 1fr;
  }

  .calendar-item > :last-child,
  .feed-item > :last-child,
  .metric-item > :last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (min-width: 768px) {
  .app-root {
    padding: 28px;
  }

  .phone-shell {
    min-height: 860px;
  }
}


.leaderboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #2796e5 0%, #53c4ff 48%, #9ee5ff 100%);
  box-shadow: 0 28px 62px rgba(37, 141, 229, 0.24);
}

.leaderboard-hero::before,
.leaderboard-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.leaderboard-hero::before {
  width: 180px;
  height: 180px;
  right: -65px;
  top: -60px;
  background: rgba(255,255,255,0.18);
}

.leaderboard-hero::after {
  width: 150px;
  height: 150px;
  left: -60px;
  bottom: -55px;
  background: rgba(255,255,255,0.12);
}

.leaderboard-hero .text-sm,
.leaderboard-hero .text-xs {
  color: rgba(255,255,255,0.86);
}

.metric-row.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.leaderboard-metric {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.26);
  backdrop-filter: blur(12px);
}

.leaderboard-metric span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.76);
}

.leaderboard-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.section-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-headline .title-md {
  font-size: 16px;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 16px 12px 14px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,248,255,0.94));
  border: 1px solid rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -36px auto;
  width: 90px;
  height: 90px;
  border-radius: 28px;
  background: rgba(116,198,255,0.12);
  transform: rotate(18deg);
}

.podium-card.first {
  transform: translateY(-10px);
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(232,247,255,0.98));
}

.podium-rank {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #50beff, #238fe0);
  box-shadow: 0 10px 18px rgba(37, 141, 229, 0.24);
}

.podium-card .avatar {
  margin: 0 auto 10px;
}

.podium-name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.podium-sub {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.podium-sales {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #1782cf;
}

.leaderboard-tools {
  border-radius: 26px;
  padding: 14px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  background: rgba(248,252,255,0.94);
  border: 1px solid rgba(116,198,255,0.2);
  padding: 12px 14px;
}

.search-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
}

.filter-chip[data-rank-filter] {
  cursor: pointer;
  border: 0;
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  padding: 12px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.rank-row.is-top10 {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,247,255,0.96));
}

.rank-row.is-top3 {
  border-color: rgba(116,198,255,0.38);
  box-shadow: 0 18px 34px rgba(37, 141, 229, 0.12);
}

.rank-row-meta {
  min-width: 0;
}

.rank-row-meta .title-md {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row-sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.rank-row-side {
  text-align: right;
}

.rank-row-side strong {
  display: block;
  font-size: 13px;
  color: #1782cf;
}

.rank-row-side span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.rank-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(116,198,255,0.1);
  color: #2b80c9;
  font-size: 10px;
  font-weight: 800;
}

.rank-empty {
  display: none;
  text-align: center;
  padding: 18px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.rank-empty.show {
  display: block;
}


.podium-stage {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 10px;
  align-items: end;
}

.podium-card {
  position: relative;
  overflow: visible;
  border-radius: 28px;
  padding: 18px 12px 14px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,248,255,0.94));
  border: 1px solid rgba(255,255,255,0.94);
  box-shadow: 0 22px 40px rgba(40, 92, 146, 0.12);
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -28px auto;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(116,198,255,0.14);
  transform: rotate(20deg);
}

.podium-card.place-1 {
  padding-top: 26px;
  transform: translateY(-18px);
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(232,247,255,0.98));
  box-shadow: 0 28px 54px rgba(37, 141, 229, 0.18);
}

.podium-card.place-2,
.podium-card.place-3 {
  padding-top: 18px;
}

.podium-sash {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 54px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #55bfff, #278edf);
  box-shadow: 0 12px 24px rgba(37, 141, 229, 0.24);
}

.podium-crown {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  filter: drop-shadow(0 10px 16px rgba(255, 191, 42, 0.28));
}

.podium-rank {
  width: 40px;
  height: 40px;
  margin: 2px auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #50beff, #238fe0);
  box-shadow: 0 10px 18px rgba(37, 141, 229, 0.24);
}

.podium-grade {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.podium-grade.elite,
.rank-grade.elite,
.portfolio-hero-card.elite .portfolio-tag.grade {
  background: linear-gradient(135deg, rgba(255, 216, 89, 0.18), rgba(255, 179, 0, 0.10));
  color: #ad7600;
}

.podium-grade.pro,
.rank-grade.pro,
.portfolio-hero-card.pro .portfolio-tag.grade {
  background: rgba(116,198,255,0.14);
  color: #197dca;
}

.podium-grade.starter,
.rank-grade.starter,
.portfolio-hero-card.starter .portfolio-tag.grade {
  background: rgba(143, 225, 206, 0.16);
  color: #1f8774;
}

.portfolio-link,
.rank-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #49b8ff, #2e96e4);
  box-shadow: 0 10px 18px rgba(37, 141, 229, 0.20);
}

.portfolio-link {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.rank-row {
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.rank-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rank-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.rank-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.grade-system-card {
  border-radius: 28px;
  padding: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}

.grade-rule-box {
  padding: 14px;
  border-radius: 20px;
  line-height: 1.6;
  font-size: 13px;
  color: #456686;
  background: linear-gradient(180deg, rgba(116,198,255,0.12), rgba(116,198,255,0.05));
}

.grade-tier-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.grade-tier-card {
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,250,255,0.94));
  border: 1px solid rgba(232, 241, 250, 0.98);
  box-shadow: 0 16px 30px rgba(37, 71, 118, 0.08);
}

.grade-tier-card.selected {
  border-color: rgba(61, 174, 255, 0.38);
  box-shadow: 0 20px 36px rgba(37, 141, 229, 0.16);
}

.grade-tier-card.elite {
  background: linear-gradient(180deg, rgba(255,252,239,0.98), rgba(255,247,223,0.94));
}

.grade-tier-card.pro {
  background: linear-gradient(180deg, rgba(249,252,255,0.98), rgba(239,247,255,0.94));
}

.grade-tier-card.starter {
  background: linear-gradient(180deg, rgba(244,255,251,0.98), rgba(236,251,247,0.94));
}

.grade-tier-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.grade-tier-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.grade-tier-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16,34,61,0.06);
  color: #23476f;
  font-size: 10px;
  font-weight: 900;
}

.grade-benefit-list {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: #26476a;
}

.grade-benefit-list li + li {
  margin-top: 8px;
}

.portfolio-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #2796e5 0%, #53c4ff 48%, #9ee5ff 100%);
  box-shadow: 0 28px 62px rgba(37, 141, 229, 0.24);
}

.portfolio-hero-card.elite {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #2b98e6 0%, #67cbff 42%, #ffe49a 100%);
}

.portfolio-hero-card.pro {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #2796e5 0%, #53c4ff 48%, #9ee5ff 100%);
}

.portfolio-hero-card.starter {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #23a5b1 0%, #57d0c5 48%, #b9f6ea 100%);
}

.portfolio-hero-card::before,
.portfolio-hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.portfolio-hero-card::before {
  width: 180px;
  height: 180px;
  right: -64px;
  top: -58px;
  background: rgba(255,255,255,0.18);
}

.portfolio-hero-card::after {
  width: 150px;
  height: 150px;
  left: -58px;
  bottom: -54px;
  background: rgba(255,255,255,0.12);
}

.portfolio-hero-crown {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 30px;
  z-index: 1;
  filter: drop-shadow(0 12px 20px rgba(255, 181, 45, 0.28));
}

.portfolio-tag {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
}

.portfolio-stat-grid {
  margin-top: 18px;
}

.glass-contrast {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: none;
}

.glass-contrast .stat-k {
  color: rgba(255,255,255,0.82);
}

.glass-contrast .stat-v {
  color: #fff;
}

.progress-surface {
  border-radius: 26px;
  padding: 16px;
}

.tier-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.portfolio-row + .portfolio-row {
  margin-top: 12px;
}

.portfolio-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-surface {
  display: grid;
  gap: 10px;
}

@media (max-width: 380px) {
  .podium-stage,
  .portfolio-stat-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: auto 1fr;
  }

  .rank-row .avatar,
  .rank-row-side {
    grid-column: 2;
  }

  .rank-row-side {
    align-items: flex-start;
    text-align: left;
  }

  .tier-progress-meta {
    flex-direction: column;
  }
}
