:root {
    --surface-soft: #f5f8f0;
    --line-soft: rgba(44, 62, 35, .09);
    --shadow-card: 0 14px 38px rgba(34, 49, 26, .075);
    --shadow-float: 0 20px 54px rgba(34, 49, 26, .14);
}
.gallery-thumb { animation: productPromisePop .45s both; }
.gallery-thumb:nth-child(2) { animation-delay: .07s; }
.gallery-thumb:nth-child(3) { animation-delay: .14s; }
.gallery-thumb:nth-child(4) { animation-delay: .21s; }
.gallery-thumb:nth-child(5) { animation-delay: .28s; }

html { scroll-behavior: smooth; }
body { background: #f7f9f4; }
::selection { color: #fff; background: var(--primary-dark); }

.btn { min-height: 46px; box-shadow: 0 8px 18px rgba(92, 143, 37, .17); }
.btn-primary { background-image: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-2px); }

.header {
    background: rgba(255, 255, 255, .94);
    border-bottom-color: var(--line-soft);
    box-shadow: 0 5px 24px rgba(34, 49, 26, .045);
    backdrop-filter: blur(18px);
}
.btn-add::after,.btn-buy::after {
    position: absolute;
    top: -70%;
    bottom: -70%;
    left: -55%;
    width: 28%;
    transform: rotate(18deg);
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.36),transparent);
    content: "";
    transition: left .55s ease;
    pointer-events: none;
}
.btn-add:hover::after,.btn-buy:hover::after { left: 130%; }
.header-inner { gap: 24px; }
.header-floral-logo { filter: drop-shadow(0 4px 8px rgba(36, 45, 28, .12)); }
.search-bar {
    border-color: transparent;
    background: #f4f6f0;
    box-shadow: inset 0 0 0 1px rgba(44, 62, 35, .045);
    transition: box-shadow .2s ease, background .2s ease;
}
.search-bar:focus-within {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--primary-dark), 0 0 0 4px rgba(116, 184, 42, .1);
}
.search-bar input { min-width: 0; }
.cat-nav { border-bottom: 1px solid var(--line-soft); }

