/* =========================================================
   BizTower UI (bt-ui.css)
   Public-facing design system + shared Bootstrap polish
   Seller/Admin shell is handled in backend.css
   ========================================================= */

/* -----------------------------
   1) Tokens / CSS Variables
------------------------------ */


/* Optional dark hook */
[data-bt-theme="dark"] {
  --bt-bg: #0B1220;
  --bt-surface: #0F1B2E;
  --bt-text: #E8EEFF;
  --bt-muted: rgba(232, 238, 255, .72);
  --bt-border: rgba(232, 238, 255, .12);
  --bt-border-2: rgba(232, 238, 255, .18);
}

/* Bridge into Bootstrap tokens */
:root {
  --bt-text: var(--bt-ink, #0f172a);
  --bt-border: var(--bt-line-soft, rgba(148, 163, 184, .18));
  --bt-border-2: var(--bt-line-strong, rgba(148, 163, 184, .28));
  --bt-radius: var(--bt-radius-md, 18px);
  --bt-shadow: var(--bt-shadow-md, 0 14px 34px rgba(15,23,42,.08));

  --bs-body-font-family: var(--bt-font);
  --bs-body-color: var(--bt-text);
  --bs-body-bg: var(--bt-bg);
  --bs-primary: var(--bt-primary);
  --bs-border-color: var(--bt-border);
}

/* -----------------------------
   2) Base
------------------------------ */
html,
body {
  height: 100%;
}

body {
  font-family: var(--bt-font);
  color: var(--bt-text);
  background: var(--bt-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--bt-primary);
  text-decoration: none;
}

a:hover {
  color: var(--bt-primary-700);
  text-decoration: none;
}

hr {
  border-color: var(--bt-border);
  opacity: 1;
}

/* -----------------------------
   3) Bootstrap polish
------------------------------ */
.btn {
  border-radius: var(--bt-radius);
  font-weight: 600;
  letter-spacing: .2px;
  padding: .55rem .95rem;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}

.btn:focus {
  box-shadow: var(--bt-focus) !important;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--bt-primary);
  border-color: var(--bt-primary);
}

.btn-primary:hover {
  background: var(--bt-primary-700);
  border-color: var(--bt-primary-700);
  box-shadow: var(--bt-shadow-sm);
}

.btn-outline-primary {
  color: var(--bt-primary);
  border-color: rgba(79, 70, 229, .35);
  background: transparent;
}

.btn-outline-primary:hover {
  color: #fff;
  background: var(--bt-primary);
  border-color: var(--bt-primary);
}

.btn-success {
  background: var(--bt-success);
  border-color: var(--bt-success);
}

.btn-danger {
  background: var(--bt-danger);
  border-color: var(--bt-danger);
}

.btn-warning {
  background: var(--bt-warning);
  border-color: var(--bt-warning);
  color: #0B1220;
}

.form-control,
.form-select {
  border-radius: var(--bt-radius);
  border-color: var(--bt-border-2);
  padding: .58rem .80rem;
  background: var(--bt-surface);
  transition: box-shadow .12s ease, border-color .12s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(79, 70, 229, .55);
  box-shadow: var(--bt-focus);
}

.form-label {
  font-weight: 600;
  color: var(--bt-muted);
  margin-bottom: .35rem;
}

.badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  padding: .42rem .62rem;
}

.text-bg-success {
  background: rgba(22, 163, 74, .12) !important;
  color: var(--bt-success) !important;
}

.text-bg-warning {
  background: rgba(245, 158, 11, .14) !important;
  color: #9A6700 !important;
}

.text-bg-danger {
  background: rgba(239, 68, 68, .12) !important;
  color: var(--bt-danger) !important;
}

.text-bg-info {
  background: rgba(6, 182, 212, .12) !important;
  color: #0284C7 !important;
}

.text-bg-secondary {
  background: rgba(71, 85, 105, .12) !important;
  color: var(--bt-muted) !important;
}

