/* =====================================================================
   EIDOK THEME - design system layer (loaded after style.min.css)
   Phase 1: identity, typography, icons, card-less feed, navigation,
            create sheet, feed tabs, micro-interactions
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --ek-red: #E41E26;
  --ek-magenta: #D6246E;
  --ek-violet: #8A2BE2;
  --ek-grad: linear-gradient(135deg, #E41E26 0%, #D6246E 52%, #8A2BE2 100%);
  --ek-grad-soft: linear-gradient(135deg, rgba(228, 30, 38, .12), rgba(138, 43, 226, .12));
  --ek-brand: #E41E26;
  --ek-brand-dark: #C4161C;
  --ek-brand-soft: rgba(228, 30, 38, .10);
  --ek-bg: #F3F4F7;
  --ek-surface: #FFFFFF;
  --ek-surface-2: #F5F6F8;
  --ek-line: #E9EBEF;
  --ek-text: #0F1419;
  --ek-text-2: #536471;
  --ek-radius: 18px;
  --ek-radius-sm: 12px;
  --ek-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
  --ek-font: "Plus Jakarta Sans", "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ek-nav-h: 64px;
  --link-color: #E41E26;
  --plyr-color-main: #E41E26;
  --body-font-family: var(--ek-font);
  --body-bg-color: #F3F4F7;
  --body-bg-color-dark: #0E1116;
  --header-bg-color-dark: #0E1116;
  --card-dark-color: #161B22;
  --card-dark-divider: #242B34;
  --card-dark-hover: #1C232C;
  --card-dark-input: #1C232C;
}
body.night-mode {
  --ek-bg: #0E1116;
  --ek-surface: #161B22;
  --ek-surface-2: #1C232C;
  --ek-line: #242B34;
  --ek-text: #E7E9EA;
  --ek-text-2: #8B98A5;
  --ek-shadow: none;
  --body-color-dark: #E7E9EA;
}

/* ---------- typography ---------- */
html { -webkit-text-size-adjust: 100%; }
body, button, input, textarea, select, .form-control, .dropdown-menu, .modal { font-family: var(--ek-font) !important; }
body { background: var(--ek-bg) !important; color: var(--ek-text); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 800; letter-spacing: -.02em; }
strong, b { font-weight: 700; }
.text-muted, .post-time, .post-time a { color: var(--ek-text-2) !important; }

/* ---------- lucide icons: stroke, never filled ---------- */
html body.ek-theme .svg-container svg.ek-lucide,
html body.ek-theme .svg-container svg.ek-lucide *,
html body.ek-theme.night-mode .svg-container svg.ek-lucide,
html body.ek-theme.night-mode .svg-container svg.ek-lucide * { fill: none !important; stroke: currentColor !important; }
.svg-container svg.ek-lucide { display: block; width: 100%; height: 100%; }
.header-icon { color: var(--ek-text) !important; }
body.night-mode .header-icon { color: var(--ek-text) !important; }
.header-icon.active, body.night-mode .header-icon.active { color: var(--ek-brand) !important; }
.main-icon, body.night-mode .main-icon { color: var(--ek-brand) !important; }

/* ---------- brand color everywhere ---------- */
a { color: var(--ek-brand); }
.btn { border-radius: 999px; font-weight: 700; letter-spacing: -.01em; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:active { transform: scale(.96); }
.btn-primary, .btn-primary.disabled, .btn-primary:disabled {
  background: var(--ek-grad) !important; border: 0 !important; color: #fff !important;
  box-shadow: 0 6px 18px rgba(214, 36, 110, .28);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active { background: var(--ek-grad) !important; filter: brightness(1.06); color: #fff !important; }
.btn-outline-primary { color: var(--ek-brand) !important; border-color: var(--ek-brand) !important; }
.btn-outline-primary:hover { background: var(--ek-brand) !important; color: #fff !important; }
.bg-primary, .bg-gradient-primary, .bg-gradient-blue { background: var(--ek-grad) !important; }
.form-control, .form-select { border-radius: var(--ek-radius-sm); }
.form-control:focus, .form-select:focus { border-color: var(--ek-magenta); box-shadow: 0 0 0 .22rem rgba(214, 36, 110, .15); }
.form-check-input:checked { background-color: var(--ek-magenta); border-color: var(--ek-magenta); }
.dropdown-item.active, .dropdown-item:active { background: var(--ek-grad); color: #fff; }
.dropdown-menu { border: 1px solid var(--ek-line); border-radius: 16px; box-shadow: 0 16px 48px rgba(16, 24, 40, .16); padding: 6px; }
.dropdown-item { border-radius: 10px; }
.modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.badge.bg-primary, .badge.text-bg-primary { background: var(--ek-grad) !important; }

/* ---------- header: glass ---------- */
.main-header {
  background: color-mix(in srgb, var(--ek-surface) 82%, transparent) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--ek-line); box-shadow: none !important;
}
.main-header .search-wrapper .form-control, .main-header .search-input {
  background: var(--ek-surface-2) !important; border: 1px solid transparent !important; border-radius: 999px !important;
}
.main-header .dropdown > a .counter, .main-header .counter {
  background: var(--ek-red) !important; box-shadow: 0 0 0 2px var(--ek-surface) !important; font-weight: 800;
}

/* ---------- cards & widgets ---------- */
.card, .post, .publisher, .widget, .panel {
  border-radius: var(--ek-radius) !important; border: 1px solid var(--ek-line) !important;
  box-shadow: var(--ek-shadow) !important; background: var(--ek-surface);
}
body.night-mode .card, body.night-mode .post { background: var(--ek-surface) !important; }
.card-header { background: transparent !important; border-bottom: 0 !important; font-weight: 800; }

/* ---------- posts ---------- */
.post-header { padding: 14px 16px 0; }
.post-avatar img, .post-avatar-picture { border-radius: 50% !important; }
.post-author { font-weight: 800 !important; color: var(--ek-text) !important; letter-spacing: -.01em; }
.post-text { font-size: 15px; line-height: 1.55; color: var(--ek-text); }
.post-media { border-radius: 14px; }
.post-footer { background: transparent !important; border-top: 0 !important; }
.post-actions { border-top: 1px solid var(--ek-line) !important; padding: 4px 8px !important; margin-top: 6px; }
.post-actions .action-btn { color: var(--ek-text-2) !important; font-weight: 700; border-radius: 12px; }
.post-actions .action-btn:hover { background: var(--ek-surface-2) !important; }
.post-actions .action-btn:active { transform: scale(.94); }
.post-stats { color: var(--ek-text-2) !important; }

/* card-less feed on phones (Threads / X style) */
@media (max-width: 767.98px) {
  .sg-offcanvas-mainbar > .row > .col-lg-8,
  .sg-offcanvas-mainbar > .row > .col-12 { padding-left: 0; padding-right: 0; }
  .sg-offcanvas-mainbar .post {
    border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; border-top: 0 !important;
    border-bottom: 1px solid var(--ek-line) !important; box-shadow: none !important; margin-bottom: 0 !important;
  }
  .sg-offcanvas-mainbar .post .post-media,
  .sg-offcanvas-mainbar .post .pg_wrapper,
  .sg-offcanvas-mainbar .post .plyr { border-radius: 0 !important; }
  .sg-offcanvas-mainbar > .row > .col-lg-8 > .card,
  .sg-offcanvas-mainbar .ek-reels { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; box-shadow: none !important; margin-bottom: 8px; }
  .container.mt20.sg-offcanvas { margin-top: 8px !important; }
}

/* ---------- double-tap heart ---------- */
.ek-heart-burst { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none; z-index: 20; animation: ekHeart .8s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.ek-heart-burst svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgba(214, 36, 110, .55)); }
@keyframes ekHeart {
  0% { transform: scale(.2); opacity: 0; }
  25% { transform: scale(1.15); opacity: 1; }
  45% { transform: scale(.95); }
  70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3) translateY(-20px); opacity: 0; }
}
.reactions-wrapper.ek-pop .reaction-btn-icon { animation: ekPop .45s ease; }
@keyframes ekPop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------- feed tabs: For You / Following ---------- */
.ek-feed-tabs {
  position: sticky; top: 70px; z-index: 20; display: flex; gap: 4px; margin-bottom: 12px; padding: 4px;
  background: color-mix(in srgb, var(--ek-surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--ek-line); border-radius: 999px;
}
.ek-feed-tabs a {
  flex: 1; text-align: center; padding: 10px 12px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: var(--ek-text-2) !important; text-decoration: none !important; transition: color .2s ease, background .2s ease;
}
.ek-feed-tabs a.active { background: var(--ek-grad); color: #fff !important; box-shadow: 0 6px 16px rgba(214, 36, 110, .28); }
@media (max-width: 767.98px) {
  .ek-feed-tabs { top: 70px; margin: 0 0 8px; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; padding: 0; background: color-mix(in srgb, var(--ek-surface) 90%, transparent); }
  .ek-feed-tabs a { border-radius: 0; position: relative; padding: 14px 10px; }
  .ek-feed-tabs a.active { background: transparent; color: var(--ek-text) !important; box-shadow: none; }
  .ek-feed-tabs a.active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--ek-grad); }
}

/* ---------- mobile bottom bar with centre create button ---------- */
.footer-bottom-bar {
  height: calc(var(--ek-nav-h) + env(safe-area-inset-bottom)) !important; padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--ek-surface) 90%, transparent) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--ek-line) !important; z-index: 1030 !important;
}
.footer-bottom-bar .container { padding: 0 6px; }
.footer-bottom-bar-links { gap: 0 !important; align-items: center; height: var(--ek-nav-h); }
.footer-bottom-bar-links > .link { height: var(--ek-nav-h) !important; display: flex; align-items: center; justify-content: center; }
.footer-bottom-bar-links > .link > a, .footer-bottom-bar-links > .link > .ek-bb-btn {
  display: flex !important; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px !important; margin: 0 !important;
  color: var(--ek-text-2) !important; background: none !important; border: 0; text-decoration: none !important; width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.footer-bottom-bar-links .svg-container { width: 25px !important; height: 25px !important; transition: transform .15s ease; }
.footer-bottom-bar-links > .link > a:active .svg-container { transform: scale(.86); }
.footer-bottom-bar-links .title { font-size: 11px !important; line-height: 14px !important; font-weight: 700; color: inherit !important; }
.footer-bottom-bar-links > .link.active > a { color: var(--ek-text) !important; }
.footer-bottom-bar-links > .link.active .header-icon { color: var(--ek-brand) !important; }
.footer-bottom-bar-links > .link.active .title { color: var(--ek-text) !important; }
.footer-bottom-bar-links .ek-bb-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ek-surface), 0 0 0 3.5px var(--ek-line); }
.footer-bottom-bar-links > .link.active .ek-bb-avatar { box-shadow: 0 0 0 2px var(--ek-surface), 0 0 0 3.5px var(--ek-brand); }
.footer-bottom-bar-links .ek-bb-badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ek-red); color: #fff; font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--ek-surface);
}
.footer-bottom-bar-links .ek-bb-badge.x-hidden { display: none; }
.footer-bottom-bar-links .ek-bb-create {
  width: 50px; height: 38px; border-radius: 14px; border: 0; display: flex; align-items: center; justify-content: center;
  background: var(--ek-grad); color: #fff; box-shadow: 0 8px 22px rgba(214, 36, 110, .38); transition: transform .15s ease;
}
.footer-bottom-bar-links .ek-bb-create:active { transform: scale(.9) rotate(90deg); }
.footer-bottom-bar-links .ek-bb-create svg { width: 24px; height: 24px; }
@media (max-width: 767.98px) {
  body.ek-theme { padding-bottom: calc(var(--ek-nav-h) + env(safe-area-inset-bottom)); }
  body.ek-theme .pwa_install_banner { bottom: calc(var(--ek-nav-h) + env(safe-area-inset-bottom) + 8px) !important; left: 8px !important; right: 8px !important; width: auto !important; border-radius: 16px; }
  body.ek-theme #onesignal-bell-container.onesignal-reset { bottom: calc(var(--ek-nav-h) + env(safe-area-inset-bottom) + 12px) !important; }
}

