/* =====================================================================
   Rupali Bangla — Frontend design system
   Palette taken from the society's logo: leaf green, sunrise saffron,
   river navy. Body: Hind Siliguri · Display: Noto Serif Bengali
   ===================================================================== */

:root {
    --rb-green-900: #062b1c;
    --rb-green-800: #0a3d28;
    --rb-green-700: #0c5234;
    --rb-green-600: #0e6b41;
    --rb-green-500: #0b8a4a;
    --rb-green-100: #e3f1e8;
    --rb-green-50:  #f1f8f3;

    --rb-saffron:   #f2a51a;
    --rb-saffron-d: #d98a06;
    --rb-sun:       #e8461c;
    --rb-navy:      #1d3a8a;

    --rb-ink:       #10231a;
    --rb-text:      #2b3a33;
    --rb-muted:     #66766e;
    --rb-line:      #e4e8e2;
    --rb-paper:     #f7f5ee;
    --rb-white:     #ffffff;

    --rb-radius-sm: 10px;
    --rb-radius:    16px;
    --rb-radius-lg: 24px;

    --rb-shadow-sm: 0 1px 2px rgba(6, 43, 28, .06), 0 2px 6px rgba(6, 43, 28, .04);
    --rb-shadow:    0 8px 24px -8px rgba(6, 43, 28, .14), 0 2px 6px rgba(6, 43, 28, .05);
    --rb-shadow-lg: 0 24px 48px -16px rgba(6, 43, 28, .25);

    --rb-font: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
    --rb-display: "Noto Serif Bengali", "Hind Siliguri", Georgia, serif;

    --rb-header-h: 76px;

    /* Bootstrap bridges */
    --bs-primary: var(--rb-green-600);
    --bs-primary-rgb: 14, 107, 65;
    --bs-link-color: var(--rb-green-600);
    --bs-link-color-rgb: 14, 107, 65;
    --bs-link-hover-color: var(--rb-green-800);
    --bs-body-font-family: var(--rb-font);
    --bs-body-color: var(--rb-text);
    --bs-border-color: var(--rb-line);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rb-paper);
    color: var(--rb-text);
    font-family: var(--rb-font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

main { flex: 1 0 auto; }

a { color: var(--rb-green-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rb-green-800); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { color: var(--rb-ink); font-weight: 700; line-height: 1.3; }
.rb-display { font-family: var(--rb-display); letter-spacing: -.01em; }

::selection { background: var(--rb-saffron); color: var(--rb-ink); }

.container { max-width: 1240px; }

:focus-visible { outline: 3px solid rgba(242, 165, 26, .55); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn { font-weight: 600; border-radius: 999px; padding: .62rem 1.25rem; letter-spacing: .01em; transition: all .2s ease; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .38rem .85rem; font-size: .86rem; }

.btn-rb,
.btn-primary,
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--rb-green-600);
    --bs-btn-border-color: var(--rb-green-600);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--rb-green-700);
    --bs-btn-hover-border-color: var(--rb-green-700);
    --bs-btn-active-bg: var(--rb-green-800);
    --bs-btn-active-border-color: var(--rb-green-800);
    --bs-btn-disabled-bg: #9db3a7;
    --bs-btn-disabled-border-color: #9db3a7;
    box-shadow: 0 6px 16px -6px rgba(14, 107, 65, .55);
}
.btn-rb:hover, .btn-primary:hover, .btn-success:hover { transform: translateY(-1px); }

.btn-accent {
    --bs-btn-color: var(--rb-ink);
    --bs-btn-bg: var(--rb-saffron);
    --bs-btn-border-color: var(--rb-saffron);
    --bs-btn-hover-color: var(--rb-ink);
    --bs-btn-hover-bg: #ffb733;
    --bs-btn-hover-border-color: #ffb733;
    --bs-btn-active-bg: var(--rb-saffron-d);
    box-shadow: 0 6px 16px -6px rgba(217, 138, 6, .6);
}

.btn-ghost,
.btn-outline-primary,
.btn-outline-secondary {
    --bs-btn-color: var(--rb-green-700);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--rb-line);
    --bs-btn-hover-color: var(--rb-green-800);
    --bs-btn-hover-bg: var(--rb-green-50);
    --bs-btn-hover-border-color: #c9dccf;
    --bs-btn-active-bg: var(--rb-green-100);
    --bs-btn-active-color: var(--rb-green-800);
}