.alert {
  border-radius: var(--bt-radius-lg);
  border: 1px solid var(--bt-border);
  box-shadow: var(--bt-shadow-sm);
}

.alert-primary {
  background: rgba(79, 70, 229, .08);
  border-color: rgba(79, 70, 229, .18);
}

.alert-success {
  background: rgba(22, 163, 74, .08);
  border-color: rgba(22, 163, 74, .18);
}

.alert-warning {
  background: rgba(245, 158, 11, .10);
  border-color: rgba(245, 158, 11, .22);
}

.alert-danger {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .18);
}

.modal-content {
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  box-shadow: var(--bt-shadow-lg);
}

.modal-header,
.modal-footer {
  border-color: var(--bt-border);
}

.modal-title {
  font-weight: 800;
  letter-spacing: .2px;
}

/* -----------------------------
   4) Shared utilities
------------------------------ */
.bt-muted {
  color: var(--bt-muted) !important;
}

.bt-soft {
  color: var(--bt-muted);
  font-size: .92rem;
}

.bt-surface {
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  box-shadow: var(--bt-shadow-sm);
}

.bt-divider {
  height: 1px;
  background: var(--bt-border);
  margin: 14px 0;
}

.bt-pill {
  border-radius: 999px;
  padding: .55rem .85rem;
}

.bt-shadow-sm {
  box-shadow: var(--bt-shadow-sm) !important;
}

.bt-shadow {
  box-shadow: var(--bt-shadow) !important;
}

.bt-shadow-lg {
  box-shadow: var(--bt-shadow-lg) !important;
}

.bt-click {
  cursor: pointer;
}

.bt-nowrap {
  white-space: nowrap;
}

.bt-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bt-small {
  font-size: .92rem;
}

.bt-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .85rem;
  padding: .18rem .40rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .10);
}

.bt-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bt-border);
  background: var(--bt-surface);
  color: var(--bt-muted);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.bt-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--bt-shadow-sm);
  border-color: var(--bt-border-2);
  color: var(--bt-text);
}

.bt-icon-btn:focus {
  box-shadow: var(--bt-focus);
  outline: none;
}

/* -----------------------------
   5) Tables 
   Final merged version
------------------------------ */
.table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(15, 23, 42, .02);
  --bs-table-hover-bg: rgba(79, 70, 229, .035);
  --bs-table-border-color: var(--bt-border);
}

.table > :not(caption) > * > * {
  padding: 14px 16px !important;
  border-bottom-color: var(--bt-border) !important;
  vertical-align: middle;
}

.table thead th,
.table thead td {
  background: rgba(15, 23, 42, .02);
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  color: rgba(71, 85, 105, .95) !important;
  border-bottom: 1px solid var(--bt-border) !important;
  white-space: nowrap;
}

.table tbody th,
.table tbody td {
  font-family: var(--bt-font);
  font-size: .84rem !important;
  font-weight: 450 !important;
  letter-spacing: .03em !important;
  color: rgba(15, 23, 42, .82) !important;
}

.table tbody a {
  font-weight: 600;
  letter-spacing: .02em;
}

.table tbody .bt-muted,
.table tbody .text-muted,
.table tbody small,
.table tbody .small {
  font-size: .78rem !important;
  font-weight: 450 !important;
  letter-spacing: .02em !important;
  color: rgba(71, 85, 105, .78) !important;
}

.table tbody td.text-end,
.table tbody td.bt-amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em !important;
}

.table .badge {
  font-size: .72rem !important;
  font-weight: 750 !important;
  letter-spacing: .06em !important;
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(79, 70, 229, .035) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(15, 23, 42, .018) !important;
}

.table-sm thead th,
.table-sm tbody td,
.table-sm tbody th {
  padding: 10px 12px !important;
}

.table-bordered > :not(caption) > * {
  border-width: 0;
}

.table-bordered > :not(caption) > * > * {
  border-left: none !important;
  border-right: none !important;
}

