/* FtaFat redesign layer (Nov 2026) — loaded after app.css.
 * Works in light and dark themes: every colour comes from the app.css tokens. */

:root, [data-bs-theme="light"] {
  --ff-green: #0B8A4D;
  --ff-green-deep: #087040;
  --ff-green-soft: #E6F4EA;
  --ff-card: #FFFFFF;
  --ff-tile: #F3F7F4;
  --ff-radius: 18px;
}
[data-bs-theme="dark"] {
  --ff-green: #1FA463;
  --ff-green-deep: #128A50;
  --ff-green-soft: rgba(31, 164, 99, 0.16);
  --ff-card: #14211A;
  --ff-tile: #1B2B22;
}

/* ------------------------------------------------------------ Header */
.ff-head .ff-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hl-text); min-width: 0; }
.ff-logo {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--ff-green) 0%, var(--ff-green-deep) 100%);
  color: #FFD43B; font-size: 20px; box-shadow: 0 4px 12px var(--hl-accent-glow);
}
.ff-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.ff-brand-row { display: flex; align-items: center; gap: 6px; }
.ff-brand .hl-wordmark { font-size: 20px; }
/* 2.5.8 brand: the ftafat wordmark image (green + ink on light, white + yellow on dark) */
.ff-wm { height: 36px; width: auto; display: block; }
.ff-wm-dark { display: none; }
[data-bs-theme="dark"] .ff-wm-light { display: none; }
[data-bs-theme="dark"] .ff-wm-dark { display: block; }
.ff-eta-pill {
  font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  padding: 2px 7px; border-radius: 999px; background: var(--ff-green-soft); color: var(--hl-accent);
}
[data-bs-theme="dark"] .ff-eta-pill { color: #6EE7A8; }
.ff-sub { font-size: 11.5px; color: var(--hl-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ff-head #locBtn {
  border: 1px solid var(--hl-line) !important; border-radius: 14px !important;
  background: var(--ff-card) !important; padding: 6px 10px !important; max-width: 46vw;
}
.ff-head #locBtn #locTitle { font-size: 13px; }
.ff-head #locBtn #locSub { font-size: 11px; display: inline !important; max-width: 130px !important; }

/* Search row */
.ff-search { display: flex; align-items: center; gap: 8px; }
.ff-search form { flex: 1; min-width: 0; }
.ff-search .ff-search-box { position: relative; display: flex; align-items: center; }
.ff-search .ff-search-box > .bi-search { position: absolute; left: 14px; color: var(--hl-muted); pointer-events: none; }
.ff-search input.form-control {
  height: 44px; border-radius: 14px; padding-left: 40px; padding-right: 40px;
  background: var(--ff-tile); border: 1px solid var(--hl-line);
}
.ff-mic {
  position: absolute; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: transparent; color: var(--hl-accent); display: inline-flex; align-items: center; justify-content: center;
}
.ff-mic.listening { background: var(--ff-green-soft); animation: ffPulse 1s ease-in-out infinite; }
@keyframes ffPulse { 50% { transform: scale(1.08); } }
.ff-veg {
  height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--hl-line);
  background: var(--ff-card); color: var(--hl-text); font-weight: 800; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap;
}
.ff-veg i { color: var(--ff-green); }
.ff-veg:hover { border-color: var(--ff-green); color: var(--hl-text); }

/* ------------------------------------------------------------ Home: segmented tabs */
.ff-seg {
  display: flex; gap: 4px; padding: 4px; border-radius: 16px; margin-bottom: 14px;
  background: var(--ff-tile); border: 1px solid var(--hl-line);
}
.ff-seg button {
  flex: 1; border: 0; background: transparent; border-radius: 12px; padding: 9px 6px;
  font-weight: 700; font-size: 13.5px; color: var(--hl-muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.ff-seg button.active { background: var(--ff-card); color: var(--hl-text); box-shadow: var(--hl-shadow-sm); }
.ff-seg .bi-lightning-charge-fill { color: #F97316; }
.ff-seg .bi-basket2-fill { color: var(--ff-green); }
.ff-seg .bi-fire { color: #EA580C; }

/* ------------------------------------------------------------ Home: hero banner */
.ff-hero {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px;
  border-radius: var(--ff-radius); color: #FFFFFF;
  background: linear-gradient(120deg, #087040 0%, #0B8A4D 60%, #10A35C 100%);
  box-shadow: 0 10px 24px var(--hl-accent-glow);
}
.ff-hero-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
}
.ff-hero-body { flex: 1; min-width: 0; }
.ff-hero-title { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ff-hero-chip { background: #FFC21A; color: #3A2A00; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; letter-spacing: .03em; }
.ff-hero-sub { font-size: 12.5px; opacity: .9; margin-top: 2px; }
.ff-hero-side { text-align: right; flex-shrink: 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); }
.ff-hero-side small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; opacity: .8; }
.ff-hero-side b { font-size: 18px; }

/* ------------------------------------------------------------ Home: categories */
.ff-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ff-sec-head h2 { font-size: 18px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
.ff-count { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--ff-green-soft); color: var(--hl-accent); }
[data-bs-theme="dark"] .ff-count { color: #6EE7A8; }
.ff-viewall { font-weight: 800; font-size: 13.5px; color: var(--hl-accent); text-decoration: none; white-space: nowrap; }
[data-bs-theme="dark"] .ff-viewall { color: #6EE7A8; }
.ff-sec-sub { font-size: 12.5px; color: var(--hl-muted); margin: -6px 0 12px; }

.ff-cats { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 18px; scrollbar-width: none; scroll-behavior: smooth; }
.ff-cats::-webkit-scrollbar { display: none; }
.ff-cat {
  flex: 0 0 86px; width: 86px; border-radius: 18px; padding: 8px 6px 10px; text-decoration: none;
  background: var(--ff-card); border: 1px solid var(--hl-line); color: var(--hl-text);
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .15s ease, border-color .15s ease;
}
.ff-cat:hover { transform: translateY(-2px); border-color: var(--ff-green); color: var(--hl-text); }
.ff-cat-img {
  width: 62px; height: 62px; border-radius: 14px; overflow: hidden; background: var(--ff-tile);
  display: flex; align-items: center; justify-content: center; color: var(--hl-accent); font-size: 26px;
}
.ff-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-cat-name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ff-cat.active { background: linear-gradient(160deg, var(--ff-green) 0%, var(--ff-green-deep) 100%); border-color: transparent; color: #FFF; }
.ff-cat.active .ff-cat-img { background: rgba(255,255,255,.16); color: #FFD43B; }

/* ------------------------------------------------------------ Product cards */
.hl-card:has(> .hl-thumb) { border-radius: var(--ff-radius) !important; background: var(--ff-card) !important; }
.hl-thumb { background: var(--ff-tile); border: 0; }
.ff-off {
  position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10.5px; font-weight: 800;
  padding: 3px 8px; border-radius: 8px; background: var(--ff-green); color: #FFF; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.ff-shopline { font-size: 11px; color: var(--hl-muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-shopline i { color: var(--ff-green); }
.hl-card .btn-soft[data-act="add"] {
  border: 1.5px solid var(--ff-green) !important; color: var(--ff-green) !important; background: var(--ff-green-soft) !important;
  font-weight: 800; border-radius: 10px; min-width: 64px;
}
.hl-stepper { background: var(--ff-green) !important; border-color: var(--ff-green) !important; border-radius: 10px !important; box-shadow: none !important; }
.hl-stepper > span { color: #FFF !important; font-weight: 800; min-width: 18px; text-align: center; }
.hl-stepper button { background: transparent !important; color: #FFF !important; }

/* ------------------------------------------------------------ Sticky cart bar */
.hl-cartbar {
  border-radius: 18px !important; padding: 10px 10px 10px 12px !important; gap: 12px !important;
  background: linear-gradient(120deg, #087040 0%, #0B8A4D 100%) !important;
}
.ff-bag { position: relative; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.ff-bag-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: #FFC21A; color: #3A2A00; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ff-saved { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: rgba(255,255,255,.18); margin-left: 6px; }
.ff-viewcart { background: #FFF; color: #087040; font-weight: 800; border-radius: 12px; padding: 9px 14px; white-space: nowrap; flex-shrink: 0; }

/* ------------------------------------------------------------ Bottom navigation (phones) */
.ff-bnav { display: none; }
@media (max-width: 767.98px) {
  .ff-bnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1031;
    background: var(--hl-surface-solid); border-top: 1px solid var(--hl-line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .ff-bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none;
    color: var(--hl-muted); font-size: 11px; font-weight: 700; position: relative; padding: 2px 0; }
  .ff-bnav a i { font-size: 20px; line-height: 1; }
  .ff-bnav a.active { color: var(--hl-accent); }
  [data-bs-theme="dark"] .ff-bnav a.active { color: #6EE7A8; }
  .ff-bnav a.active i { background: var(--ff-green-soft); border-radius: 10px; padding: 3px 14px; }
  .ff-bnav .ff-bnav-badge { position: absolute; top: -2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px; background: var(--ff-green); color: #FFF; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; }
  .hl-cartbar { bottom: calc(70px + env(safe-area-inset-bottom)) !important; width: calc(100% - 20px) !important; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.ff-has-cartbar { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  footer.mt-5 { margin-bottom: 0; }
  .ff-head .hl-actions-desktop { display: none !important; }
}

/* ------------------------------------------------------------ Cart page */
.ff-cart-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ff-cart-head .ff-hero-icon { background: var(--ff-green-soft); color: var(--ff-green); border: 0; }
.ff-cart-head h1 { font-size: 19px; font-weight: 800; margin: 0; }
button[data-act="place-order"].btn-lg {
  border-radius: 16px !important; padding: 15px 18px !important; font-weight: 800 !important;
  background: linear-gradient(120deg, #087040 0%, #0B8A4D 100%) !important; border: 0 !important;
  box-shadow: 0 10px 24px var(--hl-accent-glow);
}


/* ------------------------------------------------------------ Polish (phones, dark mode) */
.ff-bag i { color: #FFFFFF; }
.hl-stepper button, [data-bs-theme="dark"] .hl-stepper button {
  background: transparent !important; color: #FFFFFF !important; box-shadow: none !important;
}
@media (max-width: 575.98px) {
  .ff-head .container.py-2 { gap: 8px !important; }
  .ff-head [data-theme-toggle] { display: none !important; }   /* still in Account → Switch light / dark theme */
  .ff-logo { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
  .ff-brand .hl-wordmark { font-size: 18px; }
  .ff-wm { height: 30px; }
  .ff-brand-row { gap: 5px; }
  .ff-eta-pill { font-size: 9.5px; padding: 2px 6px; }
  .ff-sub { font-size: 11px; max-width: 150px; }
  .ff-head #locBtn { max-width: 42vw; padding: 5px 8px !important; gap: 6px !important; }
  .ff-head #locBtn .bi-geo-alt-fill { font-size: 16px !important; }
  .ff-head #locBtn #locSub { max-width: 92px !important; }
  .ff-search input.form-control { font-size: 14px; }
}
@media (max-width: 374.98px) {
  .ff-eta-pill { display: none; }
}

/* search suggestions while typing (2.4.3) */
.ff-sug-host { position: relative; flex: 1 1 auto; min-width: 0; }
.ff-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1060; background: var(--ff-card); color: var(--hl-text);
  border: 1px solid var(--hl-line); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 6px; max-height: min(70vh, 520px); overflow: auto; }
.ff-sug-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--hl-muted); padding: 6px 10px 4px; }
.ff-sug-clear { border: 0; background: none; color: var(--hl-accent); font-size: 12px; font-weight: 700; padding: 0; }
.ff-sug-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; cursor: pointer; }
.ff-sug-row:hover, .ff-sug-row.active { background: var(--ff-tile); }
.ff-sug-row.is-off .ff-sug-img { opacity: .55; }
.ff-sug-img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; object-fit: cover; background: var(--ff-tile); }
.ff-sug-noimg { display: inline-flex; align-items: center; justify-content: center; color: var(--hl-muted); font-size: 16px; }
.ff-sug-ic { width: 40px; text-align: center; color: var(--hl-muted); font-size: 16px; }
.ff-sug-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ff-sug-name { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ff-sug-name b { font-weight: 800; }
.ff-sug-sub { font-size: 12px; color: var(--hl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-sug-fill { border: 0; background: none; color: var(--hl-muted); width: 32px; height: 32px; border-radius: 8px; flex: 0 0 32px; }
.ff-sug-fill:hover { background: var(--ff-green-soft); color: var(--hl-accent); }
.ff-sug-all { border-top: 1px solid var(--hl-line); border-radius: 0 0 12px 12px; margin-top: 4px; }
.ff-sug-all .ff-sug-name { color: var(--hl-accent); font-weight: 700; }
.ff-ft { display: inline-block; width: 11px; height: 11px; border: 1.5px solid #0B8A4D; border-radius: 2px; margin-right: 6px; position: relative; vertical-align: -1px; }
.ff-ft::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #0B8A4D; }
.ff-ft.nv { border-color: #B3261E; } .ff-ft.nv::after { background: #B3261E; }
.ff-ft.egg { border-color: #D98E04; } .ff-ft.egg::after { background: #D98E04; }
.ff-search .ff-search-box > .bi-search { z-index: 3; }

/* personal feed rows between products (2.4.4) */
.ff-feed-row { margin: 6px 0 18px; padding: 14px 14px 4px; border-radius: 20px; background: linear-gradient(135deg, var(--ff-green-soft), transparent 70%); border: 1px solid var(--hl-line); }
.ff-feed-row .hl-reco { margin-bottom: 8px !important; }
.ff-hello { margin: 2px 2px 12px; }
.ff-hello-t { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
.ff-hello-s { color: var(--hl-muted); font-size: 13px; }
.ff-hello-s .bi-stars { color: var(--hl-accent); }

/* 2.5.0 — cart always easy to reach, "Go to cart", fixed buy bar, login choices */
.ff-hdr-cart { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--hl-accent, #0B8A4D); color: #fff !important; font-weight: 800; text-decoration: none; position: relative; flex-shrink: 0; box-shadow: 0 4px 14px rgba(11,138,77,.25); }
.ff-hdr-cart:hover { filter: brightness(1.05); }
.ff-hdr-cart .bi { font-size: 18px; }
.ff-hdr-cart-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--hl-accent, #0B8A4D); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 420px) { .ff-hdr-cart { padding: 0 11px; } .ff-hdr-cart-t { display: none; } }

.ff-snack { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 1080;
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 460px); padding: 10px 10px 10px 14px; border-radius: 14px; background: #111827; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: all .2s ease; }
.ff-snack.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ff-snack .bi-check-circle-fill { color: #34D399; }
.ff-snack-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.ff-snack-go { flex-shrink: 0; background: #34D399; color: #052e1c !important; font-weight: 800; text-decoration: none; padding: 7px 12px; border-radius: 10px; font-size: 14px; }
body.ff-has-cartbar .ff-snack { bottom: calc(170px + env(safe-area-inset-bottom)); }
@media (max-width: 767.98px) { body.ff-pdp .ff-snack { bottom: calc(150px + env(safe-area-inset-bottom)); width: calc(100% - 24px); } }
.ff-snack-t b { font-weight: 700; }

.ff-pdp-buy { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.ff-pdp-buy .btn-lg { height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.ff-pdp-qty .hl-stepper { height: 52px; }
.ff-pdp-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 76px; }
@media (max-width: 767.98px) {
  .ff-pdp-buy-m { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 1030; margin: 0; padding: 10px 12px; background: var(--ff-card, #fff); border-top: 1px solid var(--hl-line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
  body.ff-pdp { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  body.ff-pdp .hl-cartbar { display: none !important; }
}

.ff-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--hl-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ff-or::before, .ff-or::after { content: ""; flex: 1; height: 1px; background: var(--hl-line); }
.ff-gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; font-weight: 700; border-radius: 12px; }

/* ------------------------------------------------------------ Login (redesign 0.0.10) */
.ff-login { display: grid; grid-template-columns: 1fr; max-width: 980px; margin: 8px auto 32px; border-radius: 26px; overflow: hidden;
  background: var(--ff-card); box-shadow: 0 18px 50px rgba(8, 112, 64, .12); border: 1px solid var(--hl-line); }
@media (min-width: 992px) { .ff-login { grid-template-columns: 1.05fr 1fr; margin-top: 24px; } }
.ff-login-brand { position: relative; overflow: hidden; color: #fff; padding: 26px 24px 30px;
  background: linear-gradient(140deg, #087040 0%, #0B8A4D 55%, #10A35C 100%); }
.ff-login-brand::before, .ff-login-brand::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ff-login-brand::before { width: 260px; height: 260px; right: -90px; top: -110px; background: rgba(255, 255, 255, .08); }
.ff-login-brand::after { width: 180px; height: 180px; left: -60px; bottom: -70px; background: rgba(255, 194, 26, .18); }
.ff-login-brand > * { position: relative; }
.ff-login-brand h1 { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.ff-login-sub { opacity: .9; margin: 0; }
.ff-login-offer { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 16px;
  background: #FFC21A; color: #3A2A00; }
.ff-login-offer span { font-size: 24px; line-height: 1; }
.ff-login-offer small { display: block; font-size: 12px; opacity: .8; }
.ff-login-offer-sm { margin: 0 0 16px; padding: 9px 12px; font-size: 14px; background: rgba(255, 194, 26, .22); color: var(--hl-text); }
.ff-login-trust { list-style: none; padding: 0; margin: 26px 0 0; display: none; }
.ff-login-trust li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.ff-login-trust i { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .15); font-size: 18px; flex-shrink: 0; }
.ff-login-trust small { display: block; opacity: .8; font-size: 12.5px; }
@media (min-width: 992px) {
  .ff-login-brand { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
  .ff-login-brand h1 { font-size: 34px; }
  .ff-login-trust { display: block; }
}
@media (max-width: 991.98px) { .ff-login-brand .ff-login-offer { display: none; } .ff-login-brand { padding-bottom: 44px; } }
.ff-login-card { padding: 26px 22px 22px; background: var(--ff-card); }
@media (max-width: 991.98px) { .ff-login-card { margin-top: -22px; border-radius: 24px 24px 0 0; position: relative; } }
@media (min-width: 992px) { .ff-login-card { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; } }
.ff-login-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.ff-login-hint { color: var(--hl-muted); font-size: 14px; margin-bottom: 18px; }
.ff-lbl { display: block; font-weight: 700; font-size: 13px; color: var(--hl-muted); margin-bottom: 6px; }
.ff-phone { display: flex; align-items: center; height: 56px; border: 1.5px solid var(--hl-line); border-radius: 14px; background: var(--ff-card);
  transition: border-color .15s, box-shadow .15s; }
.ff-phone:focus-within { border-color: var(--ff-green); box-shadow: 0 0 0 4px var(--ff-green-soft); }
.ff-cc { padding: 0 12px 0 14px; font-weight: 700; border-right: 1px solid var(--hl-line); white-space: nowrap; }
.ff-phone input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--hl-text); height: 100%;
  padding: 0 14px; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.ff-phone input::placeholder { font-weight: 500; letter-spacing: 0; color: var(--hl-muted); opacity: .7; }
.ff-phone input.is-invalid { color: var(--bs-danger); }
.ff-input { height: 52px; border-radius: 14px; }
.ff-cta { height: 54px; border-radius: 14px; font-weight: 800; font-size: 16px; color: #fff; background: var(--ff-green); border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ff-cta:hover, .ff-cta:focus { background: var(--ff-green-deep); color: #fff; }
.ff-alt { height: 52px; border-radius: 14px; font-weight: 700; border: 1px solid var(--hl-line); background: var(--ff-card); color: var(--hl-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.ff-alt:hover { background: var(--ff-tile); }
.ff-sent { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ff-green-soft);
  font-size: 13.5px; margin-bottom: 14px; }
.ff-sent i { color: var(--ff-green); font-size: 18px; }
.ff-sent span { flex: 1; min-width: 0; }
.ff-sent a { font-weight: 700; color: var(--ff-green); text-decoration: none; }
.ff-code { position: relative; }
.ff-code-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; caret-color: transparent; z-index: 1; }
.ff-code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ff-code-boxes span { height: 56px; border-radius: 12px; border: 1.5px solid var(--hl-line); background: var(--ff-card);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; transition: border-color .15s, background .15s; }
.ff-code-boxes span.filled { border-color: color-mix(in srgb, var(--ff-green) 55%, transparent); background: var(--ff-green-soft); }
.ff-code-boxes span.on { border: 2px solid var(--ff-green); box-shadow: 0 0 0 4px var(--ff-green-soft); }
.ff-code .is-invalid ~ .ff-code-boxes span { border-color: var(--bs-danger); }
.ff-login-legal { font-size: 12px; color: var(--hl-muted); text-align: center; margin: 22px 0 0; }
.ff-login-legal a { color: var(--ff-green); font-weight: 600; }
.ff-phone .invalid-feedback { display: none !important; }
.ff-login .ff-login-brand h1 { color: #fff; }
.ff-login.ff-step-code .ff-hide-code { display: none !important; }
.ff-login.ff-step-code .ff-alt-wrap > :not(form) { display: none !important; }
.ff-login.ff-step-code [data-form="phone"], .ff-login.ff-step-code [data-form="email"] { display: none !important; }
@media (max-width: 991.98px) {
  .ff-login { margin-top: 0; border-radius: 22px; }
  .ff-login-brand { padding: 20px 20px 40px; }
  .ff-login-brand img { height: 28px; margin-bottom: 14px !important; }
  .ff-login-brand h1 { font-size: 22px; }
  .ff-login-sub { font-size: 14px; }
}
.ff-login-brand > img { align-self: flex-start; }
