@import "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap";
@import "https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css";
@import "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap";
@import "https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Nanum+Pen+Script&family=Black+Han+Sans&family=Jua&family=Do+Hyeon&display=swap";
/* [project]/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: var(--font-sans);
    --font-mono: var(--font-mono);
    --tracking-wider: .05em;
    --radius-sm: var(--radius-sm);
    --radius-lg: var(--radius-lg);
    --radius-xl: var(--radius-xl);
    --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
    --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    --shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --font-heading: var(--font-heading);
    --radius-full: var(--radius-full);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .row-2 {
    grid-row: 2;
  }

  .row-3 {
    grid-row: 3;
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-flex {
    display: inline-flex;
  }

  .list-item {
    display: list-item;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .rounded {
    border-radius: .25rem;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .capitalize {
    text-transform: capitalize;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .select-all {
    -webkit-user-select: all;
    user-select: all;
  }
}

:root {
  --bg: #f6f7fb;
  --bg-elevated: #fff;
  --surface: #fff;
  --surface-2: #f1f3f8;
  --surface-hover: #eef0f6;
  --surface-active: #e8ebf3;
  --border: #e5e8ef;
  --border-strong: #d3d8e2;
  --text-primary: #1a1f2e;
  --text-secondary: #5a6b85;
  --text-muted: #8b96a9;
  --text-on-primary: #fff;
  --primary: #5b6cff;
  --primary-hover: #4a5beb;
  --primary-soft: #5b6cff1a;
  --primary-ring: #5b6cff47;
  --accent-pink: #ff6fa8;
  --accent-mint: #2dd4bf;
  --accent-amber: #f59e0b;
  --danger: #ef4444;
  --font-sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-heading: "Space Grotesk", "Pretendard", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --font-fun: "Jua", "Pretendard", sans-serif;
  --font-pen: "Nanum Pen Script", "Pretendard", cursive;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px #141c320d, 0 0 0 1px #141c320a;
  --shadow: 0 2px 8px #141c320f, 0 0 0 1px #141c320d;
  --shadow-lg: 0 12px 32px #141c321a, 0 0 0 1px #141c320d;
  --shadow-pop: 0 18px 48px #141c322e;
  --topbar-h: 56px;
  --rail-w: 280px;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

#root {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
  font-family: inherit;
}

input, textarea, select {
  color: inherit;
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

::selection {
  background: var(--primary);
  color: #fff;
}

.btn {
  border-radius: var(--radius);
  background: var(--surface);
  height: 34px;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border);
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, box-shadow .15s, transform .1s;
  display: inline-flex;
}

.btn:hover {
  background: var(--surface-hover);
}

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

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 0 #00000014, inset 0 0 0 1px var(--primary);
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.ghost {
  box-shadow: none;
  background: none;
}

.btn.ghost:hover {
  background: var(--surface-hover);
}

.btn.danger {
  color: var(--danger);
}

.btn.danger:hover {
  background: #ef444414;
}

.btn.lg {
  border-radius: 12px;
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.icon {
  stroke-width: 1.75px;
  width: 16px;
  height: 16px;
}

.landing {
  background: radial-gradient(900px 600px at 80% -10%, #ff6fa824, transparent 60%), radial-gradient(700px 500px at -10% 30%, #5b6cff1f, transparent 60%), var(--bg);
  height: 100vh;
  overflow: auto;
}

.landing-nav {
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
}

.landing-logo {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
}

.landing-logo .logo-mark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
  color: #fff;
  border-radius: 8px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-weight: 700;
  display: grid;
}

.landing-hero {
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: grid;
}

.landing-hero h1 {
  font-family: var(--font-heading);
  letter-spacing: -.02em;
  margin: 0 0 20px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
}

.landing-hero h1 .accent {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent-pink) 100%);
  color: #0000;
  -webkit-background-clip: text;
  background-clip: text;
}

.landing-hero .sub {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.55;
}

.landing-hero .ctas {
  gap: 12px;
  display: flex;
}

.hero-eyebrow {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 12px;
  font-size: 12px;
  display: inline-flex;
}

.hero-eyebrow .dot {
  background: var(--accent-pink);
  border-radius: 999px;
  width: 6px;
  height: 6px;
}

.hero-preview {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  position: relative;
}

.hero-preview .stack {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-preview .stack > * {
  box-shadow: var(--shadow-lg);
  background: #fff;
  border-radius: 18px;
  position: absolute;
  inset: 0;
}

.hero-preview .stack > :first-child {
  background: linear-gradient(135deg, #ffe0ec, #fff);
  transform: rotate(-6deg)translate(-30px, 20px);
}

.hero-preview .stack > :nth-child(2) {
  background: linear-gradient(135deg, #e0e8ff, #fff);
  transform: rotate(4deg)translate(20px, -10px);
}

.hero-preview .stack > :nth-child(3) {
  z-index: 2;
  transform: rotate(-1deg);
}

.landing-sections {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.landing-section-title {
  justify-content: space-between;
  align-items: end;
  margin: 40px 0 20px;
  display: flex;
}

.landing-section-title h2 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.landing-section-title p {
  color: var(--text-secondary);
  margin: 4px 0 0;
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .template-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.template-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  overflow: hidden;
}

.template-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.template-card .thumb {
  aspect-ratio: 4 / 5;
  background: #fafbfd;
  padding: 14px;
  position: relative;
}

.template-card .meta {
  border-top: 1px solid var(--border);
  padding: 12px 14px 14px;
}

.template-card .meta .name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.template-card .meta .desc {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 12px;
}

.feature-row {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
  display: grid;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.feature-card .ic {
  background: var(--primary-soft);
  width: 38px;
  height: 38px;
  color: var(--primary);
  border-radius: 10px;
  place-items: center;
  margin-bottom: 12px;
  display: grid;
}

.feature-card h3 {
  font-family: var(--font-heading);
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.gallery {
  grid-template-rows: var(--topbar-h) 1fr;
  background: var(--bg);
  height: 100vh;
  display: grid;
}

.gallery-body {
  padding: 32px 40px 80px;
  overflow: auto;
}

.gallery-body .inner {
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-tabs {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border);
  gap: 4px;
  width: fit-content;
  margin: 12px 0 24px;
  padding: 4px;
  display: flex;
}

.gallery-tabs button {
  color: var(--text-secondary);
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
}

.gallery-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  padding: 60px 30px;
}

.empty-state h3 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin: 0 0 6px;
}

.editor {
  grid-template-rows: var(--topbar-h) 1fr;
  background: var(--bg);
  height: 100vh;
  display: grid;
}

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  display: flex;
  position: relative;
}

.topbar .left, .topbar .right {
  align-items: center;
  gap: 8px;
  display: flex;
}

.topbar .center {
  align-items: center;
  gap: 8px;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.topbar .title-input {
  text-align: center;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  min-width: 200px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}

.topbar .title-input:hover {
  background: var(--surface-hover);
}

.topbar .title-input:focus {
  background: var(--bg);
  border-color: var(--border-strong);
  outline: none;
}

.editor-body {
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 0;
  display: grid;
}

.rail {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0;
  overflow: hidden auto;
}

.rail-section {
  border-bottom: 1px solid var(--border);
}

.rail-section-header {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 10px;
  display: flex;
}

.rail-section-header h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -.005em;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.rail-section-header .chev {
  color: var(--text-muted);
  transition: transform .2s;
}

.rail-section.collapsed .chev {
  transform: rotate(-90deg);
}

.rail-section .body {
  padding: 4px 18px 18px;
}

.rail-section.collapsed .body {
  display: none;
}

.rail-row {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  display: flex;
}

.rail-row .label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

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

.mini-tpl {
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
  transition: box-shadow .15s, transform .1s;
  position: relative;
}

.mini-tpl:hover {
  box-shadow: inset 0 0 0 1px var(--primary);
}

.mini-tpl.active {
  box-shadow: inset 0 0 0 2px var(--primary);
  background: var(--primary-soft);
}

.mini-tpl .cell {
  box-shadow: inset 0 0 0 1px var(--border-strong);
  background: #fff;
  border-radius: 2px;
  position: absolute;
}

.swatches {
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 4px;
  display: grid;
}

.swatch {
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: transform .1s;
  box-shadow: inset 0 0 0 1px #00000014;
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch.active {
  box-shadow: 0 0 0 2px var(--primary), inset 0 0 0 1px #00000014;
}

.pattern-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
  display: grid;
}

.pattern-swatch {
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 8px;
  transition: transform .1s;
}

.pattern-swatch:hover {
  transform: scale(1.06);
}

.pattern-swatch.active {
  box-shadow: 0 0 0 2px var(--primary), inset 0 0 0 1px var(--border);
}

.slider-input {
  -webkit-appearance: none;
  background: var(--surface-2);
  border-radius: 999px;
  outline: none;
  width: 100%;
  height: 4px;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  box-shadow: 0 1px 3px #00000026;
}

.slider-input::-moz-range-thumb {
  background: var(--primary);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

.text-input {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}

.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
  outline: none;
}

.color-picker {
  border: 1px solid var(--border-strong);
  cursor: pointer;
  background: none;
  border-radius: 6px;
  width: 36px;
  height: 28px;
  padding: 2px;
}

.canvas-area {
  background-color: #0000;
  background-image: linear-gradient(0deg, #0000 24px, #141c3206 25px), linear-gradient(90deg, #0000 24px, #141c3206 25px);
  background-position: 0 0, 0 0;
  background-repeat: repeat, repeat;
  background-size: 25px 25px;
  background-attachment: scroll, scroll;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  background-color: var(--bg);
  place-items: center;
  padding: 40px;
  display: grid;
  position: relative;
  overflow: auto;
}

.canvas-wrap {
  box-shadow: var(--shadow-lg);
  background: #fff;
  border-radius: 4px;
  position: relative;
}

.canvas {
  position: relative;
  overflow: hidden;
}

.canvas-header {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: outline .15s;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.canvas-header.selected {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.canvas-header .booth-name {
  letter-spacing: -.005em;
  font-weight: 700;
}

.canvas-header .booth-num {
  opacity: .85;
  font-weight: 500;
}

.canvas-header .price-pill {
  background: #ffffffd9;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-weight: 700;
  display: inline-flex;
  box-shadow: 0 2px 6px #00000014;
}

.cell {
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  transition: outline .15s, transform .15s;
  display: flex;
  position: absolute;
  overflow: hidden;
}

.cell.selected {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  z-index: 3;
}

.cell.drag-over {
  outline: 2px dashed var(--primary);
  background: var(--primary-soft);
}

.cell .cell-img {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex: 1;
  min-height: 0;
  position: relative;
}

.cell .cell-img.contain {
  background-size: contain;
}

.cell .cell-empty {
  color: var(--text-muted);
  background: repeating-linear-gradient(45deg, #f8f9fc, #f8f9fc 8px, #f1f3f8 8px 16px);
  flex: 1;
  place-items: center;
  display: grid;
  position: relative;
}

.cell .cell-empty .ic {
  width: 38px;
  height: 38px;
  box-shadow: var(--shadow-sm);
  background: #ffffffd9;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.cell .cell-empty .hint {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 10px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.cell .cell-label {
  color: #fff;
  letter-spacing: -.005em;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #000000a6;
  border-radius: 4px;
  max-width: calc(100% - 12px);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  position: absolute;
  top: 6px;
  left: 6px;
  overflow: hidden;
}

.cell .cell-badge {
  background: var(--accent-pink);
  color: #fff;
  letter-spacing: .02em;
  pointer-events: none;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  position: absolute;
  top: 6px;
  right: 6px;
  box-shadow: 0 2px 4px #0000001f;
}

.props-rail {
  background: var(--surface);
  border-left: 1px solid var(--border);
  width: 300px;
  padding: 0;
  overflow-y: auto;
}

.props-rail .rail-section-header {
  padding-top: 18px;
}

.props-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 13px;
}

.upload-zone {
  border: 1.5px dashed var(--border-strong);
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 20px 12px;
  font-size: 12px;
  transition: border-color .15s, background .15s;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.upload-zone.has-image {
  border-style: solid;
  border-color: var(--border);
  background: var(--surface-2);
  padding: 8px;
}

.upload-zone .preview {
  aspect-ratio: 1;
  background-position: center;
  background-size: cover;
  border-radius: 6px;
  width: 100%;
}

.zoom-bar {
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 5;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  display: flex;
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.zoom-bar button {
  border-radius: 999px;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}

.zoom-bar button:hover {
  background: var(--surface-hover);
}

.zoom-bar .pct {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  text-align: center;
  min-width: 44px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 500;
}

.divider {
  background: var(--border);
  height: 1px;
  margin: 4px 0;
}

.badge-options {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  display: grid;
}

.badge-options button {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 7px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  transition: all .15s;
}

.badge-options button:hover {
  box-shadow: inset 0 0 0 1px var(--primary);
}

.badge-options button.active {
  background: var(--accent-pink);
  color: #fff;
  box-shadow: none;
}

.font-options {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  display: grid;
}

.font-options button {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 7px;
  padding: 10px 6px;
  font-size: 13px;
  transition: all .15s;
}

.font-options button:hover {
  box-shadow: inset 0 0 0 1px var(--primary);
}

.font-options button.active {
  box-shadow: inset 0 0 0 2px var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.bg-dots {
  background-color: var(--bg-color, #fff);
  background-image: radial-gradient(#0000001f 1.2px, #0000 1.2px);
  background-size: 14px 14px;
}

.bg-grid {
  background-color: var(--bg-color, #fff);
  background-image: linear-gradient(#0000000f 1px, #0000 1px), linear-gradient(90deg, #0000000f 1px, #0000 1px);
  background-size: 24px 24px;
}

.bg-diag {
  background-color: var(--bg-color, #fff);
  background-image: repeating-linear-gradient(45deg, #0000000a 0 1px, #0000 1px 12px);
}

.bg-confetti {
  background-color: var(--bg-color, #fff);
  background-image: radial-gradient(circle at 20% 30%, var(--accent-pink) 0 4px, transparent 5px), radial-gradient(circle at 70% 80%, var(--primary) 0 3px, transparent 4px), radial-gradient(circle at 80% 20%, var(--accent-amber) 0 3px, transparent 4px), radial-gradient(circle at 30% 70%, var(--accent-mint) 0 4px, transparent 5px);
  background-size: 120px 120px;
}

.bg-grid-bold {
  background-color: var(--bg-color, #fff);
  background-image: linear-gradient(#0000001a 1px, #0000 1px), linear-gradient(90deg, #0000001a 1px, #0000 1px);
  background-size: 40px 40px;
}

.canvas-overlay-stripe {
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-amber));
  z-index: 2;
  height: 30px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes authPopIn {
  from {
    opacity: 0;
    transform: translateY(12px)scale(.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes authFloat {
  0%, 100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }

  50% {
    transform: translateY(-8px) rotate(var(--r, 0deg));
  }
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-overlay {
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  background: #141c326b;
  place-items: center;
  padding: 24px;
  animation: .18s ease-out authFadeIn;
  display: grid;
  position: fixed;
  inset: 0;
}

.auth-modal {
  background: var(--surface);
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  box-shadow: var(--shadow-pop);
  border-radius: 20px;
  grid-template-columns: 380px 1fr;
  animation: .22s cubic-bezier(.2, .9, .3, 1.1) authPopIn;
  display: grid;
  overflow: hidden;
}

@media (max-width: 820px) {
  .auth-modal {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .auth-aside {
    display: none;
  }
}

.auth-aside {
  color: #fff;
  isolation: isolate;
  background: radial-gradient(420px 280px at 80% 110%, #ff6fa88c, #0000 60%), radial-gradient(380px 280px at -10% -10%, #ffffff59, #0000 55%), linear-gradient(160deg, #5b6cff 0%, #7a5bff 60%, #c75bff 100%);
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.auth-aside-inner {
  z-index: 2;
  position: relative;
}

.auth-aside .auth-logo {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

.auth-aside .auth-logo .logo-mark {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  background: #ffffff38;
  border-radius: 8px;
  place-items: center;
  width: 28px;
  height: 28px;
  font-weight: 700;
  display: grid;
  box-shadow: inset 0 0 0 1px #ffffff4d;
}

.auth-aside h2 {
  font-family: var(--font-heading);
  letter-spacing: -.02em;
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.12;
}

.auth-aside h2 .grad {
  background: linear-gradient(90deg, #ffe7c2, #ffc1d2);
  color: #0000;
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-aside-sub {
  color: #ffffffd9;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
}

.auth-aside-feats {
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.auth-aside-feats li {
  color: #ffffffeb;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.auth-aside-feats .ic {
  color: #fff;
  background: #ffffff38;
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  width: 18px;
  height: 18px;
  display: grid;
}

.auth-deco {
  z-index: 1;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.auth-deco > div {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #ffffff2e;
  border-radius: 12px;
  animation: 6s ease-in-out infinite authFloat;
  position: absolute;
  box-shadow: 0 12px 32px #141c322e, inset 0 0 0 1px #ffffff40;
}

.auth-deco .auth-card-1 {
  --r: -8deg;
  background: linear-gradient(135deg, #ffe0ec, #fff8ec);
  width: 110px;
  height: 140px;
  animation-delay: 0s;
  top: 90px;
  right: -28px;
}

.auth-deco .auth-card-2 {
  --r: 10deg;
  background: linear-gradient(135deg, #e0e8ff, #fff);
  width: 90px;
  height: 110px;
  animation-delay: 1.2s;
  bottom: 60px;
  right: 30px;
}

.auth-deco .auth-card-3 {
  --r: -4deg;
  background: linear-gradient(135deg, #d8f5ee, #fff);
  width: 70px;
  height: 90px;
  animation-delay: 2.4s;
  bottom: 140px;
  right: 110px;
}

.auth-form-side {
  flex-direction: column;
  padding: 28px 36px 32px;
  display: flex;
  position: relative;
  overflow-y: auto;
}

.auth-close {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  z-index: 3;
  border-radius: 999px;
  place-items: center;
  transition: background .15s, color .15s;
  display: grid;
  position: absolute;
  top: 16px;
  right: 16px;
}

.auth-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.auth-tabs {
  background: var(--surface-2);
  border-radius: 12px;
  grid-template-columns: 1fr 1fr;
  width: fit-content;
  min-width: 240px;
  margin: 12px 0 24px;
  padding: 4px;
  display: grid;
  position: relative;
}

.auth-tabs button {
  z-index: 2;
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
  position: relative;
}

.auth-tabs button.active {
  color: var(--text-primary);
}

.auth-tab-indicator {
  z-index: 1;
  background: var(--surface);
  width: calc(50% - 4px);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.1);
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
}

.auth-tab-indicator.right {
  transform: translateX(100%);
}

.auth-form-body {
  flex-direction: column;
  flex: 1;
  display: flex;
}

.auth-title {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.auth-subtitle {
  color: var(--text-secondary);
  margin: 0 0 20px;
  font-size: 13px;
}

.auth-social {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  display: grid;
}

.auth-social .social {
  white-space: nowrap;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  transition: transform .12s, filter .15s, box-shadow .15s;
  display: inline-flex;
}

.auth-social .social:hover {
  transform: translateY(-1px);
}

.auth-social .social:active {
  transform: translateY(0);
}

.auth-social .social:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.auth-social .kakao {
  color: #181600;
  background: #fee500;
}

.auth-social .kakao:hover {
  filter: brightness(.96);
}

.auth-social .naver {
  color: #fff;
  background: #03c75a;
}

.auth-social .naver:hover {
  filter: brightness(.95);
}

.auth-social .google {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.auth-social .google:hover {
  background: var(--surface-hover);
}

.auth-divider {
  color: var(--text-muted);
  align-items: center;
  gap: 12px;
  margin: 10px 0 18px;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
}

.auth-divider:before, .auth-divider:after {
  content: "";
  background: var(--border);
  flex: 1;
  height: 1px;
}

.auth-form {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.auth-field {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.auth-field-label {
  color: var(--text-secondary);
  letter-spacing: -.005em;
  font-size: 12px;
  font-weight: 600;
}

.auth-field-input {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  display: flex;
}

.auth-field-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.auth-field-input .leading {
  color: var(--text-muted);
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.auth-field-input:focus-within .leading {
  color: var(--primary);
}

.auth-field-input input {
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.auth-field-input input::placeholder {
  color: var(--text-muted);
}

.field-trailing {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  border-radius: 6px;
  flex-shrink: 0;
  place-items: center;
  transition: background .12s, color .12s;
  display: grid;
}

.field-trailing:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.auth-row-between {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  display: flex;
}

.auth-check {
  cursor: pointer;
  color: var(--text-secondary);
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  display: inline-flex;
}

.auth-check input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.auth-check .box {
  background: var(--surface);
  width: 16px;
  height: 16px;
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  color: #0000;
  border-radius: 5px;
  flex-shrink: 0;
  place-items: center;
  transition: background .15s, box-shadow .15s, color .15s;
  display: grid;
}

.auth-check input:checked + .box {
  background: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--primary);
  color: #fff;
}

.auth-check.terms {
  align-items: flex-start;
}

.auth-check.terms .box {
  margin-top: 2px;
}

.auth-check.terms a {
  color: var(--primary);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.auth-check.terms em {
  color: var(--accent-pink);
  font-style: normal;
  font-weight: 600;
}

.link-btn {
  color: var(--text-secondary);
  background: none;
  border-radius: 4px;
  padding: 4px 2px;
  font-size: 12.5px;
  font-weight: 500;
  transition: color .15s;
}

.link-btn:hover {
  color: var(--primary);
}

.link-btn.strong {
  color: var(--primary);
  font-weight: 600;
}

.link-btn.strong:hover {
  color: var(--primary-hover);
}

.auth-error {
  color: var(--danger);
  background: #ef444414;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
  animation: .15s authFadeIn;
  display: flex;
}

.auth-submit {
  background: linear-gradient(135deg, var(--primary), #7a5bff);
  border-radius: 12px;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .12s, box-shadow .15s, filter .15s;
  box-shadow: 0 6px 16px #5b6cff47, inset 0 0 0 1px #ffffff1a;
}

.auth-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px #5b6cff52;
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}

.auth-spinner {
  border: 2.5px solid #ffffff59;
  border-top-color: #fff;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  animation: .7s linear infinite authSpin;
}

.auth-foot {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 13px;
}

.user-menu {
  position: relative;
}

.user-chip {
  background: var(--surface);
  height: 36px;
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-primary);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 0 12px 0 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, box-shadow .15s;
  display: inline-flex;
}

.user-chip:hover {
  background: var(--surface-hover);
}

.user-chip .uname {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
}

.user-chip .avatar {
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  color: #fff;
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.user-chip .avatar.lg {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.user-pop {
  background: var(--surface);
  width: 240px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  border-radius: 12px;
  padding: 6px;
  animation: .14s ease-out authPopIn;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

.user-pop-head {
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: flex;
}

.user-pop-head .n {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.user-pop-head .e {
  color: var(--text-muted);
  margin-top: 1px;
  font-size: 11.5px;
}

.user-pop-divider {
  background: var(--border);
  height: 1px;
  margin: 4px 6px;
}

.user-pop-item {
  width: 100%;
  color: var(--text-primary);
  text-align: left;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
  transition: background .12s;
  display: flex;
}

.user-pop-item:hover {
  background: var(--surface-hover);
}

.user-pop-item .icon {
  color: var(--text-muted);
}

.pay-overlay {
  -webkit-backdrop-filter: blur(8px);
  z-index: 110;
  background: #141c326b;
  place-items: center;
  padding: 24px;
  animation: .18s ease-out authFadeIn;
  display: grid;
  position: fixed;
  inset: 0;
}

.pay-modal {
  background: var(--surface);
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  box-shadow: var(--shadow-pop);
  border-radius: 20px;
  flex-direction: column;
  animation: .22s cubic-bezier(.2, .9, .3, 1.1) authPopIn;
  display: flex;
  position: relative;
  overflow: hidden;
}

.pay-modal.step-processing, .pay-modal.step-done {
  width: min(520px, 100%);
}

.pay-grid {
  flex: 1;
  grid-template-columns: 1fr 360px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

@media (max-width: 820px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
}

.pay-left {
  min-width: 0;
  padding: 36px 40px;
  overflow-y: auto;
}

.pay-right {
  border-left: 1px solid var(--border);
  background: linear-gradient(165deg, #f8f9ff 0%, #fff 100%);
  padding: 36px 28px;
  overflow-y: auto;
}

@media (max-width: 820px) {
  .pay-right {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

.pay-step-tag {
  font-family: var(--font-mono);
  color: var(--primary);
  background: var(--primary-soft);
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.pay-title {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 14px 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.pay-sub {
  color: var(--text-secondary);
  margin: 0 0 24px;
  font-size: 13.5px;
}

.pay-back {
  color: var(--text-secondary);
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  margin: -8px 0 8px -10px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  display: inline-flex;
}

.pay-back:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.pay-block {
  margin-bottom: 22px;
}

.pay-block-head {
  color: var(--text-primary);
  letter-spacing: -.005em;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
}

.cycle-toggle {
  background: var(--surface-2);
  border-radius: 12px;
  grid-template-columns: 1fr 1fr;
  min-width: 280px;
  padding: 4px;
  display: inline-grid;
  position: relative;
}

.cycle-toggle.inline {
  width: 100%;
}

.cycle-toggle button {
  z-index: 2;
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
  display: inline-flex;
  position: relative;
}

.cycle-toggle button.active {
  color: var(--text-primary);
}

.cycle-indicator {
  z-index: 1;
  background: var(--surface);
  width: calc(50% - 4px);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.1);
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
}

.cycle-indicator.right {
  transform: translateX(100%);
}

.save-pill {
  color: #fff;
  letter-spacing: 0;
  background: linear-gradient(135deg, #22c55e, #10b981);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.save-pill.mini {
  padding: 2px 6px;
  font-size: 9.5px;
}

.method-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.method-card {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  transition: box-shadow .15s, background .15s;
  display: flex;
}

.method-card:hover {
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.method-card.active {
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.method-radio {
  background: var(--surface);
  width: 16px;
  height: 16px;
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  transition: box-shadow .15s;
  display: grid;
}

.method-radio .dot {
  background: var(--primary);
  border-radius: 999px;
  width: 8px;
  height: 8px;
  transition: transform .15s;
  transform: scale(0);
}

.method-card.active .method-radio {
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.method-card.active .method-radio .dot {
  transform: scale(1);
}

.method-mark {
  flex-shrink: 0;
}

.method-text {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.method-text .n {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.method-text .s {
  color: var(--text-muted);
  margin-top: 1px;
  font-size: 11.5px;
}

.mm {
  border-radius: 8px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.mm.kakao {
  background: #fee500;
}

.mm.naver {
  background: #03c75a;
}

.mm.toss {
  background: #0064ff;
}

.mm.card {
  background: var(--surface-2);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border);
}

.coupon-row {
  gap: 8px;
  display: flex;
}

.coupon-row .text-input {
  flex: 1;
  height: 38px;
}

.coupon-row .btn {
  flex-shrink: 0;
  height: 38px;
}

.coupon-msg {
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
}

.coupon-msg.ok {
  color: #16a34a;
}

.coupon-msg.err {
  color: var(--danger);
}

.auth-check.terms.strong {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.agree-sub {
  border-left: 2px solid var(--border);
  flex-direction: column;
  gap: 6px;
  margin-left: 6px;
  padding-top: 4px;
  padding-left: 6px;
  display: flex;
}

.pay-summary {
  flex-direction: column;
  display: flex;
}

.pay-summary.compact .ps-features, .pay-summary.compact .ps-trust {
  display: none;
}

.ps-eyebrow {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
}

.ps-head h3 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 6px 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.ps-head p {
  color: var(--text-secondary);
  margin: 0 0 22px;
  font-size: 12.5px;
}

.ps-line {
  color: var(--text-secondary);
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  display: flex;
}

.ps-line.discount {
  color: #16a34a;
  font-weight: 600;
}

.ps-line .muted {
  color: var(--text-muted);
  font-size: 11.5px;
}

.ps-divider {
  background: var(--border);
  height: 1px;
  margin: 10px 0;
}

.ps-line.total {
  color: var(--text-primary);
  padding-top: 8px;
  font-size: 15px;
  font-weight: 700;
}

.ps-line.total .amt {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  background: linear-gradient(135deg, var(--primary), #7a5bff);
  color: #0000;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 22px;
}

.pay-cta {
  background: linear-gradient(135deg, var(--primary), #7a5bff);
  border-radius: 12px;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .12s, box-shadow .15s, filter .15s;
  box-shadow: 0 6px 16px #5b6cff47, inset 0 0 0 1px #ffffff1a;
}

.pay-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px #5b6cff57;
}

.pay-cta:active {
  transform: translateY(0);
}

.ps-trust {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-secondary);
  border-radius: 10px;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.5;
  display: flex;
}

.ps-trust svg {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 1px;
}

.ps-features {
  border-top: 1px dashed var(--border);
  margin-top: 18px;
  padding-top: 18px;
}

.ps-features-title {
  color: var(--text-muted);
  letter-spacing: -.005em;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.ps-features ul {
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.ps-features li {
  color: var(--text-secondary);
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  display: flex;
}

.ps-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.card-mockup {
  background: linear-gradient(135deg, var(--brand, #1a1f2e), #2a2f4e);
  color: #fff;
  font-family: var(--font-mono);
  border-radius: 14px;
  margin: 0 0 22px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px #141c322e;
}

.card-mockup:before {
  content: "";
  background: #ffffff14;
  border-radius: 999px;
  width: 220px;
  height: 220px;
  position: absolute;
  top: -80px;
  right: -80px;
}

.card-mockup:after {
  content: "";
  background: #ffffff0f;
  border-radius: 999px;
  width: 160px;
  height: 160px;
  position: absolute;
  bottom: -60px;
  right: 20px;
}

.cm-row {
  z-index: 1;
  justify-content: space-between;
  align-items: center;
  display: flex;
  position: relative;
}

.cm-row.top {
  margin-bottom: 30px;
}

.cm-row.bottom {
  margin-top: 14px;
}

.cm-brand {
  font-family: var(--font-heading);
  letter-spacing: .04em;
  font-size: 15px;
  font-weight: 700;
}

.cm-chip {
  background: linear-gradient(135deg, #f0c64b, #d49b25);
  border-radius: 4px;
  width: 32px;
  height: 24px;
  position: relative;
  box-shadow: inset 0 0 0 1px #0000002e;
}

.cm-chip:after {
  content: "";
  background: linear-gradient(#0003 1px, #0000 1px) 0 0 / 100% 5px, linear-gradient(90deg, #0003 1px, #0000 1px) 0 0 / 6px 100%;
  border-radius: 2px;
  position: absolute;
  inset: 4px 6px;
}

.cm-number {
  letter-spacing: .1em;
  z-index: 1;
  font-size: 18px;
  font-weight: 500;
  position: relative;
}

.cm-lbl {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff9;
  margin-bottom: 2px;
  font-size: 9px;
}

.cm-val {
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 600;
}

.card-form {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.card-row-2 {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.pay-processing {
  text-align: center;
  padding: 56px 32px;
}

.proc-spinner {
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  position: relative;
}

.proc-ring {
  border: 4px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: .9s linear infinite authSpin;
  position: absolute;
  inset: 0;
}

.proc-mark {
  place-items: center;
  display: grid;
  position: absolute;
  inset: 12px;
}

.pay-processing h3 {
  font-family: var(--font-heading);
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.pay-processing p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.pay-success {
  text-align: center;
  padding: 48px 36px 36px;
  position: relative;
}

.success-check {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
}

.sc-circle {
  stroke-dasharray: 176;
  stroke-dashoffset: 176px;
  animation: .55s cubic-bezier(.2, .9, .3, 1.1) .15s forwards sc-circle-draw;
}

.sc-tick {
  stroke-dasharray: 50;
  stroke-dashoffset: 50px;
  animation: .35s cubic-bezier(.2, .9, .3, 1.1) .55s forwards sc-tick-draw;
}

@keyframes sc-circle-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sc-tick-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.pay-success h2 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}

.success-sub {
  color: var(--text-secondary);
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.55;
}

.success-receipt {
  background: var(--surface-2);
  text-align: left;
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 22px;
  padding: 16px 18px;
  display: flex;
}

.sr-row {
  justify-content: space-between;
  font-size: 12.5px;
  display: flex;
}

.sr-row > :first-child {
  color: var(--text-secondary);
}

.sr-row > :last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.sr-row .strong {
  font-weight: 700;
}

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

.success-actions .btn.primary {
  background: linear-gradient(135deg, var(--primary), #7a5bff);
  border: none;
  box-shadow: 0 6px 16px #5b6cff47;
}

.success-foot {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 11.5px;
}

.confetti {
  pointer-events: none;
  z-index: 0;
  height: 280px;
  position: absolute;
  inset: 0 0 auto;
  overflow: hidden;
}

.confetti span {
  opacity: 0;
  border-radius: 2px;
  animation: linear forwards confetti-fall;
  display: block;
  position: absolute;
  top: -20px;
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(0)rotate(0);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(320px)rotate(540deg);
  }
}

.pricing {
  background: radial-gradient(900px 600px at 80% -10%, #ff6fa81a, transparent 60%), radial-gradient(700px 500px at -10% 20%, #5b6cff1a, transparent 60%), var(--bg);
  height: 100vh;
  overflow: auto;
}

.pricing-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 40px 24px;
}

.pricing-eyebrow {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--primary);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.pricing-header h1 {
  font-family: var(--font-heading);
  letter-spacing: -.02em;
  margin: 0 0 16px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
}

.pricing-header h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--accent-pink));
  color: #0000;
  -webkit-background-clip: text;
  background-clip: text;
}

.pricing-header p {
  color: var(--text-secondary);
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
}

.pricing-header .cycle-toggle {
  min-width: 340px;
  margin: 0 auto;
}

.pricing-cards {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 40px;
  display: grid;
}

@media (max-width: 980px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

.plan-card {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 18px;
  flex-direction: column;
  padding: 28px 26px;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  position: relative;
}

.plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.plan-card.featured {
  box-shadow: 0 12px 32px #5b6cff2e, inset 0 0 0 2px var(--primary);
  background: linear-gradient(165deg, #fff 0%, #f5f3ff 100%);
  transform: translateY(-6px);
}

.plan-card.featured:hover {
  transform: translateY(-8px);
}

.plan-card.current:after {
  content: "";
  pointer-events: none;
  border-radius: 18px;
  position: absolute;
  inset: -2px;
  box-shadow: inset 0 0 0 2px #22c55e;
}

.plan-badge {
  background: linear-gradient(135deg, var(--primary), #7a5bff);
  color: #fff;
  letter-spacing: .02em;
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 14px #5b6cff52;
}

.plan-head {
  margin-bottom: 18px;
}

.plan-name {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 700;
  display: inline-flex;
}

.plan-tagline {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 13px;
}

.plan-price {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-height: 70px;
  margin-bottom: 22px;
  display: flex;
}

.plan-price .amount {
  font-family: var(--font-heading);
  letter-spacing: -.02em;
  color: var(--text-primary);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.plan-price .unit {
  margin-left: 2px;
  font-size: 18px;
  font-weight: 600;
}

.plan-price .period {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.plan-price .monthly-equiv {
  width: 100%;
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 12px;
}

.plan-cta {
  white-space: nowrap;
  border-radius: 12px;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-bottom: 18px;
  font-weight: 600;
}

.plan-card.featured .plan-cta.primary {
  background: linear-gradient(135deg, var(--primary), #7a5bff);
  box-shadow: 0 6px 16px #5b6cff47;
}

.plan-cta:disabled {
  background: var(--surface-2);
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: default;
}

.plan-features {
  border-top: 1px dashed var(--border);
  flex-direction: column;
  flex: 1;
  gap: 10px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  display: flex;
}

.plan-features li {
  color: var(--text-primary);
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
}

.plan-features li.off {
  color: var(--text-muted);
}

.plan-features .ic {
  color: #16a34a;
  background: #22c55e1f;
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: grid;
}

.plan-features li.off .ic {
  background: var(--surface-2);
  color: var(--text-muted);
}

.pricing-compare {
  max-width: 1180px;
  margin: 60px auto 0;
  padding: 0 40px;
}

.pricing-compare h2 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  text-align: center;
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
}

.compare-table {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
}

.compare-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 14px 24px;
  font-size: 13.5px;
  display: grid;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row.header {
  background: var(--surface-2);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 14px;
}

.compare-row > div {
  text-align: center;
  color: var(--text-secondary);
}

.compare-row .label {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
}

.compare-row .hl {
  background: var(--primary-soft);
  color: var(--primary);
  margin: -14px 0;
  padding: 14px 0;
  font-weight: 600;
}

.compare-row.header .hl {
  color: var(--primary);
}

.pricing-faq {
  max-width: 880px;
  margin: 60px auto 0;
  padding: 0 40px;
}

.pricing-faq h2 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  text-align: center;
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
}

.faq-grid {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.faq-item {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  transition: box-shadow .15s;
  overflow: hidden;
}

.faq-item.open {
  box-shadow: var(--shadow);
}

.faq-q .chev {
  color: var(--text-muted);
  place-items: center;
  transition: transform .2s;
  display: grid;
}

.faq-item.open .faq-q .chev {
  color: var(--primary);
  transform: rotate(180deg);
}

.faq-a {
  color: var(--text-secondary);
  padding: 0 22px 18px;
  font-size: 13.5px;
  line-height: 1.65;
}

.pricing-foot {
  text-align: center;
  max-width: 1180px;
  color: var(--text-muted);
  margin: 60px auto 0;
  padding: 24px 40px 60px;
  font-size: 12.5px;
}

.pricing-foot a {
  color: var(--text-secondary);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.billing {
  background: var(--bg);
  height: 100vh;
  overflow: auto;
}

.billing-body {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

.billing-head {
  margin-bottom: 24px;
}

.billing-head h1 {
  font-family: var(--font-heading);
  letter-spacing: -.015em;
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
}

.billing-head p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.current-plan {
  box-shadow: 0 12px 32px #5b6cff1a, inset 0 0 0 1px var(--border);
  background: linear-gradient(165deg, #fff 0%, #f5f3ff 100%);
  border-radius: 18px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 28px;
  display: grid;
}

.current-plan.free {
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
}

.current-plan.canceled {
  box-shadow: 0 12px 32px #ef444414, inset 0 0 0 1px var(--border);
  background: linear-gradient(165deg, #fff 0%, #fff5f5 100%);
}

.cp-eyebrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
}

.cp-name {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  white-space: nowrap;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 700;
  display: inline-flex;
}

.cp-tag {
  font-family: var(--font-sans);
  color: var(--danger);
  letter-spacing: 0;
  white-space: nowrap;
  background: #ef44441f;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

.cp-tag.ok {
  color: #16a34a;
  background: #22c55e1f;
}

.cp-meta {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
}

.cp-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.cp-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.billing-card {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  margin-bottom: 16px;
  padding: 20px 24px 22px;
}

.bc-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  display: flex;
}

.bc-head h3 {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.bc-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.payment-method {
  background: var(--surface-2);
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.pm-mark {
  flex-shrink: 0;
}

.pm-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.pm-last4 {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 500;
}

.pm-sub {
  color: var(--text-muted);
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  display: flex;
}

.invoices {
  background: var(--surface-2);
  border-radius: 10px;
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.inv-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 1fr 1.4fr 1fr .8fr .9fr .7fr;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  display: grid;
}

.inv-row:last-child {
  border-bottom: none;
}

.inv-row.head {
  color: var(--text-muted);
  letter-spacing: -.005em;
  text-transform: uppercase;
  background: #00000005;
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 600;
}

.inv-row .r {
  text-align: right;
}

.inv-row .mono {
  font-family: var(--font-mono);
}

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

.inv-status {
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
}

.inv-status .dot {
  border-radius: 999px;
  width: 6px;
  height: 6px;
}

.inv-status.paid {
  color: #16a34a;
  background: #22c55e1f;
}

.inv-status.paid .dot {
  background: #16a34a;
}

.inv-status.refunded {
  background: var(--surface);
  color: var(--text-secondary);
}

.inv-status.refunded .dot {
  background: var(--text-secondary);
}

.invoices-empty {
  text-align: center;
  color: var(--text-muted);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px;
  font-size: 13.5px;
  display: flex;
}

.billing-help {
  background: var(--primary-soft);
  border-radius: 12px;
  gap: 14px;
  margin-top: 8px;
  padding: 18px 22px;
  display: flex;
}

.billing-help .bh-ic {
  width: 36px;
  height: 36px;
  color: var(--primary);
  background: #5b6cff29;
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.billing-help h4 {
  font-family: var(--font-heading);
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.billing-help p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
}

.billing-help a {
  color: var(--primary);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.confirm-modal {
  background: var(--surface);
  width: min(440px, 100%);
  box-shadow: var(--shadow-pop);
  text-align: center;
  border-radius: 18px;
  padding: 32px 32px 28px;
  animation: .2s cubic-bezier(.2, .9, .3, 1.1) authPopIn;
}

.cm-ic {
  border-radius: 999px;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
}

.tone-danger .cm-ic {
  color: var(--danger);
  background: #ef44441f;
}

.tone-primary .cm-ic {
  background: var(--primary-soft);
  color: var(--primary);
}

.confirm-modal h3 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.cm-body {
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-size: 13.5px;
  line-height: 1.6;
}

.cm-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.cm-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

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

.btn.danger-solid {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 1px 0 #00000014, inset 0 0 0 1px var(--danger);
}

.btn.danger-solid:hover {
  background: #dc2626;
}

.nudge-modal {
  background: var(--surface);
  width: min(440px, 100%);
  box-shadow: var(--shadow-pop);
  text-align: center;
  border-radius: 20px;
  padding: 0 32px 28px;
  animation: .2s cubic-bezier(.2, .9, .3, 1.1) authPopIn;
  position: relative;
  overflow: hidden;
}

.nudge-deco {
  background: radial-gradient(220px 140px at 50% 100%, #ff6fa873, #0000 70%), linear-gradient(160deg, #5b6cff 0%, #7a5bff 60%, #c75bff 100%);
  place-items: center;
  height: 120px;
  margin: 0 -32px 8px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.nudge-glow {
  background: radial-gradient(#fff6, #0000 70%);
  border-radius: 999px;
  width: 200px;
  height: 200px;
  animation: 4s ease-in-out infinite authFloat;
  position: absolute;
  top: -60px;
}

.nudge-crown {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  background: #ffffff38;
  border-radius: 999px;
  place-items: center;
  width: 60px;
  height: 60px;
  display: grid;
  position: relative;
  box-shadow: inset 0 0 0 1px #ffffff4d, 0 8px 24px #0000002e;
}

.nudge-tag {
  color: var(--primary);
  background: var(--primary-soft);
  letter-spacing: .02em;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.nudge-modal h3 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.nudge-modal > p {
  color: var(--text-secondary);
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
}

.nudge-feats {
  background: var(--surface-2);
  text-align: left;
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
  padding: 14px 16px;
  list-style: none;
  display: flex;
}

.nudge-feats li {
  color: var(--text-primary);
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  display: flex;
}

.nudge-feats .ic {
  color: #16a34a;
  background: #22c55e24;
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  width: 16px;
  height: 16px;
  display: grid;
}

.nudge-price {
  margin-bottom: 18px;
}

.np-from {
  color: var(--text-secondary);
  font-size: 13px;
}

.np-from strong {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
}

.nudge-actions {
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  display: grid;
}

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

.nudge-actions .btn.primary {
  background: linear-gradient(135deg, var(--primary), #7a5bff);
  box-shadow: 0 6px 16px #5b6cff47;
}

.user-chip .plan-mini-tag {
  background: linear-gradient(135deg, var(--primary), #7a5bff);
  color: #fff;
  letter-spacing: .01em;
  border-radius: 999px;
  flex-shrink: 0;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
}

.user-plan-row {
  background: var(--surface-2);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  margin: 4px 6px;
  padding: 10px 12px;
  display: flex;
}

.user-plan-row.pro {
  background: linear-gradient(135deg, var(--primary-soft), #7a5bff1a);
}

.upr-lbl {
  color: var(--text-muted);
  margin-bottom: 2px;
  font-size: 11px;
}

.upr-name {
  font-family: var(--font-heading);
  color: var(--text-primary);
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
}

.user-plan-row.pro .upr-name {
  color: var(--primary);
}

.guide {
  background: radial-gradient(900px 600px at 82% -12%, #ff6fa821, transparent 60%), radial-gradient(720px 520px at -12% 26%, #5b6cff1c, transparent 60%), var(--bg);
  height: 100vh;
  overflow: auto;
}

.guide .landing-nav .active-link {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.guide-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 40px 36px;
}

.guide-hero .hero-eyebrow {
  margin: 0 auto 22px;
}

.guide-hero h1 {
  font-family: var(--font-heading);
  letter-spacing: -.02em;
  margin: 0 0 18px;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.06;
}

.guide-hero h1 .accent {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent-pink) 100%);
  color: #0000;
  -webkit-background-clip: text;
  background-clip: text;
}

.guide-hero-sub {
  color: var(--text-secondary);
  text-wrap: pretty;
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 17px;
  line-height: 1.6;
}

.guide-hero-ctas {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  display: flex;
}

.guide-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 40px;
}

.guide-section-head {
  text-align: center;
  margin: 24px 0 30px;
}

.guide-section-head h2 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.guide-section-head p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
}

.steps {
  flex-direction: column;
  gap: 22px;
  display: flex;
}

.step-row {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 36px;
  padding: 30px 34px;
  display: grid;
}

.step-row.flip .step-text {
  order: 2;
}

.step-row.flip .shot {
  order: 1;
}

@media (max-width: 820px) {
  .step-row, .step-row.flip {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .step-row.flip .step-text {
    order: 1;
  }

  .step-row.flip .shot {
    order: 2;
  }
}

.step-num {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  display: inline-flex;
}

.step-num .ic {
  background: var(--primary-soft);
  width: 38px;
  height: 38px;
  color: var(--primary);
  border-radius: 11px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.step-num .num {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.step-text h3 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.step-text p {
  color: var(--text-secondary);
  text-wrap: pretty;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.step-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.badge-chip {
  background: var(--text-secondary);
  color: #fff;
  letter-spacing: .02em;
  vertical-align: middle;
  border-radius: 999px;
  align-items: center;
  height: 19px;
  margin: 0 1px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  transform: translateY(-1px);
}

.badge-chip.new {
  background: var(--accent-pink);
}

.badge-chip.sold {
  background: var(--text-muted);
}

.shot {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border), inset 0 0 0 1px var(--border);
  overflow: hidden;
}

.shot-chrome {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  display: flex;
}

.shot-chrome .dot {
  background: var(--border-strong);
  border-radius: 999px;
  width: 9px;
  height: 9px;
}

.shot-chrome .dot.r {
  background: #ff6159;
}

.shot-chrome .dot.y {
  background: #ffbd2e;
}

.shot-chrome .dot.g {
  background: #28c840;
}

.shot-body {
  aspect-ratio: 16 / 10;
  background-color: #fafbfd;
  background-image: repeating-linear-gradient(45deg, #5b6cff0d 0 10px, #5b6cff00 10px 20px);
  place-items: center;
  display: grid;
  position: relative;
}

.shot-body.shot-gallery {
  background-color: #fbf7fb;
}

.shot-body.shot-editor {
  background-color: #f7f9fd;
}

.shot-body.shot-props {
  background-color: #f8fbf9;
}

.shot-body.shot-topbar {
  aspect-ratio: 16 / 7;
  background-color: #f9f9fc;
}

.shot-inner {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
}

.shot-icon {
  width: 52px;
  height: 52px;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  background: #ffffffe6;
  border-radius: 14px;
  place-items: center;
  margin: 0 auto 12px;
  display: grid;
}

.shot-cap {
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-size: 13.5px;
  font-weight: 600;
}

.shot-note {
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: -.01em;
  font-size: 11px;
}

.layer-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  display: grid;
}

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

.layer-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 20px;
}

.layer-card .lc-ic {
  background: var(--primary-soft);
  width: 40px;
  height: 40px;
  color: var(--primary);
  border-radius: 11px;
  place-items: center;
  margin-bottom: 14px;
  display: grid;
}

.layer-card h3 {
  font-family: var(--font-heading);
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 700;
}

.layer-card p {
  color: var(--text-secondary);
  text-wrap: pretty;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.guide-tip {
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary-ring);
  color: var(--text-secondary);
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
}

.guide-tip strong {
  color: var(--text-primary);
  font-weight: 600;
}

.guide-tip .tip-mark {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  display: grid;
}

.faq {
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
}

.faq-row {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow .15s;
  overflow: hidden;
}

.faq-row.open {
  box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-sm);
}

.faq-q {
  width: 100%;
  color: var(--text-primary);
  text-align: left;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
}

.faq-q .faq-chev {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-row.open .faq-q .faq-chev {
  color: var(--primary);
  transform: rotate(180deg);
}

.faq-a-wrap {
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s;
  display: grid;
}

.faq-row.open .faq-a-wrap {
  grid-template-rows: 1fr;
}

.faq-a {
  color: var(--text-secondary);
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;
}

.faq-row.open .faq-a {
  padding-bottom: 18px;
}

.guide-cta {
  text-align: center;
  max-width: 1000px;
  margin: 24px auto 0;
  padding: 48px 40px 52px;
}

.guide-cta h2 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
}

.guide-cta p {
  color: var(--text-secondary);
  margin: 0 0 26px;
  font-size: 16px;
}

.guide-foot {
  text-align: center;
  color: var(--text-muted);
  padding: 30px 40px 48px;
  font-size: 12.5px;
}

html, body {
  height: 100%;
}

.mini-tpl, .mini-tpl *, .template-card, .template-card *, .swatch, .pattern-swatch, .badge-options button, .font-options button {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=app_globals_0jn8.0u.css.map*/