/* ---------- create sheet (bottom sheet) ---------- */
.ek-sheet-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.ek-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1051; max-width: 560px; margin: 0 auto;
  background: var(--ek-surface); border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .9, .25, 1); box-shadow: 0 -12px 48px rgba(0, 0, 0, .25);
}
body.ek-sheet-open .ek-sheet-backdrop { opacity: 1; pointer-events: auto; }
body.ek-sheet-open .ek-sheet { transform: translateY(0); }
.ek-sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--ek-line); margin: 2px auto 12px; }
.ek-sheet-title { font-weight: 800; font-size: 17px; margin: 0 4px 14px; color: var(--ek-text); }
.ek-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ek-sheet-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 18px; cursor: pointer;
  background: var(--ek-surface-2); color: var(--ek-text) !important; font-weight: 700; font-size: 13px; text-decoration: none !important;
  transition: transform .12s ease, background .2s ease; border: 0;
}
.ek-sheet-item:active { transform: scale(.94); }
.ek-sheet-item .ek-ico { width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; }
.ek-sheet-item .ek-ico svg { width: 23px; height: 23px; }
.ek-ico.i1 { background: linear-gradient(135deg, #E41E26, #D6246E); }
.ek-ico.i2 { background: linear-gradient(135deg, #FF7A1A, #E41E26); }
.ek-ico.i3 { background: linear-gradient(135deg, #D6246E, #8A2BE2); }
.ek-ico.i4 { background: linear-gradient(135deg, #8A2BE2, #4F46E5); }
.ek-ico.i5 { background: linear-gradient(135deg, #F43F5E, #FB923C); }
.ek-ico.i6 { background: linear-gradient(135deg, #0EA5E9, #6366F1); }

/* ---------- desktop: modern 3 columns ---------- */
@media (min-width: 992px) {
  .main-side-nav > li > a, .side-nav > li > a { border-radius: 14px; font-weight: 700; padding-top: 10px; padding-bottom: 10px; transition: background .15s ease; }
  .main-side-nav > li > a:hover, .side-nav > li > a:hover { background: var(--ek-surface-2) !important; }
  .main-side-nav > li.active > a, .side-nav > li.active > a { background: var(--ek-grad-soft) !important; color: var(--ek-text) !important; }
  .main-side-nav > li > a .svg-container, .side-nav > li > a .svg-container { width: 24px !important; height: 24px !important; }
  .sg-offcanvas-mainbar > .row > .col-lg-8 { max-width: 640px; }
}

/* ---------- stories: gradient ring ---------- */
#stories .story, #stories .story-item, .stories-wrapper .story-item { border-radius: 16px; }
.add-story .add { background: var(--ek-grad) !important; }
.stories-wrapper .item-preview, #stories .img { box-shadow: 0 0 0 2px var(--ek-surface), 0 0 0 4px var(--ek-magenta); }

/* ---------- verified / live badges ---------- */
.verified-badge, .verified-color { color: var(--ek-magenta) !important; }
.live-badge, .badge.live, .post-live-badge { background: var(--ek-grad) !important; color: #fff !important; }

/* ---------- skeleton ---------- */
.fake-effect { border-radius: 10px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- sticky fix: offcanvas wrapper clips without becoming a scroll container ---------- */
@supports (overflow: clip) {
  .sg-offcanvas { overflow: clip !important; }
}
@supports not (overflow: clip) {
  .ek-feed-tabs { position: relative; top: 0 !important; }
}

/* ---------- calmer content links: names & titles in text colour, brand only for actions ---------- */
.data-content .name a, .post-author, .post-meta .name a, .post-header .name a,
.card .name a, .widget .name a, .user-card .name a,
.post-media-meta .title a, .post-media-meta a.title, .blog-title a, .blogs-widget .title a,
.ek-theme .post a.post-author, .ek-theme .post .text-link {
  color: var(--ek-text) !important; font-weight: 800;
}
.data-content .name a:hover, .post-media-meta .title a:hover, .blog-title a:hover { color: var(--ek-magenta) !important; text-decoration: none; }
.post-text a, .post-text .hashtag, a.hashtag { color: var(--ek-magenta) !important; font-weight: 600; }

/* ---------- mobile: no gap under the header ---------- */
@media (max-width: 767.98px) {
  .sg-offcanvas.mt20 { margin-top: 0 !important; }
}

/* hide floating widgets while the create sheet is open */
body.ek-sheet-open #onesignal-bell-container, body.ek-sheet-open .pwa_install_banner { display: none !important; }

/* =====================================================================
   PHASE 2 - REELS: immersive, TikTok-style
   ===================================================================== */
.ek-reels-topbar { display: none; }
.reel-video-wrapper .reel-video-container .plyr--video { background: #000; }
.reel-video-wrapper video { object-fit: cover; }

/* right action rail */
.reel-actions { gap: 16px !important; align-items: center; }
.reel-actions .action-btn {
  width: 48px !important; height: 48px !important; padding: 0 !important; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14); transition: transform .12s ease, background .2s ease;
}
.reel-actions .action-btn:hover { background: rgba(255, 255, 255, .22) !important; }
.reel-actions .action-btn:active { transform: scale(.88); }
.reel-actions .action-btn .svg-container { width: 26px !important; height: 26px !important; }
.reel-actions .white-icon, .reel-actions .white-icon *, .ek-reel-heart { color: #fff !important; stroke: #fff !important; }
.ek-reel-heart { width: 27px; height: 27px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.reel-actions .js_unreact-post .ek-reel-heart { fill: var(--ek-magenta); stroke: var(--ek-magenta) !important; }
.reel-action-btn span { font-size: 12.5px !important; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); color: #fff; }
.reel-actions .post-avatar .post-avatar-picture {
  min-width: 48px !important; min-height: 48px !important; width: 48px; height: 48px;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px transparent; background-clip: padding-box; position: relative;
  outline: 2.5px solid transparent; border: 2.5px solid transparent;
  background-origin: border-box;
}
.reel-actions .post-avatar { position: relative; }
.reel-actions .post-avatar::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 2.5px; pointer-events: none;
  background: var(--ek-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* caption + author */
.reel-video-wrapper .reel-video-container .video-caption-overlay { top: 55% !important; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)) !important; pointer-events: none; }
.reel-video-wrapper .reel-video-container .video-caption { padding: 16px 16px 22px !important; font-size: 14px; line-height: 1.45; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); background: none !important; }
.reel-video-wrapper .video-caption .post-text { padding: 0 !important; margin: 6px 0 0 !important; color: #fff !important; max-height: 4.4em; overflow: hidden; }
.ek-reel-author { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 15px; }
.ek-reel-author-pic { width: 34px; height: 34px; border-radius: 50%; background: #333 center / cover no-repeat; box-shadow: 0 0 0 2px #fff; }
.ek-reel-verified { width: 17px; height: 17px; color: #3B82F6; }

/* prev / next (desktop) */
.reel-next-btn, .reel-prev-btn {
  width: 46px; height: 46px; border-radius: 50%; display: none; align-items: center; justify-content: center; right: 28px !important;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); color: #fff; opacity: .9 !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s ease, transform .12s ease;
}
.reel-next-btn svg, .reel-prev-btn svg { width: 24px; height: 24px; }
.reel-next-btn:hover, .reel-prev-btn:hover { background: rgba(255, 255, 255, .24); }
.reel-next-btn { bottom: 50% !important; transform: translateY(60px); }
.reel-prev-btn { bottom: 50% !important; transform: translateY(-10px); }
@media (min-width: 768px) {
  .reel-next-btn, .reel-prev-btn { display: flex !important; }
  .reel-video-wrapper .reel-video-container { max-width: calc((100dvh - 110px) * 9 / 16) !important; margin: 20px auto !important; height: calc(100dvh - 110px) !important; }
  .reel-video-wrapper .reel-video-container .plyr--video { height: calc(100dvh - 110px) !important; border-radius: 22px; overflow: hidden; }
  .reel-video-wrapper .reel-video-container .video-caption-overlay { border-radius: 0 0 22px 22px; }
}

/* comments as a bottom sheet on phones */
@media (max-width: 767.98px) {
  .reel-container.comments-shown .reel-video-wrapper { width: 100% !important; }
  .reel-comments-wrapper {
    top: auto !important; height: 72dvh; border-radius: 22px 22px 0 0; z-index: 30; box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
    animation: ekSheetUp .3s cubic-bezier(.2, .9, .25, 1);
  }
}
@keyframes ekSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* full-screen immersive on phones: hide site header, add floating top bar */
@media (max-width: 767.98px) {
  body.ek-theme:has(.reels-wrapper) .main-header { display: none !important; }
  body.ek-theme:has(.reels-wrapper) .pwa_install_banner,
  body.ek-theme:has(.reels-wrapper) #onesignal-bell-container { display: none !important; }
  body.ek-theme:has(.reels-wrapper) { padding-bottom: 0 !important; }
  .reels-wrapper { top: 0 !important; }
  .reel-container { padding-top: 0 !important; }
  .reel-video-wrapper .reel-video-container { max-width: none !important; }
  .reel-video-wrapper .reel-video-container .plyr--video { height: 100dvh !important; }
  .reel-video-wrapper .reel-video-container .video-controlls { right: 12px !important; bottom: 28px !important; }
  .reel-video-wrapper .reel-video-container .video-caption { right: 80px !important; bottom: 12px !important; }
  .ek-reels-topbar {
    display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; z-index: 25;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px; color: #fff; pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  }
  .ek-reels-topbar > * { pointer-events: auto; }
  .ek-reels-title { font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
  .ek-reels-back, .ek-reels-create {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important;
    background: rgba(255, 255, 255, .14); border: 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .ek-reels-back svg, .ek-reels-create svg { width: 22px; height: 22px; }
  .reel-video-wrapper .reel-video-container .plyr__controls { top: 60px !important; }
}
@media (min-width: 768px) {
  .reels-wrapper { background: radial-gradient(80% 60% at 50% 45%, #1a1320 0%, #07070a 70%) !important; }
  .reel-container { background: transparent !important; }
  .reel-video-wrapper .reel-video-container .plyr--video { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .6); background: #0b0b0e; }
  .reel-video-wrapper .reel-video-container .video-controlls { bottom: 24px !important; }
  body.ek-theme:has(.reels-wrapper) .pwa_install_banner { display: none !important; }
}

/* =====================================================================
   PHASE 2 - WATCH: YouTube-style grid
   ===================================================================== */
.ek-watch-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 14px; flex-wrap: wrap; }
.ek-watch-heading h1 { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.03em; background: var(--ek-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ek-watch-heading p { margin: 2px 0 0; color: var(--ek-text-2); font-size: 14px; }
.ek-watch-search { position: relative; flex: 0 1 420px; }
.ek-watch-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ek-text-2); pointer-events: none; }
.ek-watch-search .form-control { height: 44px; border-radius: 999px !important; padding-left: 42px; background: var(--ek-surface) !important; border: 1px solid var(--ek-line) !important; }

.ek-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ek-chips::-webkit-scrollbar { display: none; }
.ek-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--ek-surface); border: 1px solid var(--ek-line); color: var(--ek-text) !important; font-weight: 700; font-size: 13.5px;
  text-decoration: none !important; transition: background .15s ease, transform .12s ease;
}
.ek-chip svg { width: 16px; height: 16px; }
.ek-chip:hover { background: var(--ek-surface-2); }
.ek-chip:active { transform: scale(.95); }
.ek-chip.active { background: var(--ek-text); color: var(--ek-bg) !important; border-color: var(--ek-text); }

.ek-watch-bar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.ek-watch-bar-title { font-weight: 800; font-size: 18px; }

.ek-watch-grid .posts-staging-btn { display: none !important; }
.ek-watch-grid .js_posts_stream > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 18px; margin: 0; padding: 0; list-style: none; }
.ek-watch-grid .js_posts_stream > ul > li { list-style: none; min-width: 0; }
.ek-watch-card { min-width: 0; }
.ek-watch-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b0b0e;
  box-shadow: 0 0 0 1px var(--ek-line);
}
.ek-watch-thumb img, .ek-watch-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ek-watch-thumb:hover img { transform: scale(1.04); }
.ek-watch-thumb video { position: absolute; inset: 0; }
.ek-watch-nothumb { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 35%, #3A1417 0%, #16191D 65%); }
.ek-watch-play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: .95; transition: opacity .2s ease, transform .2s ease;
}
.ek-watch-play svg { width: 24px; height: 24px; margin-left: 3px; }
.ek-watch-thumb:hover .ek-watch-play { opacity: 0; transform: scale(.8); }
.ek-watch-hd { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.ek-watch-meta { display: flex; gap: 12px; margin-top: 12px; }
.ek-watch-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #333 center / cover no-repeat; }
.ek-watch-info { min-width: 0; }
.ek-watch-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ek-text) !important; font-weight: 800; font-size: 15px; line-height: 1.35; text-decoration: none !important; margin-bottom: 4px;
}
.ek-watch-sub { color: var(--ek-text-2); font-size: 13px; line-height: 1.5; }
.ek-watch-sub a { color: var(--ek-text-2) !important; font-weight: 600; text-decoration: none !important; }
.ek-watch-sub a:hover { color: var(--ek-text) !important; }
.ek-watch-verified { width: 14px; height: 14px; color: var(--ek-text-2); vertical-align: -2px; }
.ek-watch-grid .see-more { grid-column: 1 / -1; }

@media (max-width: 767.98px) {
  .ek-watch-page { padding-left: 0; padding-right: 0; }
  .ek-watch-head, .ek-chips, .ek-watch-bar { padding-left: 12px; padding-right: 12px; }
  .ek-watch-heading h1 { font-size: 24px; }
  .ek-watch-search { flex-basis: 100%; }
  .ek-watch-grid .js_posts_stream > ul { grid-template-columns: 1fr; gap: 22px; }
  .ek-watch-thumb { border-radius: 0; box-shadow: none; }
  .ek-watch-meta { padding: 0 12px; }
}

/* =====================================================================
   PHASE 2 - FEED VIDEO: tap-for-sound pill + floating mini player
   ===================================================================== */
.ek-sound-pill {
  position: absolute; left: 12px; bottom: 56px; z-index: 5; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 10px; border-radius: 999px; border: 0; color: #fff; font-weight: 700; font-size: 12.5px;
  background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: ekFadeIn .3s ease;
}
.ek-sound-pill svg { width: 16px; height: 16px; }
@keyframes ekFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.plyr.ek-mini {
  position: fixed !important; right: 16px; bottom: 16px; z-index: 1040; width: 340px !important; max-width: calc(100vw - 32px);
  border-radius: 16px !important; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  animation: ekMiniIn .28s cubic-bezier(.2, .9, .25, 1);
}
.plyr.ek-mini video { max-height: none !important; }
.plyr.ek-mini .ek-sound-pill { display: none; }
@keyframes ekMiniIn { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
.ek-mini-close { display: none; }
.plyr.ek-mini .ek-mini-close {
  display: flex; align-items: center; justify-content: center; position: absolute; top: 8px; right: 8px; z-index: 10;
  width: 30px; height: 30px; border-radius: 50%; border: 0; color: #fff; background: rgba(0, 0, 0, .6);
}
.plyr.ek-mini .ek-mini-close svg { width: 16px; height: 16px; }
@media (max-width: 767.98px) {
  .plyr.ek-mini { width: 62vw !important; right: 10px; bottom: calc(var(--ek-nav-h) + env(safe-area-inset-bottom) + 10px); }
}
.plyr.ek-mini.ek-mini-portrait { width: 200px !important; }
.plyr.ek-mini video { max-height: 42vh; object-fit: cover; }
@media (max-width: 767.98px) {
  .plyr.ek-mini.ek-mini-portrait { width: 36vw !important; }
  .plyr.ek-mini video { max-height: 34vh; }
}

/* =====================================================================
   PHASE 3 - PROFILE: modern centred creator header
   ===================================================================== */
.profile-header { --ek-cover-h: 170px; --ek-av: 108px; background: var(--ek-surface) !important; border: 1px solid var(--ek-line); border-top: 0; border-radius: 0 0 24px 24px !important; overflow: visible; }
@media (min-width: 768px) { .profile-header { --ek-cover-h: 260px; --ek-av: 152px; } }
.profile-cover-wrapper {
  height: var(--ek-cover-h) !important; border-radius: 0 0 24px 24px !important;
  background: var(--ek-grad) !important;
}
.profile-cover-wrapper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 10%, rgba(255, 255, 255, .22), transparent 60%), radial-gradient(50% 70% at 10% 100%, rgba(0, 0, 0, .25), transparent 60%);
}
.profile-cover-wrapper img { position: relative; }
.profile-avatar-wrapper:not(.static) {
  top: calc(var(--ek-cover-h) - var(--ek-av) / 2 - 5px) !important; bottom: auto !important; left: 50% !important; transform: translateX(-50%) !important;
  padding: 4px !important; background: var(--ek-grad) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .25) !important; z-index: 3;
}
.profile-avatar-wrapper img { width: var(--ek-av) !important; height: var(--ek-av) !important; border: 4px solid var(--ek-surface); object-fit: cover; }
.profile-name-wrapper {
  background: transparent !important; text-align: center !important; padding: calc(var(--ek-av) / 2 + 14px) 16px 2px !important; margin: 0 !important;
}
.profile-name-wrapper .profile-name-inner { justify-content: center; }
.profile-name-wrapper a { color: var(--ek-text) !important; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
@media (min-width: 768px) { .profile-name-wrapper a { font-size: 30px; } }
.profile-name-wrapper .verified-badge .svg-container { width: 22px !important; height: 22px !important; }

.ek-profile-meta { text-align: center; padding: 0 16px; }
.ek-profile-handle { color: var(--ek-text-2); font-weight: 600; font-size: 14px; margin-top: 2px; }
.ek-profile-stats { display: flex; justify-content: center; gap: 6px; margin: 16px auto 4px; flex-wrap: wrap; }
.ek-profile-stats a {
  display: flex; flex-direction: column; align-items: center; min-width: 86px; padding: 8px 12px; border-radius: 14px;
  color: var(--ek-text) !important; text-decoration: none !important; transition: background .15s ease;
}
.ek-profile-stats a:hover { background: var(--ek-surface-2); }
.ek-profile-stats strong { font-size: 19px; font-weight: 800; line-height: 1.2; }
.ek-profile-stats span { font-size: 12.5px; color: var(--ek-text-2); font-weight: 600; }
.ek-profile-bio { max-width: 560px; margin: 8px auto 0; color: var(--ek-text); font-size: 14.5px; line-height: 1.55; }

.profile-buttons-wrapper { background: transparent !important; padding: 16px 16px 22px !important; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-buttons-wrapper .btn { height: 42px; padding: 0 20px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.profile-buttons-wrapper .btn-icon { width: 42px; padding: 0; justify-content: center; }
.profile-buttons-wrapper .btn-light { background: var(--ek-surface-2) !important; border: 1px solid var(--ek-line) !important; color: var(--ek-text) !important; }
.profile-buttons-wrapper .js_follow, .profile-buttons-wrapper .js_friend-add, .profile-buttons-wrapper .js_friend-accept {
  background: var(--ek-grad) !important; color: #fff !important; border: 0 !important; box-shadow: 0 8px 20px rgba(214, 36, 110, .3);
}
.profile-buttons-wrapper .d-xxl-inline-block { display: inline-block !important; }
.profile-buttons-wrapper .ml5 { margin-left: 2px !important; }
.ek-edit-profile svg { flex: 0 0 auto; }

/* tabs */
.ek-profile-tabs {
  display: flex !important; gap: 4px; padding: 6px !important; margin: 14px 0 18px !important; overflow-x: auto; scrollbar-width: none;
  background: var(--ek-surface) !important; border: 1px solid var(--ek-line); border-radius: 999px !important;
}
.ek-profile-tabs::-webkit-scrollbar { display: none; }
.ek-profile-tabs > a, .ek-profile-tabs .ek-tab-more > a {
  flex: 1 0 auto; display: flex !important; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px !important;
  border-radius: 999px; color: var(--ek-text-2) !important; font-weight: 800; font-size: 14px; text-decoration: none !important; border: 0 !important;
}
.ek-profile-tabs .ek-tab-more { flex: 1 0 auto; display: flex; }
.ek-profile-tabs .ek-tab-more > a { width: 100%; }
.ek-profile-tabs .svg-container { width: 19px !important; height: 19px !important; }
.ek-profile-tabs > a .main-icon, .ek-profile-tabs .ek-tab-more > a { color: inherit !important; }
.ek-profile-tabs > a:hover, .ek-profile-tabs .ek-tab-more > a:hover { background: var(--ek-surface-2); color: var(--ek-text) !important; }
.ek-profile-tabs > a.active, .ek-profile-tabs .ek-tab-more > a.active { background: var(--ek-grad) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(214, 36, 110, .28); }
.ek-profile-tabs > a.active .main-icon, .ek-profile-tabs > a.active .main-icon * { color: #fff !important; }
@media (max-width: 767.98px) {
  .ek-profile-tabs { border-radius: 16px !important; margin: 10px 8px 12px !important; }
  .ek-profile-tabs > a, .ek-profile-tabs .ek-tab-more > a { padding: 10px 12px !important; font-size: 13px; }
  .ek-profile-tabs > a span, .ek-profile-tabs .ek-tab-more > a span { display: none; }
  .ek-profile-tabs > a.active span { display: inline; }
}
/* profile: undo Sngine's desktop absolute layout -> centred column */
.profile-name-wrapper, .profile-buttons-wrapper { position: static !important; left: auto !important; right: auto !important; bottom: auto !important; text-shadow: none !important; font-size: inherit; }
.profile-name-inner { justify-content: center !important; }
.no-avatar .profile-name-wrapper { padding-top: 24px !important; }

/* =====================================================================
   PHASE 3 - COMMENTS: bottom sheet in feeds on phones
   ===================================================================== */
.ek-cs-head, .ek-cs-backdrop { display: none; }
@media (max-width: 767.98px) {
  .js_posts_stream .post:not(.ek-cs-open) .post-footer { display: none !important; }
  .js_posts_stream .post.ek-cs-open .post-footer {
    display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1052; height: 78dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--ek-surface) !important; border-radius: 22px 22px 0 0 !important; padding: 0 12px calc(12px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, .4); animation: ekSheetUp .3s cubic-bezier(.2, .9, .25, 1);
  }
  .js_posts_stream .post.ek-cs-open .post-footer .post-comments { display: block !important; }
  .post.ek-cs-open .ek-cs-head {
    display: flex; align-items: center; justify-content: center; position: sticky; top: 0; z-index: 2; margin: 0 -12px 8px; padding: 18px 12px 12px;
    background: var(--ek-surface); border-bottom: 1px solid var(--ek-line); font-size: 16px;
  }
  .ek-cs-grip { position: absolute; top: 7px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--ek-line); }
  .ek-cs-close { position: absolute; right: 10px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; background: var(--ek-surface-2); color: var(--ek-text); }
  .ek-cs-close svg { width: 18px; height: 18px; }
  body.ek-cs-lock { overflow: hidden; }
  body.ek-cs-lock .ek-cs-backdrop { display: block; position: fixed; inset: 0; z-index: 1051; background: rgba(0, 0, 0, .5); animation: ekFadeIn .2s ease; }
  body.ek-cs-lock .footer-bottom-bar, body.ek-cs-lock #onesignal-bell-container, body.ek-cs-lock .pwa_install_banner { display: none !important; }
}

/* =====================================================================
   PHASE 3 - EXPLORE: hashtags, people, mosaic
   ===================================================================== */
.ek-section-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; margin: 18px 0 10px; }
.ek-section-title svg { width: 20px; height: 20px; color: var(--ek-magenta); }
.ek-section-title a { font-size: 13px; font-weight: 700; color: var(--ek-brand); text-decoration: none; }
.ek-hashtags .ek-chip { gap: 4px; }
.ek-hash { color: var(--ek-magenta); font-weight: 800; }
.ek-hashtags .ek-chip small { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--ek-surface-2); color: var(--ek-text-2); font-size: 11px; font-weight: 700; }

.ek-people { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.ek-people::-webkit-scrollbar { display: none; }
.ek-person {
  flex: 0 0 158px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 16px 12px; border-radius: 20px; background: var(--ek-surface); border: 1px solid var(--ek-line);
}
.ek-person-pic { width: 76px; height: 76px; border-radius: 50%; background: #333 center / cover no-repeat; margin-bottom: 6px; box-shadow: 0 0 0 3px var(--ek-surface), 0 0 0 5px var(--ek-magenta); }
.ek-person-name { font-weight: 800; color: var(--ek-text) !important; text-decoration: none !important; font-size: 14px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-person-sub { font-size: 12px; color: var(--ek-text-2); margin-bottom: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-person .btn { width: 100%; }

.ek-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 4px; }
@media (min-width: 992px) { .ek-mosaic { gap: 10px; grid-template-columns: repeat(4, 1fr); } }
.ek-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #111; border-radius: 6px; }
@media (min-width: 992px) { .ek-tile { border-radius: 14px; } }
.ek-tile-video, .ek-tile-reel { grid-row: span 2; aspect-ratio: auto; }
.ek-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .3s ease; }
.ek-tile:hover img { transform: scale(1.05); filter: brightness(.85); }
.ek-tile-badge { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.ek-tile-badge svg { width: 20px; height: 20px; }
.ek-tile-stats {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 800; font-size: 12.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7); opacity: 0; transition: opacity .2s ease;
}
.ek-tile-stats svg { width: 14px; height: 14px; }
.ek-tile:hover .ek-tile-stats, .ek-tile-video .ek-tile-stats, .ek-tile-reel .ek-tile-stats { opacity: 1; }
@media (max-width: 767.98px) {
  .ek-explore-page { padding-left: 0; padding-right: 0; }
  .ek-explore-page .ek-watch-head, .ek-explore-page .ek-chips, .ek-explore-page .ek-section-title, .ek-explore-page .ek-people { padding-left: 12px; padding-right: 12px; }
  .ek-mosaic { gap: 2px; }
  .ek-tile { border-radius: 0; }
}

/* ---------- switch, toast ---------- */
.ek-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--ek-line); transition: background .2s ease; flex: 0 0 auto; }
.ek-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
[aria-checked="true"] > .ek-switch { background: var(--ek-grad); }
[aria-checked="true"] > .ek-switch::after { transform: translateX(16px); }
.ek-toast {
  position: fixed; left: 50%; bottom: calc(var(--ek-nav-h) + env(safe-area-inset-bottom) + 18px); z-index: 1060; transform: translate(-50%, 20px); opacity: 0;
  padding: 11px 18px; border-radius: 999px; background: #111; color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: opacity .25s ease, transform .25s ease; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
body.night-mode .ek-toast { background: #fff; color: #111; }
.ek-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .ek-toast { bottom: 28px; } }

/* =====================================================================
   NOTIFICATIONS + EMPTY STATES + page head
   ===================================================================== */
.ek-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.ek-page-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ek-nt-list { padding: 4px 8px 12px !important; }
.ek-nt-list > ul { list-style: none; margin: 0; padding: 0; }
.ek-nt-group-title { list-style: none; padding: 16px 12px 6px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ek-text-2); }
.ek-nt { list-style: none; }
.ek-nt-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; color: var(--ek-text) !important; text-decoration: none !important; transition: background .15s ease; }
.ek-nt-link:hover { background: var(--ek-surface-2); }
.ek-nt.unread .ek-nt-link { background: var(--ek-grad-soft); }
.ek-nt-av { position: relative; flex: 0 0 52px; width: 52px; height: 52px; }
.ek-nt-av img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ek-nt-badge {
  position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; background: #64748B; box-shadow: 0 0 0 2.5px var(--ek-surface); overflow: hidden;
}
.ek-nt-badge .inline-emoji { transform: scale(.55); }
.ek-nt[data-action^="react"] .ek-nt-badge, .ek-nt[data-action*="like"] .ek-nt-badge { background: linear-gradient(135deg, #E41E26, #D6246E); }
.ek-nt[data-action*="comment"] .ek-nt-badge, .ek-nt[data-action*="reply"] .ek-nt-badge { background: linear-gradient(135deg, #3B82F6, #6366F1); }
.ek-nt[data-action*="follow"] .ek-nt-badge, .ek-nt[data-action*="friend"] .ek-nt-badge { background: linear-gradient(135deg, #D6246E, #8A2BE2); }
.ek-nt[data-action*="share"] .ek-nt-badge { background: linear-gradient(135deg, #10B981, #059669); }
.ek-nt[data-action*="mention"] .ek-nt-badge, .ek-nt[data-action*="tag"] .ek-nt-badge { background: linear-gradient(135deg, #FB923C, #F43F5E); }
.ek-nt[data-action*="profile_visit"] .ek-nt-badge, .ek-nt[data-action*="visit"] .ek-nt-badge { background: linear-gradient(135deg, #0EA5E9, #6366F1); }
.ek-nt-body { flex: 1; min-width: 0; }
.ek-nt-text { font-size: 14.5px; line-height: 1.4; }
.ek-nt-text strong { font-weight: 800; }
.ek-nt-text .verified-badge .svg-container { display: inline-block; vertical-align: -2px; }
.ek-nt-msg { color: var(--ek-text); opacity: .85; margin-left: 2px; }
.ek-nt-time { font-size: 12.5px; color: var(--ek-magenta); font-weight: 700; margin-top: 2px; }
.ek-nt:not(.unread) .ek-nt-time { color: var(--ek-text-2); font-weight: 600; }
.ek-nt-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--ek-grad); }
.ek-nt-del {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ek-text-2); opacity: 0; transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.ek-nt-del svg { width: 17px; height: 17px; }
.ek-nt-link:hover .ek-nt-del { opacity: 1; }
.ek-nt-del:hover { background: rgba(228, 30, 38, .12); color: var(--ek-red); }
@media (hover: none) { .ek-nt-del { opacity: .55; } }
.ek-nt-card .see-more { margin: 8px 12px 0; }

.ek-empty { text-align: center; padding: 42px 20px 36px; }
.ek-empty-art { position: relative; width: 108px; height: 108px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: #fff; }
.ek-empty-art::before { content: ""; position: absolute; inset: 0; border-radius: 34px; background: var(--ek-grad); transform: rotate(-8deg); box-shadow: 0 16px 40px rgba(214, 36, 110, .35); }
.ek-empty-ring { position: absolute; inset: -10px; border-radius: 40px; border: 2px dashed var(--ek-line); transform: rotate(8deg); }
.ek-empty-art svg { position: relative; width: 46px; height: 46px; }
.ek-empty-title { font-size: 19px; font-weight: 800; color: var(--ek-text); letter-spacing: -.01em; }
.ek-empty-text { max-width: 340px; margin: 6px auto 0; color: var(--ek-text-2); font-size: 14px; line-height: 1.5; }

/* =====================================================================
   MESSAGES: modern messenger
   ===================================================================== */
/* threads list (page + header dropdown + chat widget) */
.js_live-messages-alt .feeds-item > .data-container,
.js_live-messages .feeds-item > .data-container {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px !important; margin: 2px 6px; border-radius: 16px; transition: background .15s ease;
}
.js_live-messages-alt .feeds-item > .data-container:hover,
.js_live-messages .feeds-item > .data-container:hover { background: var(--ek-surface-2); }
.js_live-messages-alt .feeds-item .data-avatar, .js_live-messages .feeds-item .data-avatar { flex: 0 0 52px; width: 52px !important; height: 52px !important; margin: 0 !important; }
.js_live-messages-alt .feeds-item .data-avatar img, .js_live-messages .feeds-item .data-avatar img { width: 52px !important; height: 52px !important; border-radius: 50% !important; object-fit: cover; }
.js_live-messages-alt .feeds-item .data-content, .js_live-messages .feeds-item .data-content { flex: 1; min-width: 0; padding: 0 !important; margin: 0 !important; }
.js_live-messages-alt .feeds-item .name, .js_live-messages .feeds-item .name { font-weight: 800; font-size: 15px; color: var(--ek-text) !important; }
.js_live-messages-alt .feeds-item .text, .js_live-messages .feeds-item .text {
  color: var(--ek-text-2) !important; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.js_live-messages-alt .feeds-item .time, .js_live-messages .feeds-item .time { font-size: 12px; color: var(--ek-text-2) !important; }
.js_live-messages-alt .feeds-item.unread > .data-container, .js_live-messages .feeds-item.unread > .data-container { background: var(--ek-grad-soft) !important; }
.js_live-messages-alt .feeds-item.unread .text, .js_live-messages .feeds-item.unread .text { color: var(--ek-text) !important; font-weight: 700; }
.js_live-messages-alt .feeds-item.unread > .data-container::after, .js_live-messages .feeds-item.unread > .data-container::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ek-grad);
}
.js_live-messages-alt .feeds-item .data-img { border-radius: 10px; }

/* messages page chrome */
.sg-offcanvas-sidebar .card:has(.js_live-messages-alt) .card-header,
.panel-messages > .card-header { font-size: 18px !important; font-weight: 800; padding: 16px 18px !important; border-bottom: 1px solid var(--ek-line) !important; }
.js_chat-new { width: 38px; height: 38px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; background: var(--ek-grad) !important; border: 0 !important; color: #fff !important; box-shadow: 0 6px 16px rgba(214, 36, 110, .3); }
.js_chat-new .main-icon, .js_chat-new .main-icon * { color: #fff !important; }

/* bubbles */
.chat-conversations { padding: 6px 12px !important; }
.conversation { margin-bottom: 6px !important; padding-top: 4px !important; }
.conversation-user { width: 28px !important; height: 28px !important; }
.conversation-user img { width: 28px !important; height: 28px !important; object-fit: cover; }
.conversation-body .text {
  padding: 9px 14px !important; border-radius: 20px !important; border-bottom-left-radius: 6px !important; font-size: 14.5px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.conversation:not(.right) .conversation-body .text { background: var(--ek-surface-2) !important; color: var(--ek-text); }
.conversation.right .conversation-body .text { border-radius: 20px !important; border-bottom-right-radius: 6px !important; color: #fff !important; }
.conversation.right .conversation-body .text:not([style*="background"]) { background: var(--ek-grad) !important; }
.conversation-body .time { font-size: 11px; color: var(--ek-text-2); margin-top: 3px; }
.conversation-body .img-wrapper img, .conversation-body .video-wrapper video { border-radius: 16px; }

/* composer */
.chat-form { border-top: 1px solid var(--ek-line) !important; padding: 10px 12px !important; background: var(--ek-surface) !important; }
.chat-form-message { border-radius: 999px !important; padding: 10px 18px !important; background: var(--ek-surface-2) !important; border: 1px solid var(--ek-line); }
.chat-form .x-form-tools { display: flex; align-items: center; gap: 4px; }
.chat-form .x-form-tools > li { border-radius: 50%; transition: background .15s ease; }
.chat-form .x-form-tools > li:hover { background: var(--ek-surface-2); }
.chat-form .x-form-tools-post { background: var(--ek-grad) !important; color: #fff !important; }
.chat-form .x-form-tools-post .main-icon, .chat-form .x-form-tools-post .main-icon *, .chat-form .x-form-tools-post i { color: #fff !important; }

/* floating chat boxes (desktop) */
.chat-box .chat-head, .chat-widget-head { background: var(--ek-grad) !important; color: #fff !important; }
.chat-box { border-radius: 18px 18px 0 0 !important; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .25) !important; }

/* calmer footer links */
.footer a, .footer-links a, .container .footer a { color: var(--ek-text-2) !important; }
.footer a:hover { color: var(--ek-text) !important; }

/* =====================================================================
   MIGRATED FROM THE OLD DB OVERLAY (EIDOK UI v1): publisher chips, video fallback,
   see-more skeleton, reels strip, install banner once
   ===================================================================== */
/* ---------- 4. compact publisher: one scrollable row of chips (mobile/tablet) ---------- */
@media (max-width: 991.98px) {
  .publisher-tools-tabs > ul.row {
    display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 6px 2px 10px;
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .publisher-tools-tabs > ul.row::-webkit-scrollbar { display: none; }
  .publisher-tools-tabs > ul.row > li { flex: 0 0 auto; width: auto; max-width: none; padding: 0; margin: 0; scroll-snap-align: start; }
  .publisher-tools-tabs .publisher-tools-tab {
    display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; white-space: nowrap;
    border-radius: 999px; border: 1px solid rgba(0, 0, 0, .08); background: #F2F3F5;
    font-size: 13px; font-weight: 600; line-height: 1.2;
  }
  body.night-mode .publisher-tools-tabs .publisher-tools-tab { background: #303A44; border-color: rgba(255, 255, 255, .08); }
  .publisher-tools-tabs .publisher-tools-tab .main-icon { width: 20px !important; height: 20px !important; margin: 0 !important; }
  .publisher-tools-tabs .publisher-tools-tab .spinner-grow { display: none; }
  /* most used first */
  .publisher-tools-tabs li:has([data-tab="photos"]) { order: -6; }
  .publisher-tools-tabs li:has([data-tab="video"]) { order: -5; }
  .publisher-tools-tabs li:has([data-tab="reel"]) { order: -4; }
  .publisher-tools-tabs li:has(.js_publisher-feelings) { order: -3; }
  .publisher-tools-tabs li:has([data-tab="live"]) { order: -2; }
}

/* ---------- 5. video cards: no more black boxes ---------- */
.plyr--video .plyr__video-wrapper { background: radial-gradient(120% 90% at 50% 35%, #3A1417 0%, #16191D 65%); }
.plyr--video video { background: transparent; }
.plyr__poster { background-size: cover; }
.plyr__control--overlaid { background: var(--ek-brand) !important; box-shadow: 0 6px 24px rgba(228, 30, 38, .45); }

/* ---------- 6. skeleton while loading more posts ---------- */
@keyframes ekShimmer {
  from { background-position: -150% 0, 0 0, 68px 24px, 68px 46px, 16px 88px, 16px 112px, 16px 136px; }
  to { background-position: 250% 0, 0 0, 68px 24px, 68px 46px, 16px 88px, 16px 112px, 16px 136px; }
}
.see-more:has(.loader:not(.x-hidden)) { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.see-more:has(.loader:not(.x-hidden)) > span,
.see-more:has(.loader:not(.x-hidden)) > .loader { display: none !important; }
.see-more:has(.loader:not(.x-hidden))::before {
  content: ""; display: block; height: 170px; border-radius: 12px; background-color: #fff;
  background-image:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .65) 50%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle 20px at 36px 36px, #E4E6EB 98%, transparent 100%),
    linear-gradient(#E4E6EB, #E4E6EB), linear-gradient(#E4E6EB, #E4E6EB),
    linear-gradient(#E4E6EB, #E4E6EB), linear-gradient(#E4E6EB, #E4E6EB), linear-gradient(#E4E6EB, #E4E6EB);
  background-size: 200% 100%, 100% 100%, 38% 12px, 22% 10px, 92% 12px, 80% 12px, 55% 12px;
  background-repeat: no-repeat;
  animation: ekShimmer 1.2s linear infinite;
}
body.night-mode .see-more:has(.loader:not(.x-hidden))::before {
  background-color: #262D34;
  background-image:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle 20px at 36px 36px, #37414B 98%, transparent 100%),
    linear-gradient(#37414B, #37414B), linear-gradient(#37414B, #37414B),
    linear-gradient(#37414B, #37414B), linear-gradient(#37414B, #37414B), linear-gradient(#37414B, #37414B);
}

/* ---------- 7. reels strip (injected by custom JS) ---------- */
.ek-reels { margin-bottom: 16px; overflow: hidden; }
.ek-reels-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; font-weight: 700; font-size: 15px; }
.ek-reels-head a { font-size: 13px; font-weight: 600; color: var(--ek-brand); text-decoration: none; }
.ek-reels-track { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 16px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ek-reels-track::-webkit-scrollbar { display: none; }
.ek-reel {
  flex: 0 0 112px; height: 196px; position: relative; overflow: hidden; border-radius: 12px; scroll-snap-align: start;
  background: #1E252B center / cover no-repeat; color: #fff !important; text-decoration: none !important;
  transition: transform .15s ease;
}
.ek-reel:active { transform: scale(.97); }
.ek-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%); }
.ek-reel-av { position: absolute; top: 8px; left: 8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ek-brand); background: #444 center / cover no-repeat; }
.ek-reel-views { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.ek-reel-views svg { width: 14px; height: 14px; flex: 0 0 auto; }
@media (min-width: 768px) { .ek-reel { flex-basis: 128px; height: 224px; } }


/* install banner: shown once, then hidden */
body.ek-pwa-dismissed .pwa_install_banner { display: none !important; }

/* =====================================================================
   COMPOSER: "prism" card with three quick actions (eidok signature)
   ===================================================================== */
.publisher:not(.mini) {
  border: 1.5px solid transparent !important;
  background: linear-gradient(var(--ek-surface), var(--ek-surface)) padding-box, linear-gradient(120deg, rgba(228, 30, 38, .55), rgba(214, 36, 110, .45), rgba(138, 43, 226, .55)) border-box !important;
  border-radius: 22px !important; box-shadow: 0 8px 28px rgba(214, 36, 110, .08) !important; transition: box-shadow .25s ease;
}
.publisher:not(.mini):hover { box-shadow: 0 10px 34px rgba(214, 36, 110, .16) !important; }
.publisher .publisher-message { display: flex !important; align-items: center; gap: 12px; }
.publisher .publisher-message .colored-text-wrapper { flex: 1; min-width: 0; }
.publisher .publisher-avatar { border-radius: 50% !important; box-shadow: 0 0 0 2px var(--ek-surface), 0 0 0 3.5px var(--ek-magenta); }
.ek-quick { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ek-q {
  --q: #E41E26; position: relative; width: 42px; height: 42px; border-radius: 14px; border: 0; display: flex; align-items: center; justify-content: center;
  color: var(--q); background: color-mix(in srgb, var(--q) 13%, transparent); transition: transform .18s cubic-bezier(.2, .9, .3, 1.3), background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ek-q svg { width: 21px; height: 21px; transition: transform .25s ease; }
.ek-q2 { --q: #D6246E; }
.ek-q3 { --q: #8A2BE2; }
.ek-q:hover { transform: translateY(-2px); color: #fff; background: linear-gradient(135deg, var(--q), color-mix(in srgb, var(--q) 55%, #8A2BE2)); box-shadow: 0 8px 18px color-mix(in srgb, var(--q) 35%, transparent); }
.ek-q:hover svg { transform: rotate(-8deg) scale(1.06); }
.ek-q:active { transform: scale(.9); }
.ek-q3:hover svg { transform: rotate(18deg) scale(1.1); }
body.publisher-focus .ek-quick { display: none; }
@media (max-width: 767.98px) {
  .ek-q { width: 38px; height: 38px; border-radius: 12px; }
  .ek-q svg { width: 19px; height: 19px; }
  .ek-quick { gap: 6px; }
  .sg-offcanvas-mainbar .publisher:not(.mini) { border-radius: 18px !important; margin: 8px 8px 10px; }
}

/* ---------- push soft prompt ---------- */
.ek-push {
  position: fixed; left: 50%; bottom: calc(var(--ek-nav-h) + env(safe-area-inset-bottom) + 12px); z-index: 1045; width: min(460px, calc(100vw - 20px));
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--ek-surface); color: var(--ek-text);
  border: 1px solid var(--ek-line); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transform: translate(-50%, 30px); opacity: 0;
  transition: transform .35s cubic-bezier(.2, .9, .25, 1), opacity .3s ease; flex-wrap: wrap;
}
.ek-push.show { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 768px) { .ek-push { left: auto; right: 24px; bottom: 24px; transform: translateY(30px); } .ek-push.show { transform: none; } }
.ek-push-ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--ek-grad); animation: ekRing 1.6s ease 0.4s 2; }
.ek-push-ico svg { width: 23px; height: 23px; }
@keyframes ekRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-4deg); } }
.ek-push-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; line-height: 1.35; }
.ek-push-txt strong { font-weight: 800; font-size: 15px; }
.ek-push-txt span { font-size: 13px; color: var(--ek-text-2); }
.ek-push-act { display: flex; gap: 8px; margin-left: auto; }
.ek-push-act button { border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 13.5px; }
.ek-push-later { background: var(--ek-surface-2); color: var(--ek-text); }
.ek-push-yes { background: var(--ek-grad); color: #fff; box-shadow: 0 6px 16px rgba(214, 36, 110, .3); }

/* =====================================================================
   LANDING (guests)
   ===================================================================== */
.ek-landing { position: relative; min-height: 100vh; overflow: hidden; padding: 28px 20px 24px; }
.ek-land-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ek-land-bg span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: ekFloat 18s ease-in-out infinite alternate; }
.ek-land-bg span:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -120px; background: #E41E26; }
.ek-land-bg span:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 20%; background: #8A2BE2; animation-duration: 22s; }
.ek-land-bg span:nth-child(3) { width: 380px; height: 380px; left: 30%; bottom: -160px; background: #D6246E; animation-duration: 26s; }
body:not(.night-mode) .ek-land-bg span { opacity: .22; }
@keyframes ekFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }

.ek-land-hero { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; min-height: calc(100vh - 140px); }
.ek-land-logo img { height: 52px; }
.ek-land-kicker { display: inline-block; margin: 26px 0 12px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ek-text); background: var(--ek-grad-soft); border: 1px solid var(--ek-line); }
.ek-land-copy h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; color: var(--ek-text); }
.ek-grad-text { background: var(--ek-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ek-land-sub { font-size: 18px; line-height: 1.6; color: var(--ek-text-2); max-width: 540px; margin: 0 0 20px; }
.ek-land-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; }
.ek-land-points li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ek-surface) 70%, transparent); border: 1px solid var(--ek-line); font-weight: 700; font-size: 14px; color: var(--ek-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ek-dot { width: 9px; height: 9px; border-radius: 50%; }
.ek-dot.d1 { background: #E41E26; }
.ek-dot.d2 { background: #10B981; }
.ek-dot.d3 { background: #D6246E; }
.ek-dot.d4 { background: #8A2BE2; }

.ek-land-preview-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--ek-text); margin-bottom: 10px; }
.ek-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #E41E26; animation: ekPulse 1.6s infinite; }
@keyframes ekPulse { 0% { box-shadow: 0 0 0 0 rgba(228, 30, 38, .6); } 70% { box-shadow: 0 0 0 10px rgba(228, 30, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 30, 38, 0); } }
.ek-land-reels { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ek-land-reels::-webkit-scrollbar { display: none; }
.ek-land-reel { flex: 0 0 104px; height: 176px; border-radius: 16px; position: relative; overflow: hidden; background: #222 center / cover no-repeat; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); animation: ekRise .6s cubic-bezier(.2, .9, .25, 1) both; transition: transform .2s ease; }
.ek-land-reel:hover { transform: translateY(-4px) rotate(-1.5deg); }
.ek-land-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .75)); }
.ek-land-reel span { position: absolute; left: 8px; bottom: 8px; z-index: 1; color: #fff; font-weight: 800; font-size: 11.5px; }
@keyframes ekRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ek-land-apps { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.ek-land-card {
  position: relative; padding: 30px 28px; border-radius: 28px; background: color-mix(in srgb, var(--ek-surface) 82%, transparent);
  border: 1px solid var(--ek-line); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.ek-land-card-glow { position: absolute; inset: -1.5px; border-radius: 29px; padding: 1.5px; pointer-events: none; background: var(--ek-grad); opacity: .7;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ek-land-card .fr_welcome_title { font-size: 24px !important; font-weight: 800 !important; letter-spacing: -.02em; color: var(--ek-text) !important; margin-bottom: 18px !important; text-align: left !important; }
.ek-land-card .fr_welcome_field .form-control, .ek-land-card .fr_welcome_field .form-select, .ek-land-card .form-control {
  height: 50px; border-radius: 14px !important; background: var(--ek-surface-2) !important; border: 1px solid var(--ek-line) !important; color: var(--ek-text) !important;
}
.ek-land-card .form-control:focus { border-color: var(--ek-magenta) !important; box-shadow: 0 0 0 .22rem rgba(214, 36, 110, .18) !important; }
.ek-land-card .btn-primary, .ek-land-card button[type="submit"] { height: 52px; border-radius: 14px !important; font-size: 16px; }
.ek-land-card .fr_welcome_switch { color: var(--ek-text-2); }
.ek-land-card .fr_welcome_switch a, .ek-land-card .text-link { color: var(--ek-magenta) !important; font-weight: 800; }
.ek-land-footer { position: relative; z-index: 1; max-width: 1180px; margin: 10px auto 0; opacity: .85; }

@media (max-width: 991.98px) {
  .ek-landing { padding: 18px 14px 20px; }
  .ek-land-hero { grid-template-columns: 1fr; gap: 18px; min-height: 0; }
  .ek-land-copy { display: contents; }
  .ek-land-logo { order: 1; }
  .ek-land-kicker { order: 2; margin: 4px 0 0; justify-self: start; }
  .ek-land-copy h1 { order: 3; margin: 0; }
  .ek-land-sub { order: 4; margin: 0; font-size: 16px; }
  .ek-land-card { order: 5; padding: 22px 18px; }
  .ek-land-points { order: 6; margin: 0; }
  .ek-land-preview { order: 7; }
  .ek-land-apps { order: 8; margin: 0; }
  .ek-land-logo img { height: 42px; }
}

/* landing fixes: no inner box in the card, wider form column, no overflow on phones */
.ek-land-card .fr_auth_form { background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
.ek-land-hero { grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr); }
.ek-land-hero > *, .ek-land-copy > * { min-width: 0; }
.ek-land-card .fr_welcome_field .form-control, .ek-land-card .fr_welcome_field input { padding-left: 52px !important; }
@media (max-width: 991.98px) { .ek-land-hero { grid-template-columns: minmax(0, 1fr); } .ek-landing { max-width: 100vw; } .ek-land-sub { max-width: 100%; } }
