/* ═══════════════════════════════════════════════════════════════
   IIBSWEB MASTER UTILITY & UI/UX CSS v4.0
   Replace ALL inline styles, card CSS, design CSS, garbage CSS
   Bootstrap for grid/layout — this file for UI/UX eye-candy only
   Web (all), Android (all), iOS (all) with safe areas
   Do NOT change any content / Bangla text / business logic
   ═══════════════════════════════════════════════════════════════ */

:root {
  --c-primary: #0f4b86;
  --c-primary-dark: #0a3560;
  --c-primary-light: #1a6bb5;
  --c-accent: #f05a28;
  --c-gold: #f5a623;
  --c-success: #1CC88A;
  --c-info: #36b9cc;
  --c-warning: #f6c23e;
  --c-danger: #e74a3b;
  --c-dark-purple: #362C5E;
  --c-navy: #0A3D6C;
  --c-navy2: #0A3E6D;
  --c-dark-gray: #343A40;
  --c-orange: #f99245;
  --c-crimson: #a9273f;
  --c-section: #2c2a53;
  --c-muted: #858796;
  --c-text-dark: #000210;
  --c-text-body: #333;
  --c-white: #fff;
  --c-card-bg: #f3f4f7;
  --c-label: #0b1c60;
  --c-tile-bg: #08416f;
  --c-bg: #f8f9fa;
  --c-soft: #9aa3b2;
  --c-border: rgba(0,0,0,0.06);
  --c-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --c-shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --c-radius: 12px;
  --c-radius-sm: 8px;
  --c-transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ── BASE ── */
html { height: 100%; -webkit-tap-highlight-color: transparent; }
body {
  height: 100%;
  font-family: 'Nunito','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
  background: var(--c-bg); color: var(--c-text-body);
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
  padding-left: var(--safe-left); padding-right: var(--safe-right);
}
.scroll-wrapper, .table-responsive, .overflow-touch {
  -webkit-overflow-scrolling: touch; overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════════
   POLICY CARDS — polished, professional, fully responsive
   ═══════════════════════════════════════════════════════════════ */
.policy-item {
  background: var(--c-white);
  border-radius: var(--c-radius);
  padding: 1.75rem 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform var(--c-transition), box-shadow var(--c-transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.policy-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-light));
  opacity: 0;
  transition: opacity var(--c-transition);
}
.policy-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15,75,134,0.12);
}
.policy-item:hover::before { opacity: 1; }
.policy-item img {
  height: 72px; width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  transition: transform var(--c-transition);
}
.policy-item:hover img { transform: scale(1.1); }
.policy-item h5 {
  font-size: 0.85rem; font-weight: 700;
  color: var(--c-text-body);
  margin: 0 0 0.75rem;
  line-height: 1.3;
  min-height: 2.2em;
  display: flex; align-items: center;
  text-align: center;
  word-break: break-word;
}
.policy-item .btn {
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 0.78rem; font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: none;
  transition: background var(--c-transition), transform var(--c-transition);
  margin-top: auto;
  min-height: 38px;
  min-width: 110px;
  letter-spacing: 0.3px;
}
.policy-item .btn:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,75,134,0.25);
}
.policy-item .btn:active { transform: translateY(0); }

/* Policy icon wrapper — adds subtle background glow */
.policy-icon-wrap {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(15,75,134,0.04), rgba(240,90,40,0.04));
  border-radius: 50%;
  margin-bottom: 0.5rem;
  transition: background var(--c-transition), transform var(--c-transition);
}
.policy-item:hover .policy-icon-wrap {
  background: linear-gradient(135deg, rgba(15,75,134,0.08), rgba(240,90,40,0.08));
  transform: scale(1.05);
}
.policy-icon-wrap img {
  height: 48px; width: auto; margin-bottom: 0;
}
.policy-item .policy-icon-wrap + h5 { margin-top: 0.25rem; }
.op-coming-soon { height: 48px; width: auto; opacity: 0.5; }

/* ═══════════════════════════════════════════════════════════════
   PROPOSAL CARD — motor premium breakdown
   ═══════════════════════════════════════════════════════════════ */
.proposal-card {
  background: var(--c-white);
  border-radius: var(--c-radius);
  padding: 1.5rem;
  box-shadow: var(--c-shadow-lg);
  width: 100%;
  max-width: 900px;
  min-width: 320px;
  margin: 0 auto;
}
.proposal-card .premium-panel {
  background: var(--c-card-bg);
  border-radius: var(--c-radius-sm);
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-border);
}
.proposal-card .kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
}
.proposal-card .kv-row:last-child { border-bottom: none; }
.proposal-card .kv-row .k {
  color: var(--c-muted); font-weight: 600; font-size: 0.85rem;
  white-space: nowrap;
}
.proposal-card .kv-row .v {
  text-align: right; font-weight: 700; font-size: 0.85rem;
  color: var(--c-text-dark); word-break: break-word;
}
.proposal-card .total-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 0.25rem 0;
  font-weight: 600; font-size: 0.88rem;
}
.proposal-card .total-row .value { color: var(--c-primary); font-weight: 800; }
.proposal-card .divider-light {
  height: 1px; background: rgba(0,0,0,0.08); margin: 0.35rem 0;
}
.proposal-card .divider-thin {
  height: 1px; background: rgba(0,0,0,0.03); margin: 0.2rem 0;
}
.sticky-summary .btn-checkout {
  width: 100%; padding: 0.6rem; font-size: 0.95rem;
  border-radius: 50px;
}

/* ═══════════════════════════════════════════════════════════════
   PAYMENT SUCCESS CARD
   ═══════════════════════════════════════════════════════════════ */
