/* authcore/public/css/common.css */

:root{
  --header-h: 270px;
  --bottom-h: 76px;
  --marker-y: 260px;
  --home-shrink-progress: 0;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* Base */
body {
  margin: 0;
  background: #000;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  overflow: hidden;
}

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
button { font: inherit; }
img { max-width: 100%; display: block; }


/* Default layout vars */
:root {
  --header-h: 0px;
  --bottom-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom-raw: env(safe-area-inset-bottom, 0px);
  --safe-bottom: max(0px, calc(var(--safe-bottom-raw) - 16px));
  --modal-tr: .55s;
}

@media (display-mode: standalone) {
  :root {
    --safe-bottom: 0px;
  }
}

/* app-shell */
.app-shell {
  height: 100vh;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--bottom-h) + var(--safe-bottom));
}

.app-shell {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* helpers */
/* no scrollbar helper */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* секции страницы */
.page-section {
  padding: 0 16px;
  margin-bottom: 12px;
}

/* stack */
.stack-8 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-10 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* gradients */
.header-gradient {background: linear-gradient(to bottom, #151517, #2f2f32);}
.bottom-gradient {background: linear-gradient(to top, #000000, #2f2f32);}

/* ФОН ХЕДЕРА — чтобы контент под ним не просвечивал */
header { background: #000; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid #1f2937;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding-top: 6px;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.bottom-row {
  display: flex;
  justify-content: space-around;
}

.bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px 6px;
  color: #6b7280;
}

.bottom-link:hover {
  color: #d1d5db;
}

.bottom-link.is-active {
  color: #ff9f0a;
}

.bottom-link i {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-link span {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.1;
}


/* Base button */
.btn {
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background-color: #2C2C2E;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn:not(:disabled):hover {
  background-color: #3A3A3C;
}

.btn:not(:disabled):active {
  background-color: rgba(58, 58, 60, 0.9);
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Buttons (FAQ) */
.btn-primary {
  width: 100%;
  padding: 12px 0;
  border-radius: 9999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0A84FF;
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.45);
  transition: 0.2s;
}

.btn-primary:not(:disabled):hover {background: #0a78e0;}
.btn-primary:not(:disabled):active {transform: scale(0.97);}
.btn-primary i { font-size: 1.25rem; line-height: 1; }
.btn-primary span { font-size: 0.9375rem; }

.btn-secondary {
  margin-top: 10px;
  width: 100%;
  padding: 12px 0;
  border-radius: 9999px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f3f4f6;
  transition: 0.2s;
}

.btn-secondary:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.10);
}

.btn-secondary:not(:disabled):active {
  transform: scale(0.97);
}

.text-muted {
  font-size: 0.75rem;
  color: #8E8E93;
  margin: 3px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* input */
.input-wrap {
  background: #3A3A3C;
  border: 1px solid #3A3A3C;
  border-radius: 12px;
  padding: 8px 12px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.input-wrap:focus-within {
  border-color: #0A84FF;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .18);
}

.input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 1rem;
  color: #FFFFFF;
  caret-color: #0A84FF;
}

.input::placeholder {
  color: #9CA3AF;
}

.input:disabled {
  opacity: .6;
  cursor: not-allowed;
}

input.input:-webkit-autofill,
input.input:-webkit-autofill:hover,
input.input:-webkit-autofill:focus,
textarea.input:-webkit-autofill,
textarea.input:-webkit-autofill:hover,
textarea.input:-webkit-autofill:focus,
select.input:-webkit-autofill,
select.input:-webkit-autofill:hover,
select.input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  caret-color: #0A84FF;
  -webkit-box-shadow: 0 0 0 1000px #3A3A3C inset;
  box-shadow: 0 0 0 1000px #3A3A3C inset;
  transition: background-color 999999s ease-out 0s;
}

/* Modal / sheet */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--modal-tr);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s ease-out, background 0.65s ease-out, box-shadow 0.95s ease-out;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
}

.modal.active .sheet {
  transform: translateY(0);
}

.handle {
  width: 36px;
  height: 4px;
  background: #4b5563;
  border-radius: 2px;
  margin: 0 auto 12px;
}

/* Desktop */
@media (min-width: 1024px) {
  body {
    background: #0f0f10;
  }

  .app-shell {
    max-width: 960px;
    margin: 18px auto;
    background: #000;
    border-radius: 22px;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow:
      0 18px 60px rgba(0, 0, 0, 0.70),
      0 6px 18px rgba(0, 0, 0, 0.45);
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 32px));
  }
}

.opacity-70 {
  opacity: .7;
}

/* iOS toggle */
.toggle-ios {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 9999px;
  background-color: #4b5563;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.toggle-ios::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: #ffffff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.toggle-ios:checked {
  background-color: #22c55e;
}

.toggle-ios:checked::before {
  transform: translateX(18px);
}

/* card clickable */
.ui-card {
  width: 100%;
  background-color: #1C1C1E;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

.ui-card:hover {
  background-color: #2C2C2E;
  transform: translateY(-2px);
}

/* progress bar */
.ui-bar {
  height: 5px;
  background: #49494D;
  border-radius: 9999px;
  overflow: hidden;
}

.ui-barFill {
  height: 100%;
  border-radius: 9999px;
}

/* badge trial */
.badge-trial {
  background: linear-gradient(to right, #30D158, #059669);
  color: #051b11;
  font-size: 0.5625rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 3px 0 0 8px;
  display: inline-flex;
  align-items: center;
}

/* plan icon */
.plan-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  position: relative;
  display: grid;
  place-items: center;
  margin-right: 0;
  flex: 0 0 60px;
  flex-shrink: 0;
  overflow: visible;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -12px 18px rgba(0, 0, 0, .28);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.plan-icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.plan-icon::before {
  content: "";
  position: absolute;
  border-radius: 14px;
  inset: 0;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .28), transparent 55%);
  pointer-events: none;
}

