:root {
  --primary: #ff5fa8;
  --primary-dark: #ff3f91;
  --secondary: #b28dff;
  --bg: #fff1f8;
  --text: #3b2f40;
  --muted: rgba(59, 47, 64, 0.6);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(255, 95, 168, 0.25);
  --phone-preview-width: 400px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: #f8e0f0;
}

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

.sky {
  min-height: 100vh;
  padding: 20px 6vw 60px;
  background: radial-gradient(circle at 30% 10%, #ffe9f6 0%, transparent 40%),
    radial-gradient(circle at 80% 0%, #f8d9ff 0%, transparent 45%),
    linear-gradient(180deg, #ffdff1 0%, #fff6fb 40%, #f8f0ff 100%);
  border-radius: 28px;
  margin: 20px;
  box-shadow: 0 30px 70px rgba(255, 128, 183, 0.35);
  position: relative;
  overflow: hidden;
}

.builder-page {
  overflow-x: hidden;
  overflow-anchor: none;
}

.sky.builder-page {
  overflow: visible;
}

.dashboard-page {
  padding-left: 3vw;
  padding-right: 3vw;
}

body.embedded,
body.public-page {
  background: transparent;
}

body.embedded .sky,
body.public-page .sky {
  margin: 0;
  padding: 0;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.embedded .panel,
body.public-page .panel {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.embedded .public-wrap,
body.public-page .public-wrap {
  place-items: stretch;
  padding: 16px;
}

body.embedded .public-card,
body.public-page .public-card {
  width: 100%;
  margin: 0;
  box-shadow: none;
}

body.public-page .public-wrap {
  place-items: center;
  padding: 24px;
}

body.public-page .public-card {
  width: min(var(--phone-preview-width), 100%);
}

.sky-main {
  background: url("/static/images/back.jpg") center/cover no-repeat;
}

.sky-main::before,
.sky-main::after {
  display: none;
}

.overlay-header {
  position: absolute;
  top: 26px;
  left: 80px;
  right: 80px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  z-index: 2;
}

.overlay-header .nav {
  color: #6f5a7e;
  font-weight: 600;
}

.overlay-header .pill-btn {
  box-shadow: 0 12px 20px rgba(255, 95, 168, 0.25);
}

.overlay-hero {
  position: absolute;
  top: 190px;
  left: 90px;
  width: 560px;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.overlay-copy h1 {
  font-size: 2.9rem;
  color: #3f3a46;
}

.overlay-copy .subhead {
  font-size: 1.05rem;
  color: rgba(63, 58, 70, 0.7);
}

.overlay-copy .trust {
  color: rgba(63, 58, 70, 0.6);
}

@media (max-width: 1200px) {
  .overlay-header {
    left: 40px;
    right: 40px;
  }

  .overlay-hero {
    left: 50px;
    width: 440px;
  }
}

@media (max-width: 920px) {
  .overlay-header {
    position: static;
    padding: 10px 0;
  }

  .overlay-hero {
    position: static;
    width: auto;
    padding-top: 40px;
  }
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0) 70%);
  bottom: 120px;
  opacity: 0.7;
}

.sky::after {
  bottom: 0;
  opacity: 0.9;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1.6rem;
}

.logo-badge {
  background: #ffd1e8;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(255, 95, 168, 0.3);
}

.logo-text {
  color: var(--primary-dark);
}

.nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pill-btn {
  padding: 12px 22px;
  border-radius: 999px;
  background: #ffe7f3;
  color: var(--primary-dark);
  font-weight: 700;
  border: 2px solid #ffd1e8;
  box-shadow: 0 10px 20px rgba(255, 95, 168, 0.2);
}

.pill-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.pill-btn.primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
}

.pill-btn.ghost {
  background: #f3e9ff;
  color: #7b57d1;
  border: 2px solid #e1d2ff;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #f6e7ff;
  font-size: 1.2rem;
  color: #6d4fc8;
  box-shadow: 0 10px 20px rgba(124, 92, 255, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-family: inherit;
  font-size: clamp(2.6rem, 3vw + 1rem, 4rem);
  margin: 0 0 10px;
}

.accent {
  color: var(--primary-dark);
}

.subhead {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.trust {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(320px, 90%);
  background: #ffe7f5;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(255, 95, 168, 0.3);
  text-align: center;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
}

.notch {
  width: 80px;
  height: 14px;
  background: #f2c7dc;
  border-radius: 999px;
}

.status {
  width: 36px;
  height: 10px;
  background: #f2c7dc;
  border-radius: 999px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd1e8 0%, #ff87c2 60%, #ff5fa8 100%);
  margin: 20px auto 10px;
  border: 5px solid #ffd9ec;
}

.phone h3 {
  margin: 0;
  font-size: 1.1rem;
}

.handle {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-buttons {
  display: grid;
  gap: 10px;
}

.link-btn {
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--white);
}

.link-btn.ig {
  background: linear-gradient(135deg, #ff6aa2, #ff8ec8);
}

.link-btn.yt {
  background: linear-gradient(135deg, #8f6bff, #b28dff);
}

.link-btn.store {
  background: linear-gradient(135deg, #5fd7c3, #8debd8);
}

.link-btn.note {
  background: linear-gradient(135deg, #ffb347, #ffd27b);
}

.qr {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #fff;
  margin: 16px auto 0;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 700;
}

.trust-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.social p {
  margin: 0 0 10px;
  color: var(--muted);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons span {
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 10px 20px rgba(255, 95, 168, 0.15);
}

.feature-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-pills .pill {
  background: #fff;
  padding: 10px 16px;
  border-radius: 16px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 12px 24px rgba(178, 141, 255, 0.2);
}

.page-wrap {
  margin: 0;
}

.panel {
  margin-top: 30px;
  padding: 40px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 50px rgba(255, 95, 168, 0.18);
  position: relative;
  z-index: 2;
}

.cloud-panel {
  background: linear-gradient(180deg, #fff7fb 0%, #fff 40%, #f9f2ff 100%);
}

.panel-header {
  text-align: left;
  margin-bottom: 28px;
}

.panel-header.center {
  text-align: center;
}

.panel-header h1 {
  font-family: inherit;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  margin: 0 0 12px;
}

.panel-header p {
  margin: 0 0 18px;
  color: var(--muted);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}

.phone-card {
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

.phone-preview {
  height: 220px;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 18px 35px rgba(255, 95, 168, 0.2);
  background: #ffe7f5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.phone-preview-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
}

.phone-preview-lines {
  height: 80px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.phone-preview.pink {
  background: linear-gradient(180deg, #ffd7ec, #ffeef7);
}

.phone-preview.purple {
  background: linear-gradient(180deg, #e8ddff, #f3edff);
}

.phone-preview.peach {
  background: linear-gradient(180deg, #ffe2cf, #fff1e5);
}

.phone-preview.mint {
  background: linear-gradient(180deg, #d6fff2, #ecfff9);
}

.phone-preview.lilac {
  background: linear-gradient(180deg, #f0ddff, #f8efff);
}

.phone-preview.sunset {
  background: linear-gradient(180deg, #ffd1c5, #ffe8dd);
}

.info-cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.info-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(124, 92, 255, 0.12);
}

.info-card h3 {
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pricing-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(255, 95, 168, 0.15);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #ffedf6, #f7edff);
  border: 2px solid rgba(255, 95, 168, 0.25);
}

.price-header {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.price-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.panel-footer {
  margin-top: 24px;
  text-align: center;
}

.panel-footer p {
  color: var(--muted);
  margin-top: 10px;
}

.login-wrap {
  display: grid;
  place-items: center;
}

.login-card {
  background: #fff;
  border-radius: 26px;
  padding: 36px;
  width: min(420px, 100%);
  box-shadow: 0 20px 45px rgba(255, 95, 168, 0.2);
  text-align: center;
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #ffe1f0;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 1.6rem;
}

.form-alert {
  background: #ffe4ef;
  color: #c23b76;
  font-weight: 700;
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 12px;
  box-shadow: 0 12px 24px rgba(194, 59, 118, 0.12);
}

.form-notice {
  background: #e9fff4;
  color: #1f8a61;
  font-weight: 700;
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 12px;
  box-shadow: 0 12px 24px rgba(31, 138, 97, 0.12);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  text-align: left;
}

.login-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.login-form input {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff4fb;
  font-size: 0.95rem;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.invite-wrap {
  display: grid;
  place-items: center;
}

.invite-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.templates-wrap {
  text-align: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.5fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: start;
}

.dashboard-card {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(255, 95, 168, 0.15);
}

.dashboard-card#links {
  grid-column: 1 / 2;
  grid-row: 1 / span 3;
  align-self: start;
}

.dashboard-side-row {
  grid-column: 2 / 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.dashboard-grid .profile-grid,
.dashboard-grid .dashboard-actions {
  grid-column: 2 / 3;
}

.dashboard-grid .profile-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.dashboard-grid .dashboard-actions {
  padding: 16px;
}

.dashboard-card h3 {
  margin: 0 0 8px;
}

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

.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: #ffe8f3;
  color: #d23e87;
}

.stat-pill.alt {
  background: #efe4ff;
  color: #6e4cc8;
}

.dashboard-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.dashboard-actions {
  margin-top: 26px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffeef7, #f7f0ff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dashboard-actions h2 {
  margin: 0 0 6px;
  font-family: inherit;
}

.dashboard-actions p {
  margin: 0;
  color: var(--muted);
}

.dashboard-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav .active {
  color: var(--primary-dark);
}

.nav .pill-btn {
  padding: 6px 12px;
  font-weight: 700;
  border-radius: 999px;
}

.builder-wrap .panel-header {
  margin-bottom: 18px;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(90px, 0.2fr) minmax(260px, 0.75fr) minmax(320px, 1fr) minmax(220px, 0.45fr);
  column-gap: 0;
  row-gap: 20px;
  align-items: start;
  overflow-x: clip;
  max-width: 100%;
}

.builder-right {
  display: grid;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.builder-history {
  display: grid;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.history-list {
  display: grid;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  height: clamp(320px, 60vh, 520px);
  max-height: 70vh;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.2);
  overflow-anchor: none;
}

.history-item {
  border: none;
  border-radius: 12px;
  padding: 8px 10px;
  background: #f8f3ff;
  color: #6f4cc8;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 8px;
  row-gap: 4px;
}

.history-item.active {
  background: #ffe7f3;
  color: #c14b86;
}

.history-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.3);
  font-size: 0.8rem;
  color: #6f4cc8;
  grid-row: span 2;
}

.history-item small {
  color: rgba(111, 76, 200, 0.6);
  font-size: 0.75rem;
}

.history-hint {
  margin-top: 10px;
}

.builder-widget-palette {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  background: #fff;
  border-radius: 22px;
  padding: 10px 8px;
  box-shadow: 0 16px 32px rgba(255, 95, 168, 0.12);
  justify-items: center;
  width: 100%;
  max-width: 84px;
  transform: translateX(0);
}

.builder-widget-palette h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.builder-widget-palette .widget-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.builder-widget-palette .widget-btn {
  min-height: 52px;
  padding: 8px;
  border-radius: 14px;
  width: 100%;
}

.builder-widget-palette .widget-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.builder-widget-palette .widget-label {
  display: block;
  font-size: 0.68rem;
  line-height: 1.1;
  color: #7c6aa6;
}

.builder-editor {
  display: grid;
  gap: 18px;
}

.builder-section {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(255, 95, 168, 0.12);
}

.builder-section h2 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 1.05rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.layout-card {
  border: none;
  border-radius: 16px;
  padding: 8px;
  background: #fff7fb;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.25);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.layout-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(178, 141, 255, 0.18);
}

.layout-title {
  font-weight: 700;
  color: #6f4cc8;
  font-size: 0.8rem;
}

.layout-preview {
  display: grid;
  gap: 6px;
}

.layout-line {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 95, 168, 0.25);
}

.layout-line:nth-child(1) {
  width: 100%;
}

.layout-line:nth-child(2) {
  width: 80%;
}

.layout-line:nth-child(3) {
  width: 90%;
}

.layout-line:nth-child(4) {
  width: 70%;
}

.layout-line:nth-child(5) {
  width: 55%;
}

.layout-preview.lines-2 .layout-line:nth-child(n + 3),
.layout-preview.lines-3 .layout-line:nth-child(n + 4),
.layout-preview.lines-4 .layout-line:nth-child(n + 5) {
  display: none;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
}

.builder-title-input {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff4fb;
  font-weight: 700;
}

.widget-btn {
  display: grid;
  gap: 8px;
  place-items: center;
  border: 1px solid #e2d4ff;
  border-radius: 16px;
  padding: 16px 14px;
  background: transparent;
  color: #4e357e;
  font-weight: 700;
  min-height: 96px;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.widget-btn:hover {
  transform: translateY(-2px);
  background: #fbf7ff;
  border-color: #cbb4ff;
}

.widget-btn:active {
  transform: translateY(0);
}

.widget-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: transparent;
  color: #6e4cc8;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 1px #cbb4ff;
}

.widget-label {
  font-size: 0.95rem;
}

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

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

.hidden-group {
  background: #fff5fb;
  border-radius: 16px;
  padding: 10px;
}

.hidden-toggle {
  border: none;
  background: transparent;
  color: #6f4cc8;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  cursor: pointer;
}

.hidden-toggle::after {
  content: "▾";
  font-size: 0.9rem;
}

.hidden-group.open .hidden-toggle::after {
  content: "▴";
}

.hidden-list {
  display: none;
  gap: 10px;
}

.hidden-group.open .hidden-list {
  display: grid;
}

.widget-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fdf5ff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.widget-info {
  flex: 1;
  min-width: 0;
}

.widget-title {
  display: inline-block;
}

.widget-thumb {
  width: 120px;
  height: 80px;
  border-radius: 16px;
  margin-left: auto;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #c14b86;
  box-shadow: 0 8px 18px rgba(178, 141, 255, 0.18), inset 0 0 0 1px rgba(201, 180, 255, 0.25);
}

.widget-thumb.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.widget-summary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5fb, #f1e9ff);
  color: #8c3fa5;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(178, 141, 255, 0.18);
  flex: 0 0 auto;
}

.summary-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 231, 243, 0.75);
  color: #a0356f;
  font-size: 0.72rem;
  font-weight: 600;
  flex: 0 0 auto;
  border: 1px solid rgba(193, 75, 134, 0.18);
}

.summary-tag.tag-pink {
  background: #ffe7f3;
  color: #c14b86;
}

.summary-tag.tag-purple {
  background: rgba(239, 231, 255, 0.85);
  color: #5d3db1;
  border-color: rgba(93, 61, 177, 0.2);
}

.summary-tag.tag-mint {
  background: rgba(230, 255, 243, 0.9);
  color: #1f8a65;
  border-color: rgba(31, 138, 101, 0.2);
}

.summary-tag.tag-gold {
  background: rgba(255, 243, 219, 0.9);
  color: #9a671c;
  border-color: rgba(154, 103, 28, 0.2);
}

.summary-tag.tag-유튜브 {
  background: rgba(255, 231, 231, 0.9);
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.2);
}

.summary-tag.tag-지도 {
  background: rgba(230, 248, 255, 0.9);
  color: #2c7fb8;
  border-color: rgba(44, 127, 184, 0.2);
}

.summary-tag.tag-커스텀 {
  background: rgba(231, 243, 255, 0.9);
  color: #2f6ea8;
  border-color: rgba(47, 110, 168, 0.2);
}

.summary-tag.tag-small,
.summary-tag.tag-medium,
.summary-tag.tag-large {
  background: #f1e9ff;
  color: #6f4cc8;
}

.widget-card.active {
  background: #ffbedc;
  box-shadow: 0 10px 24px rgba(255, 95, 168, 0.18);
}

.widget-card.hidden-widget {
  background: #f3e8ff;
  border: 1px solid rgba(131, 84, 196, 0.18);
  opacity: 0.9;
}

.widget-controls.hidden-widget button {
  opacity: 0.6;
}

.widget-inputs {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.widget-card:not(.active) .widget-inputs {
  display: none;
}

.widget-inputs .url-hidden {
  display: none;
}

.widget-card.show-urls .widget-inputs .url-hidden {
  display: block;
}

.widget-inputs .hidden {
  display: none;
}

.widget-toggle-urls {
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  background: #f1e9ff;
  color: #6f4cc8;
  font-weight: 700;
  justify-self: start;
}

.widget-inputs .widget-row {
  display: grid;
  gap: 8px;
}

.widget-inputs .widget-row.fields-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.widget-inputs .widget-row.fields-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.widget-inputs .widget-row.fields-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.widget-inputs.button-inputs .widget-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.widget-inputs.button-inputs .widget-row.url-row {
  grid-template-columns: minmax(0, 1fr);
}

.widget-inputs.button-inputs .widget-row.combo-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.widget-inputs input,
.widget-inputs textarea,
.widget-inputs select {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.widget-inputs input[type="color"] {
  padding: 6px;
  height: 44px;
}

.widget-inputs input[type="file"] {
  background: transparent;
}

.widget-inputs button {
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffe6e6;
  color: #d64545;
  font-weight: 700;
}

.widget-inputs textarea {
  min-height: 70px;
  resize: vertical;
  width: 100%;
  max-width: 100%;
}

.widget-controls {
  display: flex;
  gap: 8px;
  align-self: flex-start;
}

.widget-row.hidden {
  display: none;
}

.button-icon-panel {
  display: grid;
  gap: 10px;
}

.button-icon-panel.hidden {
  display: none;
}

.button-icon-header {
  display: grid;
  gap: 8px;
}

.button-icon-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.button-icon-tab {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f7f2ff;
  color: #6f4cc8;
  font-weight: 700;
  cursor: pointer;
}

.button-icon-tab.active {
  background: #ffe7f3;
  color: #c14b86;
}

.button-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.35);
}

.button-icon-grid.hidden {
  display: none;
}

.button-icon-chip {
  border: none;
  border-radius: 12px;
  background: #f7f2ff;
  padding: 8px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-icon-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(178, 141, 255, 0.2);
}

.button-icon-chip.active {
  background: #ffe7f3;
  box-shadow: 0 0 0 2px rgba(255, 95, 168, 0.4);
}

.widget-controls button {
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  background: #ffe7f3;
  color: #d13f87;
  font-weight: 700;
}

.widget-controls button:disabled {
  opacity: 0.5;
}

.widget-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe7f3;
  color: #d13f87;
  font-weight: 700;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.style-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.style-grid select {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff4fb;
  font-weight: 700;
}

.builder-preview {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
  justify-items: start;
}

.phone-shell {
  background: linear-gradient(180deg, #ffd6ee, #f7c4e6);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 18px 36px rgba(255, 95, 168, 0.25);
  width: min(var(--phone-preview-width), 100%);
  margin: 0;
}

.phone-bezel {
  background: #1c1524;
  border-radius: 34px;
  padding: 12px 10px 14px;
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 22px;
  border-radius: 0 0 18px 18px;
  background: #101015;
  z-index: 2;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  padding: 2px 12px 10px;
}

.phone-screen {
  background: #fff;
  border-radius: 26px;
  padding: 16px;
  display: grid;
  gap: 12px;
  aspect-ratio: 9 / 19.5;
  height: auto;
  overflow: auto;
}

.phone-screen .public-card {
  width: 100%;
  margin: 0;
}

.preview-card {
  padding: 12px;
  border-radius: 16px;
  background: #f7efff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.preview-card.align-left {
  text-align: left;
}

.preview-card.align-center {
  text-align: center;
}

.preview-card.muted {
  font-weight: 600;
  color: var(--muted);
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.35;
  transform: translateX(-60%);
  animation: shimmer 3s ease-in-out infinite;
}

.preview-image {
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe0ef, #f6efff);
}

.preview-button {
  border: none;
  border-radius: 16px;
  padding: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.preview-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 80%);
  opacity: 0.35;
  transform: translateX(-60%);
  animation: shimmer 3s ease-in-out infinite;
}

.preview-button.primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.preview-button.ghost {
  background: #f2ebff;
  color: #6e4cc8;
}

.preview-button.pill {
  border-radius: 999px;
  padding: 14px 16px;
  gap: 10px;
}

.preview-button.color-pink {
  background: linear-gradient(140deg, #ff7bbf, #ff9ad9);
}

.preview-button.color-purple {
  background: linear-gradient(140deg, #8f6dff, #c68bff);
}

.preview-button.color-mint {
  background: linear-gradient(140deg, #6ddbc9, #8debdc);
}

.preview-button.color-gold {
  background: linear-gradient(140deg, #ffcc7b, #ffd9a8);
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.btn-arrow {
  margin-left: auto;
  opacity: 0.8;
}

.preview-profile {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding-top: 8px;
}

.preview-profile h3 {
  margin: 0;
  font-weight: 800;
}

.preview-profile p {
  margin: 0;
  color: var(--muted);
}

.preview-stack[data-ring="soft"] .preview-avatar {
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 16px rgba(255, 95, 168, 0.2);
}

.preview-stack[data-ring="neon"] .preview-avatar {
  border: 3px solid #ff8bd9;
  box-shadow: 0 0 12px rgba(255, 139, 217, 0.8);
}

.preview-stack[data-ring="glass"] .preview-avatar {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.preview-qr {
  height: 160px;
  border-radius: 18px;
  background: repeating-linear-gradient(45deg, #f7f1ff 0 8px, #fff 8px 16px);
  position: relative;
  overflow: hidden;
}

.preview-qr::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0.5;
}

.preview-linkchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.preview-spacer {
  height: 18px;
  border-radius: 12px;
  background: #f6f2ff;
}

.preview-spacer.small {
  height: 8px;
}

.preview-spacer.medium {
  height: 18px;
}

.preview-spacer.large {
  height: 32px;
}

.preview-stack {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.preview-item {
  display: grid;
  gap: 10px;
  position: relative;
  border-radius: 18px;
  outline: 1px dashed rgba(178, 141, 255, 0.55);
  outline-offset: 6px;
  cursor: pointer;
  transition: outline-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.preview-reorder {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.preview-reorder button {
  border: 1px solid rgba(255, 95, 168, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: #5b2a57;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(178, 141, 255, 0.2);
}

.preview-reorder button:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.builder-preview .preview-item:hover .preview-reorder,
.builder-preview .preview-item.active .preview-reorder {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.preview-item.drag-over {
  outline-color: rgba(255, 95, 168, 0.95);
  box-shadow: 0 16px 30px rgba(178, 141, 255, 0.25);
}

.preview-item.dragging {
  opacity: 0.6;
}

.preview-focus {
  box-shadow: 0 0 0 2px rgba(255, 95, 168, 0.5);
  border-radius: 16px;
}

.builder-preview .preview-item:hover {
  outline-color: rgba(255, 95, 168, 0.7);
  box-shadow: 0 10px 24px rgba(255, 95, 168, 0.18);
  transform: translateY(-1px);
}

.builder-preview .preview-item.active {
  outline-color: rgba(255, 95, 168, 0.95);
  box-shadow: 0 14px 28px rgba(178, 141, 255, 0.22);
}

.preview-public.hide-guides .preview-item {
  outline: none;
  box-shadow: none;
  transform: none;
}

.preview-public.hide-guides .preview-item.active {
  outline: none;
  box-shadow: none;
}

@keyframes shimmer {
  0% { transform: translateX(-60%); }
  50% { transform: translateX(60%); }
  100% { transform: translateX(60%); }
}

.preview-stack[data-theme="dreamy"] {
  padding: 12px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)) 0 0 / 120px 120px,
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 / 180px 180px,
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.preview-stack[data-theme="pastel"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #dff7ff, #fceaff);
}

.preview-stack[data-theme="retro"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe4b7, #ffd1cc);
}

.preview-stack[data-theme="cosmic"] {
  padding: 12px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #3b2b6f, #140a2b);
}

.preview-stack[data-theme="neon"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1d1b3a, #0f1224);
}

.preview-stack[data-theme="black"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #151515, #050505);
}

.preview-stack[data-theme="minimal"] {
  padding: 12px;
  border-radius: 18px;
  background: #f8f8fb;
}

.preview-stack[data-theme="custom"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--custom-bg1), var(--custom-bg2));
  color: var(--custom-text);
}

.preview-stack[data-decor="clouds"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8), transparent 45%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.preview-stack[data-decor="sparkles"] {
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9), transparent 20%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.8), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.6), transparent 22%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.preview-stack[data-decor="hearts"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 192, 203, 0.7), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(255, 182, 193, 0.6), transparent 30%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.preview-stack[data-theme="neon"] .preview-card,
.preview-stack[data-theme="neon"] .preview-card.muted {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.preview-stack[data-theme="custom"] .preview-card,
.preview-stack[data-theme="custom"] .preview-card.muted {
  background: rgba(255, 255, 255, 0.7);
  color: var(--custom-text);
}
.preview-stack[data-theme="cosmic"] .preview-card,
.preview-stack[data-theme="cosmic"] .preview-card.muted {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.preview-stack[data-theme="cosmic"] .preview-button.primary {
  background: linear-gradient(140deg, #7b5cff, #ff7dd1);
}

.preview-stack[data-theme="retro"] .preview-button.primary {
  background: linear-gradient(140deg, #ff9a5f, #ff6f91);
}

.preview-stack[data-theme="pastel"] .preview-button.primary {
  background: linear-gradient(140deg, #6cc6ff, #ff8bd9);
}

.preview-stack[data-theme="neon"] .preview-button.primary {
  background: linear-gradient(140deg, #6d5cff, #ff67f1);
}

.preview-stack[data-theme="minimal"] .preview-card {
  background: #ffffff;
}

.preview-stack[data-theme="custom"] .preview-button.primary {
  background: linear-gradient(140deg, var(--custom-accent), #ff8bd9);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.theme-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.theme-card {
  border: none;
  border-radius: 14px;
  padding: 6px;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.12);
}

.theme-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
}

.theme-card.active {
  box-shadow: 0 0 0 2px rgba(255, 95, 168, 0.5), 0 12px 24px rgba(255, 95, 168, 0.2);
}
.theme-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.theme-thumb {
  height: 56px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.theme-thumb.dreamy {
  background: linear-gradient(180deg, #ffd6ee, #efe4ff);
}

.theme-thumb.pastel {
  background: linear-gradient(180deg, #dff7ff, #fceaff);
}

.theme-thumb.retro {
  background: linear-gradient(180deg, #ffe4b7, #ffd1cc);
}

.theme-thumb.cosmic {
  background: radial-gradient(circle at top, #3b2b6f, #140a2b);
}

.theme-thumb.neon {
  background: linear-gradient(180deg, #2b255e, #0c0f1d);
}

.theme-thumb.black {
  background: linear-gradient(180deg, #1a1a1a, #000000);
}

.theme-thumb.minimal {
  background: linear-gradient(180deg, #ffffff, #f1f1f6);
}

.theme-thumb.custom {
  background: linear-gradient(180deg, #ffe7f6, #f6efff);
}

.theme-thumb.blossom {
  background: linear-gradient(180deg, #ffe7f6, #f6efff);
}

.theme-thumb.aurora {
  background: linear-gradient(180deg, #f0e6ff, #fff4e8);
}

.theme-thumb.rose {
  background: linear-gradient(180deg, #ffe3f1, #fff3f8);
}

.theme-thumb.breeze {
  background: linear-gradient(180deg, #def3ff, #f6fbff);
}

.theme-thumb.moss {
  background: linear-gradient(180deg, #e1f7ea, #f7fff9);
}

.theme-thumb.latte {
  background: linear-gradient(180deg, #f1e6dc, #ffffff);
}

.theme-thumb.iris {
  background: linear-gradient(180deg, #e6e9ff, #f7f8ff);
}

.theme-thumb .mock-avatar {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  margin: 10px auto 6px;
}

.theme-thumb .mock-title {
  display: block;
  height: 8px;
  width: 70%;
  border-radius: 6px;
  margin: 0 auto 8px;
  background: rgba(255, 255, 255, 0.7);
}

.theme-thumb .mock-pill {
  display: block;
  height: 16px;
  width: 80%;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.custom-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.custom-theme-grid label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--muted);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.icon-chip {
  border: none;
  border-radius: 16px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(255, 95, 168, 0.12);
  font-weight: 700;
}

.public-card.theme-dreamy {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)) 0 0 / 140px 140px,
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 / 200px 200px,
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.public-card.theme-pastel {
  background: linear-gradient(180deg, #dff7ff, #fceaff);
}

.public-card.theme-retro {
  background: linear-gradient(180deg, #ffe4b7, #ffd1cc);
}

.public-card.theme-cosmic {
  background: radial-gradient(circle at top, #3b2b6f, #140a2b);
  color: #fff;
}

.public-card.theme-neon {
  background: linear-gradient(180deg, #1d1b3a, #0f1224);
  color: #fff;
}

.public-card.theme-black {
  background: linear-gradient(180deg, #151515, #050505);
  color: #fff;
}

.public-card.theme-neon .public-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.public-card.theme-cosmic .public-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.public-card.theme-black .public-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.public-card.theme-neon .public-title,
.public-card.theme-cosmic .public-title,
.public-card.theme-black .public-title {
  color: #ffffff !important;
}

.public-card.theme-neon .public-profile h2,
.public-card.theme-cosmic .public-profile h2,
.public-card.theme-black .public-profile h2 {
  color: #ffffff;
}

.public-card.theme-neon .public-profile p,
.public-card.theme-cosmic .public-profile p,
.public-card.theme-black .public-profile p {
  color: rgba(255, 255, 255, 0.7);
}

.public-card.theme-neon .public-linkchip,
.public-card.theme-cosmic .public-linkchip,
.public-card.theme-black .public-linkchip {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.public-card.theme-neon .public-linkchip span,
.public-card.theme-cosmic .public-linkchip span,
.public-card.theme-black .public-linkchip span {
  color: #ffffff;
}

.public-card.theme-minimal {
  background: #ffffff;
}

.public-card.theme-custom {
  background: linear-gradient(180deg, var(--custom-bg1), var(--custom-bg2));
  color: var(--custom-text);
}

.preview-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  align-items: center;
}

.builder-guide-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #7c6aa6;
  font-size: 0.92rem;
}

.guide-toggle input {
  width: 16px;
  height: 16px;
}

.builder-link-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.builder-link-row.compact {
  margin-top: 0;
  background: #fff5fb;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 95, 168, 0.12);
  gap: 8px;
}

.builder-link-row.compact .builder-link {
  background: #f3ecff;
  padding: 6px 10px;
  border-radius: 999px;
}


.builder-link-row span {
  color: var(--muted);
  font-weight: 700;
}

.builder-link {
  background: #f3ecff;
  color: #6b4ab8;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
}

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

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.upload-card {
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.12);
}

.upload-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.upload-thumb {
  height: 110px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.upload-remove {
  width: 100%;
}

.profile-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.profile-card {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(255, 95, 168, 0.12);
}

.profile-card h2 {
  margin: 0 0 8px;
  font-family: inherit;
}

.profile-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--muted);
}

.slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.slug-status {
  font-size: 0.85rem;
  color: var(--muted);
}

.slug-status.ok {
  color: #1f8a65;
  font-weight: 600;
}

.slug-status.error {
  color: #d64545;
  font-weight: 600;
}

.profile-form input {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff4fb;
}

.profile-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.slug-history {
  margin-top: 12px;
  background: #f7f1ff;
  border-radius: 16px;
  padding: 12px;
}

.slug-history h4 {
  margin: 0 0 8px;
}

.slug-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.slug-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.domain-guide {
  margin-top: 12px;
  background: #f7f1ff;
  border-radius: 16px;
  padding: 12px;
}

.domain-guide h4 {
  margin: 0 0 8px;
}

.domain-guide ol {
  margin: 0 0 10px 18px;
  color: var(--muted);
}

.domain-guide strong {
  color: #6e4cc8;
}

.public-wrap {
  display: grid;
  place-items: center;
}

.public-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(255, 95, 168, 0.2);
  text-align: center;
}

.public-card h1 {
  margin: 0 0 18px;
  font-family: inherit;
}

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

.public-profile {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.public-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffe1f0;
  border: 4px solid rgba(255, 255, 255, 0.7);
  background-size: cover;
  background-position: center;
}

.public-profile h2 {
  margin: 0;
  font-weight: 800;
}

.public-profile p {
  margin: 0;
  color: var(--muted);
}

.public-card[data-ring="soft"] .public-avatar {
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 16px rgba(255, 95, 168, 0.2);
}

.public-card[data-ring="neon"] .public-avatar {
  border: 3px solid #ff8bd9;
  box-shadow: 0 0 12px rgba(255, 139, 217, 0.8);
}

.public-card[data-ring="glass"] .public-avatar {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.public-card[data-decor="clouds"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8), transparent 45%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.public-card[data-decor="sparkles"] {
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9), transparent 20%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.8), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.6), transparent 22%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.public-card[data-decor="hearts"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 192, 203, 0.7), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(255, 182, 193, 0.6), transparent 30%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.public-title {
  font-weight: 800;
  font-size: 1.2rem;
}

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

.public-title.has-bg,
.public-text.has-bg {
  padding: 10px 12px;
  border-radius: 14px;
}

.public-title.left,
.public-text.left {
  text-align: left;
}

.public-title.center,
.public-text.center {
  text-align: center;
}

.public-image {
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe0ef, #f6efff);
  background-size: cover;
  background-position: center;
}

.public-embed {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe0ef, #f6efff);
  display: grid;
  place-items: center;
  color: rgba(59, 47, 64, 0.6);
  font-weight: 600;
  text-align: center;
  padding: 0;
}

.public-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.public-map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  color: #3b2f40;
}

.public-map-meta span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}

.public-map-copy {
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #f3ecff;
  color: #6b4ab8;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.public-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  gap: 10px;
  width: 100%;
  border: none;
}

.public-button.primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.public-button.ghost {
  background: #f2ebff;
  color: #6e4cc8;
}

.public-button.pill {
  border-radius: 999px;
  padding: 14px 16px;
}

.public-button.color-pink {
  background: linear-gradient(140deg, #ff7bbf, #ff9ad9);
  color: #fff;
}

.public-button.color-purple {
  background: linear-gradient(140deg, #8f6dff, #c68bff);
  color: #fff;
}

.public-button.color-mint {
  background: linear-gradient(140deg, #6ddbc9, #8debdc);
  color: #fff;
}

.public-button.color-gold {
  background: linear-gradient(140deg, #ffcc7b, #ffd9a8);
  color: #6b4a2a;
}

.public-qr {
  width: 140px;
  height: 140px;
  border-radius: 0;
  background: repeating-linear-gradient(45deg, #f7f1ff 0 8px, #fff 8px 16px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.public-linkchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.public-card.theme-custom .public-button.primary {
  background: linear-gradient(140deg, var(--custom-accent), #ff8bd9);
  color: #fff;
}

.public-card.theme-dreamy,
.preview-stack[data-theme="dreamy"],
.public-card.theme-pastel,
.preview-stack[data-theme="pastel"] {
  font-family: "Fredoka", "Nunito", sans-serif;
}

.public-card.theme-retro,
.preview-stack[data-theme="retro"] {
  font-family: "DM Serif Display", "Nunito", serif;
}

.public-card.theme-neon,
.preview-stack[data-theme="neon"],
.public-card.theme-cosmic,
.preview-stack[data-theme="cosmic"],
.public-card.theme-black,
.preview-stack[data-theme="black"] {
  font-family: "Space Grotesk", "Nunito", sans-serif;
}

.public-card.theme-minimal,
.preview-stack[data-theme="minimal"],
.public-card.theme-custom,
.preview-stack[data-theme="custom"] {
  font-family: "Nunito", sans-serif;
}

.public-spacer.small {
  height: 8px;
}

.public-spacer.medium {
  height: 18px;
}

.public-spacer.large {
  height: 32px;
}

.link-preview {
  margin: 12px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #f3e6ff;
  background: #fff;
}

.link-actions-top {
  margin: 0 0 12px;
}
.link-preview iframe {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  height: auto;
  border: none;
}

.links-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.links-board {
  display: grid;
  gap: 10px;
}

.links-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.55fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

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

.links-preview {
  position: sticky;
  top: 24px;
  align-self: start;
}

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

.links-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links-tab {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff4fb;
  color: #6b4ab8;
  font-weight: 700;
  cursor: pointer;
}

.links-tab.active {
  background: #ff5fa8;
  color: #fff;
}

.links-tab.selected {
  box-shadow: inset 0 0 0 2px rgba(255, 95, 168, 0.35);
}

.links-row.active {
  box-shadow: 0 0 0 2px rgba(255, 95, 168, 0.4), 0 12px 24px rgba(255, 95, 168, 0.12);
}

.links-row.selected {
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.28), 0 12px 24px rgba(124, 92, 255, 0.12);
}

.links-header,
.links-row {
  display: grid;
  grid-template-columns: 40px minmax(220px, 1fr) 120px 110px 90px 150px;
  gap: 12px;
  align-items: center;
}

.links-header {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 12px;
}

.links-row {
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.08);
  cursor: pointer;
}

.links-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.links-title strong {
  display: block;
}

.links-title small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.links-thumb {
  width: 120px;
  height: 80px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.links-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.links-activate {
  display: flex;
  justify-content: center;
}

.links-actions .pill-btn,
.links-activate .pill-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  box-shadow: none;
}

.pill-btn.danger {
  background: #ffe6ee;
  color: #d9487c;
  border: 2px solid #ffd1e1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #f0ecff;
  color: #6b4ab8;
}

.status-pill.active {
  background: #ff5fa8;
  color: #fff;
}

.links-empty {
  padding: 18px;
  border-radius: 16px;
  background: #fff7fb;
  color: var(--muted);
}

.phone-frame {
  position: relative;
  padding: 18px 12px 22px;
  border-radius: 30px;
  background: #f7f1ff;
  box-shadow: inset 0 0 0 10px #1f1f1f, 0 16px 32px rgba(31, 31, 31, 0.18);
  width: min(var(--phone-preview-width), 100%);
  margin: 0;
}

.phone-frame iframe {
  border-radius: 20px;
  background: #fff;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 18px;
  border-radius: 0 0 18px 18px;
  background: #1f1f1f;
  z-index: 2;
}

.link-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link-chip {
  background: #f3ecff;
  color: #6b4ab8;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.member-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.member-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.member-search input {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff4fb;
  min-width: 220px;
}

.member-search select {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f3ecff;
  font-weight: 700;
  color: #6b4ab8;
}

.member-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.member-settings {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
  margin: 14px 0 18px;
}

.invite-cleanup {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
  margin: 0 0 18px;
}

.invite-cleanup h3 {
  margin: 0 0 6px;
}

.invite-cleanup p {
  margin: 0;
  color: var(--muted);
}

.member-settings h3 {
  margin: 0 0 6px;
}

.member-settings p {
  margin: 0;
  color: var(--muted);
}

.settings-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--muted);
}

.settings-form input {
  border: none;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff4fb;
  width: 120px;
}

.summary-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 12px 26px rgba(255, 95, 168, 0.12);
}

.summary-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 600;
}

.summary-card strong {
  font-size: 1.4rem;
}

.member-table {
  display: grid;
  gap: 12px;
}

.member-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px;
}

.member-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
}

.member-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.member-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #ffe4f3;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #d6478c;
}

.member-role {
  font-weight: 700;
}

.member-status {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  background: #f0f0f0;
}

.member-status.활성 {
  background: #e7fff3;
  color: #1e9b6d;
}

.member-status.대기 {
  background: #fff6e6;
  color: #c8861c;
}

.member-status.중지 {
  background: #ffe8e8;
  color: #d24545;
}

.member-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.inline-form {
  margin: 0;
}

.icon-pill {
  border: none;
  background: #f2ebff;
  color: #6e4cc8;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.icon-pill.ghost {
  background: #ffe7f3;
  color: #d13f87;
}

.icon-pill.danger {
  background: #ffe6e6;
  color: #d64545;
}

.icon-pill.success {
  background: #e5fff3;
  color: #1c8a61;
}

.icon-pill.warn {
  background: #fff3e3;
  color: #c97a1e;
}

.member-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
}

.member-pagination {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-info {
  color: var(--muted);
  font-weight: 600;
}

.page-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.page-ellipsis {
  color: var(--muted);
  font-weight: 700;
  padding: 0 6px;
}

.page-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(255, 95, 168, 0.12);
}

.page-pill.active {
  background: #ffe4f2;
  color: #d13f87;
}

.empty-state {
  margin-top: 30px;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 36px rgba(255, 95, 168, 0.15);
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--muted);
}

.invite-chip {
  margin: 18px 0 10px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(255, 95, 168, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-chip span {
  font-weight: 700;
  color: var(--muted);
}

.invite-chip small {
  color: var(--muted);
  font-weight: 600;
}

.invite-link {
  background: #f3ecff;
  color: #6b4ab8;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.invite-table {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.invite-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  padding: 0 6px;
}

.invite-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
}

.invite-status {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  background: #f0f0f0;
}

.invite-status.유효 {
  background: #e7fff3;
  color: #1e9b6d;
}

.invite-status.만료 {
  background: #fff6e6;
  color: #c8861c;
}

.invite-status.사용됨 {
  background: #ffe8e8;
  color: #d24545;
}

.invite-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.member-logs {
  margin-top: 26px;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
}

.member-logs h3 {
  margin: 0 0 12px;
}

.member-logs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.member-logs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9f2ff;
  align-items: center;
}

.member-logs span {
  color: var(--muted);
  font-weight: 700;
}

.member-logs em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.log-body {
  gap: 16px;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-meta span {
  color: var(--muted);
  font-weight: 700;
}

.log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.log-grid h4 {
  margin: 0 0 8px;
}

.log-grid pre {
  background: #f7f1ff;
  border-radius: 14px;
  padding: 12px;
  min-height: 140px;
  overflow: auto;
  font-size: 0.85rem;
}

.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: grid;
  gap: 10px;
  z-index: 12;
}

.toast {
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  animation: toast-in 0.25s ease;
  display: flex;
  gap: 12px;
  align-items: center;
}

.toast.success {
  border-left: 6px solid #27ae60;
}

.toast.error {
  border-left: 6px solid #e74c3c;
}

.toast.hide {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-action {
  border: none;
  background: #f2ebff;
  color: #6e4cc8;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(54, 29, 52, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  width: min(520px, 100%);
  box-shadow: 0 24px 50px rgba(255, 95, 168, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
  font-family: inherit;
}

.modal-body {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 30, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal-overlay.open {
  display: flex;
}

.modal-body label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.modal-body input,
.modal-body select {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff4fb;
  font-size: 0.95rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.detail-body {
  gap: 12px;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9f2ff;
}

.detail-line span {
  color: var(--muted);
  font-weight: 600;
}

.delete-message {
  margin: 0;
  color: var(--muted);
}

.template-showcase {
  margin-top: 20px;
}

.template-phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.template-phone {
  height: 220px;
  border-radius: 24px;
  background: #ffe7f5;
  box-shadow: 0 18px 30px rgba(255, 95, 168, 0.18);
}

.template-phone.pink {
  background: linear-gradient(180deg, #ffd7ec, #ffeef7);
}

.template-phone.purple {
  background: linear-gradient(180deg, #e8ddff, #f3edff);
}

.template-phone.peach {
  background: linear-gradient(180deg, #ffe2cf, #fff1e5);
}

.template-phone.mint {
  background: linear-gradient(180deg, #d6fff2, #ecfff9);
}

.template-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.2);
  margin-bottom: 12px;
}

.template-cta {
  display: grid;
  gap: 10px;
  place-items: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.action-pill {
  padding: 10px 16px;
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 12px 24px rgba(178, 141, 255, 0.2);
}

@media (max-width: 920px) {
  .site-header {
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    padding: 30px;
  }

  .login-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-actions {
    align-items: flex-start;
  }

  .member-table-head {
    display: none;
  }

  .member-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .member-actions {
    justify-content: flex-start;
  }

  .builder-layout {
    grid-template-columns: 1fr;
  }

  .builder-widget-palette {
    position: static;
    width: 100%;
  }

  .builder-widget-palette .widget-grid {
    grid-template-columns: 1fr;
  }

  .invite-table-head {
    display: none;
  }

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

  .toast-stack {
    right: 16px;
    left: 16px;
  }
}

@media (max-width: 600px) {
  .sky {
    margin: 0;
    border-radius: 0;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .cta {
    flex-direction: column;
  }

  .panel {
    padding: 24px;
  }
}
