.store-shell {
  min-height: 100vh;
  padding-bottom: 40px;
}

.store-hero {
  margin-top: 22px;
  margin-bottom: 22px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(135deg, #007aff, #5b5ff7 60%, #5ac8fa);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -70px -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(10px);
}

.store-hero > * {
  position: relative;
  z-index: 2;
}

.hero-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,0.08);
}

.hero-decor-1 {
  width: 140px;
  height: 140px;
  top: -25px;
  left: 8%;
}

.hero-decor-2 {
  width: 90px;
  height: 90px;
  bottom: 22px;
  right: 18%;
}

.hero-decor-3 {
  width: 46px;
  height: 46px;
  top: 50%;
  left: 48%;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 75%);
  pointer-events: none;
}

.hero-top-row {
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-content {
  max-width: 780px;
}

.store-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.store-hero p {
  max-width: 760px;
  line-height: 2;
  opacity: 0.96;
  font-size: 1rem;
  margin-bottom: 22px;
}

.hero-stats-strip {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.hero-stats-strip-compact {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.hero-stat-card {
  min-height: 86px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
}

.featured-stat {
  background: rgba(255,255,255,0.16);
}

.hero-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  flex-shrink: 0;
  font-size: 1rem;
  position: relative;
}

.hero-stat-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-stat-label {
  font-size: 0.8rem;
  opacity: 0.92;
  margin-bottom: 5px;
}

.hero-stat-text strong {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
}

.notification-dot {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.45);
  display: none;
}

.hero-stat-card-bell.has-notification .notification-dot {
  display: block;
}

.hero-stat-card-bell.has-notification #hero-bell-icon {
  animation: bellRing 1s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes bellRing {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  70% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.hidden-stat,
.hidden {
  display: none !important;
}

.store-section {
  margin-bottom: 24px;
}

.store-panel {
  padding: 22px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.store-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.store-panel-head h2 {
  font-size: 1.2rem;
  font-weight: 900;
}

.store-panel-head p {
  color: var(--text-sec);
  font-size: 0.92rem;
  line-height: 1.8;
}

.home-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 260px;
  background: var(--card-solid);
  border: 1px solid var(--line);
}

.home-slider-track {
  position: relative;
  min-height: 260px;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.slide-item.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.slider-empty {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  text-align: center;
  padding: 20px;
}

.home-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: 0.25s;
}

.slider-dot.active {
  width: 26px;
  border-radius: 999px;
  background: #fff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.category-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

[data-theme="dark"] .category-card {
  background: rgba(255,255,255,0.02);
}

.category-card:hover,
.category-card.active {
  transform: translateY(-4px);
  border-color: rgba(0, 122, 255, 0.18);
  box-shadow: var(--shadow-sm);
}

.category-img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  background: var(--card-solid);
}

.category-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--card-solid);
  border-bottom: 1px solid var(--line);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-card:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.5;
}

.card-desc {
  color: var(--text-sec);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 12px;
  min-height: 48px;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 14px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-card {
  flex: 1;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-details {
  background: rgba(0, 122, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 122, 255, 0.12);
}

.btn-wa-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: 1px solid transparent;
}

.store-empty {
  padding: 28px 18px;
  border-radius: 22px;
  text-align: center;
  color: var(--text-sec);
  border: 1px dashed var(--line-strong);
  background: var(--card-bg);
}

.product-modal-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.product-modal-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-solid);
  min-height: 340px;
}

.product-modal-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.product-modal-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-modal-badge {
  width: fit-content;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,122,255,0.08);
  color: var(--primary);
  border: 1px solid rgba(0,122,255,0.14);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-modal-content h3 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
}

.product-modal-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}

.product-modal-content p {
  color: var(--text-sec);
  line-height: 2;
}

.product-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-meta-box {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.66);
  border: 1px solid var(--line);
}

[data-theme="dark"] .product-meta-box {
  background: rgba(255,255,255,0.03);
}

.product-meta-box span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-sec);
  margin-bottom: 6px;
}

.product-meta-box strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.6;
}

.product-modal-actions {
  margin-top: auto;
}

