/* Sentivora — native mobile / PWA app shell */

:root {
  --app-shadow: 0 1px 3px rgba(22, 32, 42, 0.06);
  --app-radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 52px;
  --tab-h: 58px;
  --admin-bottom-h: 62px;
}

/* ========== MOBILE STORE APP ========== */
@media (max-width: 767px) {
  html {
    height: 100%;
    height: -webkit-fill-available;
  }

  body.app-body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--app-bg);
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overscroll-behavior-y: none;
  }

  .app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(22, 32, 42, 0.97);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    padding-top: var(--safe-top);
  }

  .app-header__inner {
    min-height: var(--nav-h);
    height: var(--nav-h);
    padding: 0 10px;
    max-width: none;
  }

  .app-header .logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .logo__text {
    display: none !important;
  }

  .app-main {
    padding-top: calc(var(--nav-h) + var(--safe-top));
    padding-bottom: 4px;
    min-height: calc(100dvh - var(--tab-h) - var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .lang-switch {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .container {
    padding: 0;
    max-width: none;
  }

  .app-footer,
  .app-download-banner,
  .page-header {
    display: none !important;
  }

  /* Bottom tab bar — native app style */
  .bottom-nav {
    height: calc(var(--tab-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    padding-top: 4px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
  }

  .bottom-nav__item {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #94a3b8;
    gap: 2px;
    position: relative;
    transition: color 0.15s ease, transform 0.1s ease;
  }

  .bottom-nav__item:active {
    transform: scale(0.94);
  }

  .bottom-nav__item.active {
    color: var(--primary);
  }

  .bottom-nav__item.active::before {
    display: none;
  }

  .bottom-nav__item.active svg {
    stroke-width: 2.25;
  }

  .bottom-nav__item svg {
    width: 24px;
    height: 24px;
  }

  /* Home shell */
  .app-shell-top {
    padding: 12px 14px 8px;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    margin-bottom: 8px;
  }

  .app-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .app-welcome__logo {
    border-radius: 12px;
    box-shadow: var(--app-shadow);
  }

  .app-welcome__hi {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin: 0;
  }

  .app-welcome__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.2;
  }

  .app-welcome__tag {
    font-size: 0.72rem;
    color: var(--gray-400);
    margin: 2px 0 0;
  }

  .app-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 44px;
    background: var(--app-bg);
    border-radius: 12px;
    border: none;
    margin-bottom: 10px;
  }

  .app-search-bar svg {
    color: var(--gray-400);
    flex-shrink: 0;
  }

  .app-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    padding: 0;
    min-height: auto;
  }

  .app-search-bar input:focus {
    outline: none;
    box-shadow: none;
  }

  .app-category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .app-category-scroll::-webkit-scrollbar {
    display: none;
  }

  .app-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--app-bg);
    color: var(--gray-600);
    text-decoration: none;
    border: 1px solid transparent;
  }

  .app-chip--active,
  .app-chip:active {
    background: var(--primary);
    color: white;
  }

  .app-chip__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .app-promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 12px 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: var(--app-radius);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 119, 200, 0.25);
  }

  .app-promo-card__tag {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 4px;
  }

  .app-promo-card__text strong {
    font-size: 1rem;
    font-weight: 700;
  }

  .app-promo-card__arrow {
    font-size: 1.25rem;
    opacity: 0.9;
  }

  /* Sections */
  .section,
  .app-section {
    padding: 8px 0 16px;
    background: transparent;
  }

  .section--alt,
  .section--mosque,
  .app-section--mosque {
    background: transparent;
  }

  .app-section__head,
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 10px;
    margin-bottom: 0;
  }

  .app-section__head h2,
  .section-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
  }

  .app-section__link,
  .link-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 10px;
    background: var(--primary-light);
    border-radius: 8px;
  }

  .product-scroll {
    padding: 0 12px 4px;
    gap: 10px;
  }

  .product-scroll .product-card {
    flex: 0 0 148px;
  }

  .product-grid,
  .product-grid--app {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 12px;
  }

  /* Product card — app style */
  .product-card--app {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    border: 1px solid var(--app-border);
  }

  .product-card--app:active {
    transform: scale(0.98);
  }

  .product-card--app .product-card__image-wrap {
    aspect-ratio: 1;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
  }

  .product-card--app .product-card__image-wrap:not(.product-card__image-wrap--photo) {
    padding: 12px;
  }

  .product-card--app .product-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .product-card--app .product-card__img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    object-position: center;
  }

  .product-card--app .product-card__image-wrap--photo .product-card__img {
    object-fit: cover;
  }

  .product-card--app .badge--sale {
    top: 6px;
    inset-inline-start: 6px;
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 6px;
  }

  .product-card--app .badge--oos {
    inset-inline-end: 6px;
    top: 6px;
    font-size: 0.6rem;
  }

  .product-card__add {
    position: absolute;
    bottom: 6px;
    inset-inline-end: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 119, 200, 0.35);
    cursor: pointer;
    z-index: 2;
  }

  .product-card__add:active {
    transform: scale(0.92);
  }

  .product-card--app .product-card__body {
    padding: 10px 10px 12px;
    gap: 4px;
  }

  .product-card--app .product-card__title {
    font-size: 0.78rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card--app .product-card__desc {
    display: none;
  }

  .product-card--app .product-card__meta--app {
    font-size: 0.65rem;
    color: var(--gray-400);
  }

  .product-card--app .product-card__price {
    margin-top: 2px;
    gap: 4px;
    align-items: baseline;
  }

  .product-card--app .price-current {
    font-size: 0.88rem;
    font-weight: 700;
  }

  .product-card--app .price-currency {
    font-size: 0.65rem;
    color: var(--gray-400);
    font-weight: 600;
  }

  .product-card--app .price-old {
    font-size: 0.68rem;
  }

  .product-card__actions--desktop {
    display: none !important;
  }

  /* Shop page */
  .shop-app-top {
    padding: 12px 14px 10px;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    margin-bottom: 8px;
  }

  .shop-app-top__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--gray-800);
  }

  .shop-app-top .app-search-bar {
    margin-bottom: 10px;
  }

  .shop-sort-pills {
    padding-bottom: 6px;
  }

  .shop-layout {
    padding: 0;
    gap: 0;
  }

  .shop-layout > .container,
  .shop-layout.container {
    padding: 0;
  }

  .shop-main {
    padding: 0;
  }

  .empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-400);
    font-size: 0.95rem;
  }

  .pagination {
    padding: 16px 12px 24px;
    justify-content: center;
    gap: 12px;
  }

  /* Cart & checkout */
  .app-body--checkout {
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 88px);
  }

  .page-cart,
  .page-checkout {
    padding: 12px 12px 0;
  }

  .page-cart h1,
  .page-checkout h1 {
    font-size: 1.25rem;
  }

  .checkout-head {
    margin-bottom: 16px;
  }

  .checkout-head__back {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }

  .checkout-steps {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  /* Summary first on mobile — collapsible */
  .checkout-summary {
    order: -1;
    position: static;
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    padding: 0;
  }

  .checkout-summary__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: start;
    font: inherit;
    color: inherit;
  }

  .checkout-summary__toggle-label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .checkout-summary__toggle-label small {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
  }

  .checkout-summary__toggle-total {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    white-space: nowrap;
  }

  .checkout-summary__chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--gray-400);
  }

  .checkout-summary.is-open .checkout-summary__chevron {
    transform: rotate(180deg);
  }

  .checkout-summary__body {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--app-border);
  }

  .checkout-summary.is-open .checkout-summary__body {
    display: block;
  }

  .checkout-summary__title {
    display: none;
  }

  .checkout-form {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    padding: 0;
    box-shadow: var(--app-shadow);
    border: 1px solid var(--app-border);
    margin-bottom: 0;
  }

  .checkout-section {
    padding: 16px 16px 4px;
  }

  .checkout-section__title {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .checkout-fields--2 {
    grid-template-columns: 1fr;
  }

  .checkout-submit-btn {
    display: none;
  }

  .checkout-auth-links {
    padding-bottom: 16px;
  }

  .checkout-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tab-h) + var(--safe-bottom));
    z-index: 90;
    padding: 12px 16px;
    background: var(--app-surface);
    border-top: 1px solid var(--app-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  }

  .checkout-mobile-bar__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .checkout-mobile-bar__label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .checkout-mobile-bar__info strong {
    font-size: 1.05rem;
    color: var(--primary);
  }

  .checkout-mobile-bar__btn {
    flex-shrink: 0;
    min-height: 48px;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 12px;
    white-space: nowrap;
  }

  .checkout-item__img {
    width: 48px;
    height: 48px;
  }

  .cart-item {
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    border: 1px solid var(--app-border);
    margin-bottom: 10px;
  }

  .cart-summary {
    border-radius: var(--app-radius) var(--app-radius) 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    bottom: calc(var(--tab-h) + var(--safe-bottom));
    margin: 0;
    border: 1px solid var(--app-border);
  }

  /* Product detail — mobile first */
  .app-body--product {
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 72px);
  }

  .product-page__nav {
    padding-top: 4px;
  }

  .product-page__back {
    font-size: 0.8rem;
  }

  .product-detail {
    padding: 0 12px 16px;
    gap: 0;
  }

  .product-detail .container,
  .product-page .container.product-detail {
    padding-left: 0;
    padding-right: 0;
  }

  .product-page .container:not(.product-detail) {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-gallery {
    margin: 0 -12px 12px;
    gap: 10px;
  }

  .product-gallery__frame {
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 1;
  }

  .product-gallery__frame:not(.product-gallery__frame--photo) {
    padding: 20px;
    border-radius: 0;
  }

  .product-gallery__thumbs {
    padding: 0 12px;
  }

  .product-info-card {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    border: 1px solid var(--app-border);
    padding: 16px;
    margin: 0;
  }

  .product-info-card__title {
    font-size: 1.15rem;
  }

  .product-info-card__price .price-current--lg {
    font-size: 1.35rem;
  }

  .product-meta-chip {
    background: var(--app-bg);
    border-color: var(--app-border);
  }

  .product-desc-block {
    border-top-color: var(--app-border);
  }

  .product-actions__cart {
    display: none;
  }

  .product-actions {
    border-top: none;
    padding-top: 0;
  }

  .qty-selector {
    margin-bottom: 0;
  }

  .product-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tab-h) + var(--safe-bottom));
    z-index: 90;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--app-border);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
  }

  .product-mobile-bar__price {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .product-mobile-bar__label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
  }

  .product-mobile-bar__price strong {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
  }

  .product-mobile-bar__btn {
    flex-shrink: 0;
    min-height: 48px;
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(22, 32, 42, 0.2);
  }

  .product-related {
    padding: 4px 0 20px;
  }

  .product-related .container {
    padding-left: 12px;
    padding-right: 0;
  }

  .product-related__title {
    font-size: 1rem;
    padding-right: 12px;
  }

  /* Search overlay — full screen */
  .search-overlay {
    padding: max(12px, var(--safe-top)) 12px 12px;
    background: var(--app-bg);
    align-items: flex-start;
  }

  .search-overlay .search-form {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    padding: 12px;
    box-shadow: var(--app-shadow);
    width: 100%;
    max-width: none;
  }

  .search-overlay input {
    border-radius: 10px;
    background: var(--app-bg);
    border: none;
  }

  /* Toast */
  .toast {
    bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px);
    border-radius: 12px;
    font-size: 0.85rem;
    padding: 12px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  /* Buttons */
  .btn {
    border-radius: 12px;
    min-height: 46px;
  }

  .btn--primary {
    box-shadow: 0 2px 8px rgba(0, 119, 200, 0.2);
  }

  .radio-card {
    border-radius: 12px;
    padding: 14px;
    background: var(--app-bg);
    border: 1px solid var(--app-border);
  }

  .radio-card:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
  }

  /* Contact & static pages — app screens */
  .contact-page,
  .page-contact {
    padding: 0 0 16px;
    background: var(--app-bg);
  }

  .contact-page .container {
    padding: 0 12px;
  }

  .page-header--contact {
    display: none !important;
  }

  .contact-page__mobile-head {
    margin: 0 0 12px;
    padding: 16px 14px;
    border-radius: var(--app-radius);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 55%, var(--accent) 100%);
    color: #fff;
  }

  .contact-page__mobile-head h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
  }

  .contact-page__mobile-head p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
  }

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

  .contact-aside,
  .contact-main {
    width: 100%;
  }

  .contact-info-panel,
  .contact-form-panel,
  .contact-map-panel {
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    border: 1px solid var(--app-border);
    padding: 16px;
    background: var(--app-surface);
  }

  .contact-whatsapp-card {
    border-radius: var(--app-radius);
  }

  .app-body--contact {
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
  }

  .page-about .container,
  .about-page .container {
    padding: 12px;
  }

  .about-intro {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    padding: 20px 16px;
    margin-bottom: 12px;
  }

  .page-account .container {
    padding: 12px;
  }

  .account-card,
  .order-card {
    border-radius: var(--app-radius);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    background: var(--app-surface);
  }

  .page-order-confirmation .container {
    padding: 16px 12px;
    text-align: center;
  }

  .page-order-confirmation .btn {
    border-radius: 12px;
    min-height: 48px;
  }
}

