/* ==========================================================================
   FLOWUP design system — "Order Page Type D"
   ========================================================================== */

:root {
    --fu-accent:        #FF4A22;
    --fu-accent-dark:   #E63C16;
    --fu-accent-deep:   #C7300F;
    --fu-accent-soft:   #FFEDE7;
    --fu-accent-tint:   #FFF8F5;
    --fu-accent-light:  #FF9576;

    --fu-ink:           #111214;
    --fu-ink-2:         #3F4145;
    --fu-ink-3:         #6A6D74;
    --fu-ink-4:         #A0A3AA;
    --fu-ink-5:         #BFC2C8;

    --fu-bg:            #F1F2F4;
    --fu-surface:       #FFFFFF;
    --fu-surface-2:     #FAFAFB;
    --fu-surface-3:     #F7F8F9;
    --fu-chip:          #EDEEF1;

    --fu-line:          rgba(17, 18, 20, 0.10);
    --fu-line-2:        rgba(17, 18, 20, 0.07);
    --fu-line-strong:   rgba(17, 18, 20, 0.14);

    --fu-mono:          'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --fu-sans:          'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Malgun Gothic', sans-serif;

    --fu-radius:        18px;
    --fu-radius-sm:     11px;
    --fu-radius-xs:     8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    background: var(--fu-bg);
    color: var(--fu-ink);
    font-family: var(--fu-sans);
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}

a { color: var(--fu-accent); text-decoration: none; }
a:hover { color: var(--fu-accent-deep); text-decoration: underline; }

input, textarea, button, select { font-family: inherit; color: inherit; font-size: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--fu-accent); outline-offset: -1px; }
::placeholder { color: var(--fu-ink-4); }
textarea { resize: vertical; }

.fu-mono { font-family: var(--fu-mono); }
.fu-muted { color: var(--fu-ink-3); }
.fu-dim { color: var(--fu-ink-4); }
.fu-accent { color: var(--fu-accent); }
.fu-spacer { flex: 1; }
.fu-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ shell */

.fu-shell { min-height: 100vh; min-height: 100dvh; background: var(--fu-bg); }

.fu-header {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 32px;
    height: 60px;
    /* 본문(.fu-layout)은 max-width 1520px 중앙 정렬이라, 넓은 화면에서는 좌측 여백이
       (화면폭 - 1520)/2 + 28 로 커진다. 헤더도 같은 계산을 써야 로고와 LNB 가 한 선에 선다.
       배경/구분선은 전체 폭 그대로 유지된다. */
    padding: 0 calc(max(0px, (100% - 1520px)) / 2 + 28px);
    background: var(--fu-surface);
    border-bottom: 1px solid var(--fu-line);
    white-space: nowrap;
}

