* {
    box-sizing: border-box;
}

:root {
    --primary: #2A1710;
    --secondary: #7A4A2E;
    --accent: #C99663;
    --bg: #F7F1EA;
    --surface: #FFFFFF;
    --text: #1E1714;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #efe3d8;
    color: var(--text);
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    overflow-x: hidden;
    padding-bottom: 96px;
    box-shadow: 0 0 45px rgba(42, 23, 16, 0.08);
}

.home-header {
    background: #fff;
    padding: 12px 18px 14px;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(42, 23, 16, 0.06);
}

.logo-wrap {
    height: 82px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrap img {
    width: 118px;
    max-height: 78px;
    object-fit: contain;
    display: block;
}

.top-tabs {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.top-tabs a {
    color: rgba(30, 23, 20, 0.45);
}

.top-tabs a.active {
    color: var(--secondary);
}

.search-card {
    margin-top: 14px;
    height: 56px;
    border-radius: 17px;
    background: #f3f0ed;
    color: rgba(30, 23, 20, 0.52);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
}

.search-icon {
    font-size: 24px;
}

.hero-scroll {
    display: flex;
    direction: ltr;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 16px 16px 4px;
}

.hero-scroll::-webkit-scrollbar {
    display: none;
}

.hero-card {
    direction: rtl;
    min-width: calc(100vw - 44px);
    max-width: 430px;
    height: 285px;
    border-radius: 0;
    padding: 24px;
    overflow: hidden;
    background-color: #5d4034;
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-shadow: 0 14px 34px rgba(42, 23, 16, 0.22);
}

.hero-card h1 {
    margin: 0;
    font-size: 29px;
    line-height: 1.2;
    max-width: 320px;
    letter-spacing: -0.5px;
}

.hero-card p {
    margin: 10px 0 16px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    max-width: 300px;
}

.hero-card .btn {
    align-self: flex-start;
    background: #fff;
    color: var(--primary);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    font-size: 13px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 0 4px;
}

.slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(42, 23, 16, 0.18);
}

.slider-dots span:first-child {
    width: 20px;
    background: var(--secondary);
}

.section-head {
    padding: 20px 18px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.section-head span {
    background: #161616;
    color: #fff;
    padding: 5px 9px;
    transform: rotate(-2deg);
    display: inline-block;
    margin-left: 5px;
}

.section-head a {
    font-size: 13px;
    color: rgba(30,23,20,0.72);
    font-weight: 800;
}

.tiles-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 12px;
    padding: 0 16px 20px;
    direction: ltr;
}

.tile {
    direction: rtl;
    min-height: 145px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: #eee8e2;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 24px rgba(42, 23, 16, 0.10);
}

.tile:first-child {
    grid-row: span 2;
    min-height: 302px;
}

.tile-content {
    position: absolute;
    inset: auto 10px 10px 10px;
    background: rgba(255,255,255,0.94);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(8px);
}

.tile-content strong {
    display: block;
    font-size: 16px;
    color: var(--primary);
}

.tile-content small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: rgba(30,23,20,0.62);
}

.how-card {
    margin: 4px 16px 24px;
    border: 1px solid rgba(122,74,46,0.13);
    border-radius: 24px;
    padding: 18px;
    background: #fffaf5;
}

.how-card h2 {
    margin: 0 0 14px;
    font-size: 21px;
}

.steps {
    display: grid;
    gap: 10px;
}

.step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: rgba(30,23,20,0.78);
}

.step b {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.footer-credit {
    text-align: center;
    padding: 24px 14px 8px;
    color: rgba(30,23,20,0.45);
    font-size: 12px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 450px);
    height: 70px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(122,74,46,0.14);
    border-radius: 28px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    box-shadow: 0 14px 40px rgba(42, 23, 16, 0.18);
    backdrop-filter: blur(12px);
    z-index: 50;
}

.bottom-nav a {
    text-align: center;
    font-size: 10px;
    color: rgba(30,23,20,0.58);
    font-weight: 900;
}

.bottom-nav a b {
    display: block;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 4px;
    color: rgba(30,23,20,0.68);
}

.bottom-nav a.active,
.bottom-nav a.active b {
    color: var(--secondary);
}

.coming-soon {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    text-align: center;
}

.coming-soon-card {
    max-width: 360px;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 55px rgba(42,23,16,0.12);
}

.coming-soon-card img {
    width: 115px;
    object-fit: contain;
}

.coming-soon-card h1 {
    margin: 20px 0 14px;
    font-size: 26px;
}

.loader {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(122,74,46,0.16);
    border-top-color: var(--secondary);
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 1s linear infinite;
}

.back-home {
    display: inline-flex;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
}

.terms-page {
    padding: 20px 18px 110px;
}

.terms-logo {
    display: block;
    width: 112px;
    margin: 0 auto 20px;
}

.terms-page h1 {
    font-size: 27px;
    margin: 0 0 16px;
}

.terms-block {
    background: #fffaf5;
    border: 1px solid rgba(122,74,46,0.12);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
}