.payment-card {
  max-width: 400px; margin: 2rem auto; padding: 2.5rem 2rem;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  background: var(--c-white);
  box-shadow: var(--c-shadow);
}
.payment-card h2 {
  color: var(--c-primary); margin-bottom: 0.75rem; font-weight: 700; font-size: 1.5rem;
}
.check-container {
  border-radius: 50%; width: 80px; height: 80px;
  margin: 0 auto 1.25rem;
  background: var(--c-dark-purple);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(54,44,94,0.2);
}
.check-container i { color: var(--c-white); font-size: 36px; }
.btnsueec { background: var(--c-dark-purple); color: var(--c-white); }
.btnsueec:hover { background: #385064; color: var(--c-white); }

/* ═══════════════════════════════════════════════════════════════
   MODULE CHECKBOX TILE CARDS (from cardcs.css)
   ═══════════════════════════════════════════════════════════════ */
.checkbox-group { display: flex; flex-wrap: wrap; justify-content: center; width: 90%; margin: 0 auto; max-width: 757px; user-select: none; }
.checkbox-group > * { margin: 0.5rem; }
.checkbox-input { clip: rect(0 0 0 0); clip-path: inset(100%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.checkbox-input:checked + .checkbox-tile { border-color: #2260ff; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.checkbox-input:focus + .checkbox-tile { border-color: #2260ff; box-shadow: 0 5px 10px rgba(0,0,0,0.1), 0 0 0 4px #b5c9fc; }
.checkbox-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 6.3rem; min-height: 6.5rem; border-radius: 0.5rem; border: 2px solid transparent; background-color: var(--c-tile-bg); box-shadow: -16px 16px 6px rgba(0,0,0,0.1); transition: 0.15s ease; cursor: pointer; }
.checkbox-tile:hover { border-color: #2260ff; }
.checkbox-icon svg { width: 4rem; height: 2rem; color: whitesmoke; }
.checkbox-label { color: var(--c-white); text-align: center; font-size: 10px; padding: 0.5rem 0 0; }

/* ═══════════════════════════════════════════════════════════════
   SLIM MODULE CARDS (dashboard top)
   ═══════════════════════════════════════════════════════════════ */
.cards { transition: opacity var(--c-transition); cursor: pointer; }
.cards:hover { opacity: 0.75; }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-header-custom { text-align: center; background: var(--c-section); color: var(--c-white); padding: 0.75rem; border-radius: var(--c-radius-sm) var(--c-radius-sm) 0 0; }
.section-title-custom { background: var(--c-primary); color: var(--c-white); font-weight: 700; font-size: 32px; }
.badge-tag { display: inline-flex; align-items: center; border: 1px solid rgba(15,75,134,0.1); padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.78rem; font-weight: 700; color: var(--c-primary); background: rgba(15,75,134,0.04); }

/* ═══════════════════════════════════════════════════════════════
   COLORS
   ═══════════════════════════════════════════════════════════════ */
.bg-primary { background-color: var(--c-primary) !important; }
.bg-primary-dark { background-color: var(--c-primary-dark) !important; }
.bg-primary-light { background-color: var(--c-primary-light) !important; }
.bg-dark-purple { background-color: var(--c-dark-purple) !important; }
.bg-navy { background-color: var(--c-navy) !important; }
.bg-navy2 { background-color: var(--c-navy2) !important; }
.bg-dark-gray { background-color: var(--c-dark-gray) !important; }
.bg-section { background-color: var(--c-section) !important; }
.bg-orange { background-color: var(--c-orange) !important; }
.bg-crimson { background-color: var(--c-crimson) !important; }
.bg-card { background-color: var(--c-card-bg) !important; }
.bg-white { background-color: var(--c-white) !important; }
.bg-light-gray { background-color: var(--c-bg) !important; }
.bg-transparent { background-color: transparent !important; }
.levatcss { background-color: #083F6D; }
.newcolor { background-color: #093D6C; }
.hnewss { background-color: #16446e; color: var(--c-white); }

.text-primary { color: var(--c-primary) !important; }
.text-white { color: var(--c-white) !important; }
.text-dark { color: var(--c-text-dark) !important; }
.text-body { color: var(--c-text-body) !important; }
.text-muted { color: var(--c-muted) !important; }
.text-label { color: var(--c-label) !important; }
.text-tomato { color: Tomato !important; }
.text-crimson { color: var(--c-crimson) !important; }
.text-navy { color: var(--c-navy) !important; }
.text-ghost { color: ghostwhite !important; }
.text-accent { color: var(--c-accent) !important; }
.text-gold { color: var(--c-gold) !important; }
.text-design { font-size: 15px; font-weight: 700; color: #0b1c60; }
.required-label::after { content: " *"; color: red; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
.fw-400 { font-weight: 400 !important; } .fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; } .fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; } .fw-900 { font-weight: 900 !important; }
.fw-bold { font-weight: 700 !important; }
.fs-9 { font-size: 9px !important; } .fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; } .fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; } .fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; } .fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18px !important; } .fs-20 { font-size: 20px !important; }
.fs-25 { font-size: 25px !important; } .fs-32 { font-size: 32px !important; }
.fs-xs { font-size: xx-small !important; }
.fs-sm { font-size: x-small !important; }
.fs-small { font-size: smaller !important; }

/* ═══════════════════════════════════════════════════════════════
   SPACING
   ═══════════════════════════════════════════════════════════════ */
.mt-0 { margin-top: 0 !important; }
.mt-2px { margin-top: 2px !important; } .mt-4px { margin-top: 4px !important; }
.mt-5px { margin-top: 5px !important; } .mt-8px { margin-top: 8px !important; }
.mt-9px { margin-top: 9px !important; } .mt-10px { margin-top: 10px !important; }
.mt-14px { margin-top: 14px !important; } .mt-15px { margin-top: 15px !important; }
.mt-18px { margin-top: 18px !important; }
.mt-neg10 { margin-top: -10px !important; } .mt-neg14 { margin-top: -14px !important; }
.mt-neg16 { margin-top: -16px !important; } .mt-neg17 { margin-top: -17px !important; }
.mt-neg18 { margin-top: -18px !important; } .mt-neg23 { margin-top: -23px !important; }
.mt-neg36 { margin-top: -36px !important; }
.mb-4px { margin-bottom: 4px !important; } .mb-5px { margin-bottom: 5px !important; }
.mb-7px { margin-bottom: 7px !important; } .mb-8px { margin-bottom: 8px !important; }
.mb-15px { margin-bottom: 15px !important; }
.ml-12px { margin-left: 12px !important; } .ml-16px { margin-left: 16px !important; }
.ml-18px { margin-left: 18px !important; } .ml-neg16 { margin-left: -16px !important; }
.mr-5px { margin-right: 5px !important; } .mr-9px { margin-right: 9px !important; }
.p-5px { padding: 5px !important; } .p-0 { padding: 0 !important; }
.pl-38px { padding-left: 38px !important; } .pb-7px { padding-bottom: 7px !important; }

/* ═══════════════════════════════════════════════════════════════
   SIZING
   ═══════════════════════════════════════════════════════════════ */
.w-100 { width: 100% !important; } .w-auto { width: auto !important; }
.w-18px { width: 18px !important; } .w-20px { width: 20px !important; }
.w-23px { width: 23px !important; } .w-29px { width: 29px !important; }
.w-38rem { width: 38rem !important; }
.w-96px { width: 96px !important; } .w-99px { width: 99px !important; }
.w-100px { width: 100px !important; } .w-108px { width: 108px !important; }
.w-122px { width: 122px !important; } .w-136px { width: 136px !important; }
.w-150px { max-width: 150px !important; } .w-160px { width: 160px !important; }
.h-18px { height: 18px !important; } .h-20px { height: 20px !important; }
.h-27px { height: 27px !important; } .h-28px { height: 28px !important; }
.h-29px { height: 29px !important; } .h-30px { height: 30px !important; }
.h-38px { height: 38px !important; }
.h-45px { min-height: 45px !important; } .h-54px { min-height: 54px !important; }
.h-92px { height: 92px !important; } .h-125px { height: 125px !important; }
.h-178px { height: 178px !important; } .h-180px { height: 180px !important; }
.minh-45 { min-height: 45px !important; } .minh-54 { min-height: 54px !important; }
.minh-100 { min-height: 100px !important; }
.minh-400 { min-height: 400px !important; }
.maxh-14rem { max-height: 14rem !important; }
.maxh-244 { max-height: 244px !important; }
.maxh-400 { max-height: 400px !important; }

/* ═══════════════════════════════════════════════════════════════
   BORDERS
   ═══════════════════════════════════════════════════════════════ */
.border-navy-top { border-top: 3px solid var(--c-navy) !important; }
.border-navy2-top { border-top: 3px solid var(--c-navy2) !important; }
.border-gray-top { border-top: 3px solid #c1c1c1 !important; }
.border-green-bottom { border-bottom: 3px solid var(--c-success) !important; }
.border-gray-bottom { border-bottom: 3px solid #9ea59e !important; }
.border-left-right { border-left: 0.25rem solid #6F8DE4 !important; border-right: 0.25rem solid #6F8DE4 !important; }
.border-black { border: 1px solid #000 !important; }
.border-soft { border: 1px solid #64778b !important; }
.border-icon { border: 2px solid #1E3050 !important; }
.border-none { border: none !important; }
.border-b0 { border-bottom: 0 !important; }
.b-radius-4 { border-radius: 4px !important; }
.b-radius-5 { border-radius: 5px !important; }
.b-radius-10 { border-radius: 10px !important; }
.b-radius-50 { border-radius: 50% !important; }
.b-radius-74p { border-radius: 74% !important; }
.b-radius-pill { border-radius: 50px !important; }
.hrcid { border-top: 2px solid rgba(38,27,27,0.4); }

/* ═══════════════════════════════════════════════════════════════
   SHADOWS
   ═══════════════════════════════════════════════════════════════ */
.shadow-card { box-shadow: rgba(9,30,66,0.31) 0 0 1px 0, rgba(9,30,66,0.25) 0 1px 1px 0 !important; }
.shadow-sm-2 { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.shadow-btn { box-shadow: 0 5px 10px 0 rgba(0,0,0,0.24), 0 10px 30px 0 rgba(0,0,0,0.19) !important; }
.shadow-round { box-shadow: 0 0 1px 1px #ddd !important; }
.shadow-box { box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2) !important; }
.shadow-box2 { box-shadow: 4px 4px 8px rgba(0,0,0,0.2) !important; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT HELPERS
   ═══════════════════════════════════════════════════════════════ */
.d-none { display: none !important; }
.d-flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.text-center { text-align: center !important; } .text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.ws-nowrap { white-space: nowrap !important; }
.gap-35 { gap: 0.35rem !important; } .gap-4 { gap: 0.4rem !important; } .gap-25 { gap: 0.25rem !important; }
.c-pointer { cursor: pointer !important; }
.v-hidden { visibility: hidden !important; }
.scroll-y-auto { overflow-y: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.nowrap { white-space: nowrap; }
.header-underline { border-bottom: 2px solid rgba(0,0,0,.1) !important; }

/* ═══════════════════════════════════════════════════════════════
   CONTAINERS
   ═══════════════════════════════════════════════════════════════ */
.card-container { background-color: var(--c-white) !important; box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.card-section { border-radius: 4px !important; box-shadow: rgba(9,30,66,0.31) 0 0 1px 0, rgba(9,30,66,0.25) 0 1px 1px 0 !important; background-color: var(--c-card-bg) !important; }
.card-section-white { border-radius: 4px !important; box-shadow: rgba(9,30,66,0.31) 0 0 1px 0, rgba(9,30,66,0.25) 0 1px 1px 0 !important; background-color: rgb(255,255,255) !important; }
.section-row-neg { margin-top: -7px !important; border-radius: 4px !important; box-shadow: rgba(9,30,66,0.31) 0 0 1px 0, rgba(9,30,66,0.25) 0 1px 1px 0 !important; background-color: rgb(255,255,255) !important; }
.premium-row { margin: 0.5rem 0 0 15rem !important; width: 38rem !important; }
.divider-light { height: 2px !important; background: rgba(6,1,1,0.14) !important; margin: 0.28rem 0 !important; }
.divider-thin { height: 1px !important; background: rgba(0,0,0,0.04) !important; margin: 0.28rem 0 !important; }
.kv-row { display: flex !important; justify-content: space-between !important; padding: 0.2rem 0 !important; border-bottom: 1px solid rgba(0,0,0,0.04) !important; }
.icon-pad { padding: 0 0.4rem 0 0 !important; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-sm-custom { margin: 0 !important; height: 38px !important; font-size: 11px !important; }
.btn-sm-custom2 { margin: 0 !important; height: 30px !important; font-size: 11px !important; }
.btn-icon-sm { height: 28px !important; width: 29px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border: none !important; }
.btn-icon-xs { height: 20px !important; width: 20px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
.btn-icon-navy { height: 27px !important; width: 18px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
.btn-min-w100 { min-width: 100px !important; }
.btn-min-w108 { min-width: 108px !important; }
.btn-min-w200 { min-width: 200px !important; }
.btn-pay { background-color: var(--c-primary) !important; min-width: 108px !important; min-height: 45px !important; color: var(--c-white) !important; border: none !important; border-radius: 50px !important; }
.btn-pay-lg { background-color: var(--c-primary) !important; min-width: 200px !important; min-height: 54px !important; color: var(--c-white) !important; border: none !important; border-radius: 50px !important; }
.btn-exit { background-color: var(--c-crimson) !important; min-width: 100px !important; min-height: 45px !important; color: var(--c-white) !important; border: none !important; border-radius: 50px !important; }
.btn-exit-sm { background-color: var(--c-crimson) !important; height: 38px !important; width: 96px !important; color: var(--c-white) !important; border: none !important; border-radius: 50px !important; }
.btn-checkout { background: var(--c-dark-purple) !important; color: var(--c-white) !important; font-weight: 700 !important; padding: 0.5rem 1rem !important; border: none !important; border-radius: 50px !important; }
.btn-login { background: #362C5E; color: var(--c-white); border: none; border-radius: 50px; padding: 10px 16px; width: 180px; font-weight: 700; box-shadow: 0 8px 20px rgba(53,112,190,0.14); transition: transform 0.15s, box-shadow 0.15s; }
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(53,112,190,0.18); background: var(--c-primary-dark); color: var(--c-white); }
.btscss { background-color: #16446e; color: var(--c-white); }
.clscss { width: 120px; background-color: #9f222d; color: var(--c-white); }
.bouttonwa { width: 140px; background-color: #DC3545; }
.bouttonwssm { width: 140px; background-color: #093D6C; }
.bouttonw { width: 140px; background-color: #093D6C; }

/* ═══════════════════════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════════════════════ */
.inputClass { margin-top: -10px; }
.datainputs { margin-top: 20px; }
.datainputs input { border-radius: 5px; border: 1px solid #ddd; box-shadow: 0 0 1px #D8D8D8; margin: 0 30px 20px 0 !important; }
input:focus { outline: none; }
.add_input, .inputRemove { display: inline-block; color: #3d3d3d; text-align: center; text-decoration: none; width: auto; height: 40px; line-height: 40px; padding: 0 15px; border-radius: 5px; }
.inputRemove { cursor: pointer; }
.input-orange { background-color: var(--c-orange) !important; color: var(--c-text-dark) !important; font-weight: bold !important; }
.input-orange-right { text-align: right !important; background-color: var(--c-orange) !important; color: var(--c-text-dark) !important; font-weight: bold !important; }

/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */
.th-dark { background-color: var(--c-dark-gray) !important; color: var(--c-white) !important; }
.thead-dark-custom { background-color: var(--c-dark-gray) !important; color: var(--c-white) !important; }
.th-navy { background-color: var(--c-navy) !important; color: var(--c-white) !important; }
.th-navy-header { background-color: var(--c-navy) !important; color: var(--c-white) !important; }
.table-xs { font-size: 12px !important; }
.table-xs-11 { font-size: 11px !important; }
.table-xs-9 { font-size: 9px !important; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL — sidebar, topbar, content, modals, scroll-to-top
   Fully responsive: 320px → 576px → 768px → 992px → 1200px+
   Android: touch ≥44px, 16px inputs, GPU composited
   iOS: safe-area-*, momentum scroll, no text adjust
   ═══════════════════════════════════════════════════════════════ */

/* ── Wrapper: no flex (SB Admin 2 uses fixed sidebar) ── */
#wrapper { width: 100%; position: relative; }

/* ── Sidebar overlay ── */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1039;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

/* ── Sidebar container: handles positioning on ALL sizes ── */
.sidebar-container {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 1040;
  width: 224px;
  transition: left 0.34s cubic-bezier(0.22,0.61,0.36,1);
}

/* ── Override SB Admin 2's sidebar fixed position ── */
.sidebar-container .sidebar {
  position: static !important;
  width: 100% !important;
  min-height: 100vh;
  float: none !important;
}

/* ── Mobile: off-screen by default ── */
@media (max-width: 991.98px) {
  .sidebar-container { left: -280px; width: 280px; box-shadow: none; }
  .sidebar-container.active { left: 0; box-shadow: 4px 0 30px rgba(0,0,0,0.15); }
  #content-wrapper { margin-left: 0 !important; width: 100% !important; }
  #sidebarToggleTop { display: inline-block; }
}

/* ── Desktop: always visible ── */
@media (min-width: 992px) {
  .sidebar-container { left: 0; width: 224px; box-shadow: none; }
  #content-wrapper { margin-left: 224px; width: calc(100% - 224px); }
  .sidebar-overlay { display: none !important; }
  #sidebarToggleTop { display: none !important; }
}

/* ── 1200px+ wider sidebar ── */
@media (min-width: 1200px) {
  .sidebar-container { width: 240px; }
  #content-wrapper { margin-left: 240px; width: calc(100% - 240px); }
}

/* ── Sidebar brand (logo area) ── */
.sidebar .sidebar-brand {
  background: linear-gradient(135deg, #ffffff, #f4f6fb) !important;
  border: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 10px;
}
.sidebar .sidebar-brand .sidebar-brand-icon img {
  max-width: 76%;
  height: auto;
  transition: transform 0.36s cubic-bezier(0.34,1.56,0.64,1);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.05));
}
.sidebar .sidebar-brand:hover .sidebar-brand-icon img {
  transform: scale(1.04) rotate(-1.5deg);
}

/* ── Sidcard container ── */
.sidcard { padding: 2px 0 16px; }

/* ── Sidebar divider ── */
.sidebar .sidebar-divider {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 5px 14px;
}

/* ── Module heading nav links ── */
.sidebar-dark .nav-item .nav-link {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.82rem;
  border-radius: 8px;
  margin: 1px 8px;
  padding: 9px 14px;
  transition: all 0.22s cubic-bezier(0.22,0.61,0.36,1);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.1px;
  min-height: 40px;
}
.sidebar-dark .nav-item .nav-link:hover {
  background: rgba(255,255,255,0.10);
  color: #fff !important;
  padding-left: 20px;
}
.sidebar-dark .nav-item.active > .nav-link {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
  box-shadow: inset 3px 0 0 rgba(255,255,255,0.35);
}
.sidebar-dark .nav-item .nav-link i {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  transition: transform 0.22s;
  flex-shrink: 0;
}
.sidebar-dark .nav-item .nav-link:hover i { transform: scale(1.15); }
.sidebar-dark .nav-item .nav-link span {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* left bar indicator */
.sidebar-dark .nav-item .nav-link::before {
  content: ''; position: absolute; left: 0; top: 24%; height: 52%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: transparent; transition: background 0.26s;
}
.sidebar-dark .nav-item .nav-link:hover::before { background: rgba(255,255,255,0.5); }

/* ── Module open state ── */
.sidebar-dark .nav-item .nav-link:not(.collapsed) {
  background: rgba(255,255,255,0.07);
  color: #fff !important;
}
.sidebar-dark .nav-item .nav-link:not(.collapsed) i { color: #88b4ff; }

/* ── Collapse inner ── */
.sidebar .bg-dark.collapse-inner,
.sidebar .collapse-inner {
  background: rgba(0,0,0,0.30) !important;
  border-radius: 8px;
  margin: 1px 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 4px 0;
}

/* ── Collapse items (submenu links) ── */
.sidebar .collapse-item {
  color: rgba(255,255,255,0.62) !important;
  font-size: 0.78rem;
  padding: 6px 12px 6px 22px !important;
  border-radius: 6px;
  transition: all 0.18s;
  display: block;
  margin: 1px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}
.sidebar .collapse-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  padding-left: 28px !important;
  text-decoration: none;
}
/* active submenu item */
.sidebar .collapse-item.active,
.submenu li.active > .collapse-item,
.submenu li.active a {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
  box-shadow: inset 2px 0 0 rgba(255,255,255,0.3);
  font-weight: 600;
}
.submenu li.active > i.iconcss { opacity: 1; color: #88b4ff; }
.sidebar .collapse-item i {
  margin-right: 6px;
  font-size: 0.7rem;
  width: 16px;
  text-align: center;
  opacity: 0.65;
  display: inline-block;
}

/* ── Submenu <ul> reset ── */
.submenu {
  list-style: none;
  padding: 0; margin: 0;
}
.submenu li {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.submenu li > i.iconcss {
  flex-shrink: 0;
  margin-left: 8px;
  width: 14px;
  text-align: center;
  font-size: 0.65rem;
  opacity: 0.55;
  color: inherit;
}
.submenu li > .collapse-item { flex: 1; min-width: 0; }
.submenu li a {
  color: rgba(255,255,255,0.62);
  font-size: 0.78rem;
  padding: 5px 10px 5px 6px;
  display: block;
  border-radius: 6px;
  transition: all 0.16s;
  text-decoration: none;
  margin: 0 4px;
}
.submenu li a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding-left: 10px;
}
.submenu li.active a {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
  box-shadow: inset 2px 0 0 rgba(255,255,255,0.3);
  font-weight: 600;
}
.submenu li.active > i.iconcss { opacity: 1; color: #88b4ff; }
.submenu li a i {
  margin-right: 6px;
  font-size: 0.65rem;
  width: 16px;
  text-align: center;
  opacity: 0.6;
  display: inline-block;
}
/* hide hardcoded default icon */
.submenu .collapse-item i.fas.fa-some-default-icon,
.submenu li a i.fas.fa-some-default-icon { display: none !important; }

/* ── iconcss ── */
.iconcss {
  color: inherit;
  margin: 0 4px 0 0;
  padding: 0;
  display: inline-block;
  width: 16px;
  text-align: center;
}

/* ── Sidebar scrollbar ── */
.sidebar-container::-webkit-scrollbar { width: 4px; }
.sidebar-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.sidebar-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }
.sidebar-container::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════════════════════════
   TOPBAR — glassmorphism, user dropdown, premium look
   ═══════════════════════════════════════════════════════════════ */
.topbar {
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 20px rgba(0,0,0,0.03), 0 1px 0 rgba(0,0,0,0.02);
  padding: 0 18px;
  min-height: 58px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s, background 0.3s;
}
/* subtle gradient border */
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,115,223,0.08), transparent);
  pointer-events: none;
}
/* dark mode topbar border */
@media (prefers-color-scheme: dark) {
  .topbar::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); }
}

/* ── Hamburger toggle ── */
.topbar .btn-link#sidebarToggleTop {
  color: #5a5c69;
  border-radius: 10px;
  padding: 8px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  margin-right: 10px;
  border: 1px solid rgba(0,0,0,0.04);
  background: rgba(255,255,255,0.3);
  text-decoration: none;
}
.topbar .btn-link#sidebarToggleTop:hover {
  background: rgba(78,115,223,0.06);
  color: #4e73df;
  transform: scale(1.05);
  border-color: rgba(78,115,223,0.12);
}
.topbar .btn-link#sidebarToggleTop:active { transform: scale(0.95); }
.topbar .btn-link#sidebarToggleTop i { font-size: 1.2rem; }

/* ── Nav items in topbar ── */
.topbar .navbar-nav { align-items: center; gap: 2px; }

/* ── Topbar divider ── */
.topbar .topbar-divider {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.06), transparent);
  margin: 0 8px;
}

/* ── Search dropdown (mobile only) ── */
.topbar .nav-item.d-sm-none .nav-link {
  padding: 8px; border-radius: 10px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.topbar .nav-item.d-sm-none .nav-link:hover { background: rgba(0,0,0,0.04); }
.topbar .nav-item.d-sm-none .nav-link i { font-size: 1rem; color: #5a5c69; }
.topbar .search-dropdown .dropdown-menu {
  margin-top: 10px; padding: 14px; min-width: 280px;
}
.topbar .search-dropdown .form-control {
  border-radius: 10px; height: 42px; font-size: 0.88rem;
  border: 1px solid #e8e8ed;
}
.topbar .search-dropdown .input-group-append .btn {
  border-radius: 0 10px 10px 0;
  padding: 0 16px;
  background: linear-gradient(135deg, #4e73df, #224abe);
  border: none;
}

/* ── User dropdown toggle ── */
.topbar .nav-item.dropdown > .nav-link.dropdown-toggle {
  padding: 4px 12px 4px 8px;
  border-radius: 30px;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  min-height: 42px;
}
.topbar .nav-item.dropdown > .nav-link.dropdown-toggle:hover {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.04);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.topbar .nav-item.dropdown > .nav-link.dropdown-toggle:after { display: none; }

/* user name text */
.topbar .nav-item.dropdown > .nav-link.dropdown-toggle .user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a4c5a;
  letter-spacing: 0.1px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* avatar — with online status ring */
.topbar .img-profile {
  width: 34px; height: 34px;
  border: 2px solid rgba(78,115,223,0.12);
  transition: border-color 0.22s, transform 0.22s;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.topbar .nav-item.dropdown > .nav-link.dropdown-toggle:hover .img-profile {
  border-color: rgba(78,115,223,0.35);
  transform: scale(1.04);
}
/* online status dot */
.topbar .nav-item.dropdown {
  position: relative;
}
.topbar .nav-item.dropdown > .nav-link.dropdown-toggle::before {
  content: '';
  position: absolute;
  bottom: 5px; right: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1CC88A;
  border: 2px solid #fff;
  z-index: 2;
  pointer-events: none;
}

/* ── User dropdown menu ── */
.topbar .dropdown-menu {
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.10);
  padding: 8px;
  margin-top: 10px;
  min-width: 180px;
}
.topbar .dropdown-menu .dropdown-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #858796;
  padding: 8px 14px 4px;
}
.topbar .dropdown-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  transition: background 0.15s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .dropdown-menu .dropdown-item:hover {
  background: #f0f2f7;
  padding-left: 18px;
}
.topbar .dropdown-menu .dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: #858796;
}
.topbar .dropdown-menu .dropdown-item:hover i { color: #4e73df; }
.topbar .dropdown-menu .dropdown-divider {
  margin: 4px 10px;
  border-top-color: #f1f1f5;
}

/* ── Logout item in dropdown ── */
.topbar .dropdown-menu .dropdown-item.logout-item { color: #e74a3b; }
.topbar .dropdown-menu .dropdown-item.logout-item i { color: #e74a3b; }
.topbar .dropdown-menu .dropdown-item.logout-item:hover { background: #fef0ef; }

/* ── Topbar responsive ── */
@media (max-width: 575.98px) {
  .topbar { padding: 0 12px; min-height: 52px; }
  .topbar .btn-link#sidebarToggleTop { width: 36px; height: 36px; padding: 6px; }
  .topbar .btn-link#sidebarToggleTop i { font-size: 1.05rem; }
  .topbar .img-profile { width: 30px; height: 30px; }
  .topbar .nav-item.dropdown > .nav-link.dropdown-toggle { padding: 2px 8px 2px 4px; min-height: 36px; }
  .topbar .nav-item.dropdown > .nav-link.dropdown-toggle .user-name { display: none; }
  .topbar .nav-item.dropdown > .nav-link.dropdown-toggle::before { bottom: 3px; right: 6px; width: 9px; height: 9px; }
  .topbar .topbar-divider { margin: 0 4px; height: 20px; }
}
@media (min-width: 576px) {
  .topbar { padding: 0 22px; min-height: 58px; }
}
@media (min-width: 992px) {
  .topbar { padding: 0 26px; min-height: 60px; }
}
@media (min-width: 1200px) {
  .topbar { padding: 0 30px; min-height: 62px; }
}

/* ── dropdown animated--grow-in (SB Admin 2 compatible) ── */
.dropdown-menu.animated--grow-in {
  animation: growIn 0.18s ease-out;
  transform-origin: top right;
}
@keyframes growIn {
  0% { opacity: 0; transform: scale(0.92) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── SB Admin 2 .shadow override for dropdowns ── */
.dropdown-menu.shadow { box-shadow: 0 12px 48px rgba(0,0,0,0.10) !important; }

/* ═══════════════════════════════════════════════════════════════
   SCROLL-TO-TOP
   ═══════════════════════════════════════════════════════════════ */
.scroll-to-top {
  position: fixed; right: 18px; bottom: 18px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4e73df, #224abe);
  color: #fff; border-radius: 50%;
  box-shadow: 0 6px 22px rgba(78,115,223,0.25);
  transition: transform 0.26s, box-shadow 0.26s, opacity 0.34s;
  opacity: 0; transform: translateY(16px) scale(0.9);
  z-index: 1031; text-decoration: none;
}
.scroll-to-top.show { opacity: 1; transform: translateY(0) scale(1); }
.scroll-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 34px rgba(78,115,223,0.35);
  color: #fff; text-decoration: none;
}
.scroll-to-top i { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════════════
   LOGOUT MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-content { border: none; border-radius: 18px; box-shadow: 0 24px 64px rgba(0,0,0,0.12); overflow: hidden; }
.modal-header { border-bottom: 1px solid #f1f1f5; background: #fafafe; padding: 16px 22px; }
.modal-title { font-weight: 700; font-size: 1.1rem; }
.modal-body { padding: 20px 22px; color: #5a5c69; font-size: 0.95rem; }
.modal-footer { border-top: 1px solid #f1f1f5; padding: 12px 22px; }
.modal-footer .btn { border-radius: 24px; padding: 7px 22px; font-weight: 600; font-size: 0.88rem; transition: all 0.2s; }
.modal-footer .btn-secondary { background: #e0e3eb; color: #4a4c5a; border: none; }
.modal-footer .btn-secondary:hover { background: #d0d4dc; transform: translateY(-1px); }
.modal-footer .btn-primary { background: linear-gradient(135deg, #4e73df, #224abe); border: none; }
.modal-footer .btn-primary:hover { background: linear-gradient(135deg, #2e59d9, #1a3a9e); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(78,115,223,0.2); }

/* ═══════════════════════════════════════════════════════════════
   STICKY FOOTER
   ═══════════════════════════════════════════════════════════════ */
.sticky-footer {
  border-top: 1px solid #f1f1f5;
  padding: 12px 0;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.sticky-footer .copyright { color: #858796; font-size: 0.82rem; letter-spacing: 0.2px; }

/* ═══════════════════════════════════════════════════════════════
   PAGE CONTENT
   ═══════════════════════════════════════════════════════════════ */
.container-fluid { padding: 18px; }
.body-content { min-height: calc(100vh - 140px); }
#content { min-height: calc(100vh - 56px); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 576px) {
  .topbar { padding: 8px 22px; }
  .container-fluid { padding: 22px; }
  .scroll-to-top { right: 22px; bottom: 22px; width: 44px; height: 44px; }
}
@media (min-width: 992px) {
  .sidebar-container { left: 0; width: 224px; }
  #content-wrapper { margin-left: 224px; width: calc(100% - 224px); }
  .sidebar-overlay { display: none !important; }
  #sidebarToggleTop { display: none !important; }
  .topbar { padding: 10px 26px; }
  .container-fluid { padding: 26px; }
}
@media (min-width: 1200px) {
  .sidebar-container { width: 240px; }
  #content-wrapper { margin-left: 240px; width: calc(100% - 240px); }
  .topbar { min-height: 60px; padding: 10px 30px; }
  .container-fluid { padding: 28px; }
  .modal-content { border-radius: 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   ANDROID — touch targets, font scaling
   ═══════════════════════════════════════════════════════════════ */
@media (-webkit-min-device-pixel-ratio: 1.5) and (pointer: coarse) {
  .sidebar-dark .nav-item .nav-link { min-height: 44px; padding: 10px 14px; }
  .sidebar .collapse-item { min-height: 40px; padding: 8px 12px 8px 22px !important; }
  .submenu li a { min-height: 40px; padding: 7px 10px 7px 6px; }
  .topbar { min-height: 60px; }
  .topbar .btn-link { min-width: 44px; min-height: 44px; }
  .topbar .img-profile { width: 40px; height: 40px; }
  .form-control, .btn { font-size: 16px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   iOS — safe areas, momentum scroll, text adjust
   ═══════════════════════════════════════════════════════════════ */
@supports (padding-top: env(safe-area-inset-top)) {
  body { padding-top: var(--safe-top); padding-bottom: var(--safe-bottom); }
  .sidebar-container { padding-top: var(--safe-top); }
}
@supports (-webkit-touch-callout: none) {
  body { -webkit-text-size-adjust: 100%; }
  input, textarea, select, .form-control { font-size: 16px !important; }
  .sidebar-container { -webkit-overflow-scrolling: touch; }
  .table-responsive, .scroll-wrapper { -webkit-overflow-scrolling: touch; }
}

/* ═══════════════════════════════════════════════════════════════
   320px–480px (small phones)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .topbar { padding: 6px 12px; min-height: 50px; }
  .topbar .btn-link { min-width: 36px; min-height: 36px; }
  .topbar .btn-link i { font-size: 1.1rem; }
  .topbar .img-profile { width: 30px; height: 30px; }
  .topbar .nav-link.dropdown-toggle { padding: 2px 6px; }
  .topbar .mr-2.d-none.d-lg-inline { display: none !important; }
  .container-fluid { padding: 12px; }
  .sidebar-container { width: 260px; }
  .scroll-to-top { right: 12px; bottom: 12px; width: 36px; height: 36px; }
  .scroll-to-top i { font-size: 0.95rem; }
  .modal-content { border-radius: 14px; margin: 8px; }
  .modal-header { padding: 14px 16px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 10px 16px; }
  .modal-footer .btn { padding: 6px 16px; font-size: 0.82rem; border-radius: 20px; }
  .sticky-footer { padding: 8px 0; }
  .sticky-footer .copyright { font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE (admin panel)
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(30,30,35,0.85) !important; }
  .topbar .btn-link { color: #aaa; }
  .topbar .btn-link:hover { background: rgba(255,255,255,0.06); color: #eee; }
  .topbar .nav-link.dropdown-toggle:hover { background: rgba(255,255,255,0.05); }
  .dropdown-menu { background: #2a2a30; }
  .dropdown-menu .dropdown-item { color: #ccc; }
  .dropdown-menu .dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .modal-content { background: #2a2a30; }
  .modal-header { background: #32323a; }
  .modal-body { color: #bbb; }
  .sticky-footer { background: rgba(30,30,35,0.6); }
  .sticky-footer .copyright { color: #888; }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .sidebar-container, .sidebar-dark .nav-item .nav-link,
  .sidebar .collapse-item, .submenu li a, .scroll-to-top,
  .modal-footer .btn, .sidebar-brand img {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .sidebar-brand:hover img { transform: none; }
  .scroll-to-top:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .sidebar-container, .topbar, #sidebarToggleTop, .sidebar-overlay,
  .scroll-to-top, .no-print { display: none !important; }
  #content-wrapper { margin-left: 0 !important; width: 100% !important; }
  .card, .policy-item, .proposal-card { box-shadow: none !important; border: 1px solid #ddd; }
  body { font-size: 12pt; padding: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SITE.CSS LEGACY HELPERS (all preserved for backward compat)
   ═══════════════════════════════════════════════════════════════ */
.hov:hover { background-color: #2191a3 !important; transition: background-color 1s ease-out 50ms; }
.div-class { margin-top: -20px; }
.marg { margin: 0.3rem 0 0 -0.95rem; }
.macss { margin: 0 0 0 -5rem; }
.negss { margin: 0.5rem 0.5rem -0.7rem 1.5rem; }
.macsss { margin: 0 0 0 -7rem; }
.macssss { margin: 0 0 0 -6rem; }
.stylecss { background-color: #FAFAFC; margin: 0 0 0 5rem; }
.kkdss { padding: 0 0.5rem 0 0.5rem; margin: -5.9rem 0 0 0; }
.btncsss { padding: -1rem 0 0 26rem; }
.btncsssa { padding: 0 0 0 14rem; }
.prevbtn { padding: 0 0 0 3rem; }
.profile-user-img { border-radius: 50%; border: 3px solid #adb5bd; margin: 0 auto; padding: 9px; width: 100px; box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 36px rgba(0,0,0,.2); margin-bottom: 1rem; }
.img-fluids { max-width: 60%; height: auto; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE — auth-wrap, panels, inputs, animations
   ═══════════════════════════════════════════════════════════════ */
.auth-wrap {
  max-width: 850px; margin: 0 auto;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(11,34,86,0.10);
  display: flex; min-height: 520px;
  background: var(--c-white);
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.2,0.8,0.2,1);
  position: relative;
  top: 69px;
}
.auth-wrap:hover { transform: translateY(-4px) scale(1.001); }
/* subtle outer ring */
.auth-wrap::before {
  content: ''; position: absolute; inset: 6px;
  border-radius: 12px;
  border: 5px solid rgba(149,123,255,0.06);
  pointer-events: none;
  animation: ringPulse 4.6s infinite ease-in-out;
}
@keyframes ringPulse {
  0% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.05; transform: scale(0.998); }
  100% { opacity: 0.12; transform: scale(1); }
}
.panel-left {
  flex: 0.95; background: var(--c-white);
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.panel-left .left-top-logo {
  position: absolute; left: 12px; top: 12px;
  height: 34px; width: auto; z-index: 6;
  border-radius: 6px; padding: 3px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.login-card { width: 100%; max-width: 324px; }
.logo-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; justify-content: center;
}
.logo-row img { height: 38px; transition: transform 0.35s; }
.logo-row img:hover { transform: rotate(-4deg) scale(1.02); }
.logo-caption {
  color: #9aa3b2; font-size: 1.5rem;
  overflow: hidden; white-space: nowrap;
}
.typed-text {
  display: inline;
  font-weight: 600; color: #8d94a6;
}
.cursor-blink {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: rgba(0,0,0,0.12);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.75s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.login-title { font-weight: 700; margin-bottom: 6px; color: #222; letter-spacing: 0.3px; }
.login-sub { color: #6b6b6b; margin-bottom: 10px; font-size: 0.92rem; }
.form-label { font-size: 0.78rem; font-weight: 700; color: #6b6b6b; margin-bottom: 6px; letter-spacing: 0.2px; }
.input-wrap {
  position: relative; margin-bottom: 10px;
  transition: transform 0.22s;
}
.input-icon {
  position: absolute; left: 10px; top: 68%;
  transform: translateY(-50%);
  color: #9aa3b2; font-size: 1.03rem;
  pointer-events: none; z-index: 3;
  transition: transform 0.22s, color 0.18s;
}
.form-control {
  padding-left: 42px; height: 38px;
  border-radius: 8px; border: 1px solid #ececec;
  font-size: 0.92rem;
  transition: box-shadow 0.22s, border-color 0.18s, transform 0.18s;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.45));
  backdrop-filter: blur(2px);
}
.input-wrap:focus-within { transform: translateY(-1.5px); }
.input-wrap:focus-within .form-control {
  box-shadow: 0 8px 20px rgba(53,112,190,0.06);
  border-color: #3570BE;
}
.input-wrap:focus-within .input-icon {
  transform: translateY(-50%) translateX(-6px) scale(1.04);
  color: #3570BE;
}
.input-wrap::after {
  content: ''; position: absolute;
  left: 12px; right: 12px; bottom: -6px;
  height: 3px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(53,112,190,0), rgba(53,112,190,0));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.28s, background 0.28s;
  pointer-events: none;
}
.input-wrap:focus-within::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, rgba(53,112,190,0.12), rgba(53,112,190,0.35));
}
.form-control.is-invalid { border-color: #e55353; animation: shake 0.35s; }
@keyframes shake {
  10% { transform: translateX(-6px); }
  30% { transform: translateX(4px); }
  50% { transform: translateX(-3px); }
  70% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}
.panel-right {
  flex: 1.15;
  background: linear-gradient(180deg, #362C5E 0%, #362C5E 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; position: relative; overflow: hidden;
}
.illustration-box {
  width: 94%; height: 84%;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 10px 26px rgba(0,0,0,0.06);
  animation: floaty 6.5s ease-in-out infinite;
}
.illustration-box img { max-width: 88%; height: auto; display: block; user-select: none; pointer-events: none; }
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* LOGIN RESPONSIVE */
@media (max-width: 991.98px) {
  .auth-wrap { min-height: auto; box-shadow: 0 8px 26px rgba(11,34,86,0.08); }
  .panel-left { padding: 16px; }
  .panel-left .left-top-logo { display: none; }
}
@media (max-width: 575.98px) {
  .btn-login { width: 100%; }
  .form-control { height: 36px; padding-left: 40px; font-size: 0.9rem; }
  .input-icon { font-size: 0.98rem; left: 9px; }
  .login-card { padding-bottom: 6px; }
}
@media (max-width: 480px) {
  .auth-wrap { flex-direction: column; max-width: 420px; margin: 12px auto; border-radius: 14px; min-height: auto; box-shadow: 0 10px 28px rgba(11,34,86,0.08); padding-bottom: 14px; }
  .panel-left { flex: 1 1 auto; padding: 12px 14px; border-radius: 12px; align-items: flex-start; }
  .panel-left .left-top-logo { position: static; display: block; margin: 8px auto 6px; height: 46px; width: auto; box-shadow: none; background: transparent; }
  .logo-row { justify-content: center; gap: 6px; margin-bottom: 6px; }
  .logo-caption { font-size: 1.05rem; text-align: center; white-space: normal; }
  .login-card { max-width: 100%; width: 100%; padding: 2px 0 6px; }
  .form-control { height: 44px; padding-left: 44px; font-size: 0.95rem; border-radius: 10px; }
  .input-wrap { margin-bottom: 8px; }
  .btn-login { width: 100%; padding: 10px 12px; border-radius: 10px; }
  .auth-wrap::before { display: none; }
  .illustration-box { animation: none !important; }
  body { padding: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   OPENPAGE — public landing page (non-auth)
   ═══════════════════════════════════════════════════════════════ */
.openpage-body {
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
  font-family: 'Nunito','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}
.openpage-body .content-wrapper { flex: 1 0 auto; }
/* TOP BAR */
.top-bar {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4fa 100%);
  padding: 12px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar .brand img {
  height: 36px; width: auto;
  transition: transform 0.3s ease;
}
.top-bar .brand:hover img { transform: scale(1.04); }
.top-bar .user-info { font-size: 13px; color: var(--c-muted); }
.top-bar .user-info .phone { font-weight: 700; color: var(--c-primary); margin-left: 4px; }
/* HERO HEADING */
.main-heading {
  text-align: center;
  margin: 28px 0;
  font-weight: 800;
  color: var(--c-dark-purple);
  font-size: 1.75rem;
  letter-spacing: -0.3px;
  position: relative;
}
.main-heading::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  margin: 10px auto 0;
  border-radius: 4px;
}
/* HERO BUTTON */
.hero-btn {
  background: var(--c-dark-purple) !important;
  color: var(--c-white) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.55rem 1.5rem !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 16px rgba(54,44,94,0.15);
  transition: transform 0.25s, box-shadow 0.25s;
  min-width: 140px;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(54,44,94,0.2);
  color: var(--c-white) !important;
}
/* FOOTER TOP */
.footer-top { background: linear-gradient(135deg, #dfeefc 0%, #c8ddf0 100%) !important; padding: 28px 0 16px; }
.footer-top h5 { font-size: 0.9rem; font-weight: 700; color: var(--c-dark-purple); margin-bottom: 10px; }
.footer-top a { display: block; color: #444; text-decoration: none; font-size: 0.82rem; margin-bottom: 4px; transition: color 0.2s; }
.footer-top a:hover { color: var(--c-primary); text-decoration: underline; }
.footer-top p { color: #444; margin: 0 0 4px; font-size: 0.82rem; }
/* FOOTER BOTTOM */
.footer-bottom { padding: 12px 0; font-size: 0.82rem; color: #666; }
.footer-bottom img { max-height: 28px; margin: 4px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 320px to 575px (phones)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  .policy-item { padding: 1.25rem 0.75rem 1rem; }
  .policy-item img { height: 52px; }
  .policy-item h5 { font-size: 0.78rem; min-height: 2em; }
  .policy-item .btn { font-size: 0.72rem; padding: 0.4rem 0.75rem; min-width: 90px; min-height: 36px; }
  .proposal-card { padding: 0.75rem; min-width: auto; }
  .proposal-card .kv-row .k,
  .proposal-card .kv-row .v { font-size: 0.8rem; }
  .payment-card { max-width: 100%; margin: 1rem; padding: 1.25rem; }
  .check-container { width: 60px; height: 60px; }
  .check-container i { font-size: 26px; }
  .payment-card h2 { font-size: 1.1rem; }
  .fs-32 { font-size: 1.5rem !important; }
  .w-38rem { width: 100% !important; }
  .premium-row { margin: 0.5rem 0 !important; width: 100% !important; }
  .btn-sm-custom, .btn-sm-custom2 { width: 100% !important; }
  .mt-neg10, .mt-neg16, .mt-neg17, .mt-neg18, .mt-neg23, .mt-neg36 { margin-top: 0 !important; }
  .checkbox-tile { width: 5rem; min-height: 5.5rem; }
  .checkbox-group { width: 100%; }
  .btn-login { width: 100%; }
  body { padding: 8px; }
  .container.policies { padding-left: 0; padding-right: 0; }
}

/* ── 576px – 767px (large phones / small tablets) ── */
@media (min-width: 576px) and (max-width: 767.98px) {
  .w-38rem { width: 100% !important; }
  .premium-row { margin: 0.5rem 1rem !important; width: auto !important; }
  .payment-card { max-width: 90%; }
  .policy-item img { height: 56px; }
}

/* ── 768px – 991px (tablets) ── */
@media (min-width: 768px) and (max-width: 991.98px) {
  .policy-item { padding: 1.5rem 0.75rem 1rem; }
  .policy-item img { height: 64px; }
  .proposal-card { max-width: 100%; }
}

/* ── 992px – 1199px (desktop) ── */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .policy-item img { height: 72px; }
  .sticky-summary { position: sticky; top: 0.6rem; }
}

/* ── 1200px+ (large desktop) ── */
@media (min-width: 1200px) {
  .policy-item { padding: 2rem 1.25rem 1.5rem; }
  .policy-item img { height: 80px; }
  .policy-item h5 { font-size: 0.9rem; }
  .sticky-summary { position: sticky; top: 0.6rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ANDROID — all versions, touch targets, font scaling
   ═══════════════════════════════════════════════════════════════ */
@media (-webkit-min-device-pixel-ratio: 1.5) and (pointer: coarse) {
  .btn, button, a, select, input[type="submit"], input[type="button"],
  .policy-item .btn { min-height: 44px; min-width: 44px; }
  .policy-item .btn { min-height: 40px; }
  .form-control, select.form-control { font-size: 16px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   iOS — safe areas, momentum scrolling, text adjustment
   ═══════════════════════════════════════════════════════════════ */
@supports (padding-top: env(safe-area-inset-top)) {
  body { padding-top: var(--safe-top); padding-bottom: var(--safe-bottom); }
}
@supports (-webkit-touch-callout: none) {
  body { -webkit-text-size-adjust: 100%; }
  input, textarea, select { font-size: 16px !important; }
  .table-responsive, .scroll-wrapper { -webkit-overflow-scrolling: touch; }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  .policy-item { background: #1e1e1e; border-color: #333; }
  .policy-item h5 { color: #8ab4f8; }
  .proposal-card { background: #1e1e1e; }
  .payment-card { background: #1e1e1e; }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .policy-item:hover { transform: none; }
  .policy-item:hover img { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .sidebar-container, .topbar, #sidebarToggleTop, .sidebar-overlay,
  .scroll-to-top, .no-print { display: none !important; }
  #content-wrapper { margin-left: 0 !important; }
  .card, .policy-item, .proposal-card { box-shadow: none !important; border: 1px solid #ddd; }
  body { font-size: 12pt; }
}