/* =========================
   PREMIUM FOOTER
========================= */
.premium-footer {
  position: relative;
  margin-top: 42px;
  padding: 34px 0 20px;
  background:
    radial-gradient(circle at top right, rgba(0,122,255,0.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(91,95,247,0.12), transparent 22%),
    linear-gradient(135deg, #0f172a, #111827 60%, #1e293b);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.28;
  pointer-events: none;
}

.footer-glow-1 {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -40px;
  background: #007aff;
}

.footer-glow-2 {
  width: 180px;
  height: 180px;
  bottom: -50px;
  left: -30px;
  background: #5b5ff7;
}

.premium-footer .container {
  position: relative;
  z-index: 2;
}

.premium-footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.premium-footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.premium-footer-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.premium-footer-logo-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
}

.premium-footer-brand-text h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: #fff;
}

.premium-footer-brand-text p {
  color: rgba(255,255,255,0.76);
  line-height: 2;
  max-width: 420px;
  font-size: 0.95rem;
}

.premium-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.footer-links-col a {
  color: rgba(255,255,255,0.74);
  font-size: 0.9rem;
  transition: 0.22s ease;
}

.footer-links-col a:hover {
  color: #fff;
  transform: translateX(-3px);
}

.footer-note-box {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  font-size: 0.88rem;
}

.premium-footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.premium-footer-copy {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
}

.premium-footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
}

.premium-footer-credit a {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 900;
  transition: 0.22s ease;
}

