/* ============================================================
   eBay Seller Hub — store / products / orders / my
   + invite gate & seller agreement
   ============================================================ */
:root {
  --sk-text: #191919;
  --sk-sub: #707070;
  --sk-line: #e5e5e5;
  --sk-blue: #3665f3;
  --sk-blue-dark: #2b50c8;
  --sk-blue-soft: #eef3ff;
  --sk-yellow-soft: #fff6dc;
  --sk-green: #2e8b0d;
  --sk-green-soft: #eef8e8;
  --sk-red: #e53238;
}

.sk-page { min-height: 100vh; background: #f7f7f7; color: var(--sk-text); padding-bottom: 24px; }
.sk-page--tab { padding-bottom: 78px; }
.sk-white { background: #fff; }

/* ---------- store hero ---------- */
.sk-hero { background: #fff; padding: 18px 16px 0; border-bottom: 1px solid var(--sk-line); }
.sk-hero-row { display: flex; align-items: center; gap: 12px; }
.sk-shop-avatar {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: var(--sk-blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; letter-spacing: -0.4px;
}
.sk-shop-name { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; display: flex; align-items: center; gap: 8px; }
.sk-shop-meta { margin-top: 5px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sk-sub); }
.sk-bell { margin-left: auto; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--sk-text); position: relative; }
.sk-bell .dot { position: absolute; top: 7px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--sk-red); border: 1.5px solid #fff; }

.sk-steps { position: relative; display: flex; margin: 26px -16px 0; padding-bottom: 22px; }
.sk-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 2; }
.sk-step .dot {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #c7c7c7;
  box-shadow: 0 0 0 5px #fff; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.sk-step .dot.on { background: var(--sk-blue); border-color: var(--sk-blue); }
.sk-step .dot.on::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.sk-step span { font-size: 11.5px; color: var(--sk-sub); text-align: center; line-height: 1.3; padding: 0 4px; }
.sk-step.done span { color: var(--sk-text); font-weight: 600; }
.sk-steps .line { position: absolute; top: 9px; height: 2px; background: #e0e0e0; z-index: 1; }
.sk-steps .line.l1 { left: 16.6%; width: 33.3%; }
.sk-steps .line.l2 { left: 50%; width: 33.3%; }
.sk-steps .line.on { background: var(--sk-blue); }

.sk-auth-card {
  margin: 14px 16px 0; background: var(--sk-blue-soft); border: 1px solid #dbe5ff; border-radius: 12px;
  padding: 18px; text-align: center;
}
.sk-auth-card p { font-size: 13.5px; line-height: 1.6; color: #2b3a67; }
.sk-auth-card button {
  margin-top: 14px; height: 40px; padding: 0 22px; border-radius: 20px;
  background: var(--sk-blue); color: #fff; font-size: 14px; font-weight: 600;
}

.sk-today { margin-top: 12px; background: #fff; padding: 20px 16px 6px; border-top: 1px solid var(--sk-line); border-bottom: 1px solid var(--sk-line); }
.sk-today h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 14px; }
.sk-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-stat {
  background: #fff; border: 1px solid var(--sk-line); border-radius: 10px;
  padding: 18px 12px 14px; text-align: left;
}
.sk-stat .v { font-size: 23px; font-weight: 700; letter-spacing: -0.7px; font-variant-numeric: tabular-nums; }
.sk-stat .k { margin-top: 8px; font-size: 12px; color: var(--sk-sub); display: flex; align-items: center; gap: 6px; }
.sk-stat .k svg { width: 14px; height: 14px; opacity: 0.75; color: var(--sk-blue); }

/* ---------- my ---------- */
.sk-my-hero { background: #fff; padding: 20px 16px 22px; border-bottom: 1px solid var(--sk-line); }
.sk-my-label { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sk-blue); }
.sk-my-row { display: flex; align-items: flex-start; margin-top: 14px; gap: 12px; }
.sk-my-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; background: var(--sk-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
}
.sk-my-name { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.sk-my-id { margin-top: 7px; font-size: 13px; color: var(--sk-sub); display: flex; align-items: center; gap: 8px; }
.sk-my-id button { display: flex; color: var(--sk-sub); }
.sk-my-badge { margin-left: auto; text-align: center; }
.sk-my-badge .lbl { font-size: 10.5px; color: var(--sk-sub); margin-top: 2px; }
.sk-progress { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.sk-progress .pct { min-width: 48px; font-size: 13px; font-weight: 700; color: var(--sk-blue); font-variant-numeric: tabular-nums; }
.sk-progress .bar { flex: 1; height: 8px; border-radius: 4px; background: #ececec; overflow: hidden; }
.sk-progress .bar i { display: block; height: 100%; background: var(--sk-blue); border-radius: 4px; }
.sk-progress .refresh { color: var(--sk-sub); display: flex; }
.sk-capital { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--sk-sub); }
.sk-capital b { color: var(--sk-text); font-weight: 700; }

.sk-balance { margin: 12px 16px 0; background: #fff; border: 1px solid var(--sk-line); border-radius: 12px; padding: 18px; }
.sk-balance .label { font-size: 13px; color: var(--sk-sub); }
.sk-balance .amount { font-size: 34px; font-weight: 700; letter-spacing: -1.2px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sk-balance .divider { height: 1px; background: var(--sk-line); margin: 16px 0 14px; }
.sk-balance .rev { display: flex; align-items: center; justify-content: space-between; }
.sk-balance .rev .r-label { font-size: 13px; color: var(--sk-sub); }
.sk-balance .rev .r-value { font-size: 19px; color: var(--sk-text); margin-top: 4px; font-weight: 600; }
.sk-balance .rev .icons { display: flex; gap: 14px; color: var(--sk-sub); }
.sk-balance .acts { display: flex; gap: 10px; margin-top: 18px; }
.sk-balance .acts button { flex: 1; height: 42px; border-radius: 21px; font-size: 14.5px; font-weight: 600; }
.sk-balance .acts button:first-child { border: 1px solid var(--sk-blue); background: #fff; color: var(--sk-blue); }
.sk-balance .acts button:last-child { background: var(--sk-blue); color: #fff; }

.sk-menu { margin: 12px 16px 0; background: #fff; border: 1px solid var(--sk-line); border-radius: 12px; overflow: hidden; }
.sk-menu .row { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-bottom: 1px solid #f0f0f0; font-size: 14.5px; }
.sk-menu .row:last-child { border-bottom: 0; }
.sk-menu .row > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-menu .row .ico { color: #4a4a4a; display: flex; width: 22px; }
.sk-menu .row .val { margin-left: auto; font-size: 13px; color: var(--sk-sub); }
.sk-menu .row .chev { margin-left: 6px; color: #b3b3b3; display: flex; }

/* ---------- products / orders ---------- */
.sk-topbar { background: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--sk-line); }
.sk-search {
  flex: 1; height: 40px; background: #fff; border: 1.5px solid var(--sk-text); border-radius: 20px;
  display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--sk-sub);
}
.sk-search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 14px; color: var(--sk-text); min-width: 0; }
.sk-filter-btn { width: 40px; height: 40px; border: 1px solid var(--sk-line); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--sk-text); background: #fff; }

.sk-warehouse { padding: 20px 16px 14px; background: #fff; }
.sk-warehouse .big { font-size: 30px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.sk-warehouse .cap { font-size: 12.5px; color: var(--sk-sub); margin-top: 2px; }
.sk-subtabs { display: flex; gap: 24px; padding: 0 16px; background: #fff; font-size: 14.5px; color: var(--sk-sub); border-bottom: 1px solid var(--sk-line); }
.sk-subtabs .st { padding-bottom: 11px; position: relative; cursor: pointer; }
.sk-subtabs .st.on { color: var(--sk-text); border-bottom: 2px solid var(--sk-blue); font-weight: 600; }

.sk-list { padding: 12px; }
.sk-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--sk-line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.sk-item img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; background: #f7f7f7; flex: none; border: 1px solid #f0f0f0; }
.sk-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sk-item .t { font-size: 13.5px; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-item .meta { margin-top: 5px; font-size: 11.5px; color: var(--sk-sub); }
.sk-item .bottom { display: flex; align-items: center; margin-top: auto; padding-top: 8px; }
.sk-item .price { font-size: 17px; font-weight: 700; color: var(--sk-text); font-variant-numeric: tabular-nums; }
.sk-item .price small { font-size: 11px; }
.sk-item .pill { margin-left: 8px; font-size: 10.5px; padding: 2px 7px; border-radius: 10px; background: var(--sk-blue-soft); color: var(--sk-blue); font-weight: 600; }
.sk-item .pill.off { background: #f0f0f0; color: var(--sk-sub); }
.sk-item .ops { margin-left: auto; display: flex; gap: 8px; }
.sk-item .ops button { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--sk-blue); background: #fff; font-size: 12px; color: var(--sk-blue); font-weight: 600; }

.sk-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--sk-line); }
.sk-tabs .tab { flex: 1; text-align: center; padding: 14px 0 12px; font-size: 14px; color: var(--sk-sub); position: relative; }
.sk-tabs .tab.on { color: var(--sk-text); font-weight: 700; }
.sk-tabs .tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sk-blue); }

.sk-order { background: #fff; border: 1px solid var(--sk-line); border-radius: 12px; margin-bottom: 10px; padding: 14px; }
.sk-order .head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--sk-sub); }
.sk-order .head b { color: var(--sk-blue); font-size: 12.5px; font-weight: 700; }
.sk-order .prod { display: flex; gap: 10px; margin-top: 10px; }
.sk-order .prod img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: #f7f7f7; border: 1px solid #f0f0f0; }
.sk-order .prod .t { font-size: 13px; line-height: 1.42; flex: 1; }
.sk-order .foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; font-size: 12.5px; color: var(--sk-sub); }
.sk-order .foot .total { margin-left: auto; font-weight: 700; font-size: 16px; color: var(--sk-text); }
.sk-order .ship { height: 34px; padding: 0 16px; border-radius: 17px; background: var(--sk-blue); color: #fff; font-size: 12.5px; font-weight: 600; }

.sk-empty { padding: 56px 20px; text-align: center; color: var(--sk-sub); font-size: 13.5px; }
.sk-empty .eb-empty-ico { margin-bottom: 12px; }
.sk-empty img { width: 150px; margin: 0 auto 18px; opacity: 0.9; }

/* ---------- invite ---------- */
.sk-invite { min-height: 100vh; background: #fff; color: var(--sk-text); padding-bottom: 34px; }
.sk-navbar {
  height: 52px; background: #fff; display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 1px solid var(--sk-line); padding: 0 16px;
}
.sk-navbar .title { font-size: 16px; font-weight: 600; color: var(--sk-text); }
.sk-navbar .brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.sk-navbar .brand img { height: 26px; width: auto; }
.sk-navbar .brand .tag { font-size: 10px; font-weight: 700; color: var(--sk-blue); background: var(--sk-blue-soft); border-radius: 4px; padding: 3px 6px; letter-spacing: 0.4px; }
.sk-navbar .right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.sk-navbar .right img { width: 24px; height: 24px; border-radius: 50%; }
.sk-navbar .back { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--sk-text); }

.sk-invite-body { padding: 18px 24px 0; }
.sk-invite-ill { width: 236px; margin: 4px auto 0; display: block; }
.sk-invite h1 { margin-top: 22px; text-align: center; font-size: 23px; font-weight: 700; letter-spacing: -0.6px; }
.sk-invite .subtitle { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--sk-sub); }
.sk-invite .divider { height: 1px; background: var(--sk-line); margin: 22px 0 6px; }
.sk-feature { display: flex; gap: 14px; padding: 15px 0 2px; }
.sk-feature .fico {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--sk-blue-soft); color: var(--sk-blue); margin-top: 1px;
}
.sk-feature .fico.yellow { background: var(--sk-yellow-soft); color: #b07800; }
.sk-feature .fico.green { background: var(--sk-green-soft); color: var(--sk-green); }
.sk-feature img { width: 30px; height: 30px; flex: none; margin-top: 2px; }
.sk-feature .ft { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.sk-feature .fd { margin-top: 5px; font-size: 13.5px; line-height: 1.6; color: var(--sk-sub); }
.sk-cta {
  margin: 26px 0 0; width: 100%; height: 50px; border-radius: 25px; background: var(--sk-blue);
  color: #fff; font-size: 16px; font-weight: 600;
}
.sk-cta:active { background: var(--sk-blue-dark); }

.sk-sheet-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 200; display: flex; align-items: flex-end; }
.sk-sheet {
  width: 100%; min-height: 72vh; background: #fff; border-radius: 16px 16px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  animation: skUp 0.2s ease; display: flex; flex-direction: column;
}
@keyframes skUp { from { transform: translateY(30px); opacity: 0.7; } }
.sk-sheet h3 { text-align: center; font-size: 17px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--sk-line); }
.sk-sheet .label { margin-top: 20px; font-size: 13.5px; font-weight: 700; }
.sk-sheet input {
  width: 100%; height: 48px; border: 0; border-bottom: 2px solid var(--sk-text); outline: 0;
  font-size: 15px; margin-top: 4px; background: transparent;
}
.sk-sheet input::placeholder { color: #9a9a9a; }
.sk-sheet .hint-line { margin-top: 16px; display: flex; gap: 8px; font-size: 12.5px; line-height: 1.6; color: var(--sk-sub); }
.sk-sheet .hint-line svg { flex: none; margin-top: 1px; color: var(--sk-blue); }
.sk-sheet .ok { margin-top: auto; width: 100%; height: 48px; border-radius: 24px; background: var(--sk-blue); color: #fff; font-size: 16px; font-weight: 600; }
.sk-sheet .ok[disabled] { opacity: 0.45; }

/* ---------- contract ---------- */
.sk-contract { min-height: 100vh; background: #fff; padding-bottom: 96px; }
.sk-contract .doc { padding: 22px 20px; }
.sk-contract .doc h1 { text-align: center; font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.sk-contract .doc p { font-size: 13.5px; line-height: 1.9; color: #333; margin-bottom: 6px; }
.sk-contract .doc b { color: var(--sk-text); }
.sk-contract .bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px;
  background: #fff; border-top: 1px solid var(--sk-line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
}
.sk-contract .bar .agree { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #333; white-space: nowrap; }
.sk-contract .bar .check { width: 17px; height: 17px; border: 1.5px solid #8a8a8a; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; }
.sk-contract .bar .check.on { background: var(--sk-blue); border-color: var(--sk-blue); }
.sk-contract .bar button { flex: 1; height: 42px; border-radius: 21px; font-size: 14.5px; font-weight: 600; }
.sk-contract .bar .cancel { background: #fff; border: 1px solid #8a8a8a; color: #333; }
.sk-contract .bar .ok { background: var(--sk-blue); color: #fff; }
.sk-contract .bar .ok[disabled] { opacity: 0.4; }

/* ---------- finance ---------- */
.sk-fin { padding: 16px; }
.sk-fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-fin-card {
  border-radius: 10px; padding: 16px; background: #fff; border: 1px solid var(--sk-line);
  height: 104px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.sk-fin-card .l { font-size: 13px; color: var(--sk-sub); }
.sk-fin-card .n { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.sk-fin-card.c1 { border-left: 4px solid var(--sk-blue); }
.sk-fin-card.c2 { border-left: 4px solid #0ea5c6; }
.sk-fin-card.c3 { border-left: 4px solid #2e8b0d; }
.sk-fin-card.c4 { border-left: 4px solid #e53238; }
.sk-fin-card.c5 { border-left: 4px solid #8a8a8a; }
.sk-fin-card.c6 { border-left: 4px solid #b05ae0; }
.sk-fin-card::after { display: none; }