.terms-block h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.terms-block p {
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
    color: rgba(30,23,20,0.72);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 520px) {
    .hero-card {
        min-width: 430px;
    }
}

.tiles-grid {
    align-items: stretch;
}

.tile:nth-child(4),
.tile:nth-child(5) {
    min-height: 145px;
}

.tile:nth-child(5) {
    grid-column: span 1;
}

@media (max-width: 360px) {
    .tiles-grid {
        gap: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .tile {
        min-height: 132px;
    }

    .tile:first-child {
        min-height: 280px;
    }
}

/* IT inline edit keys */
.editable-home {
    position: relative;
}

.it-edit-key {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 8;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    color: #7A4A2E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(42,23,16,.18);
    border: 1px solid rgba(122,74,46,.18);
}

.logo-edit-key {
    top: 8px;
    left: 18px;
}

.hero-link,
.tile-link {
    display: block;
    color: inherit;
}

.hero-link {
    min-width: calc(100vw - 44px);
    max-width: 430px;
    scroll-snap-align: center;
}

.hero-link .hero-card {
    min-width: 100%;
    max-width: 100%;
}

@media (min-width: 520px) {
    .hero-link {
        min-width: 430px;
    }
}

/* IT edit overlay fixes */
.editable-home {
    position: relative;
}

.it-edit-key {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 30;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    color: #7A4A2E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(42,23,16,.18);
    border: 1px solid rgba(122,74,46,.18);
}

.logo-edit-key {
    top: 10px;
    left: 18px;
}

.hero-item {
    min-width: calc(100vw - 44px);
    max-width: 430px;
    scroll-snap-align: center;
    position: relative;
}

.hero-link {
    display: block;
    color: inherit;
}

.hero-item .hero-card {
    min-width: 100%;
    max-width: 100%;
}

.tile-slot {
    position: relative;
    min-height: 145px;
}

.tile-slot:first-child {
    grid-row: span 2;
    min-height: 302px;
}

.tile-slot .tile {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.tile-slot:first-child .tile {
    min-height: 302px;
}

.tiles-grid > .tile {
    display: none;
}

@media (min-width: 520px) {
    .hero-item {
        min-width: 430px;
    }
}

/* Freak-like full width hero slider */
.hero-scroll {
    width: 100%;
    display: flex;
    direction: ltr;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    padding: 14px 0 0;
    -webkit-overflow-scrolling: touch;
}

.hero-scroll::-webkit-scrollbar {
    display: none;
}

.hero-item {
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.hero-link {
    display: block;
    width: 100%;
    color: inherit;
}

.hero-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: clamp(220px, 60vw, 300px);
    border-radius: 0;
    padding: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: none;
}

.hero-card h1 {
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.15;
    max-width: 330px;
    text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

.hero-card p {
    max-width: 320px;
    font-size: 13px;
    text-shadow: 0 2px 10px rgba(0,0,0,.22);
}

.hero-card .btn {
    padding: 10px 18px;
    border-radius: 999px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 0 6px;
}

.slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(42, 23, 16, 0.20);
    transition: .25s ease;
}

.slider-dots span.active {
    width: 22px;
    background: var(--secondary);
}

@media (min-width: 520px) {
    .hero-card {
        height: 300px;
    }
}

/* Remove white box from Explore text */
.tile-content {
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    inset: auto 14px 14px 14px !important;
}

.tile-content strong {
    color: #fff !important;
    font-size: 18px !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.tile-content small {
    color: rgba(255,255,255,.88) !important;
    font-size: 12px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* Side menu */
.menu-button {
    border: 0;
    background: transparent;
    font-family: Tahoma, Arial, sans-serif;
    text-align: center;
    font-size: 10px;
    color: rgba(30,23,20,0.58);
    font-weight: 900;
    cursor: pointer;
}

.menu-button b {
    display: block;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 4px;
    color: rgba(30,23,20,0.68);
}

.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82%, 340px);
    height: 100vh;
    background: #fff;
    z-index: 90;
    transform: translateX(105%);
    transition: .25s ease;
    box-shadow: -18px 0 45px rgba(42,23,16,.18);
    padding: 22px 18px;
    overflow-y: auto;
}

.side-menu.open {
    transform: translateX(0);
}

.side-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.side-logo {
    width: 110px;
    display: block;
    margin: 0 auto 18px;
}

.side-menu h3 {
    margin: 0 0 18px;
    text-align: center;
    color: var(--primary);
    font-size: 22px;
}

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

.side-links a {
    min-height: 48px;
    border-radius: 16px;
    background: #fffaf5;
    border: 1px solid rgba(122,74,46,.13);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 900;
    color: var(--primary);
}

.side-links a span {
    color: var(--secondary);
}

.close-menu {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 16px;
    margin-top: 14px;
    background: var(--primary);
    color: #fff;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 900;
}

.home-products {
    padding: 8px 14px 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.product-card-home {
    background: #fff;
    border: 1px solid rgba(122,74,46,.13);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(42,23,16,.06);
    color: var(--primary);
}

.product-card-home img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
    background: #eadfd5;
}

.product-card-home strong {
    display: block;
    padding: 10px 10px 4px;
    font-size: 13px;
    line-height: 1.45;
}

.product-card-home span {
    display: block;
    padding: 0 10px 11px;
    color: var(--secondary);
    font-weight: 900;
    font-size: 14px;
}

/* FINAL FIX - Home top header and logo */
.app-shell {
    width: min(480px, 100%) !important;
    margin: 0 auto !important;
    min-height: 100vh !important;
    background: #fff !important;
    overflow-x: hidden !important;
}

.top-header {
    position: relative !important;
    background: #fff !important;
    padding: 12px 14px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: 0 !important;
}

.logo-link {
    width: 100% !important;
    height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-decoration: none !important;
    background: transparent !important;
}

.logo-link img,
.top-header img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 155px !important;
    max-height: 68px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.top-header .it-edit-key {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    z-index: 20 !important;
}

.top-tabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    background: #f7f1ea !important;
    padding: 5px !important;
    border-radius: 999px !important;
    margin: 0 !important;
}

.top-tabs a {
    height: 36px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(30,23,20,.62) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    background: transparent !important;
}

.top-tabs a.active {
    background: #fff !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 18px rgba(42,23,16,.08) !important;
}

.search-pill {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    background: #fffaf5 !important;
    border: 1px solid rgba(122,74,46,.13) !important;
    color: rgba(30,23,20,.48) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Keep hero directly under header */
.hero-scroll {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* Compact filters for Dory page */
.dory-filter {
    padding: 10px !important;
    border-radius: 20px !important;
}

.dory-filter .filter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

.dory-filter .search-wide {
    grid-column: span 2 !important;
}

.dory-filter input,
.dory-filter select {
    height: 39px !important;
    border-radius: 12px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.dory-filter select {
    background-position: left 8px center !important;
}

.dory-filter .more-filters-btn {
    height: 39px !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    font-size: 12px !important;
}

.dory-filter .filter-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 7px !important;
    margin-top: 8px !important;
}

.dory-filter .filter-actions button,
.dory-filter .filter-actions a {
    height: 39px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

@media (min-width: 780px) {
    .dory-filter .filter-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .dory-filter .search-wide {
        grid-column: span 2 !important;
    }
}

/* IT link editor */
.link-edit-key {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #2A1710;
    color: #fff;
    font-size: 12px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    margin-inline-start: 5px;
    vertical-align: middle;
    box-shadow: 0 6px 14px rgba(42,23,16,.22);
    z-index: 40;
}

.top-tabs .link-edit-key,
.bottom-nav .link-edit-key {
    position: relative;
    margin-inline-start: -4px;
}

.side-links .link-edit-key {
    margin-top: -38px;
    margin-inline-start: auto;
    margin-inline-end: 12px;
    display: grid;
}

.link-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.34);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.link-editor-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.link-editor-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(92%, 420px);
    transform: translate(-50%, -50%) scale(.96);
    background: #fff;
    border-radius: 24px;
    padding: 18px;
    z-index: 210;
    box-shadow: 0 28px 70px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.link-editor-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.link-editor-modal h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 22px;
}

.link-editor-modal p {
    margin: 0 0 14px;
    color: rgba(30,23,20,.62);
    font-size: 13px;
    font-weight: 800;
}

.link-editor-modal label {
    display: block;
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 7px;
}

.link-editor-modal input {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(122,74,46,.18);
    padding: 0 12px;
    direction: ltr;
    font-family: Tahoma, Arial, sans-serif;
}

.link-editor-help {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    color: rgba(30,23,20,.55);
    font-size: 12px;
    font-weight: 900;
}

.link-editor-help button {
    border: 1px solid rgba(122,74,46,.15);
    background: #fffaf5;
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 900;
    cursor: pointer;
}

.link-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.link-editor-actions button {
    height: 46px;
    border: 0;
    border-radius: 15px;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 900;
    cursor: pointer;
}

.link-editor-actions button:first-child {
    background: linear-gradient(135deg,var(--primary),var(--secondary));
    color: #fff;
}

.link-editor-actions button:last-child {
    background: #fff1e8;
    color: var(--primary);
}

/* Flexible Explore layout */
.explore-section .tiles-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
    grid-auto-rows: 104px !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.explore-section .tile-slot {
    min-height: 104px !important;
    position: relative !important;
}

.explore-section .tile-slot:first-child {
    grid-row: span 2 !important;
    min-height: 218px !important;
}

.explore-section .tile-slot:first-child .tile,
.explore-section .tile-slot:first-child .tile-link {
    min-height: 218px !important;
    height: 218px !important;
}

.explore-section .tile-slot:not(:first-child) .tile,
.explore-section .tile-slot:not(:first-child) .tile-link {
    min-height: 104px !important;
    height: 104px !important;
}

.explore-section .tile,
.explore-section .tile-link {
    width: 100% !important;
    border-radius: 18px !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    position: relative !important;
}

.explore-section .tile-content {
    width: auto !important;
    max-width: 84% !important;
    margin: 8px !important;
    border-radius: 14px !important;
    padding: 8px 10px !important;
    }

.explore-section .tile-content strong {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

.explore-section .tile-content small {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
}

@media (max-width: 390px) {
    .explore-section .tiles-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) !important;
        grid-auto-rows: 96px !important;
        gap: 8px !important;
    }

    .explore-section .tile-slot {
        min-height: 96px !important;
    }

    .explore-section .tile-slot:first-child {
        min-height: 200px !important;
    }

    .explore-section .tile-slot:first-child .tile,
    .explore-section .tile-slot:first-child .tile-link {
        min-height: 200px !important;
        height: 200px !important;
    }

    .explore-section .tile-slot:not(:first-child) .tile,
    .explore-section .tile-slot:not(:first-child) .tile-link {
        min-height: 96px !important;
        height: 96px !important;
    }
}
}

