/* =====================================================================
   SHRESTA HERBALS - member panel theme (load LAST on every page)
   Palette from the brand artwork:
     Leaf green   #5a9a28  (deep #3f7d1c, ink #1f3a12)
     Lime         #c8e02a
     Sun yellow   #f5d020
     Saffron      #f39c12  ->  orange #f26b1d
     Canvas       white / #f7fbef
   Animations respect "reduce motion" (see the bottom of the file).
   ===================================================================== */
:root {
    --sh-green: #5a9a28; --sh-green-d: #3f7d1c; --sh-green-dd: #2c5c12; --sh-ink: #1f3a12; --sh-ink-2: #44583a; --sh-mute: #6f7f66;
    --sh-lime: #c8e02a; --sh-lime-50: #f4f9df; --sh-green-50: #eef7e4; --sh-green-100: #dcefc8;
    --sh-yellow: #f5d020; --sh-saffron: #f39c12; --sh-orange: #f26b1d; --sh-orange-d: #d9560f; --sh-orange-50: #fff1e6;
    --sh-bg: #f7fbef; --sh-line: #e3eed5;
    --sh-grad: linear-gradient(120deg, #2c5c12 0%, #3f7d1c 28%, #5a9a28 60%, #8cc63f 100%);
    --sh-grad-btn: linear-gradient(135deg, #5a9a28 0%, #6fb02f 55%, #8cc63f 100%);
    --sh-grad-warm: linear-gradient(135deg, #f5d020 0%, #f39c12 55%, #f26b1d 100%);
    --sh-grad-band: linear-gradient(90deg, #3f7d1c 0%, #8cc63f 30%, #f5d020 62%, #f39c12 82%, #f26b1d 100%);
    --sh-shadow: 0 12px 30px -16px rgba(44, 92, 18, .38), 0 2px 8px -4px rgba(31, 58, 18, .12);
    --sh-ease: cubic-bezier(.2, .8, .2, 1); --sh-spring: cubic-bezier(.34, 1.56, .64, 1);

    /* re-point the older theme tokens so every page picks up the brand */
    --dv-red: var(--sh-green); --dv-red-d: var(--sh-green-d); --dv-red-dd: var(--sh-green-dd); --dv-red-50: var(--sh-green-50); --dv-red-100: var(--sh-green-100);
    --dv-orange: var(--sh-orange); --dv-orange-d: var(--sh-orange-d); --dv-orange-50: var(--sh-orange-50);
    --dv-gold: var(--sh-yellow); --dv-gold-50: #fff9d9;
    --dv-navy: var(--sh-ink); --dv-navy-2: #2c4a1c; --dv-ink: var(--sh-ink); --dv-ink-2: var(--sh-ink-2); --dv-mute: var(--sh-mute);
    --dv-bg: var(--sh-bg); --dv-line: var(--sh-line);
    --dv-grad: var(--sh-grad); --dv-grad-btn: var(--sh-grad-btn); --dv-grad-band: var(--sh-grad-band); --dv-shadow: var(--sh-shadow);
    --sk-hero: linear-gradient(125deg, #24500e 0%, #3f7d1c 35%, #5a9a28 70%, #9ccc3a 100%);
    --sk-stripe: var(--sh-grad-band); --sk-hazard: var(--sh-grad-band);
    /* leaf line art replaces the old helix art */
    --sk-skyline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 130 C60 60 120 40 170 30 C150 80 100 120 20 130Z'/%3E%3Cpath d='M20 130 C80 90 120 60 170 30'/%3E%3Cpath d='M230 130 C250 70 300 30 360 20 C360 80 310 120 230 130Z'/%3E%3Cpath d='M230 130 C280 90 320 50 360 20'/%3E%3Cpath d='M0 136 C140 100 280 100 420 132' stroke-opacity='.6'/%3E%3C/g%3E%3C/svg%3E");
    --primary: var(--sh-green); --primary-h: var(--sh-green-d); --pg-grad: var(--sh-grad-btn); --pp-grad-soft: var(--sh-grad);
}

/* ---------- canvas ---------- */
body:not(.da):not(.dl) {
    background-color: var(--sh-bg) !important;
    background-image:
        radial-gradient(1200px 500px at 110% -10%, rgba(245, 208, 32, .10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(90, 154, 40, .10), transparent 60%),
        radial-gradient(rgba(90, 154, 40, .07) 1px, transparent 1.3px) !important;
    background-size: auto, auto, 24px 24px !important;
    background-attachment: fixed !important;
}
::selection { background: #e3f2b8; color: var(--sh-ink); }
a { color: var(--sh-green-d); }
a:hover { color: var(--sh-orange); }
:focus-visible { outline: 3px solid rgba(243, 156, 18, .55) !important; outline-offset: 2px; }

/* slim branded scrollbars */
* { scrollbar-width: thin; scrollbar-color: #9cc77a transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: linear-gradient(#8cc63f, #5a9a28); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- header ---------- */
.header { background: rgba(255, 255, 255, .92) !important; -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.header::after { background: var(--sh-grad-band) !important; background-size: 200% 100% !important; animation: shBand 9s linear infinite; }
@keyframes shBand { to { background-position: 200% 0; } }
html body .pp-logo .pp-logo__full { height: 44px !important; max-width: 190px !important; }
html body .pp-logo .pp-logo__mark { border-radius: 12px !important; background: #fff; }
.pp-av, .pp-acct .pp-av { background: var(--sh-grad-btn) !important; }
.pp-hwallet { transition: transform .25s var(--sh-spring), box-shadow .25s; }
.pp-hwallet:hover { transform: translateY(-2px) rotate(-6deg); box-shadow: 0 8px 18px -10px rgba(243, 156, 18, .9); }

/* ---------- sidebar ---------- */
.sidebar { background: #fff !important; }
.sidebar-menu li a { transition: background .2s, color .2s, padding-left .25s var(--sh-ease) !important; border-radius: 10px; }
.sidebar-menu li a i { transition: transform .3s var(--sh-spring), color .2s; }
.sidebar-menu li a:hover { color: var(--sh-green-d) !important; background: var(--sh-green-50) !important; }
.sidebar-menu li a:hover i { color: var(--sh-orange) !important; transform: scale(1.15) rotate(-8deg); }
.sidebar-menu li.active > a, .sidebar-menu li a.active, .sidebar-menu > ul > li > a.subdrop { color: var(--sh-green-dd) !important; }
.sidebar-menu li.active > a { background: linear-gradient(90deg, #e4f3d0, rgba(238, 247, 228, 0)) !important; box-shadow: inset 3px 0 0 var(--sh-green) !important; }
.sidebar-menu li.active > a i { color: var(--sh-green) !important; }
.sidebar-menu li.menu-title, .sidebar-menu .menu-title span { color: #95a68a !important; }
.pp-navfoot { background: var(--sk-hero) !important; position: relative; overflow: hidden; }
.pp-navfoot b em { color: var(--sh-yellow) !important; }
.pp-navfoot::after { content: ""; position: absolute; right: -14px; bottom: -18px; width: 80px; height: 80px; opacity: .22;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 96C28 80 22 54 36 28C42 16 48 8 50 4C52 8 58 16 64 28C78 54 72 80 50 96Z' fill='%23fff'/%3E%3C/svg%3E");
    animation: shSway 6s ease-in-out infinite; transform-origin: 50% 100%; }

/* ---------- cards, tiles, panels ---------- */
.card, .dx-card, .dx-kpi, .dx-pane, .pp-card, .pg-card, .tv-card, .wr-card, .rs-card {
    border-color: var(--sh-line) !important;
    transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease), border-color .35s !important;
}
.card:hover, .dx-card:hover, .dx-kpi:hover, .pp-card:hover, .pg-card:hover {
    transform: translateY(-3px); box-shadow: var(--sh-shadow) !important; border-color: #cfe5b4 !important;
}
.dx-kpi { position: relative; overflow: hidden; }
.dx-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sh-grad-band); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--sh-ease); }
.dx-kpi:hover::before { transform: scaleX(1); }
.card-header { background: linear-gradient(180deg, #fbfdf6, #fff) !important; border-bottom-color: var(--sh-line) !important; }

/* page banners: leafy glow + slow shimmer */
.pp-welcome, .tv-hero, .tm-hero, .up-hero, .wr-hero, .rl-hero, .pd-hero, .pg-hero, .pp-hero, .dx-hero {
    background-image: var(--sk-hero) !important; position: relative; overflow: hidden;
}
.pp-welcome::after, .tv-hero::after, .tm-hero::after, .up-hero::after, .wr-hero::after, .pg-hero::after, .pp-hero::after, .dx-hero::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
    animation: shSweep 7s ease-in-out 1.5s infinite;
}
@keyframes shSweep { 0% { left: -40%; } 45%, 100% { left: 120%; } }

/* ---------- buttons ---------- */
.btn-primary, .btn-success, .pp-btn, .dx-btn, input[type=submit].btn, .pg-btn {
    background: var(--sh-grad-btn) !important; border-color: transparent !important; color: #fff !important;
    position: relative; overflow: hidden; transition: transform .2s var(--sh-spring), box-shadow .25s, filter .2s !important;
}
.btn-primary:hover, .btn-success:hover, .pp-btn:hover, .dx-btn:hover, .pg-btn:hover {
    transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(63, 125, 28, .85) !important; filter: saturate(1.15);
}
.btn-primary:active, .btn-success:active, .pp-btn:active, .dx-btn:active { transform: translateY(0) scale(.98); }
.btn-warning, .btn-info, .btn-orange { background: var(--sh-grad-warm) !important; border-color: transparent !important; color: #fff !important; }
.btn-outline-primary, .pp-btn-outline { color: var(--sh-green-d) !important; border-color: #a9d17f !important; background: #fff !important; }
.btn-outline-primary:hover, .pp-btn-outline:hover { background: var(--sh-green-50) !important; }

/* ---------- forms ---------- */
.form-control, select.form-control, .pp-in { border-color: #d8e6c9 !important; transition: border-color .2s, box-shadow .2s !important; }
.form-control:focus, .pp-in:focus { border-color: var(--sh-green) !important; box-shadow: 0 0 0 4px rgba(90, 154, 40, .14) !important; }

/* ---------- tables ---------- */
.table thead th, table.table th, .gridview th, table[id*="Grid"] th {
    background: linear-gradient(180deg, #eef7e4, #e2f0d1) !important; color: var(--sh-ink) !important; border-color: #d4e7bf !important;
}
.table tbody tr, table[id*="Grid"] tr { transition: background .18s; }
.table-hover tbody tr:hover, .table tbody tr:hover, table[id*="Grid"] tr:hover td { background: #f6fbec !important; }

/* ---------- badges & pills ---------- */
.badge-primary, .badge-success, .bg-success-light { background: var(--sh-green-50) !important; color: var(--sh-green-d) !important; }
.badge-warning, .bg-warning-light { background: #fff6d6 !important; color: #a86a00 !important; }

/* ---------- footer ---------- */
.pg-footer { border-top: 1px solid var(--sh-line) !important; color: var(--sh-mute) !important; }
.pg-footer strong { background: var(--sh-grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* ---------- entrance animations (content area only) ---------- */
.page-wrapper .content > * , .page-wrapper .content .row > [class*="col-"] { animation: shUp .6s var(--sh-ease) both; }
.page-wrapper .content .row > [class*="col-"]:nth-child(2) { animation-delay: .06s; }
.page-wrapper .content .row > [class*="col-"]:nth-child(3) { animation-delay: .12s; }
.page-wrapper .content .row > [class*="col-"]:nth-child(4) { animation-delay: .18s; }
.page-wrapper .content .row > [class*="col-"]:nth-child(5) { animation-delay: .24s; }
.page-wrapper .content .row > [class*="col-"]:nth-child(n+6) { animation-delay: .3s; }
@keyframes shUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes shFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.dx-ic, .pp-ic { animation: shFloat 4.5s ease-in-out infinite; }

/* =====================================================================
   Sign-in pages (Login.aspx: body.dl) - leaves instead of cells
   ===================================================================== */
body.dl { background: #1f3a12 !important; }
body.dl .dl-bg { background: linear-gradient(125deg, #17300b 0%, #2c5c12 30%, #4f8d22 58%, #8cb82a 80%, #e08a12 100%) !important; background-size: 220% 220% !important; }
body.dl .dl-aura.a1 { background: #8cc63f !important; }
body.dl .dl-aura.a2 { background: #f5d020 !important; }
body.dl .dl-aura.a3 { background: #f39c12 !important; opacity: .32 !important; }
body.dl .dl-cells span {
    border-radius: 0 80% 0 80% !important; box-shadow: none !important;
    background: linear-gradient(135deg, rgba(200, 224, 42, .85), rgba(90, 154, 40, .55)) !important;
    animation-name: shLeafFall !important; bottom: auto !important; top: -120px;
}
body.dl .dl-cells span::after { left: 8%; top: 8%; width: 120%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .45) !important; box-shadow: none !important; transform: rotate(45deg); transform-origin: 0 0; }
body.dl .dl-cells span.g { background: linear-gradient(135deg, rgba(245, 208, 32, .85), rgba(242, 107, 29, .55)) !important; }
@keyframes shLeafFall {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: .85; }
    50% { transform: translate(50px, 55vh) rotate(160deg); }
    90% { opacity: .7; }
    100% { transform: translate(-30px, 118vh) rotate(320deg); opacity: 0; }
}
body.dl .dl-helix { display: none !important; }
body.dl .dl-name__a { color: #fff !important; }
body.dl .dl-name__b { color: var(--sh-yellow) !important; }
body.dl .dl-btn { background: var(--sh-grad-btn) !important; }
body.dl .dl-emblem img { background: #fff; border-radius: 50%; padding: 12px; }

/* ---------- herbal health-care banner art (replaces the old DNA helix / glowing cell bubbles) ---------- */
:root { --sh-herb-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 150 C60 110 70 70 66 20'/%3E%3Cpath d='M64 40 C40 30 26 38 20 52 C38 58 54 54 64 40Z'/%3E%3Cpath d='M67 62 C90 48 106 54 112 68 C94 76 78 74 67 62Z'/%3E%3Cpath d='M63 88 C40 80 26 88 22 102 C40 108 56 102 63 88Z'/%3E%3Cpath d='M60 112 C80 100 96 106 100 118 C84 126 70 124 60 112Z'/%3E%3Cpath d='M66 20 C58 12 58 4 66 0 C74 4 74 12 66 20Z'/%3E%3Cpath d='M170 96 H290 C288 130 262 150 230 150 C198 150 172 130 170 96Z'/%3E%3Cpath d='M196 150 H264'/%3E%3Cpath d='M262 96 L312 40'/%3E%3Cpath d='M304 34 C310 28 320 32 318 40 C316 46 308 46 304 34Z'/%3E%3Cpath d='M200 96 C196 74 206 58 222 52 C226 72 218 88 200 96Z'/%3E%3Cpath d='M228 96 C232 70 248 60 262 60 C262 80 250 92 228 96Z'/%3E%3Cpath d='M210 120 h40' stroke-opacity='.6'/%3E%3Cpath d='M420 150 C380 120 350 96 350 68 C350 46 366 32 384 32 C398 32 412 40 420 54 C428 40 442 32 456 32 C474 32 490 46 490 68 C490 96 460 120 420 150Z'/%3E%3Cpath d='M358 92 H392 L402 74 L414 110 L426 84 L434 92 H482'/%3E%3Cpath d='M420 54 C416 40 422 26 436 18 C440 32 434 46 420 54Z'/%3E%3Cpath d='M520 120 C540 100 546 76 540 54 C524 60 512 80 520 120Z'/%3E%3Cpath d='M520 120 C528 96 534 78 540 54'/%3E%3C/g%3E%3C/svg%3E"); }
html body .dv-gh-helix, html body .dv-gh-spark, html body .dl-helix, html body .dl-spark, html body .dxp__orb { display: none !important; }
html body .dv-gh-fx::before {
    content: ""; position: absolute; right: 24px; top: 50%; width: 420px; height: 120px; margin-top: -60px; pointer-events: none;
    background: var(--sh-herb-art) right center / contain no-repeat; opacity: .26; animation: shHerbSway 7s ease-in-out infinite;
}
.ua-hero .dv-gh-fx::before, .jrp-hero .dv-gh-fx::before, .wr-hero .dv-gh-fx::before { top: 8px; margin-top: 0; height: 60px; width: 220px; opacity: .2; }
html body .gt-head .dv-gh-fx::before, html body .tv-hero .dv-gh-fx::before { right: 380px; width: 300px; }
html body .dx-hero .dv-gh-fx::before { right: 260px; height: 90px; margin-top: -45px; opacity: .2; }
@keyframes shHerbSway { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-.6deg); } }
/* floating cells become drifting leaves */
html body .dv-gh-cell {
    border-radius: 0 80% 0 80% !important; box-shadow: none !important; opacity: .75 !important;
    background: linear-gradient(135deg, rgba(200, 224, 42, .9), rgba(90, 154, 40, .6)) !important;
    animation: shLeafDrift 11s ease-in-out infinite !important;
}
html body .dv-gh-cell.c2, html body .dv-gh-cell.c4 { background: linear-gradient(135deg, rgba(245, 208, 32, .9), rgba(242, 107, 29, .6)) !important; animation-delay: -4s !important; }
html body .dv-gh-cell.c3 { animation-delay: -7s !important; }
html body .dv-gh-cell::after { left: 10% !important; top: 10% !important; width: 118% !important; height: 2px !important; border-radius: 2px !important; background: rgba(255, 255, 255, .5) !important; box-shadow: none !important; transform: rotate(45deg); transform-origin: 0 0; }
@keyframes shLeafDrift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(8px, 6px) rotate(18deg); } }
@media (max-width: 1199px) { html body .gt-head .dv-gh-fx::before, html body .tv-hero .dv-gh-fx::before { right: 10px; opacity: .14; } }
@media (max-width: 991px) { html body .dv-gh-fx::before { width: 240px; opacity: .16; right: 10px; } html body .gt-head .dv-gh-fx::before, html body .tv-hero .dv-gh-fx::before { right: 380px; width: 300px; }
html body .dx-hero .dv-gh-fx::before { right: 10px; } }
@media (max-width: 575px) { html body .dv-gh-fx::before { width: 160px; height: 60px; margin-top: -30px; opacity: .14; } }

body.dl .sh-herb { position: absolute; left: 24px; right: 24px; bottom: 10px; height: 46px; pointer-events: none; background: var(--sh-herb-art) center / contain no-repeat; opacity: .32; animation: shHerbSway 7s ease-in-out infinite; }
body.dl .dl-brand { position: relative; }
@media (max-width: 991px) { body.dl .sh-herb { display: none; } }

/* ---------- product description in the product pop-up (Registration / Repurchase) ---------- */
.jrp .rs-desc { margin-top: 6px; padding: 12px 14px; max-height: 260px; overflow-y: auto; border-radius: 14px; background: #f6fbec; border: 1px solid #e3eed5; font-size: 13.5px; line-height: 1.6; color: #2f4a22; }
.jrp .rs-desc[hidden] { display: none !important; }
.jrp .rs-desc section + section { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d4e6bf; }
.jrp .rs-desc h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #3f7d1c; }
.jrp .rs-desc ul { list-style: none; margin: 0; padding: 0; }
.jrp .rs-desc li { position: relative; padding-left: 16px; margin: 3px 0; }
.jrp .rs-desc li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 0 70% 0 70%; background: linear-gradient(135deg, #8cc63f, #3f7d1c); }
.jrp .rs-desc li.is-kv { padding-left: 0; } .jrp .rs-desc li.is-kv::before { display: none; }
.jrp .rs-desc li.is-kv b { color: #e08a12; font-weight: 700; }
.jrp .rs-desc::-webkit-scrollbar { width: 6px; } .jrp .rs-desc::-webkit-scrollbar-thumb { background: #c9dfb0; border-radius: 3px; }
@media (max-width: 575px) { .jrp .rs-desc { max-height: none; } }

/* ---------- accessibility: calm everything down when asked ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 767.98px) {
    .page-wrapper .content { padding-left: 12px !important; padding-right: 12px !important; }
    .card:hover, .dx-card:hover, .dx-kpi:hover { transform: none; }
    .table-responsive, .dx-card__b { -webkit-overflow-scrolling: touch; }
    html body .pp-logo .pp-logo__full { height: 36px !important; }
}