.hero-section {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 10% 15%, rgba(188, 220, 151, .23), transparent 34%),
        linear-gradient(120deg, #fff 15%, #f5f8ef 100%);
}
.hero-inner { max-width: 1220px; }
.hero-content h1 { letter-spacing: -.035em; }
.hero-content p { max-width: 570px; line-height: 1.9; }
.hero-image-wrapper { filter: drop-shadow(0 24px 35px rgba(46, 58, 35, .13)); }
.hero-img {
    height: auto;
    max-height: 350px;
    object-fit: contain;
    object-position: center;
    background: #e7e7e7;
    box-shadow: var(--shadow-float);
}
.blob-bg { background: linear-gradient(135deg, #e4efd8, #fbfcf9 75%); }
.floating-card { border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 12px 30px rgba(34, 49, 26, .12); }
.brand-story {
    position: relative;
    overflow: hidden;
    padding-block: clamp(30px, 5vw, 62px);
    background: linear-gradient(125deg, #f0f6e9, #fff 72%);
}
.brand-story::before {
    position: absolute;
    top: -58px;
    right: 9%;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(116, 184, 42, .16);
    border-radius: 50%;
    content: "";
}
.brand-story h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.brand-story p { font-size: 1.05rem; }

.story-categories { padding-block: clamp(26px, 4vw, 46px); }
.story-item { transition: transform .2s ease; }
.story-item:hover { transform: translateY(-4px); }
.story-ring {
    background: linear-gradient(145deg, #9ac96b, #e3efd7);
    box-shadow: 0 8px 20px rgba(55, 89, 32, .12);
}
.story-ring img { padding: 2px; }
.section-header { margin-bottom: 22px; }
.section-header h2 { letter-spacing: -.02em; }
.products-section { padding-block: 30px 64px; }
.filter-btn {
    padding: 9px 18px;
    border-color: var(--line-soft);
    box-shadow: 0 3px 10px rgba(34, 49, 26, .035);
}
.filter-btn.active,.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 16px rgba(92, 143, 37, .18);
}
.product-card {
    border: 1px solid rgba(44, 62, 35, .055);
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(34, 49, 26, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.pro-img-box { background: #f0f2eb; }
.pro-img-box img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pro-img-box img { transform: scale(1.045); }
.pro-info { gap: 4px; }
.pro-title { line-height: 1.5; }
.pro-price { color: #568b25; }
.pro-action-btn { width: 42px; height: 42px; border: 1px solid var(--line-soft); }

.mobile-bottom-nav {
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding: 6px 8px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(44, 62, 35, .08);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 28px rgba(34, 49, 26, .07);
    backdrop-filter: blur(18px);
}
.nav-item { gap: 3px; }
.nav-item i { transition: transform .2s ease; }
.nav-item.active i { transform: translateY(-3px) scale(1.05); }
.nav-item.active span { color: var(--secondary); }
.cart-sidebar {
    border-radius: 22px 0 0 22px;
    box-shadow: -16px 0 50px rgba(24, 35, 17, .18);
}
.cart-header { padding-block: 20px; }
.cart-header h3 { font-size: 1.35rem; }
.cart-footer { background: #f7f9f4; }
.checkout-btn { border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.footer { border-top-color: var(--line-soft); background: linear-gradient(180deg, #fff, #f7f9f4); }
.footer-logo img { filter: drop-shadow(0 5px 9px rgba(36, 45, 28, .1)); }
.footer-bottom { background: #252b20; }

body.admin-layout {
    background:
        radial-gradient(ellipse at 10% 0%, rgba(188, 220, 151, .23), transparent 34%),
        #f4f7f1;
}
.admin-sidebar {
    background: linear-gradient(180deg, #fff 0%, #f9fbf6 100%);
    border-left: 1px solid var(--line-soft);
    box-shadow: -8px 0 30px rgba(34, 49, 26, .055);
}
.admin-logo { min-height: 82px; border-bottom-color: var(--line-soft); }
.admin-logo a { font-size: 1.65rem; letter-spacing: -.04em; }
.admin-nav { padding-top: 24px; }
.admin-nav li { margin-bottom: 7px; }
.admin-nav a { min-height: 48px; border: 1px solid transparent; }
.admin-nav a:hover,.admin-nav a.active {
    border-color: rgba(116, 184, 42, .14);
    background: linear-gradient(100deg, rgba(237, 247, 228, .7), #edf7e4);
}
.admin-header {
    min-height: 76px;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 5px 20px rgba(34, 49, 26, .035);
}
.admin-content { padding: clamp(18px, 3vw, 38px); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.stat-card,.admin-card {
    border: 1px solid rgba(44, 62, 35, .055);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}
.stat-card { min-height: 132px; }
.stat-icon { border-radius: 18px; }
.admin-card { padding: clamp(18px, 2.7vw, 32px); }
.card-header h2 { letter-spacing: -.02em; }
.card-header p { color: var(--text-muted); line-height: 1.8; }
.dashboard-form input,.dashboard-form select,.dashboard-form textarea {
    border-color: rgba(44, 62, 35, .12);
    background: #fafbf8;
    border-radius: 12px;
}
.dashboard-form input:focus,.dashboard-form select:focus,.dashboard-form textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(116, 184, 42, .11);
}
.table-responsive { border-color: var(--line-soft); }
.table th { background: #f4f7f0; }
.table tbody tr:nth-child(even) { background: #fcfdfb; }
.table tbody tr:hover { background: #f3f8ed; }
.cat-chip { background: #eff5e9; }
.btn-outline { border-radius: 10px; }
.sign-out-btn { transition: background .2s ease, border-color .2s ease; }
.sign-out-btn:hover { background: #f4f7f0; border-color: var(--primary-dark); }
.page-list-row { border-color: var(--line-soft); background: #fff; }

.header { padding: 8px 0 0 !important; }
.header-inner {
    display: grid !important;
    grid-template-columns: minmax(160px, 210px) minmax(260px, 1fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 42px) !important;
    padding: 8px 22px !important;
}
.header-inner .logo { min-width: 0; justify-content: flex-start; }
.header-inner .desktop-logo-img { min-width: 0; }
.header-floral-logo {
    display: block;
    width: clamp(158px, 16vw, 198px) !important;
    height: 66px;
    max-height: 66px !important;
    margin: 0 !important;
    object-position: right center;
}
.header-actions { justify-content: flex-end; }
.search-bar {
    width: 100%;
    max-width: 720px;
    height: 50px !important;
    min-height: 50px;
    margin: 0 auto;
    padding: 4px 6px 4px 16px;
    border: 1px solid rgba(54,75,39,.1);
    border-radius: 16px;
    background: #f6f8f3;
    box-shadow: 0 3px 12px rgba(34,49,26,.035), inset 0 1px 1px rgba(255,255,255,.9);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.search-bar:focus-within {
    border-color: rgba(103,151,65,.48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(116,184,42,.09), 0 7px 20px rgba(34,49,26,.06);
}
.search-bar input {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 11px !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #35422e;
    font: 500 .98rem 'Tajawal',sans-serif;
}
.search-bar input::placeholder { color: #929b8b; opacity: 1; }
.search-bar input:focus { border: 0 !important; box-shadow: none !important; }
.search-bar button {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: #eaf2e3;
    color: #5a843b;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.search-bar button:hover { transform: scale(1.04); border-radius: 12px; background: var(--primary-dark); color: white; }
.header .action-btn { min-height: 48px; border-color: var(--line-soft); background: #fff; }
.header .cat-nav { margin-top: 5px; padding: 5px 0 !important; border-top-color: rgba(44,62,35,.045); box-shadow: none; }
.header .cat-nav-inner .nav-links { gap: clamp(20px,3vw,40px); padding: 8px 0; }

.orders-header { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.orders-header h2,.orders-header p { margin: 0; }
.orders-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.orders-toolbar label { color: #596653; font-weight: 700; }
.orders-toolbar select,.order-status-select {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(44, 62, 35, .13);
    border-radius: 11px;
    background: #fff;
    color: #35422e;
    font: inherit;
}
.orders-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.orders-counts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: #f8faf6;
    color: #64705e;
    font-size: .84rem;
}
.orders-counts strong { color: var(--secondary); }
#view-orders .table { min-width: 1000px; }
#view-orders .table th { white-space: nowrap; }
.order-date,.order-delivery { color: #76816f; font-size: .84rem; }
.order-phone { display: inline-block; margin-top: 5px; color: #568b25; direction: ltr; text-decoration: none; }
.order-phone:hover { text-decoration: underline; }
.order-wilaya { display: inline-block; margin-bottom: 5px; padding: 4px 10px; border-radius: 999px; background: #eff5e9; color: #4e7137; font-size: .83rem; }
.order-items { min-width: 210px; max-width: 310px; white-space: pre-wrap !important; line-height: 1.7; font-size: .85rem; }
.order-total { color: #568b25; font-weight: 800; white-space: nowrap; }
.order-status-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.status-pending { background: #fff5db; color: #996515; }
.status-confirmed { background: #e9f2ff; color: #2d5f9a; }
.status-preparing { background: #f1eaff; color: #7145a3; }
.status-shipped { background: #e4f5f1; color: #217c68; }
.status-delivered { background: #e8f5e7; color: #3c7a36; }
.status-cancelled { background: #fdeceb; color: #b04740; }
.status-archived { background: #edf0f3; color: #65717f; }
.order-status-select { display: block; width: 150px; min-height: 38px; margin-top: 8px; padding: 5px 8px; font-size: .84rem; }
.order-status-select:disabled { opacity: .6; }
.order-delete-btn { width: 40px; height: 40px; border: 1px solid #f2d5d2; border-radius: 12px; background: #fff8f7; color: #c14e46; cursor: pointer; transition: .2s ease; }
.order-delete-btn:hover { transform: translateY(-1px); background: #fdeceb; border-color: #eab4af; }
.orders-empty { padding: 48px 20px !important; color: #87917f; text-align: center !important; }

.logo-upload-group { min-width: min(100%, 280px); }
.logo-upload-group input[type="file"] { width: 100%; min-height: 48px; padding: 9px 12px; border: 1px dashed rgba(74,105,52,.3); border-radius: 12px; background: #f8faf6; }
.logo-upload-group small { color: #819076; line-height: 1.7; }
.logo-upload-preview { display: flex; align-items: center; gap: 14px; min-height: 92px; margin-top: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(120deg,#f8faf6,#fff); }
.logo-upload-preview img { display: block; width: 190px; height: 62px; padding: 5px; border: 1px solid rgba(44,62,35,.07); border-radius: 10px; background: #fff; object-fit: contain; }
.logo-upload-preview span { color: #708063; font-size: .86rem; font-weight: 700; }

#admin-login-shield > div {
    border: 1px solid rgba(44, 62, 35, .08);
    border-radius: 24px !important;
    box-shadow: 0 28px 85px rgba(34, 49, 26, .16) !important;
}
#admin-login-shield > div > p:first-of-type {
    color: #59733e !important;
    background: #f0f6e9 !important;
}
#admin-login-shield input {
    min-height: 52px;
    background: #fafbf8;
    transition: border-color .2s ease, box-shadow .2s ease;
}
#admin-login-shield input:focus {
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 4px rgba(116, 184, 42, .11);
}

.product-header {
    position: sticky;
    top: 0;
    min-height: 76px;
    padding: 10px max(22px, calc((100vw - 1240px) / 2)) !important;
    border-bottom-color: var(--line-soft) !important;
    background: rgba(255,255,255,.93) !important;
    box-shadow: 0 5px 24px rgba(34,49,26,.055);
    backdrop-filter: blur(18px);
}
.product-header .logo { display: inline-flex; align-items: center; }
.product-header .desktop-logo-img { color: var(--secondary) !important; }
.product-header .mobile-logo-text { display: none; color: var(--secondary); font-family: 'Tajawal',sans-serif; font-weight: 800; }
.product-header-note { display: inline-flex; align-items: center; gap: 9px; color: #718063; font-size: .92rem; font-weight: 600; }
.product-header-note i { color: var(--primary-dark); }
.product-cart-trigger {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    background: #f8faf6;
    color: var(--secondary);
    cursor: pointer;
    font-size: 1.15rem;
    transition: transform .2s ease, background .2s ease;
}
.product-cart-trigger:hover { transform: translateY(-2px); background: #eff5e9; }
.product-cart-trigger .cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--primary-dark) !important;
    color: white;
    font-size: .68rem;
    font-weight: 800;
}
.premium-container {
    grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr);
    gap: clamp(34px,5.5vw,76px);
    max-width: 1240px;
    margin: 34px auto 48px;
    padding-inline: 26px;
}
@keyframes productGalleryEnter {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes productImageEnter {
    from { opacity: .5; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes offerGlow {
    0%,100% { box-shadow: 0 8px 22px rgba(166,89,31,.12), 0 0 0 0 rgba(241,147,49,.12); }
    50% { box-shadow: 0 10px 26px rgba(166,89,31,.2), 0 0 0 5px rgba(241,147,49,.08); }
}
@keyframes offerFlame {
    0%,100% { transform: translateY(0) rotate(-5deg) scale(1); }
    35% { transform: translateY(-2px) rotate(4deg) scale(1.1); }
    70% { transform: translateY(0) rotate(-2deg) scale(.96); }
}
@keyframes offerShimmer {
    0% { transform: translateX(150%) rotate(18deg); opacity: 0; }
    25% { opacity: .6; }
    55%,100% { transform: translateX(-180%) rotate(18deg); opacity: 0; }
}
@keyframes productPromisePop {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-gallery {
    position: sticky;
    top: 108px;
    display: grid;
    grid-template-columns: 76px minmax(0,1fr);
    gap: 16px;
    height: auto;
    align-items: start;
    animation: productGalleryEnter .7s cubic-bezier(.2,.75,.25,1) both;
}
.gallery-main {
    min-width: 0;
    aspect-ratio: 1 / 1.08;
    border: 1px solid rgba(44,62,35,.06);
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.97), transparent 58%),
        linear-gradient(145deg,#f6f8f1,#edf2e7);
    box-shadow: 0 20px 48px rgba(34,49,26,.09);
    cursor: zoom-in;
    transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-main:hover { transform: translateY(-3px); box-shadow: 0 25px 55px rgba(34,49,26,.13); }
.gallery-main img {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 22px;
    border-radius: 26px;
    object-fit: contain;
    box-shadow: none;
    animation: productImageEnter .8s .12s both;
    transition: transform .35s ease, filter .35s ease;
}
.gallery-main:hover img { filter: saturate(1.04); }
.product-gallery > .gallery-offer {
    position: absolute;
    z-index: 2;
    top: 17px;
    right: 108px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 999px;
    background: linear-gradient(125deg,#fffaf0,#fff 58%,#fff4df);
    box-shadow: 0 8px 22px rgba(166,89,31,.12);
    color: #9c571e;
    font-size: .84rem;
    font-weight: 800;
    animation: offerGlow 3.4s ease-in-out infinite;
}
.product-gallery > .gallery-offer::after {
    position: absolute;
    inset: -45% auto -45% -35%;
    width: 35%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);
    content: "";
    pointer-events: none;
    animation: offerShimmer 4.5s ease-in-out infinite;
}
.gallery-offer > i:first-child { color: #ed7a27; animation: offerFlame 1.3s ease-in-out infinite; }
.gallery-offer > i:last-child { color: #d7a345; font-size: .72rem; }
.product-offer-note {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(224,153,73,.2);
    border-radius: 15px;
    background: linear-gradient(110deg,#fff7e9,#fffdf9 70%);
    color: #845523;
    animation: offerGlow 3.4s ease-in-out infinite;
}
.offer-flame { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px; background: #fff0d9; font-size: 1.15rem; animation: offerFlame 1.3s ease-in-out infinite; }
.product-offer-note > span:nth-child(2) { display: grid; gap: 2px; }
.product-offer-note strong { font-size: .84rem; }
.product-offer-note small { color: #a1815b; font-size: .72rem; }
.product-offer-note > i { margin-inline-start: 5px; color: #d5a34f; font-size: .8rem; }
.product-saving { animation: savingPulse 2.8s ease-in-out infinite; }
@keyframes savingPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(84,130,50,0); }
    50% { box-shadow: 0 0 0 4px rgba(84,130,50,.08); }
}
.gallery-thumbnails { gap: 10px; }
.gallery-thumb {
    width: 70px;
    height: 78px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(44,62,35,.1);
    border-radius: 16px;
    background: #f5f7f1;
    cursor: pointer;
    opacity: .76;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gallery-thumb img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.gallery-thumb.active,.gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--primary-dark);
    box-shadow: 0 5px 14px rgba(34,49,26,.11);
    opacity: 1;
}
.gallery-zoom-hint,.gallery-image-count {
    position: absolute;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: #66745c;
    font-size: .76rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.gallery-zoom-hint { left: 14px; }
.gallery-image-count { right: 14px; }
.gallery-zoom-hint,.gallery-image-count { transition: transform .22s ease, background .22s ease; }
.gallery-main:hover .gallery-zoom-hint { transform: translateY(-2px); background: #fff; }
.product-info { gap: 17px; padding-block: 7px; }
.product-info > *:nth-child(1) { animation-delay: .04s; }
.product-info > *:nth-child(2) { animation-delay: .1s; }
.product-info > *:nth-child(3) { animation-delay: .16s; }
.product-info > *:nth-child(4) { animation-delay: .22s; }
.product-info > *:nth-child(5) { animation-delay: .28s; }
.product-info > *:nth-child(6) { animation-delay: .34s; }
.product-info > *:nth-child(n+7) { animation-delay: .4s; }
.p-breadcrumb { flex-wrap: wrap; gap: 7px; color: #93a08a; font-size: .83rem; }
.p-breadcrumb a { color: #718063; }
.product-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #607a4b;
    font-size: .89rem;
    font-weight: 700;
}
.product-eyebrow > i { color: var(--primary-dark); }
.product-eyebrow > span { width: 4px; height: 4px; border-radius: 50%; background: #bdc8b1; }
.p-title {
    max-width: 620px;
    margin: -5px 0 0;
    color: #263222;
    font-family: 'Tajawal','Outfit',sans-serif;
    font-size: clamp(2rem,3.5vw,2.85rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.25;
}
.p-price-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 19px;
    border: 1px solid rgba(44,62,35,.07);
    border-radius: 19px;
    background: linear-gradient(115deg,#f7f9f3,#fff);
}
.p-price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; margin: 0; }
.p-price { margin: 0; color: #4f8428; font-size: clamp(1.7rem,3vw,2.15rem); font-weight: 800; }
.p-price small { font-size: .9rem; font-weight: 700; }
.p-old-price { color: #9ca596; font-size: .98rem; }
.product-saving { padding: 4px 9px; border-radius: 999px; background: #eaf4e2; color: #548232; font-size: .76rem; font-weight: 800; }
.price-note { display: inline-flex; align-items: center; gap: 6px; color: #819076; font-size: .77rem; }
.price-note i { color: #70a44d; }
.p-desc-content {
    margin: 0;
    color: #66715f;
    font-family: 'Tajawal',sans-serif;
    font-size: 1.04rem;
    line-height: 1.95;
}
.p-desc-content > *:last-child { margin-bottom: 0; }
.p-desc-content ul,.p-desc-content ol { padding-right: 22px; }
.product-options {
    display: grid;
    gap: 15px;
    padding: 17px;
    border: 1px solid rgba(44,62,35,.08);
    border-radius: 18px;
    background: #fbfcf9;
}
.product-option { display: grid; grid-template-columns: 145px minmax(0,1fr); align-items: center; gap: 12px; }
.option-label { width: auto; color: #4d5d44; font-size: .93rem; }
.option-label i { width: 21px; color: #7b9d63; }
.color-select { min-width: 0; border-color: rgba(44,62,35,.12); border-radius: 12px; background: white; }
.size-boxes { gap: 8px; }
.size-box {
    min-width: 60px;
    padding: 9px 14px;
    border-color: rgba(44,62,35,.14);
    border-radius: 11px;
    background: white;
    color: #506048;
    font: 700 .91rem 'Tajawal',sans-serif;
}
.size-box:hover,.size-box.selected { border-color: var(--primary-dark); background: #eff6e9; color: #4d7d2b; }
.action-row { align-items: center; gap: 10px; margin: 0; }
.qty-box { height: 50px; border-color: rgba(44,62,35,.13); border-radius: 13px; }
.qty-btn { width: 40px; color: #526348; font-weight: 700; }
.qty-input { width: 40px; background: transparent; }
.btn-add,.btn-buy {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    border-radius: 13px;
    font: 800 .98rem 'Tajawal',sans-serif;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-add { background: #edf4e7; color: #4f7c34; }
.btn-buy { background: linear-gradient(135deg,#638f3f,#47732a); }
.btn-add:hover,.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(65,103,42,.18); filter: saturate(1.05); }
.btn-add i,.btn-buy i { margin-left: 7px; }
.product-promises {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.product-promises > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.product-promises > div > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: #eff5e9;
    color: #648d45;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.product-promises > div:hover > span { transform: translateY(-3px) rotate(-5deg); background: #e5f0dc; box-shadow: 0 6px 15px rgba(68,105,43,.12); }
.product-promises > div { animation: productPromisePop .5s both; }
.product-promises > div:nth-child(2) { animation-delay: .08s; }
.product-promises > div:nth-child(3) { animation-delay: .16s; }
.product-promises p { display: grid; gap: 2px; min-width: 0; margin: 0; }
.product-promises strong { color: #4b5942; font-size: .79rem; }
.product-promises small { color: #899383; font-size: .68rem; line-height: 1.5; }
.accordions-wrap { display: grid; gap: 8px; margin: 0; border-radius: 0; }
.acc-item { overflow: hidden; margin: 0; border: 1px solid rgba(44,62,35,.08); border-radius: 14px; background: #fff; }
.acc-item { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.acc-item:hover { transform: translateY(-1px); border-color: rgba(116,184,42,.22); box-shadow: 0 7px 18px rgba(34,49,26,.045); }
.acc-header {
    min-height: 52px;
    padding: 13px 16px;
    background: #fff;
    color: #46543d;
    font-size: .92rem;
}
.acc-header span { display: inline-flex; align-items: center; gap: 9px; }
.acc-header span > i { color: #70964f; }
.acc-header > i { color: #88947f; font-size: .75rem; transition: transform .2s ease; }
.acc-header.is-open > i { transform: rotate(180deg); }
.acc-body { padding: 0 16px 15px; border: 0; background: #fff; color: #6a7564; font-size: .9rem; }
.acc-body p { margin: 0 !important; }
.tabbed-info { max-width: 1188px; margin: 30px auto 90px; padding-inline: 26px; }
.tab-nav { justify-content: flex-start; margin-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.tab-nav span { top: 1px; display: inline-flex; align-items: center; gap: 9px; padding: 13px 16px; color: #4f6046; font-size: .98rem; }
.info-table { max-width: none; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: 0 9px 26px rgba(34,49,26,.045); }
.info-table td { padding: 15px 19px; color: #5b6754; }
.info-table td:first-child { width: 24%; background: #f7f9f4; color: #43543b; }
.mobile-fixed-action {
    background: rgba(255, 255, 255, .97) !important;
    border-top: 1px solid var(--line-soft);
    box-shadow: 0 -10px 30px rgba(34, 49, 26, .09) !important;
    backdrop-filter: blur(16px);
}
.mobile-sticky-price { display: grid; flex: 0 0 auto; align-content: center; gap: 2px; color: #72806a; }
.mobile-sticky-price small { font-size: .68rem; }
.mobile-sticky-price strong { color: #4d7e2c; font-size: 1.05rem; white-space: nowrap; }
.mobile-sticky-price strong span { font-size: .72rem; }
.cms-header { box-shadow: 0 5px 20px rgba(34, 49, 26, .045); }
.cms-content { box-shadow: var(--shadow-card) !important; }

@media (min-width: 769px) and (max-width: 992px) {
    .premium-container { grid-template-columns: minmax(0,1fr); gap: 28px; }
    .product-gallery { position: relative; top: auto; max-width: 760px; margin-inline: auto; }
    .product-info { max-width: 760px; width: 100%; margin-inline: auto; }
}

@media (min-width: 769px) {
    .header-inner { min-height: 72px; }
    .hero-inner { gap: clamp(45px, 8vw, 120px); }
    .hero-content { max-width: 560px; }
    .hero-image-wrapper { max-width: 540px; }
    .brand-story { text-align: right; }
}

@media (max-width: 768px) {
    .header { padding-top: 5px !important; }
    .header-inner {
        grid-template-columns: minmax(0,1fr) auto;
        gap: 9px 12px !important;
        padding: 7px 14px 12px !important;
    }
    .header-inner > .logo { grid-column: 1; grid-row: 1; justify-content: flex-start; }
    .header-inner .mobile-logo-text { padding: 0 !important; }
    .header-inner .header-floral-logo { width: min(42vw, 176px) !important; height: 48px; max-height: 48px !important; }
    .header-inner > .search-bar { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 46px !important; min-height: 46px; border-radius: 14px; }
    .header-inner > .search-bar input { font-size: .93rem; }
    .header-inner > .search-bar button { flex-basis: 36px; width: 36px; height: 36px; border-radius: 11px; }
    .header .header-actions.desktop-only-flex { display: flex !important; grid-column: 2; grid-row: 1; }
    .header .header-actions .cart-btn { width: 43px; height: 43px; min-height: 43px; justify-content: center; padding: 0; border-radius: 14px; }
    .header .header-actions .cart-total-display { display: none; }
    .hero-section {
        padding: 30px 0;
        background:
            radial-gradient(ellipse at 90% 80%, rgba(188, 220, 151, .21), transparent 38%),
            linear-gradient(180deg, #fff 0%, #f8faf5 100%);
    }
    .hero-inner { gap: 23px; }
    .hero-content h1 { margin-bottom: 10px; }
    .hero-content p { max-width: 440px; margin-inline: auto; }
    .hero-btns .btn { min-width: 180px; }
    .hero-image-wrapper { max-width: min(88vw, 370px); }
    .hero-img {
        height: auto;
        max-height: none;
        aspect-ratio: 16 / 5;
        border-radius: 18px;
        object-fit: contain;
        object-position: center;
    }
    .blob-bg { width: 108%; height: 135%; }
    .floating-card { padding: 9px 13px; font-size: .82rem; }
    .brand-story { padding: 30px 20px; }
    .story-categories { background: #f7f9f4; }
    .story-container { gap: 17px; padding: 5px 18px 17px; }
    .story-ring { width: 74px; height: 74px; }
    .products-section { padding: 20px 0 42px; }
    .products-section .section-header { margin-bottom: 16px; }
    .filter-btns-scroll { padding-inline: 14px; }
    .filter-btns { gap: 9px; }
    .products-grid { gap: 12px; margin-top: 15px; }
    .product-card { border-radius: 15px; }
    .pro-img-box { height: clamp(155px, 49vw, 230px); }
    .pro-info { padding: 12px 11px 14px; }
    .pro-title { font-size: .98rem; }
    .pro-price { font-size: 1.08rem; }
    .footer { padding-top: 30px; }
    .footer-logo img { width: 132px; }
    .social-links a { width: 42px; height: 42px; }

    .admin-header { min-height: 68px; padding-inline: 15px; }
    .admin-content { padding: 15px; height: calc(100dvh - 68px); }
    .admin-sidebar { width: min(84vw, 320px); }
    .stats-grid { gap: 12px; margin-bottom: 18px; }
    .stat-card { min-height: 108px; border-radius: 16px; }
    .admin-card { margin-bottom: 14px; }
    .card-header h2 { font-size: 1.18rem; line-height: 1.45; }
    .page-list-row { border-radius: 14px; }
    #toast-container { top: 12px; left: 12px; right: 12px; }
    .toast { min-width: 0; width: 100%; }
    .orders-header { padding: 20px 16px 0 !important; }
    .orders-toolbar { align-items: stretch; }
    .orders-toolbar label { width: 100%; }
    .orders-toolbar select { flex: 1; min-width: 150px; }
    .orders-counts { width: 100%; margin: 4px 0 0; }
    .orders-counts span { flex: 1 1 calc(50% - 8px); justify-content: center; }

    .cms-content { border-radius: 18px !important; }
    .premium-container { padding-inline: 14px; }
    .product-page { padding-bottom: 82px; }
    .product-header { min-height: 64px; padding: 8px 16px !important; }
    .product-header .desktop-logo-img { display: none; }
    .product-header .mobile-logo-text { display: inline; font-size: 1.45rem !important; }
    .product-header-note { font-size: .75rem; }
    .product-cart-trigger { width: 42px; height: 42px; border-radius: 13px; }
    .premium-container { grid-template-columns: minmax(0,1fr); gap: 23px; margin: 18px auto 32px; padding-inline: 16px; }
    .product-gallery { position: relative; top: auto; grid-template-columns: minmax(0,1fr); gap: 11px; }
    .gallery-main { aspect-ratio: 1 / 1; border-radius: 20px; }
    .gallery-main img { max-height: 500px !important; padding: 13px; border-radius: 20px; }
    .gallery-thumbnails { order: 2; flex-direction: row !important; gap: 9px; padding: 2px 2px 7px; }
    .gallery-thumb { flex: 0 0 64px; width: 64px; height: 68px; border-radius: 13px; }
    .gallery-thumb img { width: 100% !important; height: 100% !important; }
    .product-gallery > .gallery-offer { top: 12px; right: 12px; padding: 7px 10px; }
    .product-offer-note { padding: 8px 11px; border-radius: 13px; }
    .offer-flame { width: 31px; height: 31px; }
    .gallery-zoom-hint,.gallery-image-count { bottom: 10px; padding: 7px 9px; font-size: .68rem; }
    .gallery-zoom-hint { left: 10px; }
    .gallery-image-count { right: 10px; }
    .product-info { min-width: 0; gap: 13px; }
    .p-title { font-size: clamp(1.65rem,7vw,2.05rem); }
    .p-price-card { padding: 14px; border-radius: 16px; }
    .p-price { font-size: 1.72rem; }
    .product-options { padding: 13px; border-radius: 15px; }
    .product-option { grid-template-columns: 1fr; gap: 9px; }
    .action-row { gap: 8px; }
    .qty-box { flex: 0 0 auto; }
    .btn-add,.btn-buy-main { min-width: 0; padding-inline: 10px; font-size: .87rem; }
    .product-promises { gap: 7px; padding: 12px 0; }
    .product-promises > div { flex-direction: column; align-items: flex-start; gap: 5px; }
    .product-promises > div > span { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
    .product-promises strong { font-size: .71rem; }
    .product-promises small { font-size: .64rem; }
    .tabbed-info { margin: 22px auto 105px; padding-inline: 16px; }
    .info-table td { padding: 12px; font-size: .9rem; }
    .mobile-fixed-action {
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 16px calc(9px + env(safe-area-inset-bottom)) !important;
    }
    .mobile-fixed-action .btn-buy { flex: 1; min-width: 0; height: 48px !important; min-height: 48px; }
}

@media (max-width: 420px) {
    .header-inner { gap: 8px 10px !important; padding-inline: 12px !important; }
    .header-inner .header-floral-logo { width: min(43vw, 154px) !important; height: 44px; max-height: 44px !important; }
    .header .header-actions .cart-btn { width: 40px; height: 40px; min-height: 40px; }
    .header-inner > .search-bar { height: 44px !important; min-height: 44px; padding-inline: 5px 9px; }
    .header-inner > .search-bar input { padding-inline: 10px !important; font-size: .88rem; }
    .header-inner > .search-bar button { flex-basis: 34px; width: 34px; height: 34px; }
    .hero-content h1 { font-size: clamp(2rem, 9vw, 2.45rem); }
    .hero-image-wrapper { max-width: min(88vw, 330px); }
    .products-grid { gap: 9px; padding-inline: 11px; }
    .pro-img-box { height: clamp(145px, 47vw, 194px); }
    .pro-info { padding-inline: 9px; }
    .pro-title { font-size: .91rem; }
    .pro-price { font-size: 1rem; }
    .admin-content { padding: 10px; }
    .stats-grid { gap: 8px; }
    .stat-card { padding: 12px 7px; }
    .stat-details h3 { font-size: .85rem; }
    .stat-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .admin-card { padding: 14px; }
    .logo-upload-preview { align-items: flex-start; flex-direction: column; }
    .logo-upload-preview img { width: min(100%, 220px); }
    .user-profile { gap: 8px; }
    .sign-out-btn { padding: 8px 9px !important; font-size: .82rem; }
    #admin-login-shield > div { padding: 28px 22px !important; }
    .product-header { padding-inline: 12px !important; }
    .product-header-note { gap: 5px; font-size: .68rem; }
    .product-header-note i { display: none; }
    .premium-container { padding-inline: 12px; }
    .action-row { flex-wrap: nowrap; }
    .qty-box { height: 46px; }
    .qty-btn { width: 33px; }
    .qty-input { width: 32px; }
    .btn-add,.btn-buy-main { min-height: 46px; font-size: .8rem; }
    .product-promises small { font-size: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.header .cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 14px;
    border: 1px solid rgba(89, 125, 54, .16);
    border-radius: 17px;
    background: linear-gradient(145deg, #fff, #f6f9f1);
    color: var(--secondary);
    box-shadow: 0 5px 16px rgba(48, 69, 34, .08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.header .cart-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(89, 125, 54, .35);
    box-shadow: 0 9px 22px rgba(48, 69, 34, .13);
}
.header .cart-icon-wrap {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 12px;
    background: #edf5e5;
    color: #507e2d;
    font-size: 1rem;
}
.header .cart-count-badge {
    top: -7px;
    right: -10px;
    display: grid;
    width: auto;
    min-width: 19px;
    height: 19px;
    padding-inline: 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e85b42;
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(171, 59, 39, .22);
}
.header .cart-btn.has-items .cart-icon-wrap { background: #e7f2db; color: #3f7420; }
.header .cart-label { font-size: .86rem; font-weight: 800; }
.header .cart-total-display {
    padding-inline-start: 10px;
    border-inline-start: 1px solid rgba(89, 125, 54, .14);
    color: #618543;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}
.story-item {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.story-item:focus-visible {
    outline: 3px solid rgba(116, 184, 42, .42);
    outline-offset: 4px;
    border-radius: 14px;
}
.collection-settings-panel {
    margin-block: 22px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid #e5ebdd;
    border-radius: 18px;
    background: linear-gradient(145deg, #fbfdf8, #f4f8ef);
}
.collection-settings-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.collection-settings-heading h3 { margin: 0 0 5px; color: var(--secondary); font-size: 1.12rem; }
.collection-settings-heading p { margin: 0; color: #75816a; font-size: .88rem; line-height: 1.7; }
.collection-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; font-weight: 700; }
.collection-toggle input { width: 18px; height: 18px; accent-color: var(--primary-dark); }
.collection-items-editor { display: grid; gap: 12px; margin-bottom: 14px; }
.collection-item-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e8ede2;
    border-radius: 14px;
    background: #fff;
}
.collection-item-fields { display: grid; flex: 1; grid-template-columns: minmax(120px,1fr) minmax(150px,1fr) minmax(180px,1.3fr); gap: 12px; }
.collection-item-fields label { display: grid; gap: 6px; color: #5f6e52; font-size: .82rem; font-weight: 700; }
.collection-item-fields input,.collection-item-fields select { width: 100%; min-width: 0; height: 42px; padding: 8px 10px; border: 1px solid #e1e8d9; border-radius: 10px; background: #fbfcfa; color: var(--secondary); }
.collection-item-fields input:focus,.collection-item-fields select:focus { outline: 2px solid rgba(116,184,42,.25); border-color: var(--primary-dark); }
.collection-item-fields .collection-image-field { align-content: start; }
.collection-item-fields .collection-image-field input[type="file"] { height: auto; padding: 7px; background: #fff; font-size: .75rem; }
.collection-image-field img { width: 52px; height: 52px; object-fit: cover; border: 1px solid #e1e8d9; border-radius: 10px; }
.collection-item-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.collection-item-actions .btn-outline { display: grid; width: 40px; min-height: 40px; padding: 0; place-items: center; }
.collection-item-actions .btn-outline:disabled { opacity: .4; cursor: not-allowed; }
.collection-item-actions .collection-remove-btn { width: auto; padding-inline: 10px; color: #b84e3a; }

@media (max-width: 768px) {
    .mobile-bottom-nav .nav-item { width: 33.333%; }
    .mobile-bottom-nav .nav-item[hidden] { display: none; }
    .mobile-bottom-nav.has-hidden-item .nav-item:not([hidden]) { width: 50%; }
    .header .header-actions .cart-btn {
        width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 5px;
        border-radius: 15px;
        justify-content: center;
    }
    .header .cart-icon-wrap { width: 34px; height: 34px; flex-basis: 34px; }
    .header .cart-label,.header .cart-total-display { display: none; }
}
@media (max-width: 540px) {
    .collection-settings-heading { flex-direction: column; }
    .collection-item-row { align-items: stretch; flex-direction: column; }
    .collection-item-fields { grid-template-columns: minmax(0,1fr); }
    .collection-item-actions { align-self: flex-start; }
}

.push-settings-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border: 1px solid #e7eddf;
    background: linear-gradient(120deg, #fff, #f5f9ef);
}
.push-settings-copy { display: flex; min-width: 0; align-items: center; gap: 15px; }
.push-settings-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border-radius: 16px;
    background: #e8f2dc;
    color: #54872c;
    font-size: 1.2rem;
}
.push-settings-copy h2 { margin: 0 0 5px; color: var(--secondary); font-size: 1.08rem; }
.push-settings-copy p { margin: 0 0 3px; color: #66735a; font-size: .9rem; line-height: 1.65; }
.push-settings-copy small { color: #859078; font-size: .78rem; line-height: 1.6; }
.push-enable-button { min-height: 46px; flex: 0 0 auto; white-space: nowrap; }
.push-enable-button:disabled { background: #6f9651; cursor: default; opacity: .92; }
.install-help-button { min-height: 40px; padding: 8px 12px; color: #547d33; white-space: nowrap; }
.admin-install-overlay[hidden] { display: none; }
.admin-install-overlay {
    position: fixed;
    z-index: 100000010;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
    background: rgba(22, 31, 19, .58);
    backdrop-filter: blur(8px);
}
.admin-install-card {
    position: relative;
    width: min(100%, 440px);
    padding: 30px 25px 24px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 28, 12, .28);
    text-align: center;
    animation: installCardEnter .28s ease-out both;
}
@keyframes installCardEnter {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.install-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: #f3f6ef;
    color: #617054;
}
.install-modal-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 4px auto 16px;
    place-items: center;
    border-radius: 21px;
    background: linear-gradient(145deg, #edf6e5, #dcebcf);
    color: #598b34;
    font-size: 1.7rem;
}
.admin-install-card h2 { margin: 0 0 8px; color: var(--secondary); font-size: 1.35rem; }
.admin-install-card > p { margin: 0; color: #69765f; line-height: 1.8; }
.ios-install-instructions:not([hidden]) { display: grid; gap: 9px; margin: 17px 0 0; text-align: right; }
.ios-install-instructions span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f5f8f1; color: #526345; font-size: .87rem; }
.ios-install-instructions i { width: 19px; color: #598b34; text-align: center; }
.install-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.install-modal-actions > button { min-height: 46px; flex: 1; border-radius: 12px; }
body.install-prompt-open { overflow: hidden; }

@media (max-width: 768px) {
    .push-settings-card { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
    .push-enable-button { width: 100%; }
    .admin-header .install-help-button { padding-inline: 10px; }
}
@media (max-width: 430px) {
    .admin-header .install-help-button { width: 40px; min-width: 40px; padding: 0; overflow: hidden; font-size: 0; }
    .admin-header .install-help-button i { font-size: 1rem; }
    .install-modal-actions { flex-direction: column; }
}
