/* Mission page — LINE Shopping / Gmarket professional UI */
.mission-page {
  --sp: #00C01E;
  --sp2: #00a818;
  --sp-dark: #009918;
  --gold: #ffb300;
  --gold2: #ffcc33;
  --ticket1: #ffb300;
  --ticket2: #ff8a3d;
  --ink: #151515;
  --muted: #575757;
  --line: #ebedf0;
  --red: #f23648;
  --green: #21a67a;
  background: var(--primary2);
}

.mission-page .footer,
.mission-page #site-footer { display: none; }

.mission-page #site-main { padding: 0; }

.ms-wrap {
  max-width: 480px;
  margin: 0 auto;
}

/* ── Hero header ── */
.ms-hero {
  background: linear-gradient(165deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: calc(12px + env(safe-area-inset-top, 0)) 16px 28px;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 24px rgba(0, 153, 24, 0.22);
}

.ms-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 4px 0;
}

.ms-brand {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.ms-brand-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.ms-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ab-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(6px);
}
.ab-btn:hover { background: rgba(255, 255, 255, 0.35); }

/* Premium badge next to logo */
.ms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}
.ms-hero-badge i {
  color: #ffe082;
  font-size: 12px;
}

.ms-verified {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  font-weight: 500;
}
.ms-verified i { 
  color: #4ade80; 
  font-size: 14px; 
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.ms-verified .sep { 
  opacity: 0.4;
  font-weight: 300;
}

.ms-body {
  padding: 14px 14px 88px;
  margin-top: -12px;
}

/* ── Level ticket ── */
.ms-ticket {
  position: relative;
  background: linear-gradient(135deg, var(--ticket1), var(--ticket2));
  border-radius: 18px;
  padding: 20px 20px 18px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(200, 90, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.ms-ticket::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.ms-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.lvl-badge {
  background: rgba(255, 255, 255, 0.96);
  color: #e65100;
  font-weight: 700;
  border-radius: 10px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.lvl-badge i { font-size: 12px; color: #ffb300; }
.ms-cur {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.9;
  font-weight: 600;
}
.ms-ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.ms-ticket .lbl { font-size: 11px; opacity: 0.9; margin-bottom: 4px; }
.ms-ticket .val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-family: Roboto, sans-serif;
}
.ms-ticket .val.small { font-size: 20px; }
.ms-ticket .unit { font-size: 12px; font-weight: 500; opacity: 0.88; margin-left: 2px; }

.ms-progress { margin-top: 14px; position: relative; z-index: 1; }
.ms-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  overflow: hidden;
}
.ms-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff, #fff8e1);
  border-radius: 100px;
  transition: width 0.6s ease;
}
.ms-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.92;
}

/* ── Stats card ── */
.ms-stats {
  background: #fff;
  border-radius: 18px;
  margin-top: 14px;
  padding: 18px 16px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.ms-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.st-item { padding: 12px 8px; position: relative; }
.st-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--line);
}
.st-item:nth-child(2n)::after { display: none; }
.st-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}
.st-ic.c1 { background: #e8f9ec; color: var(--primary); }
.st-ic.c2 { background: #fff8e6; color: #f59e0b; }
.st-ic.c3 { background: #eef6ff; color: #003594; }
.st-ic.c4 { background: #ffe9ec; color: var(--red); }
.st-item .st-lbl { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.st-item .st-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  font-family: Roboto, sans-serif;
}
.st-item.red .st-val { color: var(--red); }

.ms-divider { height: 1px; background: var(--line); margin: 14px 0; }

.ms-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding: 0 2px;
}
.ms-rate-row b { color: #e65100; font-weight: 600; }

.ms-start-wrap { margin-top: 16px; text-align: center; position: relative; z-index: 2; }
.ms-start {
  background: linear-gradient(180deg, #ffc107, #ff8f00);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 0;
  width: 100%;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 22px rgba(255, 143, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.ms-start:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.ms-start:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
  color: #64748b;
  transform: none;
}

/* Trust + hours */
.ms-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.ms-trust .tb {
  background: #fff;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.ms-trust .tb i { font-size: 18px; color: var(--primary); margin-bottom: 4px; display: block; }
.ms-trust .tb small { font-size: 10.5px; color: var(--muted); display: block; line-height: 1.35; }
.ms-trust .tb b { font-size: 12px; color: var(--ink); display: block; }

.ms-hours {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.ms-hours .h-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary2);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.ms-hours .h-main { flex: 1; }
.ms-hours .h-title { font-size: 13px; color: var(--ink); font-weight: 600; }
.ms-hours .h-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ms-hours .h-status {
  font-size: 11px;
  color: var(--primary-dark);
  background: var(--primary2);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ms-hours .h-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: ms-pulse 2s infinite;
}
@keyframes ms-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ms-tip {
  background: #fff;
  border-radius: 14px;
  margin-top: 12px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.ms-tip h4 {
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.ms-tip h4 i { color: var(--primary); }
.ms-tip .tip-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fffbeb;
  border-radius: 10px;
  border-left: 3px solid #f59e0b;
  margin-top: 10px;
  font-size: 12px;
  color: #78350f;
}
.ms-tip .tip-note i { color: #f59e0b; flex-shrink: 0; margin-top: 2px; }

/* Empty state */
.ms-empty {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px 26px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  margin-top: 4px;
}
.ms-empty .ic {
  width: 82px;
  height: 82px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary2), #c8f5d4);
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
}
.ms-empty h3 { font-size: 18px; color: var(--ink); margin: 0 0 6px; font-weight: 700; }
.ms-empty p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0 0 16px; }
.ms-empty .badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary2);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  border: 1px solid #b8efc4;
}
.ms-empty .steps {
  text-align: left;
  background: var(--gray1, #f7f8fa);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 18px;
  border: 1px solid var(--line);
}
.ms-empty .steps .st { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.ms-empty .steps .st + .st { border-top: 1px dashed var(--line); }
.ms-empty .steps .n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.ms-empty .steps .tx { font-size: 13px; color: var(--ink); line-height: 1.55; }
.ms-empty .steps .tx small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.ms-empty .ctc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.ms-empty .ctc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s;
}
.ms-empty .ctc .line { background: #06c755; color: #fff; }
.ms-empty .ctc .wa { background: #25d366; color: #fff; }
.ms-empty .ctc-sec { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-decoration: none; }
.ms-empty .ctc-sec:hover { color: var(--primary); }

/* Order modal */
.ord-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 20, 0.55);
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ord-modal.open { display: flex; pointer-events: auto; }
.ord-box {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 460px;
  padding: 22px 20px 24px;
  animation: ms-slideUp 0.25s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes ms-slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (min-width: 500px) {
  .ord-modal { align-items: center; padding: 16px; }
  .ord-box { border-radius: 20px; max-width: 400px; }
}
.ord-grab { width: 40px; height: 4px; background: #e5e7eb; border-radius: 100px; margin: -6px auto 14px; }
.ord-head { font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.ord-head i { color: var(--primary); }
.ord-date { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.ord-date .ord-no { margin-left: auto; background: #f3f4f6; padding: 2px 8px; border-radius: 100px; font-family: Roboto, monospace; }
.ord-prod {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--gray1, #f7f8fa);
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.ord-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #eee; flex-shrink: 0; }
.ord-prod .name { flex: 1; font-size: 13px; color: var(--ink); line-height: 1.45; font-weight: 500; }
.ord-prod .store { font-size: 11px; color: var(--muted); margin-top: 4px; }
.ord-prod .store i { color: var(--primary); }
.ord-sum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 16px;
  background: var(--primary2);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #c8f0d0;
}
.ord-sum > div:first-child { border-right: 1px dashed #a8ddb4; }
.ord-sum .lbl { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.ord-sum .val { font-size: 20px; font-weight: 700; color: var(--ink); font-family: Roboto, sans-serif; }
.ord-sum .val.comm { color: var(--primary-dark); }
.ord-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ord-btns button {
  border: none;
  padding: 13px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.ord-btns .cancel { background: #fff; color: #475569; border: 1.5px solid #e5e7eb; }
.ord-btns .confirm {
  background: linear-gradient(180deg, #ffc107, #ff8f00);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 143, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ord-done { text-align: center; padding: 16px 8px 4px; }
.ord-done .success-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary2);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.ord-done .success-ring i { font-size: 36px; color: var(--primary); }
.ord-done h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.ord-done p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ord-done .commish { font-size: 28px; color: var(--primary-dark); font-weight: 700; font-family: Roboto, sans-serif; }

/* Commission history modal */
.ch-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(20, 30, 20, 0.55);
  backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.ch-modal.open { display: flex; pointer-events: auto; }
.ch-box {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: ms-slideUp 0.25s ease-out;
}
@media (min-width: 500px) {
  .ch-modal { align-items: center; padding: 16px; }
  .ch-box { border-radius: 20px; max-width: 440px; }
}
.ch-head {
  padding: 18px 20px 16px;
  color: #fff;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.ch-head .close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}
.ch-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ch-sum-item {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
}
.ch-sum-item .lbl { font-size: 11px; opacity: 0.85; }
.ch-sum-item .val { font-size: 19px; font-weight: 700; font-family: Roboto, sans-serif; margin-top: 2px; }
.ch-list { flex: 1; overflow-y: auto; padding: 8px 12px 18px; background: #fafafa; }
.ch-empty { text-align: center; padding: 40px 16px; color: var(--muted); font-size: 13px; }
.ch-empty i { font-size: 38px; color: #d1d5db; margin-bottom: 10px; display: block; }
.ch-loading { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }
.ch-loading i { font-size: 22px; color: var(--primary); }
.ch-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
}
.ch-item .img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f3f4f6 center/cover no-repeat;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #9ca3af;
}
.ch-item .name {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ch-item .meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.ch-item .meta .tag { background: var(--primary2); color: var(--primary-dark); padding: 1px 6px; border-radius: 100px; font-size: 10px; font-weight: 600; }
.ch-item .right .comm { font-size: 15px; font-weight: 700; color: var(--green); font-family: Roboto, sans-serif; }

.service-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid rgba(255, 255, 255, 0.9);
}
