:root {
  --fk-blue: #2874f0;
  --fk-blue-dark: #1c4db8;
  --fk-orange: #fb641b;
  --fk-orange-dark: #e85a12;
  --fk-bg: #f1f3f6;
  --fk-card: #fff;
  --fk-text: #212121;
  --fk-muted: #878787;
  --fk-green: #388e3c;
  --fk-line: #e0e0e0;
}

.fk-page { background: var(--fk-bg); padding: 24px clamp(16px, 4vw, 48px) 40px; min-height: 50vh; }
.fk-page h1, .fk-page h2, .fk-page h3 { color: var(--fk-text); }

.fk-auth {
  max-width: 760px;
  margin: 24px auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 460px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
  border-radius: 2px;
  overflow: hidden;
}
.fk-auth-side {
  background: linear-gradient(180deg, var(--fk-blue) 0%, #174ea6 100%);
  color: #fff;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fk-auth-side h2 { color: #fff; font-size: 28px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.fk-auth-side p { color: #dbe7ff; font-size: 14px; line-height: 1.5; }
.fk-auth-side ul { margin-top: 24px; display: grid; gap: 12px; font-size: 13px; }
.fk-auth-side li { list-style: none; padding-left: 18px; position: relative; }
.fk-auth-side li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.fk-auth-form { padding: 36px 32px; }
.fk-auth-form h1 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.fk-auth-form .lead { color: var(--fk-muted); font-size: 13px; margin-bottom: 22px; }
.fk-field { margin-bottom: 18px; }
.fk-field label { display: block; font-size: 12px; color: var(--fk-muted); margin-bottom: 6px; }
.fk-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 0;
  font-size: 14px;
  background: transparent;
}
.fk-field input:focus { outline: 0; border-bottom-color: var(--fk-blue); }
.fk-alert { background: #fff5f5; color: #c62828; font-size: 13px; padding: 8px 10px; margin-bottom: 12px; }
.fk-cta {
  width: 100%;
  height: 48px;
  border: 0;
  background: var(--fk-orange);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  margin-top: 8px;
}
.fk-cta:hover { background: var(--fk-orange-dark); }
.fk-cta.blue { background: var(--fk-blue); }
.fk-cta.ghost { background: #fff; color: var(--fk-blue); border: 1px solid #e0e0e0; box-shadow: none; }
.fk-switch { margin-top: 22px; text-align: center; font-size: 14px; color: var(--fk-blue); font-weight: 600; }

.fk-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 14px;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  animation: fkToast 4s ease forwards;
}
.fk-toast a { color: #ffe11b; font-weight: 700; margin-left: 10px; }
@keyframes fkToast { 0%,80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.fk-card { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); border-radius: 2px; }
.fk-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.fk-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; padding: 20px; border-bottom: 1px solid #f0f0f0; }
.fk-item img { width: 110px; height: 110px; object-fit: contain; background: #fafafa; }
.fk-item h3 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.fk-item .muted { color: var(--fk-muted); font-size: 13px; }
.fk-price { font-size: 18px; font-weight: 700; }
.fk-price s { color: var(--fk-muted); font-size: 13px; font-weight: 500; margin-left: 6px; }
.fk-off { color: var(--fk-green); font-size: 13px; font-weight: 700; margin-left: 6px; }
.fk-qty { display: inline-flex; align-items: center; gap: 0; margin-top: 14px; border: 1px solid #c2c2c2; border-radius: 2px; overflow: hidden; }
.fk-qty button, .fk-qty b { width: 32px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: #fff; }
.fk-qty button { cursor: pointer; font-size: 18px; color: #2874f0; }
.fk-qty b { border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; font-size: 13px; }
.fk-remove { background: none; border: 0; color: #212121; font-weight: 600; font-size: 13px; letter-spacing: .04em; cursor: pointer; margin-left: 16px; }
.fk-pricebox { padding: 16px 20px 20px; position: sticky; top: 16px; }
.fk-pricebox h3 { color: var(--fk-muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid #f0f0f0; padding-bottom: 12px; margin-bottom: 12px; }
.fk-pricebox p { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; }
.fk-pricebox .total { font-size: 16px; font-weight: 700; border-top: 1px dashed #e0e0e0; border-bottom: 1px dashed #e0e0e0; padding: 14px 0; margin: 6px 0; }
.fk-save { color: var(--fk-green); font-weight: 600; font-size: 13px; }
.fk-place { display: block; text-align: center; line-height: 48px; height: 48px; background: var(--fk-orange); color: #fff !important; font-weight: 700; margin-top: 16px; }
.fk-empty { background: #fff; text-align: center; padding: 64px 20px; }
.fk-empty h2 { margin: 12px 0 8px; }
.fk-empty p { color: var(--fk-muted); margin-bottom: 20px; }
.fk-empty a { display: inline-block; background: var(--fk-blue); color: #fff; padding: 10px 28px; font-weight: 600; }

.fk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.fk-add, .fk-buy {
  height: 36px; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.fk-add { background: #fff; color: var(--fk-orange); border: 1px solid var(--fk-orange); }
.fk-buy { background: var(--fk-orange); color: #fff; }
.product-card .info { gap: 8px; }
.product-card .price-row { flex-direction: column; align-items: stretch; gap: 8px; }

.fk-orders { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.fk-filters { padding: 16px; }
.fk-filters h3 { font-size: 16px; margin-bottom: 14px; }
.fk-filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 7px 0; cursor: pointer; }
.fk-search { display: flex; margin-bottom: 12px; }
.fk-search input { flex: 1; height: 40px; border: 1px solid #e0e0e0; border-right: 0; padding: 0 12px; }
.fk-search button { height: 40px; border: 0; background: var(--fk-blue); color: #fff; padding: 0 18px; font-weight: 700; cursor: pointer; }
.fk-ocard { display: block; background: #fff; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: inherit; }
.fk-ocard-top { display: flex; justify-content: space-between; gap: 16px; }
.fk-status { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.fk-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--fk-green); }
.fk-status.s0 i { background: #2874f0; }
.fk-status.s1 i { background: #ff9f00; }
.fk-status.s2 i { background: var(--fk-green); }
.fk-status.s3 i { background: #ff6161; }
.fk-ocard small { color: var(--fk-muted); display: block; margin-top: 4px; }
.fk-ocrow { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; margin-top: 14px; align-items: center; }
.fk-ocrow img { width: 72px; height: 72px; object-fit: contain; background: #fafafa; }

.fk-track {
  background: #fff;
  padding: 24px 20px 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.fk-track h3 { font-size: 16px; margin-bottom: 28px; }
.fk-steps { display: flex; justify-content: space-between; position: relative; list-style: none; margin: 0 8px 20px; }
.fk-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 7px;
  height: 3px;
  background: #e0e0e0;
}
.fk-steps li { position: relative; z-index: 1; flex: 1; text-align: center; font-size: 12px; color: var(--fk-muted); font-weight: 600; }
.fk-steps li i {
  width: 16px; height: 16px; border-radius: 50%; background: #e0e0e0;
  display: block; margin: 0 auto 8px; border: 3px solid #fff; box-sizing: border-box;
}
.fk-steps li.done i, .fk-steps li.now i { background: var(--fk-green); }
.fk-steps li.done, .fk-steps li.now { color: var(--fk-green); }
.fk-log { border-top: 1px solid #f0f0f0; padding-top: 12px; }
.fk-log li { font-size: 13px; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; }
.fk-log span { color: var(--fk-muted); }

.fk-addr { padding: 16px 20px; margin-bottom: 12px; cursor: pointer; display: flex; gap: 12px; border: 1px solid #f0f0f0; }
.fk-addr input { margin-top: 4px; }
.fk-addr.on { border-color: var(--fk-blue); background: #f5faff; }
.fk-chip { display: inline-block; font-size: 11px; background: #f0f0f0; padding: 2px 6px; margin-right: 6px; font-weight: 700; }

.fk-account { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.fk-aside { padding: 16px; }
.fk-hello { font-size: 13px; color: var(--fk-muted); }
.fk-hello b { display: block; color: var(--fk-text); font-size: 18px; margin-top: 4px; }
.fk-nav a { display: block; padding: 10px 0; color: #212121; font-size: 14px; font-weight: 500; border-bottom: 1px solid #f5f5f5; }
.fk-nav a:hover, .fk-nav a.on { color: var(--fk-blue); }

#account-menu-drop.util-drop {
  width: 240px;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  padding: 12px 16px 14px;
  z-index: 120;
}
#account-menu-drop.util-drop p {
  color: #878787;
  font-size: 12px;
  margin-bottom: 10px;
}
#account-menu-drop.util-drop a,
#account-menu-drop.util-drop button {
  color: #212121;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
}
#account-menu-drop.util-drop a:hover,
#account-menu-drop.util-drop button:hover { color: #2874f0; }
#account-menu-drop .util-drop-btn {
  background: #fb641b !important;
  color: #fff !important;
  text-align: center !important;
  border-radius: 2px;
  padding: 10px 12px !important;
  font-weight: 700 !important;
}
.fk-panel { padding: 24px; }

@media (max-width: 900px) {
  .fk-auth, .fk-split, .fk-orders, .fk-account { grid-template-columns: 1fr; }
  .fk-auth-side { min-height: auto; padding: 24px; }
  .fk-item, .fk-ocrow { grid-template-columns: 72px 1fr; }
  .fk-item > strong, .fk-ocrow > b { grid-column: 2; }
  .fk-steps { flex-wrap: wrap; gap: 16px; }
  .fk-steps::before { display: none; }
}