/* Remove white box from Explore text */
.explore-section .tile-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 10px !important;
    border-radius: 0 !important;
    max-width: 90% !important;
}

.explore-section .tile-content strong,
.explore-section .tile-content small {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.65) !important;
}

.explore-section .tile-content strong {
    font-size: 14px !important;
    font-weight: 900 !important;
}

.explore-section .tile-content small {
    font-size: 11px !important;
    font-weight: 800 !important;
}


/* FINAL Explore text overlay without white box */
.explore-section .tile-content,
.explore-section .tile-content *,
.explore-section .tile-content strong,
.explore-section .tile-content small {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.explore-section .tile-content {
    padding: 0 !important;
    margin: 10px !important;
    border-radius: 0 !important;
}

.explore-section .tile-content strong,
.explore-section .tile-content small {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.75) !important;
}

/* Fixed Customer Bottom Navigation */
body {
    padding-bottom: 88px !important;
}

.customer-bottom-nav {
    position: fixed !important;
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    width: min(430px, calc(100% - 18px)) !important;
    height: 68px !important;
    background: rgba(255, 250, 245, .96) !important;
    border: 1px solid rgba(122, 74, 46, .16) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 40px rgba(42, 23, 16, .20) !important;
    z-index: 9999 !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
    padding: 7px 8px !important;
    backdrop-filter: blur(14px) !important;
}

