/* SoftoChain client area: modern layer on top of the default Bootstrap theme */
:root, [data-bs-theme=light] {
  --sc-ink: #0b1220; --sc-jade: #10b981; --sc-jade-d: #059669; --sc-line: #e6eaf0; --sc-bg: #f4f6fa;
  --bs-primary: #10b981; --bs-primary-rgb: 16, 185, 129;
  --bs-link-color: #059669; --bs-link-color-rgb: 5, 150, 105; --bs-link-hover-color: #047857; --bs-link-hover-color-rgb: 4, 120, 87;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  --bs-body-bg: #f4f6fa; --bs-border-color: #e6eaf0; --bs-border-radius: .75rem; --bs-border-radius-lg: 1rem;
  --bs-primary-bg-subtle: #d1fae5; --bs-primary-text-emphasis: #065f46; --bs-focus-ring-color: rgba(16, 185, 129, .25);
}
[data-bs-theme=dark] {
  --sc-line: #1f2a3d; --sc-bg: #0b1220;
  --bs-primary: #34d399; --bs-primary-rgb: 52, 211, 153; --bs-body-bg: #0b1220; --bs-tertiary-bg: #111a2e; --bs-border-color: #1f2a3d;
  --bs-link-color: #34d399; --bs-link-color-rgb: 52, 211, 153;
}
body { background: var(--bs-body-bg); -webkit-font-smoothing: antialiased; }