.table-responsive {
  border-radius: var(--bt-radius-lg);
}

.bt-table-wrap,
.table.bt-table-wrap {
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  overflow: hidden;
  box-shadow: var(--bt-shadow-sm);
}

/* compact buttons inside tables */
.table .btn {
  padding: 4px 10px !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
  border-radius: 999px !important;
  letter-spacing: .04em;
}

.table .btn-outline-danger {
  padding: 4px 12px !important;
  font-size: .76rem !important;
}

.table td .btn + .btn,
.table td .btn + form,
.table td form + .btn {
  margin-top: 6px;
}

.table select.form-select,
.table input.form-control {
  height: 30px;
  padding: 2px 8px;
  font-size: .78rem;
  border-radius: 10px;
}


/* -----------------------------
   6) Shared empty / cards / helpers
------------------------------ */
.bt-empty {
  border-radius: 22px;
  border: 1px solid var(--bt-border);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--bt-shadow);
  padding: 30px 20px;
  text-align: center;
}

.bt-empty-ico,
.bt-empty-art {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, .10);
  border: 1px solid rgba(79, 70, 229, .18);
  margin: 0 auto 10px auto;
  font-size: 1.2rem;
}

.bt-empty-title {
  font-weight: 950;
  letter-spacing: .01em;
  font-size: 1.2rem;
}

.bt-empty-sub,
.bt-empty .desc {
  color: rgba(71, 85, 105, .86);
  font-weight: 650;
  margin-top: 6px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.bt-card-head {
  padding: 1rem 1rem .5rem;
}

.bt-card-title {
  font-weight: 650;
}

.bt-card-sub {
  opacity: .75;
  font-size: .92rem;
}

.bt-card-foot {
  padding: .75rem 1rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.bt-btn-disabled,
.btn.bt-btn-disabled {
  opacity: .55;
  pointer-events: none;
}

/* -----------------------------
   13) Logos and tiny helpers
------------------------------ */
.bt-logo-box {
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(0, 0, 0, .02);
  border-radius: 14px;
  padding: .75rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bt-logo-box img {
  max-height: 56px;
  width: auto;
  max-width: 100%;
  display: block;
}

.bt-dash-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .9);
  padding: 6px;
}

.bt-dash-logo-sm {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .9);
  padding: 5px;
}

.bt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

/* ================================
   Bootstrap Primary Button Override
   BizTower Premium Style
================================ */

.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    height: 36px;
    padding: 0 14px;

    font-size: 13px;
    font-weight: 600;

    border-radius: 999px;

    background: rgba(99, 102, 241, 0.10);
    color: #4f46e5;

    border: 1px solid rgba(99, 102, 241, 0.18);

    box-shadow: none;
    transition: all 0.18s ease;
}

/* =========================================
   BizTower Button System Override
   Applies premium styling to Bootstrap buttons
========================================= */

.btn {
    --bt-btn-height: 36px;
    --bt-btn-padding-x: 14px;
    --bt-btn-font-size: 13px;
    --bt-btn-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: var(--bt-btn-height);
    padding: 0 var(--bt-btn-padding-x);

    border-radius: var(--bt-btn-radius);
    font-size: var(--bt-btn-font-size);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;

    box-shadow: none;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn:focus,
.btn:focus-visible {
    outline: none;
}

/* Sizes */
.btn.btn-sm {
    --bt-btn-height: 32px;
    --bt-btn-padding-x: 12px;
    --bt-btn-font-size: 12px;
    --bt-btn-radius: 10px;
}

.btn.btn-lg {
    --bt-btn-height: 42px;
    --bt-btn-padding-x: 18px;
    --bt-btn-font-size: 14px;
    --bt-btn-radius: 14px;
}

.btn i {
    font-size: 0.95em;
    line-height: 1;
}

/* =========================================
   Primary
========================================= */

.btn.btn-primary {
    background: rgba(99, 102, 241, 0.10);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.btn.btn-primary:hover {
    background: rgba(99, 102, 241, 0.16);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.28);
}

.btn.btn-primary:active {
    background: rgba(99, 102, 241, 0.22);
    color: #3730a3;
    border-color: rgba(99, 102, 241, 0.34);
}

.btn.btn-primary:focus,
.btn.btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

/* =========================================
   Light
========================================= */

.btn.btn-light {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.btn.btn-light:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.24);
}