.customer-bottom-nav a {
    text-decoration: none !important;
    color: rgba(42, 23, 16, .62) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border-radius: 18px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    min-width: 0 !important;
}

.customer-bottom-nav .bn-icon {
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.customer-bottom-nav a.is-active {
    background: rgba(122, 74, 46, .10) !important;
    color: var(--primary) !important;
}

.customer-bottom-nav a.bn-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    transform: translateY(-10px) !important;
    min-height: 62px !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 26px rgba(122, 74, 46, .28) !important;
}

.customer-bottom-nav a.bn-main .bn-icon {
    font-size: 23px !important;
}

@media (min-width: 900px) {
    .customer-bottom-nav {
        bottom: 16px !important;
    }
}

/* Use old bottom nav style globally, disable the new one */
.customer-bottom-nav {
    display: none !important;
}

.bottom-nav,
.global-bottom-nav {
    display: grid !important;
}

body {
    padding-bottom: 86px !important;
}

/* Product buy now sticky button */
.buy-now-sticky {
    position: fixed !important;
    left: 50% !important;
    bottom: 92px !important;
    transform: translateX(-50%) !important;
    width: min(430px, calc(100% - 24px)) !important;
    z-index: 9998 !important;
    pointer-events: none !important;
}

.buy-now-sticky a {
    pointer-events: auto !important;
    width: 100% !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: 0 16px 32px rgba(42,23,16,.28) !important;
}

body:has(.buy-now-sticky) {
    padding-bottom: 155px !important;
}

/* Disable duplicated new buy now button */
.buy-now-sticky {
    display: none !important;
}

/* Global side menu for inner pages */
.bottom-nav button.bottom-menu-btn {
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-family: Tahoma, Arial, sans-serif !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.bottom-nav button.bottom-menu-btn b {
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.global-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(42, 23, 16, .38) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: .2s ease !important;
}

.global-side-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(335px, 88vw) !important;
    height: 100vh !important;
    background: #fffaf5 !important;
    z-index: 10001 !important;
    transform: translateX(105%) !important;
    transition: .25s ease !important;
    padding: 18px 14px 100px !important;
    box-shadow: -20px 0 40px rgba(42,23,16,.22) !important;
    overflow-y: auto !important;
}

body.global-menu-open .global-menu-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.global-menu-open .global-side-menu {
    transform: translateX(0) !important;
}

.global-menu-close {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(122,74,46,.15) !important;
    background: #fff !important;
    color: var(--primary) !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    margin-bottom: 12px !important;
}