html.is-standalone body.app-body {
  background: var(--app-bg);
  user-select: none;
}

html.is-standalone .app-main,
html.is-standalone .product-description,
html.is-standalone .contact-msg-pre,
html.is-standalone input,
html.is-standalone textarea {
  user-select: text;
}

html.is-standalone .app-header {
  padding-top: var(--safe-top);
}

html.is-standalone .bottom-nav {
  background: rgba(255, 255, 255, 0.98);
}

html.is-standalone .pwa-install {
  display: none !important;
}

html.is-standalone .app-shell-top {
  border-radius: 0 0 var(--app-radius) var(--app-radius);
  margin: 0 0 10px;
  box-shadow: var(--app-shadow);
}

/* Install banner */
.pwa-install {
  position: fixed;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 8px);
  left: 12px;
  right: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--gray-800);
  color: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.85rem;
}

.pwa-install[hidden] {
  display: none !important;
}

.pwa-install__text {
  flex: 1;
  line-height: 1.35;
}

.pwa-install__text strong {
  display: block;
  font-size: 0.9rem;
}

.pwa-install__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-install__btn {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.pwa-install__btn--primary {
  background: var(--primary);
  color: white;
}

.pwa-install__btn--ghost {
  background: transparent;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .product-card__add,
  .app-shell-top,
  .shop-app-top,
  .app-promo-card {
    display: none !important;
  }

  .product-card__actions--desktop {
    display: flex !important;
  }

  .pwa-install {
    bottom: 24px;
    left: auto;
    right: 24px;
    max-width: 360px;
  }
}

/* ========== ADMIN MOBILE (unchanged core) ========== */
@media (max-width: 900px) {
  body.admin-body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    padding-bottom: calc(var(--admin-bottom-h) + var(--safe-bottom));
  }

  .admin-main {
    margin-left: 0;
    min-height: 100dvh;
  }

  .admin-topbar {
    min-height: 56px;
    padding: 0 12px;
    padding-top: var(--safe-top);
  }

  .admin-topbar__title h1 {
    font-size: 1.05rem;
  }

  .admin-topbar__title p {
    display: none;
  }

  .admin-content {
    padding: 12px;
    padding-bottom: 16px;
  }

  .admin-menu-btn {
    display: none !important;
  }

  .admin-sidebar {
    display: none;
  }

  .settings-save-bar {
    inset-inline-start: 0;
    bottom: calc(var(--admin-bottom-h) + var(--safe-bottom));
  }

  body.admin-body .panel {
    border-radius: 14px;
  }

  body.admin-body .stats-grid {
    gap: 10px;
  }

  body.admin-body .stat-card {
    padding: 14px;
  }

  body.admin-body .admin-table {
    font-size: 0.82rem;
  }

  body.admin-body .table-wrap {
    margin: 0 -12px;
    border-radius: 0;
  }
}

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

