/* REXXER auth pages — polished shared styles */
:root { --auth-ink:#171513; --auth-line:#e5e1d8; --auth-line-d:#c8c2b8; --auth-muted:#6d665e; --auth-err:#b73a3a; --auth-ok:#2c8a3a; }
.auth-page { padding: 40px 0 90px; }
.auth-shell { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; max-width: 960px; margin: 0 auto; }
.auth-shell.single { grid-template-columns: minmax(0,1fr); max-width: 520px; }
.auth-card { background:#fff; border:1px solid var(--auth-line); border-radius:12px; padding:40px 36px; box-shadow:0 2px 10px rgba(0,0,0,.02); }
.auth-card h2 { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:32px; font-weight:600; margin-bottom:8px; }
.auth-sub { color:var(--auth-muted); font-size:13px; margin-bottom:28px; }
.auth-field { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; position:relative; }
.auth-field label { font-size:12.5px; font-weight:600; color:var(--auth-ink); letter-spacing:.02em; }
.auth-field label .req { color:var(--auth-err); }
.auth-field input, .auth-field textarea, .auth-field select { width:100%; padding:12px 14px; border:1px solid var(--auth-line); border-radius:8px; font-size:14px; background:#fff; transition:all .15s; outline:none; }
.auth-field input:focus, .auth-field textarea:focus, .auth-field select:focus { border-color:var(--auth-ink); box-shadow:0 0 0 3px rgba(23,21,19,.08); }
.auth-field input:disabled { background:#f5f3ee; color:var(--auth-muted); }
.pw-wrap { position:relative; }
.pw-toggle { position:absolute; right:10px; bottom:10px; padding:4px 10px; background:transparent; border:1px solid var(--auth-line); border-radius:6px; font-size:11.5px; color:var(--auth-muted); cursor:pointer; }
.pw-toggle:hover { border-color:var(--auth-ink); color:var(--auth-ink); }
.auth-row { display:flex; justify-content:space-between; align-items:center; font-size:12.5px; margin:8px 0 20px; gap:12px; flex-wrap:wrap; }
.auth-check { display:inline-flex; align-items:center; gap:8px; cursor:pointer; user-select:none; }
.auth-check input { width:16px; height:16px; accent-color:var(--auth-ink); }
.auth-links { display:flex; gap:8px; color:var(--auth-muted); }
.auth-links a { color:var(--auth-muted); text-decoration:none; }
.auth-links a:hover { color:var(--auth-ink); text-decoration:underline; }
.auth-err { color:var(--auth-err); font-size:12.5px; margin-bottom:12px; min-height:16px; font-weight:500; }
.auth-btn { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; padding:14px 20px; border:1px solid transparent; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; transition:all .15s; text-decoration:none; font-family:inherit; }
.auth-btn-primary { background:var(--auth-ink); color:#fff; }
.auth-btn-primary:hover { background:#2c2620; }
.auth-btn-primary:disabled { opacity:.5; cursor:not-allowed; }
.auth-btn-outline { background:#fff; color:var(--auth-ink); border-color:var(--auth-line-d); }
.auth-btn-outline:hover { border-color:var(--auth-ink); }
.auth-btn-danger { background:var(--auth-err); color:#fff; }
.auth-btn-danger:hover { opacity:.9; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:22px 0 16px; color:var(--auth-muted); font-size:11.5px; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--auth-line); }
.auth-alt { display:flex; flex-direction:column; gap:8px; }
.auth-benefits { background:var(--auth-ink); color:#fff; border-radius:12px; padding:36px 32px; }
.auth-benefits h3 { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:24px; margin-bottom:22px; font-weight:600; }
.auth-benefits ul { list-style:none; padding:0; margin:0; }
.auth-benefits li { display:flex; align-items:baseline; gap:8px; padding:11px 0; border-bottom:1px solid rgba(255,255,255,.1); font-size:13.5px; color:rgba(255,255,255,.85); }
.auth-benefits li:last-child { border-bottom:none; }
.auth-benefits li b { color:#fff; }
.auth-benefits li span { color:#d4b864; }

/* Signup steps */
.signup-shell { max-width:640px; margin:0 auto; }
.signup-steps { list-style:none; padding:0; margin:0 0 32px; display:flex; justify-content:center; gap:12px; }
.signup-steps li { display:flex; align-items:center; gap:8px; font-size:13px; color:#b0a89e; font-weight:500; }
.signup-steps li span { width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#e5e1d8; color:#b0a89e; font-weight:700; font-size:13px; }
.signup-steps li.active { color:var(--auth-ink); }
.signup-steps li.active span { background:var(--auth-ink); color:#d4b864; }
.signup-steps li + li::before { content:''; width:24px; height:1px; background:#e5e1d8; margin-right:4px; }
.signup-step { background:#fff; border:1px solid var(--auth-line); border-radius:12px; padding:40px 36px; }
.signup-step h2 { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:28px; margin-bottom:8px; }

/* Terms UI */
.terms-all { display:flex; align-items:center; gap:12px; padding:14px 18px; margin-bottom:20px; background:var(--auth-ink); color:#fff; border-radius:8px; cursor:pointer; }
.terms-all input { width:20px; height:20px; accent-color:#d4b864; }
.terms-all b { font-size:14.5px; flex:1; }
.terms-all small { color:#d4b864; font-size:11.5px; }
.terms-item { display:flex; align-items:center; gap:10px; padding:12px 16px; border:1px solid var(--auth-line); border-radius:8px; margin-bottom:6px; font-size:13px; cursor:pointer; transition:all .15s; }
.terms-item:hover { border-color:var(--auth-line-d); background:#fafaf7; }
.terms-item input { width:18px; height:18px; accent-color:var(--auth-ink); }
.terms-item b { font-weight:500; flex:1; }
.terms-item small { color:var(--auth-muted); font-size:11.5px; }
.terms-item a { margin-left:auto; color:var(--auth-muted); font-size:11.5px; text-decoration:underline; }
.terms-preview { padding:10px 16px; margin:-2px 0 10px 30px; color:var(--auth-muted); font-size:11.5px; line-height:1.7; border-left:2px solid var(--auth-line); }

/* Field mini-button + inline messages */
.auth-field.with-check input { padding-right:110px; }
.mini-btn { position:absolute; right:8px; bottom:8px; padding:8px 14px; background:var(--auth-ink); color:#fff; border:none; border-radius:6px; font-size:11.5px; font-weight:600; cursor:pointer; transition:all .15s; }
.mini-btn:hover { background:#2c2620; }
.mini-btn:disabled { opacity:.5; cursor:not-allowed; }
.mini-btn-danger { background:var(--auth-err); }
.fld-msg { font-size:11.5px; color:var(--auth-muted); margin-top:2px; display:block; }
.fld-msg.ok { color:var(--auth-ok); }
.fld-msg.err { color:var(--auth-err); }
.pw-strength { margin:-8px 0 14px; }
.pw-strength .pw-bar { height:4px; background:#e5e1d8; border-radius:2px; overflow:hidden; margin-bottom:4px; }
.pw-strength .pw-bar span { display:block; height:100%; width:0; background:#c8c2b8; transition:all .2s; }
.pw-strength small { font-size:11.5px; color:var(--auth-muted); }

/* Signup done */
.step-done { text-align:center; }
.done-mark { color:var(--auth-ok); margin-bottom:16px; display:flex; justify-content:center; }
.done-actions { display:flex; gap:10px; justify-content:center; margin-top:24px; }
.done-actions .auth-btn { width:auto; padding-left:32px; padding-right:32px; }

/* Mypage */
.mypage-greeting { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid var(--auth-line); flex-wrap:wrap; }
.mypage-greeting h2 { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:36px; margin:6px 0 6px; }
.mypage-greeting .muted { color:var(--auth-muted); font-size:13px; }
.mypage-greeting small { font-size:11px; color:#b0a89e; letter-spacing:.18em; text-transform:uppercase; }
.member-badges { display:flex; gap:8px; }
.member-badges .pill { padding:6px 12px; border-radius:14px; font-size:12px; font-weight:600; background:var(--auth-ink); color:#d4b864; }
.member-badges .pill-alt { background:#fafaf7; color:var(--auth-muted); border:1px solid var(--auth-line); }
.mypage-section { margin-top:36px; }
.mypage-section-hd { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.mypage-section-hd h3 { font-size:16px; font-weight:700; }
.mypage-section-hd a { color:var(--auth-muted); font-size:12px; }
.summary-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.summary-card { display:flex; flex-direction:column; align-items:center; padding:22px 12px; background:#fff; border:1px solid var(--auth-line); border-radius:10px; text-decoration:none; color:var(--auth-ink); transition:all .15s; }
.summary-card:hover { border-color:var(--auth-ink); transform:translateY(-2px); box-shadow:0 4px 16px rgba(0,0,0,.05); }
.summary-card b { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:32px; font-weight:600; }
.summary-card span { font-size:12px; color:var(--auth-muted); margin-top:2px; }
.benefits-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.benefit-tile { background:#fafaf7; border:1px solid var(--auth-line); border-radius:10px; padding:20px; text-align:center; }
.benefit-tile small { display:block; font-size:11px; color:var(--auth-muted); letter-spacing:.06em; text-transform:uppercase; font-weight:600; margin-bottom:6px; }
.benefit-tile b { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:28px; font-weight:600; }
.benefit-tile span { font-size:12px; color:var(--auth-muted); margin-left:2px; }
.empty-block { padding:60px 24px; text-align:center; color:var(--auth-muted); background:#fafaf7; border-radius:10px; font-size:13px; }
.empty-block a { color:var(--auth-ink); font-weight:600; text-decoration:underline; }

/* Orders page */
.order-tabs { display:flex; gap:4px; }
.order-tabs button { padding:8px 16px; font-size:12.5px; background:transparent; border:1px solid var(--auth-line); border-radius:16px; color:var(--auth-muted); cursor:pointer; transition:all .15s; }
.order-tabs button:hover { border-color:var(--auth-line-d); }
.order-tabs button.active { background:var(--auth-ink); color:#fff; border-color:var(--auth-ink); }
.order-card { background:#fff; border:1px solid var(--auth-line); border-radius:10px; margin-bottom:12px; overflow:hidden; }
.order-card .order-head { display:flex; justify-content:space-between; padding:14px 20px; border-bottom:1px solid var(--auth-line); background:#fafaf7; font-size:12.5px; }
.order-card .order-head b { font-family:'SFMono-Regular','Consolas',monospace; font-size:12.5px; }
.order-card .muted { color:var(--auth-muted); }
.order-items { padding:8px 20px; }
.order-line { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f5f3ee; }
.order-line:last-child { border-bottom:none; }
.order-line img { width:60px; height:60px; object-fit:cover; border-radius:6px; background:#f5f3ee; }
.order-line small { font-size:10.5px; color:var(--auth-muted); letter-spacing:.08em; text-transform:uppercase; }
.order-line b { display:block; font-size:13.5px; margin:2px 0; }
.order-line span { font-size:12px; color:var(--auth-muted); }
.order-foot { display:flex; justify-content:space-between; align-items:center; padding:14px 20px; border-top:1px solid var(--auth-line); background:#fafaf7; font-size:13px; }
.order-foot b { font-weight:700; }
.order-actions { display:flex; gap:6px; }
.order-status { padding:5px 12px; border-radius:12px; font-size:11.5px; font-weight:600; }
.order-status.status-pending { background:#fdf3e0; color:#c87a16; }
.order-status.status-paid { background:#e8f4ec; color:#2c8a3a; }
.order-status.status-shipping { background:#e2eef9; color:#2c6db7; }
.order-status.status-done { background:#eef0f4; color:#5a6275; }
.order-status.status-cancel { background:#fbe9e9; color:#b73a3a; }

/* Addresses */
.addr-card { background:#fff; border:1px solid var(--auth-line); border-radius:10px; padding:20px 22px; margin-bottom:10px; }
.addr-card.is-default { border-color:var(--auth-ink); border-width:2px; padding:19px 21px; }
.addr-card-hd { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.addr-card-hd b { font-size:14px; }
.addr-card-hd .pill { background:var(--auth-ink); color:#d4b864; padding:3px 10px; border-radius:11px; font-size:10.5px; font-weight:700; }
.addr-card-body { font-size:13px; line-height:1.7; }
.addr-card-body .muted { color:var(--auth-muted); font-size:12.5px; }
.addr-card-actions { margin-top:12px; display:flex; gap:6px; }
.addr-card-actions .mini-btn { position:static; }
.addr-modal-bg { position:fixed; inset:0; background:rgba(15,17,21,.55); backdrop-filter:blur(2px); z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; }
.addr-modal-bg[hidden] { display:none; }
.addr-modal { background:#fff; border-radius:12px; max-width:520px; width:100%; max-height:90vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.addr-modal-hd { display:flex; justify-content:space-between; align-items:center; padding:20px 28px; border-bottom:1px solid var(--auth-line); }
.addr-modal-hd h3 { font-size:18px; }
.close-x { width:32px; height:32px; border-radius:6px; background:transparent; border:none; font-size:16px; color:var(--auth-muted); cursor:pointer; }
.close-x:hover { background:#f5f3ee; color:var(--auth-ink); }
.addr-form { padding:24px 28px; }
.addr-modal-ft { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; padding-top:20px; border-top:1px solid var(--auth-line); }
.addr-modal-ft .auth-btn { width:auto; padding-left:24px; padding-right:24px; }

/* Profile */
.profile-panels { display:flex; flex-direction:column; gap:16px; }
.profile-panels .auth-card { padding:32px 28px; }
.profile-panels .danger-zone { border-color:rgba(183,58,58,.3); background:#fef5f5; }
.profile-panels .danger-zone h2 { color:var(--auth-err); }
.profile-panels .danger-zone .muted { color:var(--auth-muted); font-size:12.5px; margin-bottom:14px; }
.profile-panels .danger-zone .auth-btn { width:auto; padding-left:28px; padding-right:28px; }

/* Find-id result */
.fi-result { padding:20px; background:var(--auth-ink); color:#fff; border-radius:10px; margin:14px 0; text-align:center; }
.fi-result b { display:block; font-size:11px; color:#d4b864; letter-spacing:.14em; text-transform:uppercase; margin-bottom:8px; }
.fi-id { font-family:'SFMono-Regular','Consolas',monospace; font-size:22px; font-weight:600; margin-bottom:14px; }
.fi-result .auth-btn { display:inline-flex; width:auto; padding-left:28px; padding-right:28px; }

/* Guest order result */
.go-result { margin-top:18px; }
.go-order { background:#fff; border:1px solid var(--auth-line); border-radius:10px; padding:22px 24px; }
.go-order-hd { display:flex; justify-content:space-between; padding:8px 0; font-size:13px; border-bottom:1px dashed var(--auth-line); }
.go-order-hd b { color:var(--auth-muted); font-weight:500; }
.go-order-items { padding:14px 0; }
.go-order-items > div { display:flex; justify-content:space-between; padding:6px 0; font-size:12.5px; color:var(--auth-muted); }
.go-order-items > div b { color:var(--auth-ink); }
.go-order-total { display:flex; justify-content:space-between; padding-top:14px; border-top:1px solid var(--auth-line); font-size:14px; }
.go-order-total strong { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:22px; color:var(--auth-ink); }
.go-status { padding:4px 12px; background:#e2eef9; color:#2c6db7; border-radius:12px; font-size:11.5px; font-weight:600; }

/* Order-complete */
.oc-shell { max-width:600px; margin:0 auto; background:#fff; border:1px solid var(--auth-line); border-radius:12px; padding:48px 40px; text-align:center; }
.oc-mark { color:var(--auth-ok); margin-bottom:16px; display:flex; justify-content:center; }
.oc-shell h2 { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:28px; margin-bottom:10px; font-weight:600; }
.oc-sub { color:var(--auth-muted); font-size:13.5px; margin-bottom:28px; }
.oc-info { text-align:left; }
.oc-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--auth-line); font-size:13.5px; }
.oc-row b { color:var(--auth-muted); font-weight:500; }
.oc-ono { font-family:'SFMono-Regular','Consolas',monospace; font-weight:700; }
.oc-amt { font-family:'Cormorant Garamond','Noto Sans KR',serif; font-size:22px; font-weight:600; }
.oc-bank { margin:20px 0; padding:18px 20px; background:#fafaf7; border-radius:8px; }
.oc-bank-title { font-size:11px; color:var(--auth-muted); letter-spacing:.14em; text-transform:uppercase; font-weight:700; margin-bottom:12px; }
.oc-bank-row { display:flex; align-items:center; gap:12px; padding:6px 0; font-size:13px; }
.oc-bank-row b { font-family:'SFMono-Regular','Consolas',monospace; flex:1; text-align:center; }
.oc-items { margin-top:22px; padding-top:20px; border-top:1px solid var(--auth-line); }
.oc-item { display:flex; align-items:center; gap:12px; padding:10px 0; font-size:13px; }
.oc-item img { width:56px; height:56px; object-fit:cover; border-radius:6px; }
.oc-item div { flex:1; text-align:left; }
.oc-item small { font-size:10.5px; color:var(--auth-muted); }
.oc-item b { display:block; font-size:13px; margin:2px 0; }
.oc-item strong { font-weight:600; }
.oc-actions { display:flex; gap:10px; justify-content:center; margin-top:28px; }
.oc-actions .auth-btn { width:auto; padding-left:32px; padding-right:32px; }

/* Side nav */
.side-nav a[data-auth-logout] { color:var(--auth-err); margin-top:12px; padding-top:12px; border-top:1px solid var(--auth-line); }

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-benefits { order:-1; padding:24px; }
  .summary-cards, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .signup-steps li { font-size:11.5px; }
  .signup-steps li + li::before { display:none; }
  .signup-step { padding:28px 22px; }
  .auth-card { padding:28px 22px; }
}