.btn.btn-light:active {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.28);
}

.btn.btn-light:focus,
.btn.btn-light:focus-visible {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

/* =========================================
   Secondary
========================================= */

.btn.btn-secondary {
    background: rgba(148, 163, 184, 0.12);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.btn.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.18);
    color: #1e293b;
    border-color: rgba(148, 163, 184, 0.26);
}

.btn.btn-secondary:focus,
.btn.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}

/* =========================================
   Outline Primary
========================================= */

.btn.btn-outline-primary {
    background: #ffffff;
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.btn.btn-outline-primary:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.30);
}

.btn.btn-outline-primary:active {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.34);
}

.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* =========================================
   Outline Secondary
========================================= */

.btn.btn-outline-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.20);
}

.btn.btn-outline-secondary:hover {
    background: #f8fafc;
    color: #334155;
    border-color: rgba(148, 163, 184, 0.28);
}

.btn.btn-outline-secondary:active {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.32);
}

.btn.btn-outline-secondary:focus,
.btn.btn-outline-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

/* =========================================
   Success / Warning / Danger
   Soft premium state buttons
========================================= */

.btn.btn-success {
    background: rgba(34, 197, 94, 0.10);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.btn.btn-success:hover {
    background: rgba(34, 197, 94, 0.16);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.28);
}

.btn.btn-success:focus,
.btn.btn-success:focus-visible {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.btn.btn-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.20);
}

.btn.btn-warning:hover {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.28);
}

.btn.btn-warning:focus,
.btn.btn-warning:focus-visible {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.btn.btn-danger {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.btn.btn-danger:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.28);
}

.btn.btn-danger:focus,
.btn.btn-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* =========================================
   Disabled
========================================= */

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* =========================================
   Button groups
========================================= */

.btn-group > .btn,
.btn-group-vertical > .btn {
    position: relative;
    z-index: 1;
}

.btn-group > .btn:hover,
.btn-group > .btn:focus,
.btn-group > .btn:active {
    z-index: 2;
}

/* Hover */
.btn.btn-primary:hover {
    background: rgba(99, 102, 241, 0.16);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.28);
}

/* Active */
.btn.btn-primary:active {
    background: rgba(99, 102, 241, 0.22);
    color: #3730a3;
    border-color: rgba(99, 102, 241, 0.35);
}

/* Focus (important for accessibility) */
.btn.btn-primary:focus,
.btn.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

/* Disabled */
.btn.btn-primary:disabled,
.btn.btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

/* ================================
   Size Adjustments
================================ */

/* Small */
.btn.btn-sm.btn-primary {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
}

/* Large (still controlled, not bulky) */
.btn.btn-lg.btn-primary {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

.btn i {
    font-size: 13px;
}


/* =========================================
   BizTower Badge System Override
   Applies to Bootstrap .badge + text-bg-*
========================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 22px;
    padding: 0 10px;

    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;

    border: 1px solid transparent;
    box-shadow: none;
}

/* =========================================
   Primary
========================================= */

.badge.text-bg-primary,
.badge.bg-primary {
    background: rgba(99, 102, 241, 0.10) !important;
    color: #4f46e5 !important;
    border-color: rgba(99, 102, 241, 0.18);
}

/* =========================================
   Secondary / Muted
========================================= */

.badge.text-bg-secondary,
.badge.bg-secondary {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #475569 !important;
    border-color: rgba(148, 163, 184, 0.18);
}

/* =========================================
   Success
========================================= */

.badge.text-bg-success,
.badge.bg-success {
    background: rgba(34, 197, 94, 0.10) !important;
    color: #15803d !important;
    border-color: rgba(34, 197, 94, 0.18);
}

/* =========================================
   Warning
========================================= */

.badge.text-bg-warning,
.badge.bg-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.20);
}