.plan-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  pointer-events: none;
}

.plan-icon > :not(.plan-icon-bg) {
  position: relative;
  z-index: 1;
}

.plan-icon-text--wb,
.plan-icon-text--ozon {
  font-weight: 800;
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

.plan-icon-text--wb {
  font-size: 1.125rem;
  letter-spacing: .3px;
}

.plan-icon-text--ozon {
  font-size: 1rem;
  letter-spacing: .2px;
}

.plan-icon-combo-vertical {
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 0.7;
}

.combo-line {
  font-size: 0.9375rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.combo-plus {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  margin: 2px 0;
  opacity: 0.9;
}

.combo-oz {
  font-size: 0.8125rem;
  letter-spacing: 0.6px;
}

.plan-icon-i {
  font-size: 1.375rem;
  color: rgba(255, 255, 255, .92);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

/* Backgrounds per plan type */
.plan-icon-bg--default .plan-icon-bg {
  background: linear-gradient(135deg, #3a3a3c, #1c1c1e);
}

.plan-icon-bg--wb .plan-icon-bg {
  background: linear-gradient(to right, #CB11AB 0%, #990099 45%, #481173 100%);
}

.plan-icon-bg--ozon .plan-icon-bg {
  background: linear-gradient(135deg, #005BFF 70%, #00A2FF 100%);
}

.plan-icon-bg--combo .plan-icon-bg {
  background: linear-gradient(135deg, #CB11AB, #005BFF);
}

.plan-icon-bg--reviews .plan-icon-bg {
  background: linear-gradient(135deg, #f97316 50%, #ffa15e 100%);
}

.plan-icon-bg--ransoms .plan-icon-bg {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
}

/* modal icon smaller */
.plan-icon--modal {
  width: 42px !important;
  height: 42px !important;
  border-radius: 9px !important;
  margin-right: 0 !important;
  flex: 0 0 42px !important;
}

.plan-icon--modal .plan-icon-bg {
  border-radius: 9px;
}

.plan-icon--modal::before,
.plan-icon--modal::after {
  border-radius: 9px;
}

.plan-icon--modal .plan-icon-text--wb {
  font-size: 0.8125rem;
}

.plan-icon--modal .plan-icon-text--ozon {
  font-size: 0.75rem;
}

.plan-icon--modal .combo-line {
  font-size: 0.6875rem;
}

.plan-icon--modal .combo-plus {
  font-size: 0.625rem;
  margin: 1px 0;
}

.plan-icon--modal .combo-oz {
  font-size: 0.625rem;
}

.plan-icon--modal .plan-icon-i {
  font-size: 1.0625rem;
}

.sheet-link-btn {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: #F2F2F7;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, opacity .15s ease;
}

.sheet-link-btn:not(:disabled):hover {
  background: #EAEAEE;
}

.sheet-link-btn:not(:disabled):active {
  transform: scale(0.985);
}

.sheet-link-btn:disabled {
  opacity: .5;
  cursor: default;
}

.sheet-link-btn i {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}

.sheet-link-btn span {
  display: block;
}

/* shared modal title */
.modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.modal-titlegroup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-icon {
  flex: 0 0 22px;
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  color: #F5F5F7;
}

.modal-title-text {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.2;
  font-weight: 700;
  color: #FFFFFF;
}

/* Блок промокода */
.promo-card{
  width:100%;
  max-width:100%;
  padding:10px;
  border-radius:16px;
  border:1px solid #1C1C1E;
  background:#1C1C1E;
  box-sizing:border-box;
  overflow-x:hidden;
}

.promo-row{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  min-width:0;
}

.promo-input-col{
  flex:1 1 auto;
  min-width:0;
  width:0;
}

.promo-input-col input{
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.promo-row .btn--promo{
  flex:0 0 auto;
  max-width:100%;
}

.promo-footer{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-width:0;
}

.promo-status{
  margin:0 10px;
  flex:1 1 auto;
  min-width:0;
  min-height:1.45em;
  font-size:0.6875rem;
  line-height:1;
  color:#9CA3AF;
}

.btn-link {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 8px 0 0;
  font-size: 11px;
  color: #9CA3AF;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.btn-link:hover {
  color: #E5E7EB;
}

@media (max-width:560px){
  .promo-row{
    align-items:stretch;
    min-width:0;
  }

  .promo-row .btn--promo{
    flex:0 0 auto;
  }
}


/* push bsnner */
.push-banner{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  background: #1C1C1E;
  color: #fff;
  border:1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  z-index: 9999;
  backdrop-filter: blur(20px);
}

.push-banner-title{
  font-size:15px;
  font-weight:600;
  margin-bottom:6px;
}

.push-banner-text{
  font-size:13px;
  opacity:.85;
  margin-bottom:14px;
  line-height:1.45;
}

.push-banner-actions{
  display:flex;
  gap:8px;
}

.push-banner-btn{
  flex:1;
  border:0;
  border-radius:10px;
  padding:10px 12px;
  font-size:13px;
  font-weight:600;
}

.push-banner-btn-primary{
  background:#0A84FF;
  color:#fff;
}

.push-banner-btn-secondary{
  background:rgba(255,255,255,.12);
  color:#fff;
}

.push-banner-row{
  display:flex;
  gap:12px;
  margin-bottom:12px;
}

.push-banner-icon{
  width:36px;
  height:36px;
  border-radius:8px;
  flex-shrink:0;
}

.push-banner-content{
  flex:1;
}