.fu-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fu-ink); }
.fu-brand:hover { text-decoration: none; color: var(--fu-ink); }
.fu-brand__mark {
    width: 24px; height: 24px; flex: none; border-radius: 9px;
    background: var(--fu-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fu-mono); font-size: 12px; font-weight: 700;
}
.fu-brand__name { font-family: var(--fu-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
.fu-brand__tag { font-size: 10px; color: var(--fu-ink-4); letter-spacing: 0.08em; padding-top: 2px; }

.fu-tabs { display: flex; align-items: center; gap: 2px; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
.fu-tabs::-webkit-scrollbar { display: none; }
.fu-tab {
    border: 0; background: transparent; color: var(--fu-ink-2);
    padding: 7px 12px; border-radius: 10px;
    font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
    text-decoration: none;
}
.fu-tab:hover { background: var(--fu-accent-tint); color: var(--fu-ink-2); text-decoration: none; }
.fu-tab.is-active { background: var(--fu-accent-soft); color: var(--fu-accent); }
.fu-tab.is-active:hover { background: var(--fu-accent-soft); color: var(--fu-accent); }

.fu-points {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px 6px 12px;
    border: 1px solid var(--fu-line); border-radius: 12px;
}
.fu-points__label { font-size: 11.5px; color: var(--fu-ink-3); letter-spacing: 0.02em; }
.fu-points__value { font-family: var(--fu-mono); font-size: 13px; font-weight: 700; }
.fu-points__cta {
    border: 0; background: var(--fu-ink); color: #fff;
    font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 8px; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.fu-points__cta:hover { background: var(--fu-accent); color: #fff; text-decoration: none; }

.fu-pill {
    border: 1px solid var(--fu-line-strong); background: var(--fu-surface); color: var(--fu-ink);
    font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.fu-pill:hover { border-color: var(--fu-ink); color: var(--fu-ink); text-decoration: none; }

.fu-burger {
    display: none; border: 1px solid var(--fu-line-strong); background: var(--fu-surface);
    width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
    align-items: center; justify-content: center; flex: none;
}
.fu-burger span { display: block; width: 16px; height: 1.5px; background: var(--fu-ink); position: relative; }
.fu-burger span::before, .fu-burger span::after {
    content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--fu-ink);
}
.fu-burger span::before { top: -5px; }
.fu-burger span::after { top: 5px; }

/* ------------------------------------------------------------------- grid */

.fu-layout {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr) 336px;
    gap: 28px;
    max-width: 1520px;
    margin: 0 auto;
    padding: 28px;
    align-items: start;
}
.fu-layout--narrow { grid-template-columns: 208px minmax(0, 1fr); }
.fu-layout--plain  { grid-template-columns: minmax(0, 1fr); max-width: 900px; }

/* ------------------------------------------------------------------- LNB */

.fu-lnb {
    display: flex; flex-direction: column; gap: 26px;
    position: sticky; top: 88px; align-self: start;
    /* 링크의 좌측 패딩(10px)만큼 당겨, 메뉴 글자가 헤더 로고와 같은 선에서 시작하게 한다.
       hover/active 배경의 여백은 그대로 유지된다. */
    margin-left: -10px;
}
.fu-lnb__group { display: flex; flex-direction: column; gap: 2px; }
.fu-lnb__title {
    font-family: var(--fu-mono); font-size: 10.5px; letter-spacing: 0.14em;
    color: var(--fu-ink-4); padding: 0 10px 8px;
}
.fu-lnb__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 10px; border-radius: 10px;
    font-size: 13.5px; font-weight: 500; color: var(--fu-ink-2);
}
.fu-lnb__link:hover { background: var(--fu-surface); color: var(--fu-ink-2); text-decoration: none; }
.fu-lnb__link.is-active { background: var(--fu-accent-soft); color: var(--fu-ink); font-weight: 600; }
.fu-lnb__link.is-active:hover { background: var(--fu-accent-soft); text-decoration: none; }
.fu-lnb__badge { font-family: var(--fu-mono); font-size: 11px; color: var(--fu-accent); }
.fu-lnb__help {
    border-top: 1px solid var(--fu-line); padding: 16px 10px 0;
    display: flex; flex-direction: column; gap: 6px;
}
.fu-lnb__help-title { font-size: 12.5px; font-weight: 600; color: var(--fu-ink); }
.fu-lnb__help-body { font-size: 12px; color: var(--fu-ink-3); line-height: 1.6; }

/* ------------------------------------------------------------------ main */

.fu-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.fu-page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; padding: 4px 2px 2px; flex-wrap: wrap;
}
.fu-page-head__text { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fu-eyebrow { font-family: var(--fu-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--fu-accent); }
.fu-page-head h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.fu-page-head p { margin: 0; font-size: 13.5px; color: var(--fu-ink-3); }
.fu-page-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.fu-control {
    border: 1px solid var(--fu-line-strong); background: var(--fu-surface);
    border-radius: var(--fu-radius-sm); padding: 9px 12px;
    font-size: 13px; font-weight: 500; cursor: pointer; color: var(--fu-ink);
    text-decoration: none;
}
.fu-control:hover { border-color: var(--fu-ink); color: var(--fu-ink); text-decoration: none; }

.fu-card {
    background: var(--fu-surface);
    border: 1px solid var(--fu-line);
    border-radius: var(--fu-radius);
}
.fu-card--pad { padding: 22px 24px 24px; }
.fu-card--flush { overflow: hidden; }

.fu-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fu-card--pad > .fu-card-head { margin-bottom: 14px; }
.fu-card--flush > .fu-card-head { padding: 22px 24px 16px; }
.fu-step {
    font-family: var(--fu-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
    color: #fff; background: var(--fu-accent); padding: 3px 6px; border-radius: 7px;
}
.fu-card-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.fu-card-head__hint { font-size: 12px; color: var(--fu-ink-4); }

.fu-textarea, .fu-input, .fu-select {
    width: 100%;
    border: 1px solid var(--fu-line-strong);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.75;
    background: var(--fu-surface-2);
    color: var(--fu-ink);
}
.fu-input, .fu-select { padding: 12px 14px; line-height: 1.4; }
.fu-select { background: var(--fu-surface); cursor: pointer; }

.fu-field { display: flex; flex-direction: column; gap: 7px; }
.fu-field__label { font-size: 12.5px; font-weight: 600; color: var(--fu-ink-2); }
.fu-field__hint { font-size: 12px; color: var(--fu-ink-4); }
.fu-field__error { font-size: 12px; color: var(--fu-accent); }

.fu-checkline { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fu-ink-2); cursor: pointer; }
.fu-checkline input { accent-color: var(--fu-accent); width: 14px; height: 14px; }

.fu-inline-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; gap: 12px; flex-wrap: wrap;
}
.fu-inline-meta__count { font-size: 12px; color: var(--fu-ink-3); }
.fu-inline-meta__count b { font-family: var(--fu-mono); font-weight: 700; color: var(--fu-ink); }

/* ------------------------------------------------------------ service rows */

.fu-svc-head, .fu-svc-row__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 132px 104px;
    gap: 16px;
}
.fu-svc-head {
    padding: 0 24px 10px;
    border-bottom: 1px solid var(--fu-line);
}
.fu-svc-head span {
    font-family: var(--fu-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--fu-ink-4);
}
.fu-svc-head span:nth-child(2), .fu-svc-head span:nth-child(4) { text-align: right; }
.fu-svc-head span:nth-child(3) { text-align: center; }

.fu-svc-row { border-bottom: 1px solid var(--fu-line-2); background: var(--fu-surface); box-shadow: inset 3px 0 0 transparent; }
.fu-svc-row.is-on { background: var(--fu-accent-tint); box-shadow: inset 3px 0 0 var(--fu-accent); }
.fu-svc-row.is-off { background: var(--fu-surface-3); }
.fu-svc-row.is-off .fu-svc-row__grid { opacity: 0.5; }
.fu-svc-row__grid { align-items: center; padding: 15px 24px; }

.fu-svc-id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.fu-svc-tile {
    width: 34px; height: 34px; flex: none; border-radius: var(--fu-radius-sm);
    background: var(--fu-chip); color: var(--fu-ink-3);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fu-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.fu-svc-row.is-on .fu-svc-tile { background: var(--fu-accent); color: #fff; }
.fu-svc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fu-svc-name-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fu-svc-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.fu-svc-desc { font-size: 12.5px; color: var(--fu-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fu-badge {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
    padding: 2px 6px; border-radius: 6px;
    background: var(--fu-accent-soft); color: var(--fu-accent);
}
.fu-badge--muted { background: #E9EAED; color: #8A867E; }

.fu-svc-unit { text-align: right; font-family: var(--fu-mono); font-size: 13px; font-weight: 500; }
.fu-svc-qty { display: flex; justify-content: center; }
.fu-svc-qty input {
    width: 100%; text-align: center;
    border: 1px solid var(--fu-line-strong); border-radius: 10px;
    padding: 9px 8px;
    font-family: var(--fu-mono); font-size: 13px; font-weight: 500;
    background: var(--fu-surface);
}
.fu-svc-qty input:disabled { background: var(--fu-surface-3); cursor: not-allowed; }
.fu-svc-amount { text-align: right; font-family: var(--fu-mono); font-size: 13.5px; font-weight: 700; color: var(--fu-ink-5); }
.fu-svc-row.is-on .fu-svc-amount { color: var(--fu-ink); }

.fu-svc-extra {
    display: none; flex-direction: column; gap: 12px;
    margin: 0 24px 18px; padding: 16px;
    background: var(--fu-surface);
    border: 1px solid rgba(255, 74, 34, 0.30);
    border-radius: 13px;
}
.fu-svc-row.is-on .fu-svc-extra { display: flex; }
.fu-svc-extra__title { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.fu-svc-extra__note { margin: 0; font-size: 12.5px; color: var(--fu-ink-3); line-height: 1.7; }
.fu-svc-extra textarea {
    width: 100%; border: 1px solid var(--fu-line-strong); border-radius: var(--fu-radius-sm);
    padding: 12px 14px; font-size: 13px; line-height: 1.7; background: var(--fu-surface-2);
}
.fu-svc-extra__foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--fu-ink-3); }

.fu-choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fu-choice {
    flex: 1; min-width: 96px; padding: 11px 0; border-radius: var(--fu-radius-sm);
    border: 1px solid var(--fu-line-strong); background: var(--fu-surface); color: var(--fu-ink-2);
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.fu-choice.is-active { background: var(--fu-accent-soft); color: var(--fu-accent); border-color: var(--fu-accent); }

.fu-volume {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 18px 24px; background: var(--fu-surface-3); flex-wrap: wrap;
}
.fu-volume__tiers { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fu-volume__label { font-family: var(--fu-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--fu-ink-4); }
.fu-volume__tier { font-size: 12.5px; color: var(--fu-ink-2); }
.fu-volume__tier b { color: var(--fu-accent); }
.fu-volume__state { font-size: 12.5px; color: var(--fu-ink-3); }
.fu-volume__state b { font-family: var(--fu-mono); font-weight: 700; color: var(--fu-ink); }
.fu-volume__state b.fu-rate { color: var(--fu-accent); }

/* ------------------------------------------------------------------ 요약 */

.fu-aside { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 12px; }

.fu-summary {
    border-radius: 20px; padding: 22px;
    background: var(--fu-ink); color: #fff; border: 1px solid var(--fu-ink);
}
.fu-summary__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.fu-summary__title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.fu-summary__count { font-family: var(--fu-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); }
.fu-summary__empty { margin: 0 0 20px; font-size: 12.5px; line-height: 1.8; color: rgba(255,255,255,0.55); }
.fu-summary__items { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.fu-summary__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fu-summary__item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fu-summary__item-name { font-size: 13px; font-weight: 600; }
.fu-summary__item-detail { font-family: var(--fu-mono); font-size: 11.5px; color: rgba(255,255,255,0.55); }
.fu-summary__item-amount { font-family: var(--fu-mono); font-size: 13px; font-weight: 500; white-space: nowrap; }
.fu-summary__line { height: 1px; background: rgba(255,255,255,0.14); margin-bottom: 14px; }
.fu-summary__row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; }
.fu-summary__row span:first-child { color: rgba(255,255,255,0.55); }
.fu-summary__row span:last-child { font-family: var(--fu-mono); }
.fu-summary__row--discount { margin-bottom: 16px; }
.fu-summary__row--discount span:last-child { color: var(--fu-accent-light); }
.fu-summary__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.fu-summary__total-label { font-size: 13px; font-weight: 600; }
.fu-summary__total-value { font-family: var(--fu-mono); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.fu-summary__actions { display: flex; flex-direction: column; gap: 8px; }

.fu-btn {
    border: 0; background: var(--fu-accent); color: #fff;
    padding: 15px 0; border-radius: 999px;
    font-size: 15px; font-weight: 700; cursor: pointer; width: 100%;
    text-align: center; text-decoration: none; display: block;
}
.fu-btn:hover { background: var(--fu-accent-dark); color: #fff; text-decoration: none; }
.fu-btn:disabled { background: #55575C; cursor: not-allowed; }
.fu-btn--ghost {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    padding: 13px 0; font-size: 13px; font-weight: 600;
}
.fu-btn--ghost:hover { background: transparent; border-color: var(--fu-accent-light); color: #fff; }
.fu-btn--dark { background: var(--fu-ink); }
.fu-btn--dark:hover { background: var(--fu-accent); }
.fu-btn--sm { padding: 11px 18px; font-size: 13px; width: auto; display: inline-block; }
/* 밝은 배경 위에서 쓰는 보조 버튼 (--ghost 는 어두운 카드 전용) */
.fu-btn--outline {
    background: var(--fu-surface); color: var(--fu-ink);
    border: 1px solid var(--fu-line-strong);
    padding: 13px 0; font-size: 14px; font-weight: 700;
}
.fu-btn--outline:hover { background: var(--fu-surface-3); color: var(--fu-ink); border-color: var(--fu-accent); text-decoration: none; }

.fu-linklist { background: var(--fu-surface); border: 1px solid var(--fu-line); border-radius: var(--fu-radius); overflow: hidden; }
.fu-linklist a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; font-size: 13px; font-weight: 600; color: var(--fu-ink);
    border-bottom: 1px solid var(--fu-line-2);
}
.fu-linklist a:last-child { border-bottom: 0; }
.fu-linklist a:hover { background: var(--fu-surface-3); color: var(--fu-ink); text-decoration: none; }
.fu-linklist a span { color: var(--fu-ink-4); }

.fu-note {
    padding: 14px 16px; border: 1px dashed rgba(17,18,20,0.16); border-radius: var(--fu-radius);
    font-size: 12px; color: var(--fu-ink-3); line-height: 1.75;
}

/* ---------------------------------------------------------------- reviews */

.fu-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fu-review {
    display: flex; flex-direction: column; gap: 8px; padding: 16px;
    border: 1px solid rgba(17,18,20,0.09); border-radius: 13px; background: var(--fu-surface-2);
}
.fu-review__top { display: flex; align-items: center; justify-content: space-between; }
.fu-review__stars { font-size: 12px; letter-spacing: 0.06em; color: var(--fu-accent); }
.fu-review__date { font-family: var(--fu-mono); font-size: 11px; color: var(--fu-ink-4); }
.fu-review__title { font-size: 13.5px; font-weight: 600; }
.fu-review__body { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--fu-ink-2); }
.fu-review__who { font-size: 11.5px; color: var(--fu-ink-4); }

/* ---------------------------------------------------------------- tables */

.fu-table { width: 100%; border-collapse: collapse; }
.fu-table th {
    text-align: left; padding: 0 16px 10px;
    font-family: var(--fu-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--fu-ink-4);
    font-weight: 400; white-space: nowrap;
}
.fu-table td { padding: 14px 16px; border-top: 1px solid var(--fu-line-2); font-size: 13px; vertical-align: middle; }
.fu-table tbody tr:hover { background: var(--fu-surface-2); }
.fu-table .fu-num { font-family: var(--fu-mono); text-align: right; white-space: nowrap; }
.fu-table__wrap { overflow-x: auto; }

.fu-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
    background: var(--fu-chip); color: var(--fu-ink-3); white-space: nowrap;
}
.fu-status--pending    { background: #FFF3E4; color: #B26A00; }
.fu-status--processing { background: var(--fu-accent-soft); color: var(--fu-accent); }
.fu-status--completed  { background: #E4F6EC; color: #16794A; }
.fu-status--failed,
.fu-status--canceled   { background: #FBE7E7; color: #B3261E; }

.fu-empty {
    padding: 56px 24px; text-align: center; color: var(--fu-ink-3); font-size: 13.5px; line-height: 1.8;
}
.fu-empty strong { display: block; color: var(--fu-ink); font-size: 15px; font-weight: 700; margin-bottom: 6px; }

.fu-alert {
    padding: 13px 16px; border-radius: 12px; font-size: 13px; line-height: 1.6;
    border: 1px solid transparent;
}
.fu-alert--error   { background: #FBE7E7; border-color: #F3C9C6; color: #B3261E; }
.fu-alert--success { background: #E4F6EC; border-color: #BFE6CF; color: #16794A; }
.fu-alert--info    { background: var(--fu-accent-soft); border-color: rgba(255,74,34,0.24); color: #B3350F; }

.fu-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.fu-stat { background: var(--fu-surface); border: 1px solid var(--fu-line); border-radius: var(--fu-radius); padding: 18px 20px; }
.fu-stat__label { font-family: var(--fu-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--fu-ink-4); }
.fu-stat__value { font-family: var(--fu-mono); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; }
.fu-stat__sub { font-size: 12px; color: var(--fu-ink-3); margin-top: 4px; }

.fu-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 8px 2px 28px;
    font-size: 11.5px; color: var(--fu-ink-4); line-height: 1.8; flex-wrap: wrap;
}
.fu-footer a { color: var(--fu-ink-3); }
.fu-footer__links { display: flex; gap: 14px; }

/* ------------------------------------------------------------------- auth */

.fu-auth {
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center; padding: 32px 20px;
}
.fu-auth__card {
    width: 100%; max-width: 400px;
    background: var(--fu-surface); border: 1px solid var(--fu-line); border-radius: 20px;
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 18px;
}
.fu-auth__brand { display: flex; align-items: center; gap: 9px; justify-content: center; margin-bottom: 4px; }
.fu-auth__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-align: center; }
.fu-auth__sub { margin: 0; font-size: 13px; color: var(--fu-ink-3); text-align: center; }
.fu-auth__foot { font-size: 12.5px; color: var(--fu-ink-3); text-align: center; }
.fu-auth__brand:hover { text-decoration: none; }
.fu-auth__brand .fu-brand__name { color: var(--fu-ink); }
.fu-auth__home {
    align-self: center;
    font-size: 12.5px; font-weight: 600; color: var(--fu-ink-3);
}
.fu-auth__home:hover { color: var(--fu-accent); text-decoration: none; }
.fu-auth__divider { display: flex; align-items: center; gap: 12px; color: var(--fu-ink-4); font-size: 11.5px; letter-spacing: 0.04em; }
.fu-auth__divider::before,
.fu-auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--fu-line); }
.fu-auth__demo-note {
    margin: 0; padding: 13px 15px;
    background: var(--fu-accent-tint); border: 1px solid var(--fu-accent-soft);
    border-radius: var(--fu-radius-sm);
    font-size: 12px; line-height: 1.75; color: var(--fu-ink-2);
}

/* --------------------------------------------------------------- 체험 계정 */

.fu-demobar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 11px calc(max(0px, (100% - 1520px)) / 2 + 28px);
    background: var(--fu-ink); color: #fff;
    font-size: 12.5px; line-height: 1.6;
}
.fu-demobar__tag {
    flex: none;
    padding: 4px 9px; border-radius: 999px;
    background: var(--fu-accent); color: #fff;
    font-family: var(--fu-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
}
.fu-demobar__text { flex: 1; min-width: 220px; color: rgba(255,255,255,0.82); }
.fu-demobar__cta {
    flex: none;
    padding: 8px 15px; border-radius: 999px;
    background: #fff; color: var(--fu-ink);
    font-size: 12.5px; font-weight: 700;
}
.fu-demobar__cta:hover { background: var(--fu-accent); color: #fff; text-decoration: none; }
.fu-badge--demo { background: var(--fu-ink); color: #fff; border-color: var(--fu-ink); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1279px) {
    .fu-layout { grid-template-columns: 200px minmax(0, 1fr); }
    .fu-aside { position: static; grid-column: 1 / -1; }
    .fu-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .fu-header { gap: 14px; padding: 0 16px; }
    .fu-tabs { display: none; }
    .fu-burger { display: flex; }
    .fu-points__label { display: none; }
    .fu-brand__tag { display: none; }

    .fu-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 16px 32px; }
    .fu-lnb {
        position: fixed; inset: 60px 0 auto 0; z-index: 25;
        background: var(--fu-surface); border-bottom: 1px solid var(--fu-line);
        padding: 18px 16px 22px; gap: 18px;
        max-height: calc(100dvh - 60px); overflow-y: auto;
        display: none;
        margin-left: 0; /* 모바일은 전체폭 드로어라 데스크톱 정렬 보정이 필요 없다 */
    }
    .fu-lnb.is-open { display: flex; }

    .fu-mobile-tabs { display: flex; }

    .fu-page-head h1 { font-size: 26px; }

    .fu-svc-head { display: none; }
    .fu-svc-row__grid {
        grid-template-columns: minmax(0, 1fr) 108px;
        grid-template-areas: 'id qty' 'meta meta';
        row-gap: 12px; padding: 15px 16px;
    }
    .fu-svc-id { grid-area: id; }
    .fu-svc-qty { grid-area: qty; }
    .fu-svc-unit, .fu-svc-amount { grid-area: meta; text-align: left; }
    .fu-svc-unit::before { content: '단가 '; font-family: var(--fu-sans); color: var(--fu-ink-4); }
    .fu-svc-amount { text-align: right; margin-top: -22px; }
    .fu-svc-amount::before { content: '금액 '; font-family: var(--fu-sans); color: var(--fu-ink-4); font-weight: 400; }
    .fu-svc-desc { white-space: normal; }
    .fu-svc-extra { margin: 0 16px 16px; }

    .fu-card--pad { padding: 18px 16px 20px; }
    .fu-card--flush > .fu-card-head { padding: 18px 16px 14px; }
    .fu-volume { padding: 16px; gap: 12px; }
    .fu-reviews { grid-template-columns: minmax(0, 1fr); }
    .fu-footer { padding-bottom: 20px; }
}

/* 좁은 화면에서는 마이페이지 대신 LNB 의 「설정」을 쓴다 */
@media (max-width: 620px) {
    .fu-header > .fu-pill { display: none; }
    .fu-brand__name { font-size: 13px; letter-spacing: 0.1em; }
}

/* 모바일 하단 고정 주문 바 */
.fu-stickybar { display: none; }
@media (max-width: 900px) {
    .fu-stickybar {
        position: sticky; bottom: 0; z-index: 20;
        display: flex; align-items: center; gap: 12px;
        margin: 0 -16px -32px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: var(--fu-surface); border-top: 1px solid var(--fu-line);
    }
    .fu-stickybar__total { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .fu-stickybar__label { font-size: 11px; color: var(--fu-ink-3); }
    .fu-stickybar__value { font-family: var(--fu-mono); font-size: 18px; font-weight: 700; }
    .fu-stickybar .fu-btn { width: auto; flex: 1; padding: 13px 0; font-size: 14px; }
}