/* buttons */
.btn { border-radius: .7rem; font-weight: 600; }
.btn-primary { --bs-btn-bg: #10b981; --bs-btn-border-color: #10b981; --bs-btn-hover-bg: #059669; --bs-btn-hover-border-color: #059669; --bs-btn-active-bg: #047857; --bs-btn-active-border-color: #047857; --bs-btn-disabled-bg: #10b981; --bs-btn-disabled-border-color: #10b981; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }
.btn-outline-primary { --bs-btn-color: #059669; --bs-btn-border-color: #10b981; --bs-btn-hover-bg: #10b981; --bs-btn-hover-border-color: #10b981; --bs-btn-active-bg: #059669; }
.form-control, .form-select { border-radius: .65rem; padding-block: .55rem; }
.form-control:focus, .form-select:focus { border-color: #10b981; box-shadow: 0 0 0 .2rem rgba(16, 185, 129, .2); }
.form-check-input:checked { background-color: #10b981; border-color: #10b981; }

/* top navbar */
body > nav.navbar, .navbar.bg-body-tertiary, header .navbar { background: var(--sc-ink) !important; border: 0 !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .04); }
.navbar .nav-link, .navbar .navbar-brand { color: #cbd5e1 !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff !important; }
.navbar .btn-outline-primary { --bs-btn-color: #6ee7b7; --bs-btn-border-color: rgba(110, 231, 183, .5); }
.navbar .icon.text-dark { color: #cbd5e1 !important; }
.navbar-toggler { border-color: rgba(255, 255, 255, .2); }
.navbar-toggler-icon { filter: invert(1); }

/* side menu */
#sidebarMenu { position: sticky; top: 16px; }
#sidebarMenu .nav { gap: 2px; padding: 10px; background: var(--bs-tertiary-bg, #fff); border: 1px solid var(--sc-line); border-radius: 16px; }
[data-bs-theme=light] #sidebarMenu .nav { background: #fff; }
#sidebarMenu .nav-link { padding: .62rem .8rem; border-radius: 10px; color: var(--bs-body-color); font-weight: 600; }
#sidebarMenu .nav-link .icon { opacity: .7; }
#sidebarMenu .nav-link:hover { background: rgba(16, 185, 129, .08); color: #059669; }
#sidebarMenu .nav-link.active { background: #10b981; color: #fff !important; box-shadow: 0 6px 16px rgba(16, 185, 129, .3); }
#sidebarMenu .nav-link.active .icon { opacity: 1; }

/* cards & tables */
.card { border: 1px solid var(--sc-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card-header { background: transparent; border-bottom: 1px solid var(--sc-line); padding: 1rem 1.25rem; font-weight: 700; }
.card-header:first-child { border-radius: 16px 16px 0 0; }
.card-footer { background: transparent; border-top-color: var(--sc-line); }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); font-weight: 700; }
.badge { border-radius: 999px; padding: .4em .75em; font-weight: 700; }
.breadcrumb { font-size: .875rem; }
.content-block { padding-top: 8px; }
.alert { border-radius: 14px; }
#footer { padding-top: 24px; }

/* dashboard */
.sc-welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.sc-welcome h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.sc-welcome p { margin: 2px 0 0; color: var(--bs-secondary-color); }
.sc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1199px) { .sc-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .sc-stats { grid-template-columns: 1fr; } }
.sc-stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; background: var(--bs-tertiary-bg); border: 1px solid var(--sc-line); border-radius: 16px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
[data-bs-theme=light] .sc-stat { background: #fff; }
.sc-stat:hover { transform: translateY(-2px); border-color: rgba(16, 185, 129, .45); box-shadow: 0 10px 24px rgba(15, 23, 42, .07); color: inherit; }
.sc-stat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 10px; }
.sc-stat-ico .icon { width: 20px; height: 20px; }
.sc-stat-ico.is-jade { background: #d1fae5; color: #047857; } .sc-stat-ico.is-amber { background: #fef3c7; color: #b45309; }
.sc-stat-ico.is-sky { background: #e0f2fe; color: #0369a1; } .sc-stat-ico.is-violet { background: #ede9fe; color: #6d28d9; }
.sc-stat-num { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sc-stat-label { color: var(--bs-secondary-color); font-weight: 600; font-size: .9rem; }
.sc-stat-note { position: absolute; top: 18px; right: 16px; font-size: .75rem; font-weight: 700; color: var(--bs-secondary-color); }
.sc-stat-note.is-warn { color: #b45309; }
.sc-card-title { margin: 0; font-size: 1.02rem; font-weight: 800; }
.sc-link { font-weight: 700; font-size: .9rem; text-decoration: none; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .9rem 1.25rem; }
.sc-row-main { display: flex; flex-direction: column; min-width: 0; }
.sc-row-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row-main small { color: var(--bs-secondary-color); }
.sc-empty { padding: 32px 20px; text-align: center; color: var(--bs-secondary-color); }
.sc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 767px) { .sc-quick { grid-template-columns: repeat(2, 1fr); } }
.sc-quick a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px dashed var(--sc-line); border-radius: 14px; font-weight: 700; color: inherit; text-decoration: none; }
.sc-quick a:hover { border-style: solid; border-color: #10b981; color: #059669; }

/* login / signup (public layout) */
body.page-login, body.page-signup, .auth-page { background: radial-gradient(800px 400px at 50% -10%, rgba(16, 185, 129, .18), transparent 70%), var(--bs-body-bg); }

@media (prefers-reduced-motion: reduce) { .sc-stat, .sc-stat:hover { transition: none; transform: none; } }

/* ---------- order page ---------- */
.sc-order-page #wrapper > section > .content-block { padding-top: 0; }
.sc-order-head { margin: 4px 0 22px; }
.sc-order-head h1 { margin: 6px 0 4px; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.sc-order-head p { margin: 0; color: var(--bs-secondary-color); }
.sc-back { font-weight: 700; font-size: .9rem; text-decoration: none; }
.sc-order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 1199px) { .sc-order-grid { grid-template-columns: 1fr; } .sc-order-side { order: -1; } }

/* summary card */
.sc-summary { position: sticky; top: 16px; padding: 22px; border-radius: 18px; color: #fff; background: radial-gradient(420px 200px at 100% 0, rgba(56, 189, 248, .28), transparent 70%), linear-gradient(160deg, #0b1220, #0f2a2a); box-shadow: 0 16px 40px rgba(11, 18, 32, .25); }
.sc-summary-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6ee7b7; }
.sc-summary h2 { margin: 4px 0 6px; font-size: 1.35rem; font-weight: 800; color: #fff; }
.sc-summary-price { margin: 0 0 14px; font-size: 2rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
.sc-summary-price small { margin-left: 4px; font-size: .9rem; font-weight: 600; color: #a7b3c6; letter-spacing: 0; }
.sc-summary-desc { color: #cbd5e1; font-size: .92rem; }
.sc-summary-desc p { margin: 0 0 8px; }
.sc-summary-desc ul { list-style: none; margin: 0; padding: 0; }
.sc-summary-desc li { padding: 6px 0 6px 24px; border-top: 1px solid rgba(255, 255, 255, .07); position: relative; }
.sc-summary-desc li::before { content: "✓"; position: absolute; left: 2px; color: #34d399; font-weight: 900; }
.sc-summary-desc strong { color: #fff; }
.sc-trust { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #cbd5e1; display: grid; gap: 6px; }
@media (max-width: 1199px) { .sc-summary { position: static; } .sc-summary-desc { display: none; } }

/* checkout steps: the stock accordion, restyled as numbered cards */
.sc-order-main #orderbutton { background: transparent; }
.sc-order-main #orderbutton > .card-body { padding: 0 !important; }
.sc-order-main #orderManager { counter-reset: scstep; display: grid; gap: 12px; --bs-accordion-border-width: 0; --bs-accordion-bg: transparent; }
.sc-order-main #orderManager > .accordion-item { counter-increment: scstep; border: 1px solid var(--sc-line) !important; border-radius: 16px !important; overflow: hidden; background: var(--bs-tertiary-bg); }
[data-bs-theme=light] .sc-order-main #orderManager > .accordion-item { background: #fff; }
.sc-order-main .accordion-button { gap: 4px; padding: 16px 18px; font-weight: 800; font-size: 1rem; background: transparent !important; box-shadow: none !important; color: var(--bs-body-color); }
.sc-order-main .accordion-button::before { content: counter(scstep); display: grid; place-items: center; flex: 0 0 30px; height: 30px; margin-right: 8px; border-radius: 50%; background: var(--sc-bg); color: var(--bs-secondary-color); font-size: .85rem; font-weight: 800; border: 1px solid var(--sc-line); }
.sc-order-main .accordion-button:not(.collapsed)::before { background: #10b981; color: #fff; border-color: #10b981; }
.sc-order-main .accordion-button:not(.collapsed) { color: #059669; }
.sc-order-main .accordion-button > .icon { display: none; }
.sc-order-main .accordion-body { padding: 4px 20px 20px; }
.sc-order-main .accordion-body h3, .sc-order-main .well > h3 { display: none; }
/* the plan description is already in the summary card */
.sc-order-main .well > h3 ~ p, .sc-order-main .well > h3 ~ ul { display: none; }
.sc-order-main .well > hr { display: none; }
.sc-order-main .well h4, .sc-order-main h4.mt-4 { margin-top: 1rem !important; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.sc-order-main #config-next, .sc-order-main .accordion-body .btn-primary { min-width: 160px; padding: .7rem 1.4rem; border-radius: 12px; }
/* domain choice: horizontal pills instead of a cramped side column */
.sc-order-main .nav.nav-pills.flex-column { flex-direction: row !important; flex-wrap: wrap; border: 0 !important; margin: 0 0 14px !important; gap: 8px !important; }
.sc-order-main .d-flex.mb-3:has(> .nav-pills) { flex-direction: column; }
.sc-order-main .nav-pills .nav-link { margin: 0 !important; padding: .55rem 1rem !important; border-radius: 999px; border: 1px solid var(--sc-line); font-weight: 700; font-size: .9rem !important; color: var(--bs-body-color); }
.sc-order-main .nav-pills .nav-link.active { background: #10b981; border-color: #10b981; color: #fff; }
.sc-order-main .form-control-sm, .sc-order-main .form-select-sm { min-height: 44px; font-size: 1rem; border-radius: 10px; }
.sc-order-main .input-group > .form-control-sm, .sc-order-main .input-group > .form-select-sm, .sc-order-main .input-group-text-sm { min-height: 44px; }
.sc-order-main .btn-dark { background: #0b1220; border-color: #0b1220; border-radius: 10px; padding-inline: 1.1rem; }
.sc-order-main .table { border-radius: 12px; overflow: hidden; }
/* drop the duplicated footer branding inside the order card */
.sc-order-main #orderbutton .small.text-muted.pt-3 { display: none !important; }
@media (max-width: 575px) {
  .sc-order-main .tab-pane .input-group { flex-wrap: wrap; gap: 8px; }
  .sc-order-main .tab-pane .input-group > .form-control { flex: 1 1 100%; width: 100%; border-radius: 10px !important; }
  .sc-order-main .tab-pane .input-group > .form-select { flex: 1 1 auto; border-radius: 10px !important; margin-left: 0 !important; }
  .sc-order-main .tab-pane .input-group > .btn { border-radius: 10px !important; margin-left: 0 !important; }
}

/* ================= SoftoChain app shell (header / sidebar / footer) ================= */
body { min-height: 100vh; display: flex; flex-direction: column; }
.sc-top { position: sticky; top: 0; z-index: 1030; background: rgba(11, 18, 32, .97); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(2, 6, 23, .18); }
.sc-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, #10b981, #38bdf8 60%, transparent); opacity: .7; }
.sc-top-in { display: flex; align-items: center; gap: 22px; height: 68px; padding: 0 24px; max-width: 1440px; margin: 0 auto; }
.sc-top-narrow { max-width: 1200px; }
.sc-top-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 850; font-size: 1.15rem; letter-spacing: -.01em; }
.sc-top-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #10b981, #38bdf8); color: #0b1220; font-weight: 900; box-shadow: 0 6px 18px rgba(16, 185, 129, .35); }
.sc-top-links { gap: 4px; }
.sc-top-links a { padding: 8px 14px; border-radius: 10px; color: #aab4c5; text-decoration: none; font-weight: 650; font-size: .95rem; }
.sc-top-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sc-top-links a.is-active { color: #fff; background: rgba(16, 185, 129, .18); }
.sc-top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sc-top-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #aab4c5; border: 1px solid rgba(255, 255, 255, .1); }
.sc-top-icon:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sc-top-login { color: #cbd5e1; text-decoration: none; font-weight: 650; padding: 8px 6px; }
.sc-top-login:hover { color: #fff; }
.sc-top-cta { padding: .5rem 1rem; }
.sc-top-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; font-weight: 650; }
.sc-top-user:hover { background: rgba(255, 255, 255, .1); }
.sc-top-burger { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.sc-top-burger span, .sc-top-burger span::before, .sc-top-burger span::after { content: ""; display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.sc-top-burger span::before { position: absolute; top: -6px; } .sc-top-burger span::after { position: absolute; top: 6px; }
@media (max-width: 575px) { .sc-top-in { padding: 0 14px; gap: 10px; } .sc-top-login { display: none; } }

.sc-shell { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 24px 0; }
.sc-shell.has-side { max-width: 1440px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 767px) { .sc-shell.has-side { grid-template-columns: 1fr; } .sc-shell { padding: 18px 14px 0; } }
.sc-side #sidebarMenu { top: 92px; }
@media (max-width: 767px) { .sc-side #sidebarMenu .nav { border: 0; border-radius: 0; } }
.sc-main { min-width: 0; }
.sc-main > section { min-height: 50vh; }

.sc-foot2 { margin-top: 56px; background: #0b1220; color: #94a3b8; border-radius: 24px 24px 0 0; padding: 0 28px 22px; }
.sc-shell.has-side .sc-foot2 { border-radius: 20px 20px 0 0; }
.sc-foot2-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; transform: translateY(-26px); padding: 22px 26px; border-radius: 18px; background: linear-gradient(135deg, #059669, #0e7490); color: #fff; box-shadow: 0 18px 40px rgba(5, 150, 105, .3); }
.sc-foot2-cta h3 { margin: 0 0 2px; font-size: 1.2rem; font-weight: 800; color: #fff; }
.sc-foot2-cta p { margin: 0; color: #d1fae5; }
.sc-foot2-cta .btn { background: #fff; border-color: #fff; color: #065f46; }
.sc-foot2-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding: 6px 0 28px; }
.sc-foot2-grid p { margin: 12px 0; max-width: 320px; }
.sc-foot2-grid h4 { margin: 4px 0 12px; font-size: .95rem; color: #fff; font-weight: 800; }
.sc-foot2-grid > div > a:not(.sc-top-brand) { display: block; padding: 4px 0; color: #94a3b8; text-decoration: none; }
.sc-foot2-grid a:hover { color: #fff !important; }
.sc-foot2-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-foot2-badges span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .8rem; color: #cbd5e1; }
.sc-foot2-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
@media (max-width: 767px) { .sc-foot2-grid { grid-template-columns: 1fr 1fr; } .sc-foot2-grid > div:first-child { grid-column: 1 / -1; } .sc-foot2 { padding: 0 18px 18px; } }

/* order page polish */
.sc-order-head { padding: 26px 28px; margin: 0 0 24px; border-radius: 20px; background: radial-gradient(500px 200px at 90% -20%, rgba(16, 185, 129, .22), transparent 70%), var(--bs-tertiary-bg); border: 1px solid var(--sc-line); }
[data-bs-theme=light] .sc-order-head { background: radial-gradient(500px 200px at 90% -20%, rgba(16, 185, 129, .16), transparent 70%), #fff; }
.sc-order-head h1 { font-size: 2.1rem; }
.sc-order-main .well .row { align-items: center; }
.sc-order-main #period-selector { font-weight: 700; }

/* step 1: product picker as plan cards */
.sc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sc-pick-cat { margin: 6px 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.sc-pick a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--sc-line); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.sc-pick a:hover { border-color: #10b981; transform: translateY(-2px); }
.sc-pick a.is-current { border: 2px solid #10b981; background: rgba(16, 185, 129, .06); }
.sc-pick b { font-size: 1rem; }
.sc-pick small { color: #059669; font-weight: 800; }

/* auth pages (login / signup) */
.page-login .content-block, .page-signup .content-block { max-width: 520px; margin: 0 auto; }
.sc-foot2 > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.sc-foot2 { border-radius: 28px 28px 0 0; }
