:root {
  --lk-bg: #e6e6e6;
  --lk-panel: #fff;
  --lk-accent: #ffb824;
  --lk-accent-text: #111;
  --lk-text: #111;
  --lk-muted: rgba(17, 17, 17, .62);
  --lk-border: rgba(17, 17, 17, .12);
  --lk-shadow: 0 18px 44px rgba(17, 17, 17, .08);
  --lk-radius: 18px;
}

.lk-page,
.lk-page *,
.tlk-auth-modal,
.tlk-auth-modal *,
.tlk-auth-widget,
.tlk-auth-widget * { box-sizing: border-box; }

body { background: var(--lk-bg); color: var(--lk-text); font-family: var(--t-text-font, Arial, sans-serif); }
body.tlk-auth-modal-open { overflow: hidden; }

.lk-hidden { display: none !important; }
.lk-page { min-height: 100vh; padding: 32px 18px; background: var(--lk-bg); }
.lk-shell { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.lk-card,
.lk-user__body,
.lk-content { background: var(--lk-panel); border: 1px solid var(--lk-border); border-radius: var(--lk-radius); box-shadow: var(--lk-shadow); }
.lk-user { overflow: hidden; }
.lk-user__cover { display: none !important; }
.lk-user__body { padding: 26px 24px; }
.lk-user__title,
.lk-auth__title,
.lk-tabs__title { margin: 0; font-family: var(--t-headline-font, Arial, sans-serif); font-weight: 650; color: var(--lk-text); }
.lk-user__title { font-size: 28px; line-height: 1.15; margin-bottom: 20px; }
.lk-user__list { display: grid; gap: 12px; margin-bottom: 24px; }
.lk-user__row { padding-bottom: 12px; border-bottom: 1px solid var(--lk-border); }
.lk-user__label { display: block; font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--lk-muted); margin-bottom: 4px; }
.lk-user__value { display: block; font-size: 16px; line-height: 1.45; color: var(--lk-text); word-break: break-word; }
.lk-user__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lk-user__logout,
.lk-user__settings,
.lk-submit,
.lk-order__btn.is-primary { min-height: 42px; border: 0; border-radius: 999px; background: var(--lk-accent); color: var(--lk-accent-text) !important; padding: 10px 18px; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: opacity .2s ease, transform .2s ease; }
.lk-user__logout { background: #111; color: #fff !important; }
.lk-user__settings { background: var(--lk-accent); color: #111 !important; }
.lk-user__logout[disabled],
.lk-user__settings[disabled],
.lk-submit[disabled],
.lk-order__btn[disabled] { opacity: .55; cursor: default; }
.lk-content { padding: 26px 28px 28px; min-height: 560px; }
.lk-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.lk-tab { appearance: none; border: 1px solid var(--lk-border); background: #fff; color: var(--lk-text); min-height: 42px; padding: 9px 15px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 500; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.lk-tab.is-active { background: var(--lk-accent); color: var(--lk-accent-text); border-color: var(--lk-accent); font-weight: 700; }
.lk-panel { min-height: 320px; }
.lk-panel__empty { margin: 0; padding: 24px; border-radius: 16px; background: rgba(230,230,230,.45); font-size: 16px; line-height: 1.5; color: var(--lk-muted); }

.lk-loader { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(230,230,230,.94); z-index: 999999; transition: opacity .2s ease, visibility .2s ease; }
.lk-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.lk-loader__inner { display: grid; justify-items: center; gap: 14px; color: var(--lk-text); font-weight: 500; }
.lk-loader__spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(17,17,17,.13); border-top-color: var(--lk-accent); animation: lk-spin .85s linear infinite; }
@keyframes lk-spin { to { transform: rotate(360deg); } }

.lk-card-list,
.lk-orders,
.lk-bonus-history { display: grid; gap: 14px; }
.lk-info-card,
.lk-order,
.lk-bonus-card,
.lk-accordion__item { background: #fff; border: 1px solid var(--lk-border); border-radius: 18px; padding: 18px; box-shadow: 0 10px 26px rgba(17,17,17,.05); }
.lk-info-card.is-highlight { border-color: rgba(255,184,36,.7); background: linear-gradient(0deg, rgba(255,184,36,.12), rgba(255,184,36,.12)), #fff; }
.lk-info-card__meta,
.lk-order__meta,
.lk-product__meta,
.lk-bonus-card__meta { color: var(--lk-muted); font-size: 13px; line-height: 1.45; }
.lk-info-card__title,
.lk-order__title,
.lk-bonus-card__title { margin: 4px 0 8px; font-size: 21px; line-height: 1.2; font-weight: 650; color: var(--lk-text); }
.lk-info-card__text { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--lk-text); }

.lk-order__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.lk-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #f3f3f3; border: 1px solid var(--lk-border); font-size: 12px; line-height: 1.2; color: var(--lk-text); }
.lk-badge.is-paid { background: #e9f8ec; border-color: #ccebd2; }
.lk-badge.is-cancel { background: #fff0f0; border-color: #ffd1d1; }
.lk-order__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.lk-order__price { text-align: right; font-size: 21px; line-height: 1.2; font-weight: 700; color: var(--lk-text); white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.lk-order__bonus-chip { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: var(--lk-accent); color: #111; font-size: 12px; line-height: 1.2; font-weight: 700; }
.lk-order__products { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.lk-product { min-width: 0; background: #f7f7f7; border-radius: 14px; padding: 10px; }
.lk-product__media { position: relative; margin-bottom: 8px; }
.lk-product__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e9e9e9; border-radius: 12px; display: block; }
.lk-product__qty { position: absolute; right: 6px; top: 6px; min-width: 28px; height: 28px; border-radius: 999px; background: rgba(17,17,17,.84); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; font-size: 12px; }
.lk-product__name { font-size: 13px; line-height: 1.35; color: var(--lk-text); font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-order__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lk-order__btn { min-height: 40px; border: 1px solid var(--lk-border); background: #fff; color: var(--lk-text); border-radius: 999px; padding: 9px 15px; font: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.lk-order__details { display: none; margin-top: 12px; }
.lk-order.is-open .lk-order__details { display: block; }
.lk-order__summary { display: grid; gap: 7px; padding: 14px; background: #f7f7f7; border-radius: 14px; }
.lk-order__line { display: flex; justify-content: space-between; gap: 12px; color: var(--lk-muted); font-size: 14px; }
.lk-order__line strong { color: var(--lk-text); font-weight: 600; text-align: right; }

.lk-bonus-card { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.lk-bonus-card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.lk-bonus-card__badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #e9f8ec; color: #111; font-size: 12px; }
.lk-bonus-card__badge.is-negative { background: #fff0f0; }
.lk-bonus-card__amount { font-size: 24px; font-weight: 750; color: #1f7a34; white-space: nowrap; }
.lk-bonus-card__amount.is-negative { color: #b42318; }

.lk-accordion { display: grid; gap: 12px; }
.lk-accordion__item { padding: 0; overflow: hidden; }
.lk-accordion__head { width: 100%; min-height: 56px; padding: 16px 18px; border: 0; background: #fff; color: var(--lk-text); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; font: inherit; font-weight: 700; text-align: left; }
.lk-accordion__body { display: none; padding: 0 18px 18px; font-size: 15px; line-height: 1.55; color: var(--lk-text); }
.lk-accordion__item.is-open .lk-accordion__body { display: block; }
.lk-accordion__body p { margin: 0 0 10px; }
.lk-accordion__body ul { margin: 0; padding-left: 18px; }
.lk-support-list { display: grid; gap: 10px; margin-top: 14px; }
.lk-support-list a { display: flex; min-height: 42px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f7f7f7; color: var(--lk-text); text-decoration: none; }

.lk-auth-wrap { width: min(660px, 100%); margin: 0 auto; padding: 28px 22px; display: flex; align-items: center; justify-content: center; min-height: calc(80vh - 64px); }
.lk-auth { width: 100%; background: var(--lk-panel); border: 1px solid var(--lk-border); border-radius: var(--lk-radius); box-shadow: var(--lk-shadow); padding: 42px 38px 36px; }
.lk-auth__title { font-size: 32px; line-height: 1.12; margin-bottom: 10px; text-align: center; }
.lk-auth__desc { display: block; margin: 0 0 28px; font-size: 16px; line-height: 1.4; text-align: center; color: var(--lk-muted); }
.lk-auth__step { display: none; }
.lk-auth__step.is-active { display: block; }
.lk-form { display: grid; gap: 16px; }
.lk-field { display: grid; gap: 6px; }
.lk-field__label { font-size: 13px; line-height: 1.4; color: var(--lk-muted); }
.lk-input,
.lk-auth-dynamic input,
.lk-auth-dynamic select,
.lk-auth-dynamic textarea { width: 100%; min-height: 45px; border: 1px solid var(--lk-border); background: #fff; color: var(--lk-text); padding: 10px 12px; border-radius: 12px; outline: none; font: inherit; font-size: 15px; }
textarea.lk-input { min-height: 90px; resize: vertical; }
.lk-input{width:auto;}

.lk-password-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.lk-password-toggle,
.lk-secondary { min-height: 42px; border: 1px solid var(--lk-border); background: #fff; color: var(--lk-text); border-radius: 999px; padding: 9px 15px; cursor: pointer; font: inherit; font-weight: 600; }
.lk-secondary.is-danger { color: #b42318; border-color: rgba(180,35,24,.25); }
.lk-message { display: none; font-size: 14px; line-height: 1.5; color: var(--lk-text); }
.lk-message.is-visible { display: block; }
.lk-message.is-error { color: #b42318; }
.lk-message.is-success { color: #1f7a34; }
.lk-submit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lk-submit { width: auto; min-width: 160px; }
.lk-auth .lk-submit { width: 100%; }
.lk-auth__footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; font-size: 14px; line-height: 1.5; }
.lk-auth__link { border: 0; background: transparent; color: var(--lk-text); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.tlk-auth-widget.hidden,
.tlk-auth-widget .hidden,
.Hd-none { display: none !important; }
.tlk-auth-widget { padding: 22px; border-radius: var(--lk-radius); background: #fff; }
.tlk-title { margin: 0 0 14px; font-size: 24px; }
.tlk-links { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.tlk-link-button { padding: 0; border: 0; background: none; color: var(--lk-text); cursor: pointer; font: inherit; text-decoration: underline; }
.tlk-form { display: grid; gap: 14px; }
.tlk-label { display: block; font-weight: 650; }
.tlk-form input[type="text"],
.tlk-form input[type="email"],
.tlk-form input[type="password"],
.tlk-form input[type="date"],
.tlk-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--lk-border); border-radius: 12px; }
.tlk-password-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.tlk-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.tlk-actions button { min-height: 42px; padding: 9px 15px; border: 0; background: var(--lk-accent); color: #111; border-radius: 999px; cursor: pointer; font-weight: 700; }
.tlk-note { padding: 12px; background: #f7f7f7; border-radius: 12px; }
.tlk-check { display: flex; gap: 8px; align-items: flex-start; }
.tlk-message { margin: 0 0 12px; padding: 10px 12px; background: #f7f7f7; border-radius: 12px; }
.tlk-message.error { background: #fff1f2; color: #b42318; }
.tlk-name-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tlk-authorized { padding: 12px 0; }

.lk-settings-modal { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; background: rgba(17,17,17,.42); overflow: auto; }
.lk-settings-modal__box { width: min(680px, 100%); background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.lk-settings-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lk-settings-modal__title { margin: 0; font-size: 26px; line-height: 1.2; }
.lk-settings-modal__close { border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
.lk-children { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--lk-border); }
.lk-settings-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lk-settings-section__head h4 { margin: 0; font-size: 20px; }
.lk-children__list { display: grid; gap: 8px; margin-bottom: 14px; }
.lk-child-row { border: 1px solid var(--lk-border); background: #f7f7f7; border-radius: 14px; min-height: 52px; padding: 11px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; font: inherit; }
.lk-child-row span { font-weight: 650; }
.lk-child-row small { color: var(--lk-muted); }
.lk-child-form { display: grid; gap: 14px; padding: 14px; background: #f7f7f7; border-radius: 16px; }

.tlk-auth-modal { position: fixed; inset: 0; z-index: 1000001; }
.tlk-auth-modal.hidden { display: none; }
.tlk-auth-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.tlk-auth-modal__dialog { position: relative; z-index: 1; max-width: 560px; margin: 6vh auto 0; padding: 0 12px; }
.tlk-auth-modal__content { background: #fff; border-radius: 22px; padding: 0; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.tlk-auth-modal__close { position: absolute; right: 20px; top: 12px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }

@media screen and (max-width: 980px) {
  .lk-shell { grid-template-columns: 1fr; }
  .lk-content { min-height: 420px; }
  .lk-tabs { position: sticky; top: 70px; background: #fff; border-radius: 16px; padding: 10px; z-index: 99; box-shadow: 0 10px 28px rgba(17,17,17,.08); }
}

@media screen and (max-width: 700px) {
  .lk-page { padding: 18px 12px; }
  .lk-content,
  .lk-user__body { padding: 18px; }
  .lk-order__top,
  .lk-bonus-card { flex-direction: column; align-items: flex-start; }
  .lk-order__price { text-align: left; align-items: flex-start; }
  .lk-order__products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lk-auth { padding: 28px 18px 24px; }
  .lk-auth__footer { flex-direction: column; }
  .lk-name-grid { grid-template-columns: 1fr; }
  .lk-settings-section__head { align-items: flex-start; flex-direction: column; }
  .lk-child-row { flex-direction: column; align-items: flex-start; }
}

@media screen and (max-width: 420px) {
  .lk-order__products { grid-template-columns: 1fr; }
  .lk-tab { font-size: 12px; min-height: 36px; padding: 8px 11px; }
}