@media (max-width: 900px) {
  .admin-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--admin-border);
    padding-bottom: var(--safe-bottom);
    height: calc(var(--admin-bottom-h) + var(--safe-bottom));
  }

  .admin-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    color: var(--admin-muted);
    font-size: 0.62rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    min-height: var(--admin-bottom-h);
  }

  .admin-bottom-nav__item svg {
    width: 22px;
    height: 22px;
  }

  .admin-bottom-nav__item.active {
    color: var(--admin-primary);
  }
}

.admin-more-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--admin-white);
  border-radius: 20px 20px 0 0;
  padding: 12px 16px calc(16px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.28s ease;
  max-height: 70vh;
  overflow-y: auto;
}

.admin-more-sheet.open {
  transform: translateY(0);
}

.admin-more-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--admin-border);
  border-radius: 4px;
  margin: 0 auto 16px;
}

.admin-more-sheet h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-muted);
  margin: 12px 0 8px;
}

.admin-more-sheet__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  color: var(--admin-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.admin-more-sheet__link:active,
.admin-more-sheet__link.active {
  background: var(--admin-primary-light);
  color: var(--admin-primary);
}

.admin-more-sheet__link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (min-width: 901px) {
  .admin-bottom-nav,
  .admin-more-sheet {
    display: none !important;
  }
}

html.is-standalone body.admin-body .admin-topbar {
  padding-top: max(8px, var(--safe-top));
}

/* Admin mobile nav — respect LTR/RTL */
html[dir="rtl"] .admin-bottom-nav,
html[dir="rtl"] .admin-more-sheet {
  direction: rtl;
}

html[dir="rtl"] .admin-more-sheet__link {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="ltr"] .admin-bottom-nav,
html[dir="ltr"] .admin-more-sheet {
  direction: ltr;
}