.premium-footer-credit a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.14);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 992px) {
  .premium-footer-top {
    grid-template-columns: 1fr;
  }

  .premium-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .premium-footer {
    padding: 26px 0 18px;
  }

  .premium-footer-top {
    gap: 20px;
  }

  .premium-footer-brand {
    flex-direction: column;
  }

  .premium-footer-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .premium-footer-links {
    grid-template-columns: 1fr;
  }

  .premium-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-footer-credit {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero-stats-strip-compact {
    grid-template-columns: 1fr;
  }

  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-image-wrap,
  .product-modal-image-wrap img {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .store-hero,
  .store-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .hero-stat-card {
    min-height: 74px;
    border-radius: 18px;
    padding: 12px;
  }

  .hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .home-slider-wrap,
  .home-slider-track,
  .slide-item img,
  .slider-empty {
    min-height: 190px;
  }

  .slide-item img {
    height: 190px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-desc {
    font-size: 0.82rem;
    min-height: 38px;
  }

  .card-price {
    font-size: 1rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .product-modal-meta {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   TOP NEWS BAR
========================= */
.top-news-bar {
  width: 100%;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1200;
}

.top-news-inner {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 8px 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.8;
}

.top-news-inner i {
  color: #fbbf24;
  flex-shrink: 0;
}

/* =========================
   FLOATING SOCIAL BUTTON
========================= */
.floating-social-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-social-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #007aff, #5b5ff7);
  color: #fff;
  box-shadow: 0 16px 35px rgba(0, 122, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: 0.25s ease;
}

.floating-social-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-social-links {
  display: grid;
  gap: 10px;
}

.floating-social-links.show {
  animation: socialFadeUp .25s ease;
}

@keyframes socialFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-social-link {
  min-width: 190px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  transition: 0.22s ease;
}

[data-theme="dark"] .floating-social-link {
  background: rgba(18,18,18,0.95);
}

.floating-social-link:hover {
  transform: translateY(-2px);
}

.floating-social-link i {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.floating-social-link.whatsapp i {
  background: rgba(37, 211, 102, 0.14);
  color: #25d366;
}

.floating-social-link.facebook i {
  background: rgba(24, 119, 242, 0.14);
  color: #1877f2;
}

.floating-social-link.instagram i {
  background: rgba(225, 48, 108, 0.14);
  color: #e1306c;
}

.floating-social-link .social-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.floating-social-link .social-text strong {
  font-size: 0.9rem;
  font-weight: 900;
}

.floating-social-link .social-text span {
  font-size: 0.78rem;
  color: var(--text-sec);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 640px) {
  .top-news-inner {
    width: calc(100% - 16px);
    min-height: 40px;
    font-size: 0.84rem;
  }

  .floating-social-wrap {
  right: 12px;
  bottom: 12px;
}

  .floating-social-btn {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
  }

  .floating-social-link {
    min-width: 170px;
    padding: 10px 12px;
    border-radius: 16px;
  }
}
.product-modal-purchase-box,
.purchase-dynamic-box {
  margin-top: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.66);
  border: 1px solid var(--line);
}

[data-theme="dark"] .product-modal-purchase-box,
[data-theme="dark"] .purchase-dynamic-box {
  background: rgba(255,255,255,0.03);
}

.product-modal-form-row,
.purchase-dynamic-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-modal-field,
.purchase-dynamic-field {
  display: grid;
  gap: 8px;
}

.product-modal-field label,
.purchase-dynamic-field label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-sec);
}

.product-modal-total-box,
.purchase-total-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,122,255,0.08);
  border: 1px solid rgba(0,122,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-modal-total-box span,
.purchase-total-box span {
  color: var(--text-sec);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-modal-total-box strong,
.purchase-total-box strong {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}

@media (max-width: 640px) {
  .product-modal-form-row,
  .purchase-dynamic-row {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   STORE MOBILE NAV FIX
========================================= */
@media (max-width: 768px) {
  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  [data-theme="dark"] .app-topbar {
    background: rgba(10, 10, 14, 0.96);
  }

  .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0 12px;
    gap: 10px;
  }

  .brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text span {
    font-size: 0.72rem;
  }

  .topbar-actions {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1300;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  [data-theme="dark"] .topbar-actions {
    background: rgba(10, 10, 14, 0.98);
  }

  .topbar-actions .btn,
  .topbar-actions .icon-btn,
  .topbar-actions a,
  .topbar-actions button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .topbar-actions .btn i,
  .topbar-actions .icon-btn i,
  .topbar-actions .icon-btn span {
    font-size: 1rem;
    line-height: 1;
  }

  .topbar-actions .btn span {
    display: block;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .topbar-actions #admin-link-btn.hidden {
    display: none !important;
  }

  .store-shell {
    padding-bottom: 105px;
  }

  .premium-footer,
  .site-footer {
    margin-bottom: 95px;
  }

  body {
    overflow-x: hidden;
  }
}
/* =========================================
   ROOT HEADER SOLUTION
========================================= */
.top-news-bar {
  position: sticky;
  top: 0;
  z-index: 1600;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.top-news-inner {
  width: min(1200px, calc(100% - 24px));
  margin-inline: auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .app-topbar {
  background: rgba(10,10,14,0.94);
}

.topbar-inner {
  width: min(1200px, calc(100% - 24px));
  margin-inline: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--card-solid);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--text-sec);
}

.desktop-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.desktop-topbar-actions .icon-btn {
  min-width: 46px;
  height: 46px;
}

.mobile-bottom-nav {
  display: none;
}

.store-shell {
  min-height: 100vh;
  padding-bottom: 40px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .top-news-bar {
    min-height: 40px;
  }

  .top-news-inner {
    width: min(100% - 16px, 100%);
    min-height: 40px;
    font-size: 0.8rem;
  }

  .app-topbar {
    top: 0px;
  }

  .topbar-inner {
    width: min(100% - 16px, 100%);
    min-height: 68px;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text span {
    font-size: 0.72rem;
  }

  .desktop-topbar-actions {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1700;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(15,23,42,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background: rgba(10,10,14,0.98);
  }

  .mobile-nav-item {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.72);
    color: var(--text-main);
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
  }

  [data-theme="dark"] .mobile-nav-item {
    background: rgba(255,255,255,0.04);
  }

  .mobile-nav-item i,
  .mobile-nav-item .mobile-currency-symbol {
    font-size: 1rem;
    line-height: 1;
  }

  .mobile-nav-item span:last-child {
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .mobile-nav-item.hidden {
    display: none !important;
  }

  .store-shell {
    padding-bottom: 105px;
  }

  .premium-footer,
  .site-footer {
    margin-bottom: 95px;
  }
}
@media (max-width: 768px) {
  .floating-social-wrap {
    right: 12px !important;
    left: auto !important;
    bottom: 100px !important;
    z-index: 1650;
    align-items: flex-end !important;
  }

  .floating-social-links {
    margin-bottom: 8px;
  }
}
/* =========================================
   FINAL MOBILE OVERLAP FIXES
========================================= */

/* الشريط الإعلاني يؤثر فقط عند ظهوره */
body.has-top-news .app-topbar {
  top: 42px;
}

@media (max-width: 768px) {
  body.has-top-news .app-topbar {
    top: 40px;
  }
}