:root {
  --ks-ink: #17162b;
  --ks-muted: #6f7085;
  --ks-border: #e7e7ef;
  --ks-purple: #6757e6;
  --ks-purple-dark: #4d3dd0;
  --ks-blue: #3275e7;
  --ks-bg: #f8f8fc;
}

html { scroll-behavior: smooth; }
body {
  color: var(--ks-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(103, 87, 230, .08), transparent 26rem),
    var(--ks-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}
a { text-decoration: none; }
.container { max-width: 1220px; }

.navbar { min-height: 92px; }
.kenton-brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ks-ink); }
.kenton-brand:hover { color: var(--ks-ink); }
.kenton-brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  color: #fff; background: linear-gradient(145deg, #7767f4, #5140cf);
  box-shadow: 0 10px 24px rgba(81, 64, 207, .24);
}
.kenton-brand-mark svg { width: 25px; height: 25px; }
.kenton-brand-copy { display: flex; flex-direction: column; line-height: 1; }
.kenton-brand-copy strong { font-size: 1.14rem; letter-spacing: -.025em; }
.kenton-brand-copy small { margin-top: .24rem; color: var(--ks-muted); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.navbar .nav-link { color: #55566b; font-weight: 600; padding: .7rem .9rem; border-radius: .72rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--ks-purple-dark); background: rgba(103, 87, 230, .08); }
.navbar .nav-cta { margin-left: .35rem; padding: .68rem 1rem; border-radius: .72rem; }
.navbar-toggler { border: 0; box-shadow: none !important; }
.account-trigger { border: 0; background: transparent; }
.dropdown-menu { padding: .5rem; border: 1px solid var(--ks-border); border-radius: .85rem; box-shadow: 0 16px 38px rgba(30, 27, 74, .13); }
.dropdown-item { border-radius: .58rem; padding: .55rem .75rem; }

.btn { font-weight: 700; border-radius: .72rem; }
.btn-primary { border-color: var(--ks-purple); background: var(--ks-purple); }
.btn-primary:hover, .btn-primary:focus { border-color: var(--ks-purple-dark); background: var(--ks-purple-dark); }

.store-hero {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr; min-height: 500px;
  margin-top: .5rem; overflow: hidden; border-radius: 2rem; color: #fff;
  background: linear-gradient(122deg, #191536 0%, #27205b 55%, #3e328d 100%);
  box-shadow: 0 26px 60px rgba(31, 25, 79, .22);
}
.hero-copy { position: relative; z-index: 2; padding: 5.2rem 1rem 4.6rem 5.2rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: .55rem; color: #dcd8ff; font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.hero-kicker span { width: 7px; height: 7px; border-radius: 50%; background: #8b7bff; box-shadow: 0 0 0 5px rgba(139, 123, 255, .14); }
.hero-copy h1 { max-width: 650px; margin: 1.35rem 0 1.3rem; color: #fff; font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.055em; }
.hero-copy h1 em { color: #a89cff; font-style: normal; }
.hero-copy p { max-width: 590px; color: #cbc8df; font-size: 1.08rem; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 1.3rem; margin-top: 2.2rem; }
.hero-actions .btn { padding: .88rem 1.35rem; color: #30245f; }
.hero-login { display: inline-flex; align-items: center; gap: .35rem; color: #e8e6f4; font-weight: 700; }
.hero-login:hover { color: #fff; }
.hero-login .icon { width: 1rem; height: 1rem; }
.hero-visual { position: relative; min-height: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 300px; height: 300px; top: -70px; right: -55px; background: rgba(130, 110, 255, .23); }
.orb-two { width: 210px; height: 210px; bottom: -65px; left: 15px; background: rgba(67, 187, 255, .12); }
.hero-panel {
  position: absolute; z-index: 2; top: 50%; right: 3.7rem; width: min(420px, calc(100% - 4rem));
  padding: 1.15rem; transform: translateY(-50%) rotate(1.2deg); border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 1.35rem; background: rgba(255, 255, 255, .09); box-shadow: 0 30px 70px rgba(5, 3, 25, .28);
  backdrop-filter: blur(18px);
}
.panel-label { display: block; padding: .45rem .55rem 1rem; color: #aaa4cb; font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.panel-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .75rem; margin-bottom: .65rem; padding: .85rem; border-radius: .95rem; background: rgba(255, 255, 255, .09); }
.panel-row > span:nth-child(2) { display: flex; flex-direction: column; }
.panel-row strong { color: #fff; font-size: .86rem; }
.panel-row small { margin-top: .2rem; color: #bdb9d2; font-size: .72rem; }
.panel-row i { color: #bfb8ff; font-size: .7rem; font-style: normal; font-weight: 700; }
.mini-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: .75rem; color: #fff; font-size: .76rem; font-weight: 800; }
.mini-purple { background: #6757e6; }.mini-blue { background: #2e79cf; }.mini-gold { background: #b87927; }

.store-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0 5rem; padding: 1.05rem 1.4rem;
  border: 1px solid var(--ks-border); border-radius: 1.2rem; background: rgba(255, 255, 255, .78);
}
.store-benefits > div { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .35rem; }
.store-benefits > div + div { border-left: 1px solid var(--ks-border); }
.store-benefits .icon { width: 1.3rem; height: 1.3rem; color: var(--ks-purple); }
.store-benefits span { display: flex; flex-direction: column; }
.store-benefits strong { font-size: .88rem; }.store-benefits small { margin-top: .15rem; color: var(--ks-muted); font-size: .73rem; }

.products-section { padding: 0 .15rem 3.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.section-heading h2 { margin: .32rem 0 0; font-size: clamp(1.75rem, 3vw, 2.45rem); font-weight: 800; letter-spacing: -.04em; }
.section-heading > p { max-width: 340px; margin: 0; color: var(--ks-muted); text-align: right; }
.eyebrow { color: var(--ks-purple); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.store-product {
  position: relative; display: flex; flex-direction: column; min-height: 445px; padding: 1.65rem;
  border: 1px solid var(--ks-border); border-radius: 1.35rem; background: #fff;
  box-shadow: 0 12px 34px rgba(37, 34, 83, .055); transition: transform .2s ease, box-shadow .2s ease;
}
.store-product:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(37, 34, 83, .11); }
.store-product.featured { border-color: rgba(103, 87, 230, .42); box-shadow: 0 18px 44px rgba(77, 61, 208, .13); }
.featured-label { position: absolute; top: 0; right: 1.2rem; padding: .4rem .7rem; border-radius: 0 0 .65rem .65rem; color: #fff; background: var(--ks-purple); font-size: .67rem; font-weight: 800; }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.product-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: .9rem; color: #fff; font-weight: 800; }
.product-purple .product-icon { background: linear-gradient(145deg, #7767f4, #5140cf); }
.product-blue .product-icon { background: linear-gradient(145deg, #438ee8, #245fb9); }
.product-gold .product-icon { background: linear-gradient(145deg, #dc9b42, #a5671d); }
.product-tag { padding: .35rem .62rem; border-radius: 2rem; color: var(--ks-muted); background: #f3f3f8; font-size: .68rem; font-weight: 700; }
.store-product h3 { margin: 1.35rem 0 .65rem; font-size: 1.32rem; font-weight: 800; letter-spacing: -.025em; }
.store-product > p { min-height: 3.5rem; color: var(--ks-muted); font-size: .9rem; line-height: 1.7; }
.store-product ul { display: grid; gap: .65rem; margin: .65rem 0 1.4rem; padding: 0; list-style: none; }
.store-product li { color: #4f5063; font-size: .84rem; }
.store-product li::before { content: "✓"; margin-right: .55rem; color: var(--ks-purple); font-weight: 900; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--ks-border); }
.price { display: flex; flex-direction: column; font-size: 1.28rem; font-weight: 800; letter-spacing: -.03em; }
.price small { margin-bottom: .16rem; color: var(--ks-muted); font-size: .67rem; font-weight: 600; letter-spacing: 0; }

.account-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: .5rem 0 1.25rem; padding: 2.5rem 2.7rem; border-radius: 1.45rem; color: #fff; background: linear-gradient(120deg, #201a49, #4e40b0); }
.account-hero h1 { margin: .45rem 0 .3rem; color: #fff; font-size: 2rem; font-weight: 800; }.account-hero p { margin: 0; color: #cbc7e5; }
.account-hero .eyebrow { color: #b9b0ff; }
.account-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; }
.account-action { display: flex; align-items: center; gap: .85rem; padding: 1.1rem; border: 1px solid var(--ks-border); border-radius: 1rem; color: var(--ks-ink); background: #fff; }
.account-action:hover { border-color: rgba(103, 87, 230, .4); color: var(--ks-purple-dark); box-shadow: 0 12px 30px rgba(37, 34, 83, .07); }
.account-action > span:nth-child(2) { display: flex; flex-direction: column; }.account-action strong { font-size: .92rem; }.account-action small { margin-top: .18rem; color: var(--ks-muted); font-size: .7rem; }
.action-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: .72rem; }
.action-icon-purple { color: #5c4bd8; background: #eeeafe; }.action-icon-blue { color: #2869c7; background: #e7f1ff; }.action-icon-green { color: #27845a; background: #e4f7ed; }
.recent-section { margin-bottom: 3rem; }.recent-grid { display: grid; gap: .75rem; }
.recent-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border: 1px solid var(--ks-border); border-radius: .9rem; color: var(--ks-ink); background: #fff; }
.recent-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: .75rem; color: #fff; background: var(--ks-purple); font-weight: 800; }
.recent-item > span:nth-child(2) { display: flex; flex-direction: column; }.recent-item small { color: var(--ks-muted); font-size: .72rem; }
.status-dot { padding: .3rem .58rem; border-radius: 2rem; color: #267653; background: #e4f7ed; font-size: .7rem; font-weight: 800; }

.breadcrumb { margin: .4rem 0 1rem; font-size: .8rem; }
.content-block > .row > .col-md-12 > .card, .order-index .card, .order-product .card { border: 0; background: transparent; }
.order-index .card-header, .order-product .card-header { padding: 1rem 0 !important; border: 0; background: transparent; }
.order-index .card-header h1, .order-product .card-header h1 { font-weight: 800; letter-spacing: -.035em; }
.order-index .card-body, .order-product .card-body { padding: 0 !important; }
.checkout-shell { overflow: hidden; border: 1px solid var(--ks-border); border-radius: 1.25rem; background: #fff; box-shadow: 0 15px 42px rgba(37, 34, 83, .07); }
#orderManager .accordion-item { border: 0; border-bottom: 1px solid var(--ks-border); }
#orderManager .accordion-item:last-child { border-bottom: 0; }
#orderManager .accordion-button { gap: .65rem; padding: 1.15rem 1.25rem; color: var(--ks-ink); background: #fff; font-size: .91rem; font-weight: 800; box-shadow: none; }
#orderManager .accordion-button:not(.collapsed) { color: var(--ks-purple-dark); background: #faf9ff; }
.step-number { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 50%; color: #fff; background: var(--ks-purple); font-size: .72rem; }
#orderManager .accordion-body { padding: 1.35rem; }
.compact-products { display: grid; gap: .7rem; }
.compact-product { display: grid; grid-template-columns: 42px 1fr auto 20px; align-items: center; gap: .85rem; padding: 1rem; border: 1px solid var(--ks-border); border-radius: .85rem; color: var(--ks-ink); }
.compact-product:hover { border-color: rgba(103, 87, 230, .45); background: #fbfaff; }
.compact-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: .7rem; color: #fff; background: var(--ks-purple); font-weight: 800; }
.compact-product > span:nth-child(2) { display: flex; flex-direction: column; }.compact-product > span:nth-child(2) small { margin-top: .16rem; color: var(--ks-muted); font-size: .72rem; }
.compact-price { font-weight: 800; }.compact-price small { color: var(--ks-muted); font-size: .7rem; font-weight: 600; }
#orderManager .well h3 { font-size: 1.55rem; font-weight: 800; }
#orderManager .badge { padding: .45rem .65rem; border-radius: .55rem; font-size: .8rem; }
#orderManager .table { --bs-table-bg: transparent; border-color: var(--ks-border); }
#show-promo-field { color: var(--ks-muted); font-size: .8rem; }
.loading { position: fixed; inset: 0; z-index: 999; background: rgba(23, 22, 43, .55); }
.loading img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.card { border-color: var(--ks-border); border-radius: 1.1rem; box-shadow: 0 10px 32px rgba(37, 34, 83, .045); }
.card-header { border-color: var(--ks-border); background: #fff; }
.form-control, .form-select { border-color: #dfe0e9; border-radius: .7rem; }
.table { border-color: var(--ks-border); }
.table > :not(caption) > * > * { padding: .82rem; }

.kenton-auth {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 87, 230, .16), transparent 25rem),
    radial-gradient(circle at 85% 80%, rgba(50, 117, 231, .10), transparent 23rem),
    #f8f8fc;
}
.auth-layout { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 5rem 1rem; }
.auth-back { position: absolute; top: 2rem; left: 2rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--ks-muted); font-size: .8rem; font-weight: 700; }
.auth-back:hover { color: var(--ks-purple); }
.auth-panel { width: min(460px, 100%); padding: 2.2rem; border: 1px solid rgba(231, 231, 239, .9); border-radius: 1.35rem; background: rgba(255, 255, 255, .92); box-shadow: 0 25px 70px rgba(37, 34, 83, .12); backdrop-filter: blur(12px); }
.auth-panel .auth-brand { margin-bottom: 2rem; }
.auth-heading { margin-bottom: 1.6rem; }
.auth-heading h1 { margin: .42rem 0 .4rem; font-size: 1.85rem; font-weight: 800; letter-spacing: -.04em; }
.auth-heading p { margin: 0; color: var(--ks-muted); font-size: .88rem; }
.auth-panel .form-label { font-size: .78rem; font-weight: 700; }
.auth-panel .form-control { min-height: 50px; padding: .7rem .85rem; font-size: .92rem; }
.auth-help { color: var(--ks-purple); font-size: .75rem; font-weight: 700; }
.auth-switch { margin: 1.35rem 0 0; color: var(--ks-muted); font-size: .8rem; text-align: center; }
.auth-switch a { color: var(--ks-purple); font-weight: 800; }
.auth-foot { position: absolute; bottom: 1.5rem; margin: 0; color: #9a9bad; font-size: .7rem; }

.store-footer { display: flex; align-items: center; justify-content: space-between; margin: 3.5rem 0 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--ks-border); color: var(--ks-muted); font-size: .76rem; }
.store-footer nav { display: flex; gap: 1rem; }.store-footer a { color: var(--ks-muted); }.store-footer a:hover { color: var(--ks-purple); }

@media (max-width: 991.98px) {
  .store-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 4rem 3rem 2rem; }
  .hero-visual { min-height: 300px; }
  .hero-panel { right: 50%; width: min(520px, calc(100% - 3rem)); transform: translate(50%, -50%); }
  .product-grid, .account-actions { grid-template-columns: 1fr; }
  .store-product { min-height: 0; }
}
@media (max-width: 767.98px) {
  .navbar { min-height: 76px; }
  .navbar-collapse { margin-top: .8rem; padding: .75rem; border: 1px solid var(--ks-border); border-radius: 1rem; background: #fff; }
  .navbar .nav-cta { display: block; margin: .3rem 0 0; }
  .store-hero { border-radius: 1.35rem; }
  .hero-copy { padding: 3.2rem 1.5rem 2rem; }
  .hero-copy h1 { font-size: 2.55rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .store-benefits { grid-template-columns: 1fr; margin-bottom: 3.5rem; }
  .store-benefits > div { justify-content: flex-start; }
  .store-benefits > div + div { border-top: 1px solid var(--ks-border); border-left: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .account-hero { align-items: flex-start; flex-direction: column; padding: 2rem 1.5rem; }
  .compact-product { grid-template-columns: 38px 1fr 18px; }
  .compact-price { grid-column: 2; }
  .store-footer { align-items: flex-start; flex-direction: column; gap: .7rem; }
}