.global-menu-user {
    background: #fff !important;
    border: 1px solid rgba(122,74,46,.13) !important;
    border-radius: 22px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

.global-menu-user strong {
    display: block !important;
    color: var(--primary) !important;
    font-size: 20px !important;
    margin-bottom: 4px !important;
}

.global-menu-user small {
    display: block !important;
    color: rgba(30,23,20,.58) !important;
    font-size: 11px !important;
    margin-top: 3px !important;
}

.global-menu-user span {
    display: inline-flex !important;
    margin-top: 8px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

.global-side-menu a {
    height: 48px !important;
    border-radius: 17px !important;
    background: #fff !important;
    border: 1px solid rgba(122,74,46,.14) !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 14px !important;
    margin-bottom: 9px !important;
}

.global-side-menu a.logout-link {
    background: var(--primary) !important;
    color: #fff !important;
    justify-content: center !important;
}

/* Unified Admin Navigation */
.admin-fixed-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    padding: 10px 0 16px !important;
    margin: 0 0 18px !important;
    scrollbar-width: none !important;
}

.admin-fixed-nav::-webkit-scrollbar {
    display: none !important;
}

.admin-fixed-nav a {
    flex: 0 0 auto !important;
    min-width: 104px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #fffaf5 !important;
    border: 1px solid rgba(122, 74, 46, .18) !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.admin-fixed-nav a:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

@media (max-width: 520px) {
    .admin-fixed-nav a {
        min-width: 96px !important;
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }
}

/* FINAL Unified Admin Navigation */
.admin-fixed-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    padding: 10px 0 16px !important;
    margin: 0 0 18px !important;
    scrollbar-width: none !important;
    direction: rtl !important;
}

.admin-fixed-nav::-webkit-scrollbar {
    display: none !important;
}

.admin-fixed-nav a {
    flex: 0 0 auto !important;
    min-width: 118px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #fffaf5 !important;
    border: 1px solid rgba(122, 74, 46, .18) !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.admin-fixed-nav a[href="/admin/profile-settings.php"] {
    min-width: 170px !important;
}

.admin-fixed-nav a:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

@media (max-width: 520px) {
    .admin-fixed-nav a {
        min-width: 108px !important;
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }

    .admin-fixed-nav a[href="/admin/profile-settings.php"] {
        min-width: 155px !important;
    }
}


/* IT edit buttons inside global side menu */
.global-side-menu .link-edit-key {
    display: grid !important;
    margin: -43px 12px 13px auto !important;
    position: relative !important;
    z-index: 10002 !important;
}


/* BAROKTY PROFESSIONAL PUBLIC FOOTER */
.public-site-footer {
    margin: 22px 14px 18px;
    padding: 16px;
    border: 1px solid rgba(122,74,46,.14);
    border-radius: 24px;
    background: linear-gradient(145deg,#fffaf5,#f6ece3);
    box-shadow: 0 12px 28px rgba(42,23,16,.07);
}
.public-footer-section > strong {
    display: block;
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 10px;
}
.public-footer-links {
    display: grid;
    gap: 8px;
}
.public-footer-links a,
.developer-credit-card > a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(122,74,46,.12);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.developer-credit-card {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(122,74,46,.13);
}
.developer-credit-card > span,
.developer-credit-card > strong {
    display: block;
}
.developer-credit-card > span {
    color: rgba(30,23,20,.58);
    font-size: 11px;
    font-weight: 800;
}
.developer-credit-card > strong {
    color: var(--primary);
    margin: 4px 0 9px;
    font-size: 16px;
}
.developer-credit-card > small {
    display: block;
    margin-top: 9px;
    color: rgba(30,23,20,.58);
    font-size: 11px;
    line-height: 1.8;
}
.terms-page .public-site-footer {
    margin-left: 0;
    margin-right: 0;
}
.terms-intro {
    background: #f5e9de;
    border-radius: 18px;
    padding: 13px;
    margin-bottom: 14px;
    color: rgba(30,23,20,.72);
    font-size: 13px;
    line-height: 1.9;
}
.terms-block ul {
    margin: 8px 0 0;
    padding-right: 20px;
    color: rgba(30,23,20,.72);
    font-size: 14px;
    line-height: 1.9;
}
.terms-block li + li { margin-top: 4px; }
.terms-meta {
    color: rgba(30,23,20,.52);
    font-size: 12px;
    margin: -8px 0 16px;
}
.terms-consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 12px;
    margin: 14px 0 4px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(122,74,46,.16);
}
.terms-consent input {
    width: auto !important;
    height: auto !important;
    margin: 5px 0 0 !important;
    flex: 0 0 auto;
}
.terms-consent span {
    color: #3b2a22;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}
.terms-consent a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 900;
}

/* BAROKTY COMPACT DEVELOPER CREDIT */
.public-site-footer {
    margin: 16px 18px 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.public-site-footer.developer-only {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 24px;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .1px;
    color: rgba(42, 23, 16, .52);
    text-align: center;
}

.developer-credit strong {
    color: var(--secondary);
    font-size: 11px;
    font-weight: 700;
}

.developer-credit a {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(42, 23, 16, .68) !important;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: inherit !important;
    box-shadow: none !important;
    text-decoration: none;
}

.footer-support-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(42, 23, 16, .08);
    color: rgba(42, 23, 16, .66);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.footer-support-links a {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--secondary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    overflow-wrap: anywhere;
}

/* BAROKTY SUBTLE DEVELOPER CREDIT START */
.public-site-footer.developer-only {
    margin: 7px 18px 5px !important;
    padding: 0 !important;
    min-height: 16px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.public-site-footer.developer-only .developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    min-height: 16px;
    font-family: inherit !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    color: rgba(42, 23, 16, .30) !important;
    opacity: .82;
}

.public-site-footer.developer-only .developer-credit span,
.public-site-footer.developer-only .developer-credit strong,
.public-site-footer.developer-only .developer-credit a {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: rgba(42, 23, 16, .34) !important;
    text-decoration: none !important;
}

.public-site-footer.developer-only .developer-credit a:hover {
    color: rgba(42, 23, 16, .50) !important;
    text-decoration: underline !important;
}
/* BAROKTY SUBTLE DEVELOPER CREDIT END */


/* BAROKTY FINAL SUBTLE DEVELOPER SIGNATURE */
.public-site-footer.developer-only {
    display: block !important;
    width: 100% !important;
    margin: 11px 0 8px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
}

.public-site-footer.developer-only .home-developer-signature {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;

    color: #a9958a !important;
    opacity: .72 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.public-site-footer.developer-only .home-developer-signature span,
.public-site-footer.developer-only .home-developer-signature a {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-family: inherit !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;

    color: #a9958a !important;
    text-decoration: none !important;
}

.public-site-footer.developer-only .home-developer-signature a:hover {
    color: #806b60 !important;
    text-decoration: underline !important;
}

.public-site-footer.developer-only .developer-dot {
    font-size: 6px !important;
    opacity: .65 !important;
}

/* BAROKTY FINAL SUBTLE DEVELOPER SIGNATURE */
.public-site-footer.developer-only {
    display: block !important;
    width: 100% !important;
    margin: 11px 0 8px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
}

.public-site-footer.developer-only .home-developer-signature {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;

    color: #a9958a !important;
    opacity: .72 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.public-site-footer.developer-only .home-developer-signature span,
.public-site-footer.developer-only .home-developer-signature a {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-family: inherit !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;

    color: #a9958a !important;
    text-decoration: none !important;
}

.public-site-footer.developer-only .home-developer-signature a:hover {
    color: #806b60 !important;
    text-decoration: underline !important;
}

.public-site-footer.developer-only .developer-dot {
    font-size: 6px !important;
    opacity: .65 !important;
}


.top-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

.top-header.has-logged-user{
    padding-top:46px!important;
}

.logged-account-chip{
    position:fixed!important;
    top:10px!important;
    right:max(10px,calc(50% - 230px))!important;
    z-index:1600!important;
    max-width:122px!important;
    height:34px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:5px!important;
    padding:0 11px!important;
    border:1px solid rgba(122,74,46,.16)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 8px 22px rgba(42,23,16,.11)!important;
    color:var(--primary)!important;
    text-decoration:none!important;
    font-family:Tahoma,Arial,sans-serif!important;
    white-space:nowrap!important;
    overflow:hidden!important;
}
.logged-account-chip span{
    color:var(--secondary)!important;
    font-size:11px!important;
    font-weight:800!important;
    flex:0 0 auto!important;
}
.logged-account-chip strong{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    color:var(--primary)!important;
    font-size:12px!important;
    font-weight:900!important;
}

.home-slogan-card{
    margin:2px 14px 8px!important;
    padding:18px 16px 15px!important;
    border:1px solid rgba(122,74,46,.12)!important;
    border-radius:25px!important;
    background:
        radial-gradient(circle at 12% 10%,rgba(201,150,99,.22),transparent 38%),
        linear-gradient(135deg,#fffaf5 0%,#f5e7da 100%)!important;
    box-shadow:0 13px 30px rgba(42,23,16,.07)!important;
    text-align:center!important;
    overflow:hidden!important;
}
.home-slogan-card small{
    display:block!important;
    margin-bottom:4px!important;
    color:var(--secondary)!important;
    font-size:11px!important;
    font-weight:900!important;
    letter-spacing:1px!important;
}
.home-slogan-card h1{
    margin:0!important;
    color:var(--primary)!important;
    font-size:25px!important;
    line-height:1.5!important;
    font-weight:900!important;
}
.home-slogan-card h1 span{
    color:var(--secondary)!important;
}
.dory-hero h1{
    margin-bottom:0!important;
}

@media(max-width:370px){
    .logged-account-chip{
        max-width:94px!important;
        padding:0 9px!important;
    }
    .home-slogan-card h1{
        font-size:22px!important;
    }
}


.top-header.has-logged-user{
    padding-top:0!important;
}

.home-account-chip{
    display:none!important;
}

.home-user-strip{
    width:calc(100% - 24px)!important;
    min-height:31px!important;
    margin:5px 12px 2px!important;
    padding:5px 11px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    border:1px solid rgba(122,74,46,.11)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 5px 15px rgba(42,23,16,.05)!important;
    color:var(--primary)!important;
    text-decoration:none!important;
    font-family:Tahoma,Arial,sans-serif!important;
    direction:ltr!important;
    line-height:1!important;
}
.home-user-strip span{
    color:var(--secondary)!important;
    font-size:11px!important;
    font-weight:800!important;
}
.home-user-strip strong{
    max-width:180px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:var(--primary)!important;
    font-size:12px!important;
    font-weight:900!important;
}

.home-slogan-card{
    margin-top:8px!important;
    padding-top:15px!important;
    padding-bottom:15px!important;
}
.home-slogan-card small{
    display:none!important;
}
.home-slogan-card h1{
    width:100%!important;
    margin:0!important;
    padding:0 2px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    column-gap:.32em!important;
    row-gap:0!important;
    font-size:clamp(20px,6.2vw,25px)!important;
    line-height:1.55!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-align:center!important;
}
.home-slogan-card h1 .slogan-main,
.home-slogan-card h1 .slogan-accent{
    display:inline-block!important;
    white-space:nowrap!important;
}
.home-slogan-card h1 .slogan-main{
    color:var(--primary)!important;
}
.home-slogan-card h1 .slogan-accent{
    color:var(--secondary)!important;
}

.login-welcome-toast{
    position:fixed!important;
    top:64px!important;
    left:50%!important;
    z-index:5000!important;
    min-width:150px!important;
    max-width:calc(100vw - 32px)!important;
    min-height:46px!important;
    padding:10px 17px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    direction:ltr!important;
    border:1px solid rgba(122,74,46,.14)!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 16px 42px rgba(42,23,16,.19)!important;
    color:var(--primary)!important;
    font-family:Tahoma,Arial,sans-serif!important;
    pointer-events:none!important;
    transform:translate(-50%,-12px)!important;
    opacity:0;
    animation:baroktyWelcomeToast 4.2s ease forwards!important;
}
.login-welcome-toast span{
    color:var(--secondary)!important;
    font-size:14px!important;
    font-weight:800!important;
}
.login-welcome-toast strong{
    max-width:190px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:var(--primary)!important;
    font-size:15px!important;
    font-weight:900!important;
}

@keyframes baroktyWelcomeToast{
    0%{opacity:0;transform:translate(-50%,-12px)}
    10%{opacity:1;transform:translate(-50%,0)}
    76%{opacity:1;transform:translate(-50%,0)}
    100%{opacity:0;transform:translate(-50%,-10px);visibility:hidden}
}

@media(max-width:370px){
    .home-user-strip strong{max-width:130px!important}
    .home-slogan-card h1{font-size:20px!important}
    .login-welcome-toast{top:58px!important}
}

@media(prefers-reduced-motion:reduce){
    .login-welcome-toast{animation-duration:4.2s!important}
}


.app-shell{
    width:min(100%,480px)!important;
    margin:0 auto!important;
    overflow-x:hidden!important;
}

/* إخفاء عناصر النسخ القديمة فقط */
.home-user-strip,
.home-account-chip{
    display:none!important;
}

.top-header.home-main-header{
    position:relative!important;
    width:100%!important;
    padding:9px 12px 8px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:7px!important;
    background:#fff!important;
    border:0!important;
    overflow:visible!important;
}

.top-header.home-main-header .logo-link{
    width:100%!important;
    height:68px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:visible!important;
}
.top-header.home-main-header .logo-link img{
    width:auto!important;
    height:auto!important;
    max-width:132px!important;
    max-height:61px!important;
    margin:0 auto!important;
    object-fit:contain!important;
}

/* الاسم يأخذ سطرًا علويًا مستقلًا في الرئيسية فلا يغطي اللوجو */
.top-header.home-main-header.has-user{
    padding-top:42px!important;
}
.home-account-badge,
.global-account-chip{
    top:8px!important;
    right:auto!important;
    z-index:1900!important;
    max-width:145px!important;
    height:31px!important;
    padding:0 10px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    direction:ltr!important;
    border:1px solid rgba(122,74,46,.13)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 7px 18px rgba(42,23,16,.09)!important;
    color:var(--primary)!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    font-family:Tahoma,Arial,sans-serif!important;
    line-height:1!important;
}
.home-account-badge{
    position:absolute!important;
    left:10px!important;
}
.global-account-chip{
    position:fixed!important;
    left:max(9px,calc(50% - 231px))!important;
}
.home-account-badge span,
.global-account-chip span{
    flex:0 0 auto!important;
    color:var(--secondary)!important;
    font-size:11px!important;
    font-weight:800!important;
}
.home-account-badge strong,
.global-account-chip strong{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:var(--primary)!important;
    font-size:12px!important;
    font-weight:900!important;
}

/* مفتاح إعدادات الصفحة يظل يمينًا ولا يتعارض مع الاسم */
.top-header.home-main-header > .it-edit-key{
    position:absolute!important;
    top:9px!important;
    right:10px!important;
    left:auto!important;
    width:28px!important;
    height:28px!important;
    z-index:50!important;
}

.top-tabs.home-top-tabs{
    width:100%!important;
    margin:0!important;
    padding:4px!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
    border-radius:999px!important;
    background:#f7f1ea!important;
    overflow:visible!important;
}
.home-top-tabs .home-tab-slot{
    position:relative!important;
    min-width:0!important;
    height:36px!important;
}
.home-top-tabs .home-tab-slot > a{
    width:100%!important;
    height:36px!important;
    padding:0 8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    background:transparent!important;
    color:rgba(30,23,20,.62)!important;
    font-size:13px!important;
    font-weight:900!important;
    text-decoration:none!important;
    box-shadow:none!important;
}
.home-top-tabs .home-tab-slot > a.active{
    background:#fff!important;
    color:var(--primary)!important;
    box-shadow:0 7px 16px rgba(42,23,16,.08)!important;
}
/* زر تعديل الرابط لا يُحسب عمودًا ثالثًا داخل التبويبات */
.home-top-tabs .home-tab-slot > .link-edit-key{
    position:absolute!important;
    top:-6px!important;
    right:-2px!important;
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    margin:0!important;
    padding:0!important;
    font-size:9px!important;
    z-index:60!important;
}

.home-slogan-card.home-slogan-v16{
    width:100%!important;
    margin:0!important;
    padding:9px 10px 14px!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:hidden!important;
    text-align:center!important;
}
.home-slogan-card.home-slogan-v16 h1{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    color:var(--primary)!important;
    font-family:Tahoma,Arial,sans-serif!important;
    font-size:clamp(17px,5.8vw,24px)!important;
    font-weight:900!important;
    line-height:1.55!important;
    letter-spacing:0!important;
    word-spacing:.04em!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-align:center!important;
    direction:rtl!important;
}
.home-slogan-card.home-slogan-v16 h1 span{
    display:inline!important;
    color:var(--secondary)!important;
    white-space:nowrap!important;
}

.login-welcome-toast-v16{
    position:fixed!important;
    top:58px!important;
    left:50%!important;
    right:auto!important;
    z-index:6000!important;
    min-width:164px!important;
    max-width:calc(100vw - 28px)!important;
    min-height:48px!important;
    padding:10px 18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    direction:ltr!important;
    border:1px solid rgba(122,74,46,.15)!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 16px 42px rgba(42,23,16,.20)!important;
    color:var(--primary)!important;
    pointer-events:none!important;
    opacity:0;
    transform:translate(-50%,-10px)!important;
    animation:baroktyWelcome 4.1s ease forwards!important;
}
.login-welcome-toast-v16 span{
    color:var(--secondary)!important;
    font-size:14px!important;
    font-weight:800!important;
}
.login-welcome-toast-v16 strong{
    max-width:210px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:var(--primary)!important;
    font-size:15px!important;
    font-weight:900!important;
}
@keyframes baroktyWelcome{
    0%{opacity:0;transform:translate(-50%,-10px)}
    10%{opacity:1;transform:translate(-50%,0)}
    76%{opacity:1;transform:translate(-50%,0)}
    100%{opacity:0;transform:translate(-50%,-8px);visibility:hidden}
}

@media(max-width:330px){
    .top-header.home-main-header{padding-inline:8px!important}
    .top-header.home-main-header .logo-link img{max-width:112px!important;max-height:56px!important}
    .home-account-badge{left:7px!important;max-width:118px!important;padding:0 8px!important}
    .global-account-chip{left:6px!important;max-width:118px!important;padding:0 8px!important}
    .home-account-badge strong,.global-account-chip strong{font-size:10.5px!important}
    .home-slogan-card.home-slogan-v16{padding-inline:4px!important}
    .home-slogan-card.home-slogan-v16 h1{font-size:17px!important;word-spacing:0!important}
    .login-welcome-toast-v16{top:52px!important;min-width:150px!important}
}

@media(min-width:700px){
    .global-account-chip{left:calc(50% - 231px)!important}
    .home-slogan-card.home-slogan-v16 h1{font-size:24px!important}
}

@media(prefers-reduced-motion:reduce){
    .login-welcome-toast-v16{animation-duration:4.1s!important}
}

/* Bottom Nav */
.bottom-nav a,.bottom-menu-btn,.global-side-menu a{position:relative}
.barokty-user-notification-badge{position:absolute;top:2px;left:50%;transform:translateX(-23px);min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d92d20;color:#fff;display:inline-flex;align-items:center;justify-content:center;font:900 10px/1 Tahoma,Arial,sans-serif;border:2px solid #fff;z-index:8;box-sizing:border-box}
.global-side-menu .barokty-user-notification-badge{top:50%;left:38px;transform:translateY(-50%);border-width:1px}