.btn-outline-danger { --bs-btn-color: #b42318; --bs-btn-border-color: #f3c9c4; --bs-btn-hover-bg: #b42318; --bs-btn-hover-border-color: #b42318; }

.btn-light-on-dark {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(255, 255, 255, .1);
    --bs-btn-border-color: rgba(255, 255, 255, .3);
    --bs-btn-hover-color: var(--rb-ink);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
}

.btn-icon {
    width: 42px; height: 42px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.form-label { font-weight: 600; color: var(--rb-ink); font-size: .93rem; margin-bottom: .4rem; }
.form-control, .form-select {
    border-radius: 12px;
    border: 1.5px solid var(--rb-line);
    padding: .7rem .95rem;
    background-color: #fff;
    color: var(--rb-ink);
    transition: border-color .2s, box-shadow .2s;
}
.form-control-lg, .form-select-lg { padding: .82rem 1rem; font-size: 1rem; border-radius: 14px; }
.form-control:focus, .form-select:focus {
    border-color: var(--rb-green-500);
    box-shadow: 0 0 0 4px rgba(11, 138, 74, .12);
}
.form-control::placeholder { color: #9aa79f; }
.form-check-input:checked { background-color: var(--rb-green-600); border-color: var(--rb-green-600); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(11, 138, 74, .12); border-color: var(--rb-green-500); }

.input-icon { position: relative; }
.input-icon > i {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--rb-muted); pointer-events: none; font-size: 1.05rem;
}
.input-icon > .form-control, .input-icon > .form-select { padding-left: 2.75rem; }
.input-icon .toggle-pass {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--rb-muted);
    width: 38px; height: 38px; border-radius: 10px;
}
.input-icon .toggle-pass:hover { background: var(--rb-green-50); color: var(--rb-green-700); }

/* ---------------------------------------------------------------------
   Alerts / flash
   --------------------------------------------------------------------- */
.rb-flash-wrap { position: fixed; top: calc(var(--rb-header-h) + 14px); right: 16px; z-index: 1080; width: min(420px, calc(100% - 32px)); display: grid; gap: 10px; }
.rb-flash {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: 14px; background: #fff;
    box-shadow: var(--rb-shadow-lg); border: 1px solid var(--rb-line);
    border-left: 4px solid var(--rb-green-500);
    animation: rbSlideIn .35s ease;
}
.rb-flash.is-error { border-left-color: #d92d20; }
.rb-flash.is-info { border-left-color: var(--rb-navy); }
.rb-flash > i { font-size: 1.25rem; line-height: 1.2; color: var(--rb-green-500); }
.rb-flash.is-error > i { color: #d92d20; }
.rb-flash.is-info > i { color: var(--rb-navy); }
.rb-flash .rb-flash-body { flex: 1; font-size: .95rem; color: var(--rb-ink); }
.rb-flash .rb-flash-body ul { margin: 4px 0 0; padding-left: 18px; font-size: .9rem; }
.rb-flash .btn-close { font-size: .7rem; margin-top: 4px; }
@keyframes rbSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.rb-alert { border-radius: 14px; border: 1px solid; padding: 12px 16px; font-size: .94rem; display: flex; gap: 10px; align-items: flex-start; }
.rb-alert-error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.rb-alert-success { background: var(--rb-green-50); border-color: #bfe0cb; color: var(--rb-green-800); }
.rb-alert-info { background: #f0f4ff; border-color: #cdd8f6; color: #1d3a8a; }
.rb-alert ul { margin: 0; padding-left: 18px; }

/* ---------------------------------------------------------------------
   Top strip + header
   --------------------------------------------------------------------- */
.rb-topbar {
    background: var(--rb-green-900);
    color: rgba(255, 255, 255, .78);
    font-size: .84rem;
}
.rb-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.rb-topbar a { color: rgba(255, 255, 255, .85); }
.rb-topbar a:hover { color: var(--rb-saffron); }
.rb-topbar-list { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.rb-topbar-list i { color: var(--rb-saffron); margin-right: 6px; }
.rb-topbar .rb-reg { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(242, 165, 26, .14); color: #ffd58a; font-weight: 600; }

.rb-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.rb-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(6, 43, 28, .35); border-bottom-color: var(--rb-line); }
.rb-header .container { display: flex; align-items: center; gap: 18px; min-height: var(--rb-header-h); }

.rb-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--rb-ink); }
.rb-brand:hover { color: var(--rb-ink); }
.rb-brand-logo {
    width: 52px; height: 52px; flex: 0 0 52px;
    border-radius: 14px; background: #fff;
    display: grid; place-items: center; overflow: hidden;
    box-shadow: 0 0 0 1px var(--rb-line), 0 4px 12px -6px rgba(6, 43, 28, .3);
}
.rb-brand-logo img { width: 86%; height: 86%; object-fit: contain; }
.rb-brand-logo.is-placeholder { background: var(--rb-green-600); color: #fff; font-size: 1.4rem; }
.rb-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.rb-brand-name { font-family: var(--rb-display); font-weight: 700; font-size: 1.22rem; color: var(--rb-green-800); white-space: nowrap; }
.rb-brand-tag { font-size: .78rem; color: var(--rb-muted); white-space: nowrap; margin-top: 3px; }

.rb-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.rb-nav a {
    position: relative; display: block;
    padding: 8px 13px; border-radius: 999px;
    color: var(--rb-text); font-weight: 600; font-size: .96rem;
    white-space: nowrap;
}
.rb-nav a:hover { color: var(--rb-green-700); background: var(--rb-green-50); }
.rb-nav a.active { color: var(--rb-green-700); background: var(--rb-green-100); }

.rb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rb-nav + .rb-actions { margin-left: 0; }
.rb-icon-btn {
    position: relative;
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--rb-line);
    color: var(--rb-ink); font-size: 1.15rem;
    transition: all .2s;
}
.rb-icon-btn:hover, .rb-icon-btn.active { color: var(--rb-green-700); border-color: #c9dccf; background: var(--rb-green-50); }
.rb-badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--rb-sun); color: #fff;
    font-size: .7rem; font-weight: 700; line-height: 20px; text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.rb-user-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 4px; border-radius: 999px;
    border: 1px solid var(--rb-line); background: #fff; color: var(--rb-ink);
    font-weight: 600; font-size: .92rem;
}
.rb-user-btn:hover, .rb-user-btn[aria-expanded="true"] { border-color: #c9dccf; background: var(--rb-green-50); }
.rb-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: linear-gradient(135deg, var(--rb-green-500), var(--rb-green-700));
    color: #fff; font-weight: 700; font-size: .95rem; flex: 0 0 auto;
}
.rb-avatar.lg { width: 64px; height: 64px; font-size: 1.6rem; }
.rb-avatar.xl { width: 84px; height: 84px; font-size: 2rem; }

.rb-dropdown {
    border: 1px solid var(--rb-line); border-radius: 18px;
    box-shadow: var(--rb-shadow-lg); padding: 8px; min-width: 260px; margin-top: 10px !important;
}
.rb-dropdown .rb-dd-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; }
.rb-dropdown .rb-dd-head strong { display: block; color: var(--rb-ink); line-height: 1.2; }
.rb-dropdown .rb-dd-head small { color: var(--rb-muted); word-break: break-all; }
.rb-dropdown .dropdown-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border-radius: 12px; font-weight: 500; color: var(--rb-text);
}
.rb-dropdown .dropdown-item i { color: var(--rb-green-600); font-size: 1.05rem; width: 20px; text-align: center; }
.rb-dropdown .dropdown-item:hover { background: var(--rb-green-50); color: var(--rb-green-800); }
.rb-dropdown .dropdown-item.text-danger i { color: #d92d20; }
.rb-dropdown .dropdown-item.text-danger:hover { background: #fef3f2; color: #b42318 !important; }

.rb-burger { display: none; }

/* Mobile drawer */
.rb-drawer { --bs-offcanvas-width: min(340px, 88vw); border-left: 0 !important; }
.rb-drawer .offcanvas-header { padding: 18px 20px; border-bottom: 1px solid var(--rb-line); }
.rb-drawer .offcanvas-body { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.rb-drawer-user { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--rb-green-50); border: 1px solid #d6e9dc; }
.rb-drawer-user strong { display: block; color: var(--rb-ink); line-height: 1.2; }
.rb-drawer-user small { color: var(--rb-muted); word-break: break-all; }
.rb-drawer-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rb-muted); margin: 0 4px 6px; }
.rb-drawer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rb-drawer-nav a, .rb-drawer-nav button {
    width: 100%; display: flex; align-items: center; gap: 14px;
    padding: 11px 12px; border-radius: 12px; border: 0; background: transparent;
    color: var(--rb-ink); font-weight: 600; text-align: left;
}
.rb-drawer-nav i { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: #f1f4f1; color: var(--rb-green-700); font-size: 1rem; }
.rb-drawer-nav a:hover, .rb-drawer-nav a.active { background: var(--rb-green-50); color: var(--rb-green-800); }
.rb-drawer-nav a.active i { background: var(--rb-green-600); color: #fff; }
.rb-drawer-nav .count { margin-left: auto; background: var(--rb-sun); color: #fff; font-size: .72rem; border-radius: 999px; padding: 1px 8px; }
.rb-drawer-nav button.text-danger i { background: #fef3f2; color: #d92d20; }
.rb-drawer-contact { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--rb-green-900); color: rgba(255,255,255,.8); font-size: .9rem; }
.rb-drawer-contact a { color: #fff; font-weight: 600; }

/* Mobile bottom nav */
.rb-bottom-nav { display: none; }

@media (max-width: 1199.98px) {
    .rb-nav { display: none !important; }
    .rb-burger { display: inline-flex; }
}
@media (max-width: 991.98px) {
    :root { --rb-header-h: 66px; }
    .rb-topbar { display: none; }
    .rb-actions .hide-mobile { display: none !important; }
    .rb-brand-logo { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
    .rb-brand-name { font-size: 1.08rem; }
    .rb-brand-tag { display: block; font-size: .72rem; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }

    body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .rb-bottom-nav {
        position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1035;
        display: grid; grid-template-columns: repeat(5, 1fr);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border: 1px solid var(--rb-line); border-radius: 20px;
        box-shadow: 0 14px 34px -12px rgba(6, 43, 28, .35);
        padding: 6px;
    }
    .rb-bottom-nav a {
        position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
        padding: 6px 2px; border-radius: 14px; color: var(--rb-muted);
        font-size: .72rem; font-weight: 600;
    }
    .rb-bottom-nav a i { font-size: 1.22rem; line-height: 1.2; }
    .rb-bottom-nav a.active { color: var(--rb-green-700); background: var(--rb-green-100); }
    .rb-bottom-nav .rb-badge { top: 0; right: calc(50% - 22px); }
    .rb-flash-wrap { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
    .rb-brand-name { font-size: 1rem; }
    .rb-actions { gap: 6px; }
    .rb-icon-btn { width: 40px; height: 40px; }
}

/* ---------------------------------------------------------------------
   Section helpers
   --------------------------------------------------------------------- */
.rb-section { padding: 72px 0; }
.rb-section.tight { padding: 48px 0; }
.rb-section.white { background: #fff; }
.rb-section.green {
    background: radial-gradient(1200px 400px at 85% -10%, rgba(242, 165, 26, .12), transparent 60%), var(--rb-green-900);
    color: rgba(255, 255, 255, .82);
}
.rb-section.green h2, .rb-section.green h3 { color: #fff; }
@media (max-width: 767.98px) { .rb-section { padding: 48px 0; } .rb-section.tight { padding: 32px 0; } }

.rb-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--rb-saffron-d);
}
.rb-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.rb-section.green .rb-eyebrow { color: var(--rb-saffron); }

.rb-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 32px; flex-wrap: wrap; }
.rb-sec-head h2 { font-family: var(--rb-display); font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin: 6px 0 4px; }
.rb-sec-head p { margin: 0; color: var(--rb-muted); max-width: 560px; }
.rb-sec-head.center { flex-direction: column; align-items: center; text-align: center; }

.rb-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rb-green-700); }
.rb-link-arrow i { transition: transform .2s; }
.rb-link-arrow:hover i { transform: translateX(4px); }

/* Page head (inner pages) */
.rb-page-head {
    position: relative; overflow: hidden;
    padding: 46px 0 52px;
    background:
        radial-gradient(800px 300px at 100% 0%, rgba(242, 165, 26, .22), transparent 60%),
        radial-gradient(600px 300px at 0% 120%, rgba(11, 138, 74, .45), transparent 60%),
        linear-gradient(135deg, var(--rb-green-800), var(--rb-green-900));
    color: rgba(255, 255, 255, .82);
}
.rb-page-head::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q15 8 30 20 T60 20 T90 20 T120 20' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 120px 40px;
    mask-image: linear-gradient(to left, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
}
.rb-page-head .container { position: relative; z-index: 1; }
.rb-page-head h1 { color: #fff; font-family: var(--rb-display); font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 10px 0 6px; }
.rb-page-head p { margin: 0; max-width: 640px; font-size: 1.04rem; }
.rb-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.rb-crumbs a { color: rgba(255, 255, 255, .75); }
.rb-crumbs a:hover { color: var(--rb-saffron); }
.rb-crumbs li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; margin-right: 6px; opacity: .6; }
.rb-crumbs li:last-child { color: #fff; font-weight: 600; }
@media (max-width: 767.98px) { .rb-page-head { padding: 30px 0 34px; } }

/* Generic card */
.rb-card {
    background: #fff; border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius-lg);
    box-shadow: var(--rb-shadow-sm);
}
.rb-card-pad { padding: 28px; }
@media (max-width: 575.98px) { .rb-card-pad { padding: 20px; } }
.rb-card-title { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin: 0 0 4px; }
.rb-card-title i { color: var(--rb-green-600); }
.rb-card-sub { color: var(--rb-muted); font-size: .92rem; margin: 0; }
.rb-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--rb-line); flex-wrap: wrap; }

/* Media frame with placeholder (images that fail to load fall back to this) */
.rb-media {
    position: relative; overflow: hidden; display: block;
    background:
        linear-gradient(135deg, var(--rb-green-50), #eef3ea);
}
.rb-media::before {
    content: "\F4C9"; font-family: "bootstrap-icons";
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 2.2rem; color: #b7cdbf;
}
.rb-media > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.rb-media.contain > img { object-fit: contain; padding: 10px; }

/* Empty state */
.rb-empty { text-align: center; padding: 56px 20px; }
.rb-empty-icon {
    width: 88px; height: 88px; border-radius: 28px; margin: 0 auto 18px;
    display: grid; place-items: center; font-size: 2.2rem;
    background: var(--rb-green-100); color: var(--rb-green-600);
}
.rb-empty h3, .rb-empty h4 { font-size: 1.3rem; margin-bottom: 6px; }
.rb-empty p { color: var(--rb-muted); max-width: 420px; margin: 0 auto 20px; }

/* Pills */
.rb-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
    background: #eef1ee; color: #475467;
}
.rb-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rb-pill.no-dot::before { display: none; }
.rb-pill.green   { background: #e3f4ea; color: #087443; }
.rb-pill.amber   { background: #fff4dc; color: #a15c07; }
.rb-pill.blue    { background: #e8efff; color: #1d4ed8; }
.rb-pill.red     { background: #fee4e2; color: #b42318; }
.rb-pill.gray    { background: #eef1ee; color: #475467; }
.rb-pill.gold    { background: linear-gradient(135deg, #fde7b0, #f6c25b); color: #6b4300; }

/* Pagination */
.pagination { --bs-pagination-border-radius: 12px; --bs-pagination-color: var(--rb-green-700); --bs-pagination-active-bg: var(--rb-green-600); --bs-pagination-active-border-color: var(--rb-green-600); --bs-pagination-hover-bg: var(--rb-green-50); --bs-pagination-focus-box-shadow: 0 0 0 4px rgba(11,138,74,.12); gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-link { border-radius: 12px !important; min-width: 42px; text-align: center; font-weight: 600; }
.rb-pagination nav > div:first-child { display: none !important; }
.rb-pagination nav > div:last-child { display: flex !important; flex-direction: column; align-items: center; gap: 10px; }
.rb-pagination nav p.small { color: var(--rb-muted); margin: 0; }

/* ---------------------------------------------------------------------
   HOME — hero slider
   --------------------------------------------------------------------- */
.rb-hero { padding: 22px 0 0; }
.rb-hero-frame {
    position: relative; overflow: hidden;
    border-radius: 28px; background: var(--rb-green-900);
    box-shadow: var(--rb-shadow-lg);
}
.rb-hero .carousel-item { aspect-ratio: 1190 / 476; background: var(--rb-green-900); }
.rb-hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-hero-caption {
    position: absolute; left: 22px; bottom: 22px; z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px 9px 10px; border-radius: 999px;
    background: rgba(6, 43, 28, .78); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-weight: 600; font-size: .95rem;
}
.rb-hero-caption i { width: 28px; height: 28px; border-radius: 50%; background: var(--rb-saffron); color: var(--rb-ink); display: grid; place-items: center; font-size: .85rem; }
.rb-hero .carousel-indicators { margin: 0; right: 22px; left: auto; bottom: 26px; gap: 6px; justify-content: flex-end; }
.rb-hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 999px; border: 0; margin: 0; background: rgba(255, 255, 255, .55); opacity: 1; transition: width .3s, background .3s; }
.rb-hero .carousel-indicators .active { width: 30px; background: var(--rb-saffron); }
.rb-hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .9); color: var(--rb-ink);
    display: grid; place-items: center; font-size: 1.1rem;
    box-shadow: var(--rb-shadow); opacity: 0; transition: opacity .25s, transform .25s;
}
.rb-hero-nav.prev { left: 18px; } .rb-hero-nav.next { right: 18px; }
.rb-hero-frame:hover .rb-hero-nav { opacity: 1; }
.rb-hero-nav:hover { background: var(--rb-saffron); }

.rb-hero-fallback {
    position: relative; overflow: hidden; border-radius: 28px;
    padding: clamp(36px, 7vw, 84px) clamp(24px, 6vw, 72px);
    background:
        radial-gradient(700px 360px at 90% 10%, rgba(242,165,26,.32), transparent 60%),
        linear-gradient(135deg, var(--rb-green-700), var(--rb-green-900));
    color: rgba(255,255,255,.85);
}
.rb-hero-fallback h1 { color: #fff; font-family: var(--rb-display); font-size: clamp(2rem, 5vw, 3.4rem); max-width: 760px; }
.rb-hero-fallback p { font-size: 1.1rem; max-width: 620px; }

@media (max-width: 767.98px) {
    .rb-hero { padding-top: 12px; }
    .rb-hero-frame, .rb-hero-fallback { border-radius: 18px; }
    .rb-hero-caption { left: 10px; bottom: 10px; font-size: .78rem; padding: 6px 12px 6px 6px; }
    .rb-hero-caption i { width: 22px; height: 22px; font-size: .7rem; }
    .rb-hero .carousel-indicators { right: 12px; bottom: 16px; }
    .rb-hero .carousel-indicators [data-bs-target] { width: 7px; height: 7px; }
    .rb-hero .carousel-indicators .active { width: 18px; }
    .rb-hero-nav { display: none; }
    .rb-hero-caption { display: none; }
}

/* Trust strip */
.rb-trust {
    position: relative; z-index: 2;
    margin-top: 22px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border: 1px solid var(--rb-line); border-radius: 22px;
    box-shadow: var(--rb-shadow);
}
.rb-trust-item { display: flex; gap: 14px; align-items: center; padding: 20px 22px; }
.rb-trust-item + .rb-trust-item { border-left: 1px solid var(--rb-line); }
.rb-trust-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--rb-green-100); color: var(--rb-green-700); }
.rb-trust-item:nth-child(2) .rb-trust-ico { background: #fff1d6; color: var(--rb-saffron-d); }
.rb-trust-item:nth-child(3) .rb-trust-ico { background: #e8eeff; color: var(--rb-navy); }
.rb-trust-item:nth-child(4) .rb-trust-ico { background: #ffe6de; color: var(--rb-sun); }
.rb-trust-item strong { display: block; color: var(--rb-ink); font-size: 1.02rem; line-height: 1.25; }
.rb-trust-item span { font-size: .86rem; color: var(--rb-muted); }
@media (max-width: 991.98px) {
    .rb-trust { grid-template-columns: repeat(2, 1fr); }
    .rb-trust-item:nth-child(3) { border-left: 0; }
    .rb-trust-item:nth-child(n+3) { border-top: 1px solid var(--rb-line); }
}
@media (max-width: 575.98px) {
    .rb-trust { border-radius: 18px; }
    .rb-trust-item { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .rb-trust-ico { width: 40px; height: 40px; flex-basis: 40px; font-size: 1.1rem; border-radius: 12px; }
    .rb-trust-item strong { font-size: .95rem; }
    .rb-trust-item span { font-size: .8rem; }
}

/* Intro / about block on home */
.rb-intro-media { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--rb-shadow-lg); aspect-ratio: 4/3; }
.rb-intro-media .rb-media { height: 100%; }
.rb-intro-badge {
    position: absolute; left: 18px; bottom: 18px; z-index: 2;
    background: #fff; border-radius: 18px; padding: 14px 18px;
    box-shadow: var(--rb-shadow); display: flex; gap: 12px; align-items: center;
}
.rb-intro-badge strong { font-family: var(--rb-display); font-size: 1.6rem; color: var(--rb-green-700); line-height: 1; }
.rb-intro-badge span { font-size: .85rem; color: var(--rb-muted); line-height: 1.2; }
.rb-checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--rb-ink); }
.rb-checklist i { color: var(--rb-green-500); font-size: 1.15rem; line-height: 1.4; }
@media (max-width: 575.98px) { .rb-checklist { grid-template-columns: 1fr; } }

/* Activity pillars */
.rb-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rb-pillar {
    position: relative; padding: 26px 22px; border-radius: 22px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .25s, background .25s;
}
.rb-pillar:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); }
.rb-pillar-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--rb-saffron); color: var(--rb-ink); margin-bottom: 16px; }
.rb-pillar h3 { font-size: 1.15rem; margin-bottom: 6px; }
.rb-pillar p { font-size: .93rem; margin: 0; color: rgba(255, 255, 255, .72); }
@media (max-width: 991.98px) { .rb-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .rb-pillars { grid-template-columns: 1fr; } }

/* Category chips */
.rb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px 8px 8px; border-radius: 999px;
    background: #fff; border: 1px solid var(--rb-line);
    color: var(--rb-ink); font-weight: 600;
    transition: all .2s;
}
.rb-chip i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--rb-green-100); color: var(--rb-green-700); transition: all .2s; }
.rb-chip:hover, .rb-chip.active { border-color: var(--rb-green-600); color: var(--rb-green-800); box-shadow: var(--rb-shadow-sm); }
.rb-chip:hover i, .rb-chip.active i { background: var(--rb-green-600); color: #fff; }
.rb-chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.rb-chips.scroll::-webkit-scrollbar { display: none; }
.rb-chips.scroll .rb-chip { flex: 0 0 auto; }

/* ---------------------------------------------------------------------
   Product card
   --------------------------------------------------------------------- */
.rb-product {
    position: relative; height: 100%;
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--rb-line); border-radius: 22px;
    overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rb-product:hover { transform: translateY(-4px); box-shadow: var(--rb-shadow-lg); border-color: transparent; }
.rb-product .rb-media { aspect-ratio: 1 / 1; background: linear-gradient(160deg, #f5f8f3, #eaf1e8); }
.rb-product .rb-media > img { object-fit: contain; padding: 14px; }
.rb-product:hover .rb-media > img { transform: scale(1.05); }
.rb-product-tags { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rb-tag { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--rb-sun); color: #fff; box-shadow: 0 4px 10px -4px rgba(232, 70, 28, .6); }
.rb-tag.out { background: var(--rb-ink); box-shadow: none; }
.rb-wish {
    position: absolute; top: 10px; right: 10px; z-index: 3; margin: 0;
}
.rb-wish button, .rb-wish a {
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .95); color: var(--rb-ink);
    box-shadow: 0 4px 12px -4px rgba(6, 43, 28, .25); transition: all .2s;
}
.rb-wish button:hover, .rb-wish a:hover { color: #e11d48; transform: scale(1.08); }
.rb-wish .is-on { color: #e11d48; }
.rb-product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.rb-product-cat { font-size: .78rem; font-weight: 700; color: var(--rb-saffron-d); text-transform: uppercase; letter-spacing: .05em; }
.rb-product-name { font-size: 1.02rem; font-weight: 700; margin: 4px 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-product-name a { color: var(--rb-ink); }
.rb-product-name a:hover { color: var(--rb-green-700); }
.rb-product-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rb-product-desc { font-size: .86rem; color: var(--rb-muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.rb-price strong { font-size: 1.22rem; color: var(--rb-green-700); font-weight: 800; letter-spacing: -.01em; }
.rb-price del { color: #98a29c; font-size: .88rem; }
.rb-stock { font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: #087443; }
.rb-stock.out { color: #b42318; }
.rb-product-foot { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 2; }
.rb-product-foot form { flex: 1; margin: 0; }
.rb-product-foot .btn { width: 100%; padding: .55rem .8rem; font-size: .9rem; }
@media (max-width: 575.98px) {
    .rb-product { border-radius: 18px; }
    .rb-product-body { padding: 12px 12px 14px; }
    .rb-product-name { font-size: .93rem; }
    .rb-product-desc { display: none; }
    .rb-price strong { font-size: 1.05rem; }
    .rb-product-foot .btn { font-size: .82rem; padding: .5rem .5rem; }
    .rb-product-foot .btn .lbl-long { display: none; }
    .rb-wish button, .rb-wish a { width: 34px; height: 34px; }
}
.rb-product-foot .lbl-short { display: none; }
@media (max-width: 575.98px) { .rb-product-foot .lbl-short { display: inline; } }

/* Filter bar */
.rb-filter {
    background: #fff; border: 1px solid var(--rb-line); border-radius: 20px;
    padding: 14px; box-shadow: var(--rb-shadow);
    display: grid; grid-template-columns: 1fr 260px auto; gap: 10px;
    margin-top: -34px; position: relative; z-index: 3;
}
.rb-filter .form-control, .rb-filter .form-select { border-color: transparent; background-color: var(--rb-paper); }
.rb-filter .form-control:focus, .rb-filter .form-select:focus { background-color: #fff; }
@media (max-width: 767.98px) { .rb-filter { grid-template-columns: 1fr; margin-top: -24px; } }
.rb-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.rb-result-bar span { color: var(--rb-muted); font-size: .93rem; }

/* Product detail */
.rb-pd-gallery { position: sticky; top: calc(var(--rb-header-h) + 20px); border-radius: 26px; overflow: hidden; border: 1px solid var(--rb-line); background: #fff; }
.rb-pd-gallery .rb-media { aspect-ratio: 1/1; background: linear-gradient(160deg, #f5f8f3, #eaf1e8); }
.rb-pd-gallery .rb-media > img { object-fit: contain; padding: 28px; }
.rb-pd-title { font-family: var(--rb-display); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 10px 0 14px; }
.rb-pd-price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; background: var(--rb-green-50); border: 1px solid #d6e9dc; }
.rb-pd-price strong { font-size: 2rem; font-weight: 800; color: var(--rb-green-700); line-height: 1; }
.rb-pd-price del { color: #98a29c; font-size: 1.05rem; }
.rb-pd-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.rb-pd-meta div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--rb-line); background: #fff; }
.rb-pd-meta small { display: block; color: var(--rb-muted); font-size: .78rem; }
.rb-pd-meta strong { color: var(--rb-ink); font-size: .96rem; }
@media (max-width: 575.98px) { .rb-pd-meta { grid-template-columns: 1fr 1fr; } }
.rb-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rb-line); border-radius: 999px; background: #fff; overflow: hidden; height: 52px; }
.rb-qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 1.2rem; color: var(--rb-ink); }
.rb-qty button:hover { background: var(--rb-green-50); color: var(--rb-green-700); }
.rb-qty input { width: 52px; border: 0; text-align: center; font-weight: 700; font-size: 1.05rem; background: transparent; -moz-appearance: textfield; }
.rb-qty input::-webkit-outer-spin-button, .rb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rb-qty input:focus { outline: none; }
.rb-pd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rb-pd-actions .btn-lg { height: 52px; display: inline-flex; align-items: center; gap: 8px; }
.rb-prose { color: var(--rb-text); font-size: 1.02rem; line-height: 1.85; overflow-wrap: anywhere; }
.rb-prose p { margin-bottom: 1rem; }
.rb-prose h2, .rb-prose h3, .rb-prose h4 { margin: 1.6rem 0 .6rem; }
.rb-prose ul, .rb-prose ol { padding-left: 1.3rem; }
.rb-prose img { border-radius: 14px; }
.rb-prose a { text-decoration: underline; text-underline-offset: 3px; }
.rb-prose table { width: 100%; }

/* ---------------------------------------------------------------------
   Service card
   --------------------------------------------------------------------- */
.rb-service {
    position: relative; height: 100%; display: flex; flex-direction: column;
    background: #fff; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--rb-line);
    transition: transform .25s, box-shadow .25s;
}
.rb-service:hover { transform: translateY(-5px); box-shadow: var(--rb-shadow-lg); }
.rb-service .rb-media { aspect-ratio: 16 / 10; }
.rb-service:hover .rb-media > img { transform: scale(1.06); }
.rb-service-num {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255,255,255,.95); color: var(--rb-green-700); font-weight: 800; font-size: .95rem;
    box-shadow: var(--rb-shadow-sm);
}
.rb-service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rb-service-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.rb-service-body h3 a { color: var(--rb-ink); }
.rb-service-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rb-service-body p { color: var(--rb-muted); font-size: .95rem; margin-bottom: 18px; }
.rb-service-body .rb-link-arrow { margin-top: auto; }
.rb-service:hover .rb-link-arrow i { transform: translateX(4px); }

/* Service / notice / blog detail */
.rb-article { background: #fff; border: 1px solid var(--rb-line); border-radius: 28px; overflow: hidden; box-shadow: var(--rb-shadow); }
.rb-article-cover { max-height: 520px; display: flex; justify-content: center; background: #0d1f17; }
.rb-article-cover img { width: 100%; max-height: 520px; object-fit: contain; }
.rb-article-body { padding: clamp(22px, 4vw, 48px); }
.rb-article-body h1 { font-family: var(--rb-display); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 8px 0 12px; }
.rb-article-lead { font-size: 1.12rem; color: var(--rb-muted); margin-bottom: 0; }
.rb-article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; color: var(--rb-muted); }
.rb-article-meta i { color: var(--rb-green-600); margin-right: 4px; }
.rb-divider { height: 1px; background: var(--rb-line); margin: 26px 0; border: 0; }
.rb-side-card { position: sticky; top: calc(var(--rb-header-h) + 20px); }
.rb-cta-card {
    border-radius: 24px; padding: 26px;
    background: radial-gradient(400px 200px at 100% 0, rgba(242,165,26,.25), transparent 60%), var(--rb-green-800);
    color: rgba(255,255,255,.85);
}
.rb-cta-card h3 { color: #fff; font-size: 1.25rem; }
.rb-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rb-mini-list a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; color: var(--rb-ink); font-weight: 600; font-size: .94rem; }
.rb-mini-list a:hover { background: var(--rb-green-50); color: var(--rb-green-800); }
.rb-mini-list .rb-media { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; }
.rb-mini-list .rb-media::before { font-size: 1.2rem; }

/* ---------------------------------------------------------------------
   Branch cards
   --------------------------------------------------------------------- */
.rb-branch-hq {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
    border-radius: 28px; background: var(--rb-green-800); color: rgba(255,255,255,.82);
    box-shadow: var(--rb-shadow-lg);
}
.rb-branch-hq-main { padding: clamp(24px, 4vw, 44px); position: relative; z-index: 1; }
.rb-branch-hq-main h2 { color: #fff; font-family: var(--rb-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 8px; }
.rb-branch-hq-side { padding: clamp(24px, 4vw, 44px); background: rgba(0,0,0,.18); display: grid; gap: 14px; align-content: center; }
.rb-branch-hq::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(242,165,26,.35), transparent 65%); }
.rb-hq-row { display: flex; gap: 14px; align-items: flex-start; }
.rb-hq-row i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--rb-saffron); font-size: 1.15rem; }
.rb-hq-row small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.rb-hq-row a, .rb-hq-row span { color: #fff; font-weight: 600; }
.rb-hq-phones { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 767.98px) { .rb-branch-hq { grid-template-columns: 1fr; border-radius: 22px; } }

.rb-branch-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 40px 0 20px; }
.rb-branch-tools h2 { font-family: var(--rb-display); font-size: 1.6rem; margin: 0; }
.rb-branch-search { width: min(360px, 100%); }

.rb-branch {
    height: 100%; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--rb-line); border-radius: 22px; padding: 22px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rb-branch:hover { transform: translateY(-4px); box-shadow: var(--rb-shadow); border-color: #cfe2d5; }
.rb-branch-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.rb-branch-ico { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; background: var(--rb-green-100); color: var(--rb-green-700); }
.rb-branch-top h3 { font-size: 1.12rem; margin: 0; }
.rb-branch-top small { color: var(--rb-muted); font-size: .8rem; }
.rb-branch-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--rb-line); font-size: .94rem; }
.rb-branch-row i { color: var(--rb-green-600); margin-top: 3px; }
.rb-branch-row a { color: var(--rb-ink); font-weight: 600; }
.rb-branch-row a:hover { color: var(--rb-green-700); }
.rb-branch-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.rb-branch-actions .btn { flex: 1; font-size: .88rem; }

/* ---------------------------------------------------------------------
   Notice cards
   --------------------------------------------------------------------- */
.rb-notice {
    position: relative; display: flex; gap: 18px; align-items: stretch;
    background: #fff; border: 1px solid var(--rb-line); border-radius: 22px; padding: 14px;
    transition: transform .25s, box-shadow .25s; height: 100%;
}
.rb-notice:hover { transform: translateY(-3px); box-shadow: var(--rb-shadow); }
.rb-notice .rb-media { width: 150px; flex: 0 0 150px; border-radius: 16px; aspect-ratio: 4/3; align-self: flex-start; }
.rb-notice-date {
    width: 76px; flex: 0 0 76px; border-radius: 16px; align-self: flex-start;
    background: var(--rb-green-700); color: #fff; text-align: center; padding: 12px 6px; line-height: 1.1;
}
.rb-notice-date strong { display: block; font-size: 1.7rem; font-weight: 800; }
.rb-notice-date span { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.75); }
.rb-notice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 4px 4px 4px 0; }
.rb-notice-body h3 { font-size: 1.1rem; margin: 6px 0 6px; }
.rb-notice-body h3 a { color: var(--rb-ink); }
.rb-notice-body h3 a::after { content: ""; position: absolute; inset: 0; }
.rb-notice-body p { color: var(--rb-muted); font-size: .92rem; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rb-notice-body .rb-link-arrow { margin-top: auto; font-size: .92rem; }
@media (max-width: 575.98px) {
    .rb-notice { flex-direction: column; gap: 12px; }
    .rb-notice .rb-media { width: 100%; flex-basis: auto; aspect-ratio: 16/9; }
    .rb-notice-body { padding: 0 6px 6px; }
}

/* Home notice board */
.rb-board { display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; align-items: start; }
.rb-board-list { background: #fff; border: 1px solid var(--rb-line); border-radius: 24px; overflow: hidden; }
.rb-board-item { display: flex; gap: 16px; padding: 18px 22px; align-items: center; color: var(--rb-ink); border-bottom: 1px solid var(--rb-line); }
.rb-board-item:last-child { border-bottom: 0; }
.rb-board-item:hover { background: var(--rb-green-50); color: var(--rb-ink); }
.rb-board-item .ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: grid; place-items: center; background: #fff1d6; color: var(--rb-saffron-d); font-size: 1.1rem; }
.rb-board-item strong { display: block; font-size: 1rem; }
.rb-board-item small { color: var(--rb-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rb-board-item .bi-arrow-right { margin-left: auto; color: var(--rb-muted); }
@media (max-width: 991.98px) { .rb-board { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Blog cards
   --------------------------------------------------------------------- */
.rb-blog { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rb-line); border-radius: 22px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.rb-blog:hover { transform: translateY(-4px); box-shadow: var(--rb-shadow-lg); }
.rb-blog .rb-media { aspect-ratio: 16/10; }
.rb-blog:hover .rb-media > img { transform: scale(1.05); }
.rb-blog-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.rb-blog-body .date { font-size: .84rem; color: var(--rb-muted); }
.rb-blog-body h3 { font-size: 1.15rem; margin: 8px 0; line-height: 1.4; }
.rb-blog-body h3 a { color: var(--rb-ink); }
.rb-blog-body h3 a::after { content: ""; position: absolute; inset: 0; }
.rb-blog-body p { color: var(--rb-muted); font-size: .93rem; }
.rb-blog-body .rb-link-arrow { margin-top: auto; }

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */
.rb-leader { background: #fff; border: 1px solid var(--rb-line); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 220px 1fr; height: 100%; }
.rb-leader .rb-media { height: 100%; min-height: 260px; }
.rb-leader-body { padding: 26px; display: flex; flex-direction: column; }
.rb-leader-body h3 { font-family: var(--rb-display); font-size: 1.35rem; margin: 6px 0 2px; }
.rb-leader-role { color: var(--rb-saffron-d); font-weight: 700; font-size: .92rem; }
.rb-leader-body p { color: var(--rb-muted); margin: 12px 0 16px; }
.rb-leader-contact { margin-top: auto; display: grid; gap: 8px; font-size: .93rem; }
.rb-leader-contact div { display: flex; gap: 10px; align-items: center; }
.rb-leader-contact i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--rb-green-100); color: var(--rb-green-700); }
.rb-leader-contact a { color: var(--rb-ink); font-weight: 600; }
@media (max-width: 575.98px) { .rb-leader { grid-template-columns: 1fr; } .rb-leader .rb-media { aspect-ratio: 4/3; min-height: 0; } }

.rb-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rb-stat { text-align: center; padding: 22px 14px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.rb-stat strong { display: block; font-family: var(--rb-display); font-size: 2.2rem; color: var(--rb-saffron); line-height: 1.1; }
.rb-stat span { font-size: .92rem; }
@media (max-width: 767.98px) { .rb-stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------
   Auth pages
   --------------------------------------------------------------------- */
.rb-auth { padding: clamp(24px, 5vw, 64px) 0; }
.rb-auth-shell {
    display: grid; grid-template-columns: 1fr 1.05fr;
    background: #fff; border-radius: 30px; overflow: hidden;
    box-shadow: var(--rb-shadow-lg); border: 1px solid var(--rb-line);
    max-width: 1040px; margin: 0 auto;
}
.rb-auth-art {
    position: relative; overflow: hidden;
    padding: 44px 40px; color: rgba(255,255,255,.82);
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(242,165,26,.35), transparent 60%),
        radial-gradient(500px 300px at 0% 100%, rgba(11,138,74,.55), transparent 60%),
        linear-gradient(160deg, var(--rb-green-700), var(--rb-green-900));
    display: flex; flex-direction: column;
}
.rb-auth-art::after {
    content: ""; position: absolute; left: -10%; right: -10%; bottom: -30px; height: 180px; opacity: .14;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30'%3E%3Cpath d='M0 15 Q15 3 30 15 T60 15 T90 15 T120 15' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E");
    background-size: 120px 30px;
}
.rb-auth-art .rb-brand-logo { width: 64px; height: 64px; flex-basis: 64px; border-radius: 18px; box-shadow: none; }
.rb-auth-art h2 { color: #fff; font-family: var(--rb-display); font-size: 2rem; margin: 28px 0 10px; }
.rb-auth-art ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.rb-auth-art li { display: flex; gap: 12px; align-items: center; }
.rb-auth-art li i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--rb-saffron); }
.rb-auth-art .foot { margin-top: auto; padding-top: 32px; font-size: .86rem; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.rb-auth-form { padding: clamp(26px, 5vw, 52px); }
.rb-auth-form h1 { font-family: var(--rb-display); font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 6px; }
.rb-auth-form .lead { color: var(--rb-muted); font-size: 1rem; margin-bottom: 26px; }
.rb-auth-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: var(--rb-green-100); color: var(--rb-green-700); margin-bottom: 18px; }
.rb-auth-alt { text-align: center; margin-top: 22px; color: var(--rb-muted); font-size: .95rem; }
.rb-auth-alt a { font-weight: 700; }
.rb-sep { display: flex; align-items: center; gap: 12px; color: var(--rb-muted); font-size: .84rem; margin: 22px 0; }
.rb-sep::before, .rb-sep::after { content: ""; flex: 1; height: 1px; background: var(--rb-line); }
.rb-strength { height: 6px; border-radius: 6px; background: var(--rb-line); overflow: hidden; margin-top: 8px; }
.rb-strength > span { display: block; height: 100%; width: 0; background: #d92d20; transition: width .3s, background .3s; }
@media (max-width: 991.98px) {
    .rb-auth-shell { grid-template-columns: 1fr; max-width: 520px; border-radius: 24px; }
    .rb-auth-art { display: none; }
}

/* ---------------------------------------------------------------------
   Account area (dashboard / orders / wishlist / profile)
   --------------------------------------------------------------------- */
.rb-account { padding: 36px 0 64px; }
.rb-acc-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.rb-acc-side { position: sticky; top: calc(var(--rb-header-h) + 20px); background: #fff; border: 1px solid var(--rb-line); border-radius: 24px; overflow: hidden; }
.rb-acc-user { padding: 24px 20px; text-align: center; background: radial-gradient(300px 140px at 100% 0, rgba(242,165,26,.28), transparent 60%), linear-gradient(160deg, var(--rb-green-700), var(--rb-green-900)); color: rgba(255,255,255,.78); }
.rb-acc-user .rb-avatar { margin: 0 auto 12px; box-shadow: 0 0 0 4px rgba(255,255,255,.18); background: var(--rb-saffron); color: var(--rb-ink); }
.rb-acc-user strong { display: block; color: #fff; font-size: 1.1rem; }
.rb-acc-user small { word-break: break-all; }
.rb-acc-menu { list-style: none; margin: 0; padding: 10px; display: grid; gap: 2px; }
.rb-acc-menu a, .rb-acc-menu button {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 14px; border: 0; background: transparent;
    color: var(--rb-text); font-weight: 600; text-align: left;
}
.rb-acc-menu i { font-size: 1.1rem; color: var(--rb-muted); width: 20px; text-align: center; }
.rb-acc-menu a:hover { background: var(--rb-green-50); color: var(--rb-green-800); }
.rb-acc-menu a.active { background: var(--rb-green-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(14,107,65,.8); }
.rb-acc-menu a.active i { color: #fff; }
.rb-acc-menu .count { margin-left: auto; font-size: .76rem; padding: 1px 9px; border-radius: 999px; background: var(--rb-green-100); color: var(--rb-green-700); }
.rb-acc-menu a.active .count { background: rgba(255,255,255,.22); color: #fff; }
.rb-acc-menu button { color: #b42318; }
.rb-acc-menu button i { color: #d92d20; }
.rb-acc-menu button:hover { background: #fef3f2; }
.rb-acc-menu .sep { height: 1px; background: var(--rb-line); margin: 6px 8px; }

.rb-acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.rb-acc-head h1 { font-family: var(--rb-display); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 4px 0 2px; }
.rb-acc-head p { color: var(--rb-muted); margin: 0; }

.rb-acc-tabs { display: none; }
@media (max-width: 991.98px) {
    .rb-acc-grid { grid-template-columns: 1fr; }
    .rb-acc-side { display: none; }
    .rb-acc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -6px -12px 20px; padding: 6px 12px; }
    .rb-acc-tabs::-webkit-scrollbar { display: none; }
    .rb-acc-tabs a { flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--rb-line); color: var(--rb-text); font-weight: 600; font-size: .92rem; }
    .rb-acc-tabs a.active { background: var(--rb-green-600); border-color: var(--rb-green-600); color: #fff; }
}

.rb-welcome {
    position: relative; overflow: hidden;
    border-radius: 26px; padding: 28px 30px;
    background: radial-gradient(500px 220px at 100% 0, rgba(242,165,26,.32), transparent 60%), linear-gradient(135deg, var(--rb-green-700), var(--rb-green-900));
    color: rgba(255,255,255,.82); margin-bottom: 22px;
    display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.rb-welcome h1 { color: #fff; font-family: var(--rb-display); font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0; }
.rb-welcome p { margin: 0; }

.rb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.rb-kpi { background: #fff; border: 1px solid var(--rb-line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rb-kpi-top { display: flex; justify-content: space-between; align-items: center; }
.rb-kpi-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; }
.rb-kpi small { color: var(--rb-muted); font-weight: 600; font-size: .86rem; }
.rb-kpi strong { font-size: 1.9rem; font-weight: 800; color: var(--rb-ink); line-height: 1; }
.ico-green { background: var(--rb-green-100); color: var(--rb-green-700); }
.ico-amber { background: #fff1d6; color: var(--rb-saffron-d); }
.ico-blue  { background: #e8eeff; color: #1d4ed8; }
.ico-rose  { background: #ffe4ea; color: #e11d48; }
.ico-red   { background: #fee4e2; color: #b42318; }
@media (max-width: 1199.98px) { .rb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .rb-kpi { padding: 14px; } .rb-kpi strong { font-size: 1.5rem; } }

.rb-status-bars { display: grid; gap: 14px; }
.rb-status-bars .row-l { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.rb-bar { height: 8px; border-radius: 8px; background: #eef1ee; overflow: hidden; }
.rb-bar > span { display: block; height: 100%; border-radius: 8px; }

.rb-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rb-quick a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--rb-line); color: var(--rb-ink); font-weight: 700; transition: all .2s; }
.rb-quick a:hover { border-color: #c9dccf; background: var(--rb-green-50); transform: translateY(-2px); }
.rb-quick a span { font-weight: 500; font-size: .84rem; color: var(--rb-muted); }

/* Tables (frontend) */
.rb-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.rb-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rb-muted); font-weight: 700; padding: 12px 18px; background: #fafbf8; border-bottom: 1px solid var(--rb-line); white-space: nowrap; }
.rb-table td { padding: 16px 18px; border-bottom: 1px solid var(--rb-line); vertical-align: middle; }
.rb-table tbody tr:last-child td { border-bottom: 0; }
.rb-table tbody tr:hover td { background: #fbfcfa; }
@media (max-width: 767.98px) {
    .rb-table.stack thead { display: none; }
    .rb-table.stack, .rb-table.stack tbody, .rb-table.stack tr, .rb-table.stack td { display: block; width: 100%; }
    .rb-table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--rb-line); }
    .rb-table.stack tbody tr:last-child { border-bottom: 0; }
    .rb-table.stack td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .rb-table.stack td::before { content: attr(data-label); color: var(--rb-muted); font-size: .84rem; font-weight: 600; text-align: left; }
    .rb-table.stack td.td-actions { padding-top: 10px; }
    .rb-table.stack td.td-actions::before { display: none; }
    .rb-table.stack td.td-actions .btn { width: 100%; }
    .rb-table.stack tbody tr:hover td { background: transparent; }
}

.rb-kv { display: grid; gap: 0; }
.rb-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--rb-line); font-size: .95rem; }
.rb-kv > div:last-child { border-bottom: 0; }
.rb-kv span { color: var(--rb-muted); }
.rb-kv strong { color: var(--rb-ink); text-align: right; overflow-wrap: anywhere; }

/* Order progress */
.rb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 4px 0; }
.rb-step { position: relative; text-align: center; font-size: .82rem; font-weight: 600; color: var(--rb-muted); }
.rb-step i { position: relative; z-index: 1; width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #eef1ee; color: #98a29c; font-size: 1.05rem; border: 3px solid #fff; }
.rb-step::before { content: ""; position: absolute; top: 20px; left: -50%; right: 50%; height: 3px; background: #eef1ee; }
.rb-step:first-child::before { display: none; }
.rb-step.done { color: var(--rb-green-700); }
.rb-step.done i { background: var(--rb-green-600); color: #fff; }
.rb-step.done::before { background: var(--rb-green-600); }
.rb-step.cancel i { background: #d92d20; color: #fff; }

/* Cart / checkout */
.rb-cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--rb-line); }
.rb-cart-item:last-child { border-bottom: 0; }
.rb-cart-item .rb-media { width: 96px; height: 96px; border-radius: 18px; }
.rb-cart-item .rb-media > img { object-fit: contain; padding: 6px; }
.rb-cart-item h3 { font-size: 1.04rem; margin: 0 0 4px; }
.rb-cart-item h3 a { color: var(--rb-ink); }
.rb-cart-unit { color: var(--rb-muted); font-size: .9rem; }
.rb-cart-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.rb-cart-ctrl .rb-qty { height: 42px; }
.rb-cart-ctrl .rb-qty button { width: 36px; }
.rb-cart-ctrl .rb-qty input { width: 42px; font-size: .98rem; }
.rb-cart-line { text-align: right; }
.rb-cart-line strong { display: block; font-size: 1.15rem; color: var(--rb-ink); }
.rb-remove { border: 0; background: transparent; color: #98a29c; font-size: .86rem; font-weight: 600; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.rb-remove:hover { color: #b42318; }
@media (max-width: 575.98px) {
    .rb-cart-item { grid-template-columns: 76px 1fr; padding: 16px; gap: 14px; }
    .rb-cart-item .rb-media { width: 76px; height: 76px; border-radius: 14px; }
    .rb-cart-line { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; padding-top: 10px; border-top: 1px dashed var(--rb-line); }
}
.rb-summary { position: sticky; top: calc(var(--rb-header-h) + 20px); }
.rb-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 20px; border-top: 1px solid var(--rb-line); margin-top: 6px; }
.rb-summary-total strong { font-size: 1.6rem; color: var(--rb-green-700); font-weight: 800; }
.rb-secure { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--rb-muted); font-size: .84rem; margin-top: 14px; }

.rb-pay-opt { position: relative; display: block; cursor: pointer; margin: 0; }
.rb-pay-opt input { position: absolute; opacity: 0; }
.rb-pay-opt .box { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1.5px solid var(--rb-line); background: #fff; transition: all .2s; }
.rb-pay-opt .box i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: grid; place-items: center; background: #f1f4f1; color: var(--rb-green-700); font-size: 1.2rem; }
.rb-pay-opt .box strong { display: block; color: var(--rb-ink); }
.rb-pay-opt .box small { color: var(--rb-muted); }
.rb-pay-opt .box::after { content: ""; margin-left: auto; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; border: 2px solid #c8d2cb; }
.rb-pay-opt input:checked + .box { border-color: var(--rb-green-600); background: var(--rb-green-50); box-shadow: 0 0 0 4px rgba(11,138,74,.1); }
.rb-pay-opt input:checked + .box i { background: var(--rb-green-600); color: #fff; }
.rb-pay-opt input:checked + .box::after { border: 6px solid var(--rb-green-600); }
.rb-pay-opt input:focus-visible + .box { outline: 3px solid rgba(242,165,26,.55); }

.rb-checkout-steps { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: .9rem; }
.rb-checkout-steps span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.6); }
.rb-checkout-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; font-size: .8rem; }
.rb-checkout-steps .on { color: #fff; font-weight: 600; }
.rb-checkout-steps .on b { background: var(--rb-saffron); color: var(--rb-ink); }
.rb-checkout-steps .line { width: 28px; height: 2px; background: rgba(255,255,255,.25); }

.rb-success-mark { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 3rem; color: #fff; background: var(--rb-green-600); box-shadow: 0 0 0 12px var(--rb-green-100), 0 18px 40px -12px rgba(14,107,65,.6); animation: rbPop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes rbPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.rb-order-no { display: inline-flex; flex-direction: column; padding: 14px 30px; border-radius: 18px; border: 2px dashed #bfe0cb; background: var(--rb-green-50); margin: 10px 0 22px; }
.rb-order-no small { color: var(--rb-muted); font-weight: 600; }
.rb-order-no strong { font-size: 1.8rem; color: var(--rb-green-700); letter-spacing: .03em; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.rb-footer { position: relative; background: var(--rb-green-900); color: rgba(255,255,255,.7); margin-top: 72px; }
.rb-footer-cta { position: relative; top: -48px; margin-bottom: -48px; }
.rb-footer-cta-inner {
    display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
    padding: 28px 34px; border-radius: 26px;
    background: radial-gradient(500px 200px at 100% 0, rgba(255,255,255,.25), transparent 60%), linear-gradient(135deg, #f6b73c, var(--rb-saffron-d));
    color: var(--rb-ink); box-shadow: 0 24px 50px -24px rgba(217,138,6,.7);
}
.rb-footer-cta h2 { font-family: var(--rb-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0 0 4px; color: var(--rb-ink); }
.rb-footer-cta p { margin: 0; color: rgba(16,35,26,.75); }
.rb-footer-cta .btn-dark { --bs-btn-bg: var(--rb-green-900); --bs-btn-border-color: var(--rb-green-900); --bs-btn-hover-bg: var(--rb-green-800); }
.rb-footer-main { padding: 56px 0 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.rb-footer .rb-brand-name { color: #fff; }
.rb-footer .rb-brand-tag { color: rgba(255,255,255,.55); display: block; }
.rb-footer p { font-size: .93rem; }
.rb-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.rb-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--rb-saffron); }
.rb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rb-footer ul a { color: rgba(255,255,255,.72); font-size: .94rem; display: inline-flex; align-items: center; gap: 8px; }
.rb-footer ul a:hover { color: var(--rb-saffron); }
.rb-footer ul a i { font-size: .7rem; opacity: .6; }
.rb-f-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.rb-f-contact i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--rb-saffron); }
.rb-f-contact small { display: block; color: rgba(255,255,255,.5); font-size: .78rem; }
.rb-f-contact a, .rb-f-contact span { color: #fff; }
.rb-social { display: flex; gap: 8px; margin-top: 18px; }
.rb-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: all .2s; }
.rb-social a:hover { background: var(--rb-saffron); color: var(--rb-ink); transform: translateY(-2px); }
.rb-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }
.rb-footer-bottom a { color: rgba(255,255,255,.8); }
@media (max-width: 991.98px) { .rb-footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) {
    .rb-footer-main { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-top: 40px; }
    .rb-footer-main > div:first-child, .rb-footer-main > div:last-child { grid-column: 1 / -1; }
    .rb-footer-cta-inner { padding: 22px; border-radius: 20px; }
    .rb-footer-cta-inner .btn { width: 100%; }
}

/* Reveal on scroll */
.js-reveal .rb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .rb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .rb-reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.rb-back-top {
    position: fixed; right: 18px; bottom: 22px; z-index: 1020;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--rb-green-700); color: #fff; font-size: 1.1rem;
    box-shadow: var(--rb-shadow-lg); opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: all .3s;
}
.rb-back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.rb-back-top:hover { background: var(--rb-saffron); color: var(--rb-ink); }
@media (max-width: 991.98px) { .rb-back-top { display: none; } }