/* =========================================
   Danger
========================================= */

.badge.text-bg-danger,
.badge.bg-danger {
    background: rgba(239, 68, 68, 0.10) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.18);
}

/* =========================================
   Info
========================================= */

.badge.text-bg-info,
.badge.bg-info {
    background: rgba(59, 130, 246, 0.10) !important;
    color: #1d4ed8 !important;
    border-color: rgba(59, 130, 246, 0.18);
}

/* =========================================
   Light
========================================= */

.badge.text-bg-light,
.badge.bg-light {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: rgba(148, 163, 184, 0.16);
}

/* =========================================
   Dark
========================================= */

.badge.text-bg-dark,
.badge.bg-dark {
    background: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.12);
}

/* =========================================
   Rounded-pill override (tone it down)
========================================= */

.badge.rounded-pill {
    border-radius: 999px;
    padding: 0 12px;
}

/* =========================================
   Small alignment tweaks
========================================= */

.badge i {
    font-size: 0.9em;
    line-height: 1;
}


/* =========================================
   BizTower Form Controls Override
========================================= */

.form-control,
.form-select,
textarea.form-control {
    --bt-input-height: 40px;
    --bt-input-radius: 12px;

    height: var(--bt-input-height);
    padding: 0 14px;

    border-radius: var(--bt-input-radius);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;

    font-size: 13px;
    font-weight: 500;
    color: #0f172a;

    box-shadow: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

/* textarea */
textarea.form-control {
    height: auto;
    min-height: 110px;
    padding: 10px 14px;
    line-height: 1.6;
}

/* select */
.form-select {
    padding-right: 36px;
    background-position: right 12px center;
}

/* =========================================
   Placeholder
========================================= */

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* =========================================
   Hover
========================================= */

.form-control:hover,
.form-select:hover {
    border-color: rgba(148, 163, 184, 0.28);
}

/* =========================================
   Focus (important)
========================================= */

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(99, 102, 241, 0.35);
    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

/* =========================================
   Disabled
========================================= */

.form-control:disabled,
.form-select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.12);
    cursor: not-allowed;
}

/* =========================================
   Small & Large
========================================= */

.form-control-sm,
.form-select-sm {
    height: 34px;
    font-size: 12px;
    border-radius: 10px;
}

.form-control-lg,
.form-select-lg {
    height: 46px;
    font-size: 14px;
    border-radius: 14px;
}

/* =========================================
   Input groups
========================================= */

.input-group > .form-control,
.input-group > .form-select {
    border-radius: 0;
}

.input-group > .form-control:first-child,
.input-group > .form-select:first-child {
    border-top-left-radius: var(--bt-input-radius);
    border-bottom-left-radius: var(--bt-input-radius);
}

.input-group > .form-control:last-child,
.input-group > .form-select:last-child {
    border-top-right-radius: var(--bt-input-radius);
    border-bottom-right-radius: var(--bt-input-radius);
}

