:root {
  --ks-black: #080808;
  --ks-ink: #151515;
  --ks-gold: #e4ad36;
  --ks-gold-light: #fff0bd;
  --ks-cream: #f7f3e9;
  --ks-paper: #fff;
  --ks-muted: #6d6a63;
  --ks-line: rgba(24, 22, 18, .1);
  --ks-success: #18724b;
  --ks-danger: #a5322d;
  --ks-radius: 22px;
  --ks-shadow: 0 18px 55px rgba(28, 24, 15, .1);
}

html { scroll-behavior: smooth; }
body.ks-client-app {
  min-height: 100vh;
  margin: 0;
  padding: 0 0 calc(78px + env(safe-area-inset-bottom));
  background: #f7f5f0;
  color: var(--ks-ink);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ks-client-app *, .ks-client-app *::before, .ks-client-app *::after { box-sizing: border-box; }
.ks-client-app a { text-decoration: none; }
.ks-app-announcement {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--ks-gold);
  color: #17130a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.ks-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #146b46; box-shadow: 0 0 0 4px rgba(20,107,70,.14); }
.ks-app-header { position: sticky; top: 0; z-index: 80; background: rgba(8,8,8,.96); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(228,173,54,.18); }
.ks-app-header-inner { width: min(1160px, calc(100% - 32px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ks-app-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.ks-app-brand img { width: 48px; height: 48px; object-fit: contain; }
.ks-app-brand span { display: grid; line-height: 1; }
.ks-app-brand strong { font-family: 'Playfair Display', serif; font-size: 21px; letter-spacing: .08em; }
.ks-app-brand small { margin-top: 4px; color: var(--ks-gold); font-size: 9px; font-weight: 800; letter-spacing: .5em; }
.ks-app-header-actions { display: flex; align-items: center; gap: 8px; }
.ks-app-header-actions > a { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: #fff; font-size: 17px; }
.ks-app-cart b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ks-black); border-radius: 99px; background: var(--ks-gold); color: #111; font-size: 10px; }
.ks-app-main { min-height: 70vh; }
.ks-client-app .container {
  width: min(1160px, calc(100% - 32px));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}
.ks-app-hero { overflow: hidden; background: radial-gradient(circle at 82% 16%, rgba(228,173,54,.22), transparent 30%), linear-gradient(145deg,#070707,#191711); color:#fff; }
.ks-app-hero-inner { width:min(1160px,calc(100% - 32px)); margin:0 auto; min-height: 390px; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr); align-items:center; gap:48px; padding:56px 0; }
.ks-eyebrow { display:inline-flex; align-items:center; gap:8px; color:#b87900; font-size:12px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.ks-app-hero .ks-eyebrow { color:var(--ks-gold); }
.ks-app-hero h1, .ks-section-title, .ks-page-head h1 { font-family:'Playfair Display',serif; font-weight:800; }
.ks-app-hero h1 { max-width:690px; margin:12px 0 16px; font-size:clamp(42px,6vw,72px); line-height:.98; letter-spacing:-.035em; }
.ks-app-hero p { max-width:620px; margin:0; color:rgba(255,255,255,.74); font-size:17px; line-height:1.7; }
.ks-app-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.ks-btn-primary, .ks-btn-secondary, .ks-client-app .king35-page-action { min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:9px; border:0; border-radius:15px; padding:13px 19px; font-family:inherit; font-weight:800; cursor:pointer; }
.ks-btn-primary { background:var(--ks-gold); color:#151109; box-shadow:0 10px 30px rgba(228,173,54,.2); }
.ks-btn-secondary { border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#fff; }
.ks-app-hero-card { position:relative; min-height:265px; display:grid; place-items:center; border:1px solid rgba(228,173,54,.25); border-radius:30px; background:rgba(255,255,255,.035); box-shadow:0 25px 70px rgba(0,0,0,.28); }
.ks-app-hero-card img { width:min(230px,70%); filter:drop-shadow(0 20px 35px rgba(0,0,0,.4)); }
.ks-app-trust { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:-26px; position:relative; z-index:2; }
.ks-app-trust > div { display:flex; align-items:center; gap:12px; min-height:76px; padding:16px; border:1px solid var(--ks-line); border-radius:18px; background:#fff; box-shadow:var(--ks-shadow); }
.ks-app-trust i { width:40px; height:40px; display:grid; place-items:center; flex:0 0 auto; border-radius:13px; background:#fff7df; color:#9b6700; }
.ks-app-trust strong, .ks-app-trust small { display:block; }
.ks-app-trust strong { font-size:14px; }
.ks-app-trust small { margin-top:3px; color:var(--ks-muted); }
.ks-app-section { padding:58px 0; }
.ks-app-section.is-cream { background:var(--ks-cream); }
.ks-section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.ks-section-title { margin:5px 0 0; font-size:clamp(30px,4vw,46px); line-height:1.05; }
.ks-section-link { color:var(--ks-ink); font-weight:800; }
.ks-category-scroll { display:grid; grid-template-columns:repeat(6,minmax(135px,1fr)); gap:12px; overflow-x:auto; padding:2px 2px 12px; }
.ks-category-tile { min-height:116px; display:flex; flex-direction:column; justify-content:space-between; padding:18px; border:1px solid var(--ks-line); border-radius:20px; background:#fff; color:var(--ks-ink); box-shadow:0 12px 35px rgba(28,24,15,.05); }
.ks-category-tile i { color:#a06b00; font-size:21px; }
.ks-category-tile strong { font-size:15px; }
.ks-client-app .king35-product-grid { gap:18px; }
.ks-client-app .king35-product-card { border-color:var(--ks-line); border-radius:22px; box-shadow:0 14px 45px rgba(28,24,15,.07); transition:transform .22s ease,box-shadow .22s ease; }
.ks-client-app .king35-product-card:hover { transform:translateY(-4px); box-shadow:0 24px 55px rgba(28,24,15,.12); }
.ks-client-app .king35-product-image { background:#f6f2e9; padding:14px; }
.ks-client-app .king35-product-body { padding:17px; }
.ks-client-app .king35-product-body > span { color:#936100; letter-spacing:.08em; }
.ks-client-app .king35-product-body h2 { font-family:'DM Sans',sans-serif; font-size:16px; }
.ks-client-app .king35-product-body strong { font-size:22px; }
.ks-client-app .king35-product-actions { gap:7px; }
.ks-client-app .king35-product-actions a, .ks-client-app .king35-product-actions button, .ks-stock-consult { border-radius:13px; font-size:13px; }
.ks-stock-consult { grid-column:1/-1; min-height:42px; display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid #ddc887; color:#6d4a00; background:#fff9e9; font-weight:800; }
.ks-page-head { padding:46px 0 34px; background:linear-gradient(145deg,#090909,#1b1810); color:#fff; }
.ks-page-head h1 { margin:8px 0 8px; font-size:clamp(34px,5vw,54px); }
.ks-page-head p { max-width:680px; margin:0; color:rgba(255,255,255,.68); }
.ks-client-app .king35-page-header { padding:46px 0 34px; background:linear-gradient(145deg,#090909,#1b1810); }
.ks-client-app .king35-page-header h1 { font-family:'Playfair Display',serif; }
.ks-client-app .king35-cart-section, .ks-client-app .king35-checkout-section, .ks-client-app .king35-auth-section, .ks-client-app .king35-app-shell, .ks-client-app .king35-product-detail, .ks-client-app .king35-contact-section { background:#f7f5f0; }
.ks-client-app .king35-cart-summary, .ks-client-app .king35-checkout-form, .ks-client-app .king35-empty-state, .ks-client-app .king35-cart-item, .ks-client-app .king35-contact-card, .ks-client-app .king35-order-card { border-radius:20px; box-shadow:0 14px 45px rgba(28,24,15,.07); }
.ks-client-app input, .ks-client-app select, .ks-client-app textarea { width:100%; min-height:48px; border:1px solid rgba(20,20,20,.14); border-radius:13px; background:#fff; padding:12px 14px; font:inherit; color:var(--ks-ink); }
.ks-client-app textarea { min-height:120px; resize:vertical; }
.ks-client-app input:focus, .ks-client-app select:focus, .ks-client-app textarea:focus { outline:3px solid rgba(228,173,54,.2); border-color:var(--ks-gold); }
.ks-support-fab { position:fixed; z-index:91; right:22px; bottom:94px; min-height:48px; display:flex; align-items:center; gap:8px; border-radius:99px; background:var(--ks-black); color:#fff; padding:12px 17px; box-shadow:0 16px 40px rgba(0,0,0,.24); font-weight:800; }
.ks-support-fab i { color:var(--ks-gold); }
.ks-app-bottom-nav { position:fixed; z-index:90; left:50%; bottom:0; transform:translateX(-50%); width:min(760px,100%); min-height:72px; display:grid; grid-template-columns:repeat(5,1fr); padding:7px 8px calc(7px + env(safe-area-inset-bottom)); border:1px solid rgba(20,20,20,.09); border-bottom:0; border-radius:22px 22px 0 0; background:rgba(255,255,255,.97); box-shadow:0 -12px 40px rgba(25,20,12,.1); backdrop-filter:blur(18px); }
.ks-app-bottom-nav a { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; border-radius:14px; color:#76736d; font-size:10px; font-weight:800; }
.ks-app-bottom-nav a i { font-size:18px; }
.ks-app-bottom-nav a.active { color:#17130a; background:#fff5d9; }
.ks-ticket-layout { display:grid; grid-template-columns:360px minmax(0,1fr); gap:20px; align-items:start; }
.ks-panel { border:1px solid var(--ks-line); border-radius:22px; background:#fff; padding:22px; box-shadow:var(--ks-shadow); }
.ks-panel h2 { margin:0 0 16px; font-size:21px; }
.ks-form-stack { display:grid; gap:13px; }
.ks-form-stack label { display:grid; gap:7px; color:#34312c; font-size:13px; font-weight:800; }
.ks-form-stack .ks-remember-device { display:flex; align-items:flex-start; gap:11px; padding:12px 13px; border:1px solid var(--ks-line); border-radius:14px; background:#fffaf0; cursor:pointer; }
.ks-remember-device input { width:20px; min-height:20px; margin:1px 0 0; accent-color:var(--ks-gold); flex:0 0 auto; }
.ks-remember-device span { display:grid; gap:3px; line-height:1.3; }
.ks-remember-device small { color:var(--ks-muted); font-weight:600; }
.ks-form-row { display:grid; grid-template-columns:minmax(0,1fr) 110px; gap:10px; }
.ks-ticket-list { display:grid; gap:11px; }
.ks-ticket-card { display:grid; gap:8px; padding:18px; border:1px solid var(--ks-line); border-radius:18px; background:#fff; color:var(--ks-ink); }
.ks-ticket-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ks-ticket-card strong { font-size:15px; }
.ks-ticket-card p { margin:0; color:var(--ks-muted); font-size:13px; }
.ks-badge { display:inline-flex; align-items:center; min-height:27px; padding:5px 9px; border-radius:99px; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
.ks-badge-warning { background:#fff0c2; color:#735000; }
.ks-badge-info { background:#e1f0ff; color:#18558b; }
.ks-badge-success { background:#dff5e9; color:#146540; }
.ks-badge-neutral { background:#ecebe8; color:#5e5a53; }
.ks-ticket-unread { min-width:22px; height:22px; display:inline-grid; place-items:center; border-radius:99px; background:#bb3129; color:#fff; font-size:10px; }
.ks-chat-wrap { display:grid; gap:14px; }
.ks-chat-meta { display:flex; flex-wrap:wrap; gap:9px; }
.ks-chat-product { display:flex; align-items:center; gap:13px; padding:13px; border-radius:16px; background:#f7f3e9; }
.ks-chat-product img { width:58px; height:58px; object-fit:contain; border-radius:12px; background:#fff; }
.ks-chat-product span, .ks-chat-product strong { display:block; }
.ks-chat-messages { display:flex; flex-direction:column; gap:12px; max-height:560px; overflow:auto; padding:8px 3px; }
.ks-chat-message { max-width:min(82%,620px); padding:13px 15px; border-radius:17px 17px 17px 5px; background:#f0eee9; color:#292722; }
.ks-chat-message.is-client { align-self:flex-end; border-radius:17px 17px 5px 17px; background:#17130a; color:#fff; }
.ks-chat-message strong, .ks-chat-message time { display:block; }
.ks-chat-message strong { margin-bottom:4px; font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.ks-chat-message p { margin:0; white-space:pre-wrap; line-height:1.55; }
.ks-chat-message time { margin-top:6px; opacity:.55; font-size:10px; }
.ks-install-banner { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px; border-radius:20px; background:#17130a; color:#fff; }
.ks-install-banner button { flex:0 0 auto; }
.ks-account-section { padding:46px 0 118px; }
.ks-account-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.ks-account-card { min-height:210px; display:flex; flex-direction:column; align-items:flex-start; padding:22px; border:1px solid var(--ks-line); border-radius:22px; background:#fff; color:var(--ks-ink); box-shadow:0 14px 45px rgba(28,24,15,.07); transition:transform .2s ease,box-shadow .2s ease; }
.ks-account-card:hover { transform:translateY(-3px); box-shadow:0 22px 52px rgba(28,24,15,.12); }
.ks-account-card>i { width:48px; height:48px; display:grid; place-items:center; flex:0 0 auto; border-radius:15px; background:var(--ks-black); color:var(--ks-gold); font-size:19px; }
.ks-account-card-content { display:block; margin-top:20px; }
.ks-account-card-content strong,.ks-account-card-content small { display:block; }
.ks-account-card-content strong { font-size:20px; line-height:1.15; }
.ks-account-card-content small { margin-top:8px; color:var(--ks-muted); font-size:14px; line-height:1.55; }
.ks-account-card-action { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:18px; color:#7c5200; font-size:13px; font-weight:900; }
.ks-account-card-action b { font:inherit; }
.ks-account-card-action i { font-size:11px; }
.ks-account-card.is-logout>i { background:#fde6e3; color:#9e302b; }
.ks-account-card.is-logout .ks-account-card-action { color:#9e302b; }

@media (max-width: 900px) {
  .ks-app-hero-inner { grid-template-columns:1fr; min-height:0; }
  .ks-app-hero-card { display:none; }
  .ks-category-scroll { grid-template-columns:repeat(6,145px); }
  .ks-ticket-layout { grid-template-columns:1fr; }
  .ks-account-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .ks-app-announcement { font-size:11px; }
  .ks-app-header-inner { width:calc(100% - 24px); min-height:64px; }
  .ks-app-brand img { width:42px; height:42px; }
  .ks-app-hero-inner { width:calc(100% - 28px); padding:42px 0 52px; }
  .ks-app-hero h1 { font-size:43px; }
  .ks-app-trust { grid-template-columns:1fr; margin-top:-20px; }
  .ks-app-trust > div { min-height:66px; }
  .ks-app-section { padding:42px 0; }
  .ks-section-head { align-items:start; }
  .ks-client-app .king35-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .ks-client-app .king35-product-body { padding:13px; }
  .ks-client-app .king35-product-body h2 { font-size:14px; }
  .ks-client-app .king35-product-body strong { font-size:19px; }
  .ks-client-app .king35-product-actions { grid-template-columns:1fr; }
  .ks-client-app .king35-product-actions a, .ks-client-app .king35-product-actions button { grid-column:auto; }
  .ks-support-fab { width:48px; right:14px; bottom:88px; justify-content:center; padding:0; }
  .ks-support-fab span { display:none; }
  .ks-app-bottom-nav { border-radius:18px 18px 0 0; }
  .ks-form-row { grid-template-columns:1fr; }
  .ks-install-banner { align-items:flex-start; flex-direction:column; }
  .ks-account-section { padding:24px 0 112px; }
  .ks-account-grid { grid-template-columns:1fr; gap:10px; }
  .ks-account-card { min-height:0; display:grid; grid-template-columns:48px minmax(0,1fr) 38px; grid-template-rows:auto auto; align-items:center; column-gap:13px; padding:15px 14px; border-radius:18px; }
  .ks-account-card:hover { transform:none; }
  .ks-account-card>i { grid-column:1; grid-row:1 / span 2; width:46px; height:46px; border-radius:14px; }
  .ks-account-card-content { grid-column:2; grid-row:1 / span 2; min-width:0; margin:0; }
  .ks-account-card-content strong { font-size:17px; }
  .ks-account-card-content small { margin-top:4px; font-size:12px; line-height:1.4; }
  .ks-account-card-action { grid-column:3; grid-row:1 / span 2; width:38px; height:38px; display:grid; place-items:center; margin:0; padding:0; border-radius:12px; background:#fff5d9; color:#7c5200; }
  .ks-account-card-action b { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .ks-account-card-action i { font-size:12px; }
  .ks-account-card.is-logout .ks-account-card-action { background:#fde6e3; color:#9e302b; }
}
@media (max-width: 420px) {
  .ks-client-app .container { width:calc(100% - 24px); }
  .ks-app-header-actions > a { width:39px; height:39px; }
  .ks-app-brand span { display:none; }
  .ks-app-hero h1 { font-size:38px; }
  .ks-app-hero p { font-size:15px; }
  .ks-section-title { font-size:31px; }
  .ks-chat-message { max-width:90%; }
}