.input-group-text {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

/* =========================================
   Labels
========================================= */

.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

/* =========================================
   Checkboxes & Radios
========================================= */

.form-check-input {
    width: 16px;
    height: 16px;
    border-radius: 6px;

    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: none;
    transition: all 0.15s ease;
}

.form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

.form-check-label {
    font-size: 13px;
    color: #334155;
}

/* =========================================
   Validation (subtle)
========================================= */

.is-invalid {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.invalid-feedback {
    font-size: 12px;
    color: #b91c1c;
}

/* =========================================
   Search input (used in bk system)
========================================= */

.bk-search-input {
    height: 40px;
    border-radius: 14px;
}

/* =========================================
   BizTower Dropdowns Override
========================================= */

.dropdown-menu {
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.04);
    min-width: 220px;
}

.dropdown-header {
    padding: 10px 12px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.dropdown-divider {
    margin: 6px 0;
    border-top-color: rgba(148, 163, 184, 0.12);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 38px;
    padding: 0 12px;

    border-radius: 12px;
    background: transparent;
    color: #334155;

    font-size: 13px;
    font-weight: 500;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
}

.dropdown-item:active {
    background: rgba(99, 102, 241, 0.14);
    color: #3730a3;
}

.dropdown-item.text-danger {
    color: #b91c1c !important;
}

.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b !important;
}

.dropdown-item i {
    font-size: 0.95em;
    line-height: 1;
}

.dropdown-item.active,
.dropdown-item:active {
    font-weight: 600;
}

.dropdown-menu .btn,
.dropdown-menu form {
    width: 100%;
}

.dropdown-menu form .dropdown-item {
    width: 100%;
    border: 0;
    text-align: left;
}

/* =========================================
   BizTower Modals Override
========================================= */

.modal-content {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.modal-body {
    padding: 20px 22px;
    color: #334155;
}

.modal-footer {
    padding: 16px 22px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.72) 100%);
    gap: 10px;
}

.modal-backdrop.show {
    opacity: 0.42;
}

.modal .btn-close {
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    background-color: transparent;
    opacity: 0.65;
    box-shadow: none;
    transition:
        background 0.15s ease,
        opacity 0.15s ease;
}

.modal .btn-close:hover {
    background: rgba(148, 163, 184, 0.10);
    opacity: 1;
}

.modal .btn-close:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    opacity: 1;
}

/* =========================================
   Modal size polish
========================================= */

.modal-sm .modal-content {
    border-radius: 20px;
}

.modal-lg .modal-content,
.modal-xl .modal-content {
    border-radius: 26px;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 767.98px) {
    .dropdown-menu {
        border-radius: 14px;
        min-width: 200px;
    }

    .modal-content {
        border-radius: 18px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .modal-title {
        font-size: 16px;
    }
}


/* =========================================
   Plan Usage Banner
========================================= */

.bk-plan-banner {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.05),
        0 4px 12px rgba(15, 23, 42, 0.03);
}

.bk-plan-banner__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.bk-plan-banner__main {
    min-width: 0;
    flex: 1 1 560px;
}

.bk-plan-banner .bk-page-kicker {
    color: #64748b;
}

.bk-plan-banner .bk-page-kicker::before {
    background: rgba(99, 102, 241, 0.95);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12);
}

.bk-plan-banner .bk-page-title {
    font-size: clamp(24px, 2.5vw, 32px);
    color: #0f172a;
}

.bk-plan-banner .bk-page-subtitle {
    max-width: 720px;
    color: #4d0000;
    margin-top: 0;
}

.bk-plan-banner .bk-page-meta {
    margin: 12px 0 0;
}

.bk-plan-banner .bk-hero-chip {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.14);
    color: #4338ca;
    backdrop-filter: none;
}

.bk-plan-banner__upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(245, 158, 11, 0.08);
}

.bk-plan-banner__upgrade-title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}

.bk-plan-banner__upgrade-text {
    font-size: 13px;
    color: #a16207;
}

.bk-plan-banner__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.bk-plan-banner__metric {
    min-height: 160px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
}

.bk-plan-banner__metric-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.bk-plan-banner__metric-value {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.bk-plan-banner__remain {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.bk-plan-banner__remain--danger {
    color: #b91c1c;
}

.bk-progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
}

.bk-progress__bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.2s ease;
}

.bk-progress__bar--success {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.bk-progress__bar--warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.bk-progress__bar--danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.bk-plan-banner__note {
    margin-top: 18px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.bk-soft-alert--danger {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

@media (max-width: 991.98px) {
    .bk-plan-banner__metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .bk-plan-banner {
        padding: 18px;
        border-radius: 22px;
    }

    .bk-plan-banner__metric {
        border-radius: 18px;
        min-height: 0;
    }
}