:root {
   /* Core Brand */
   --green: #059669;
   --green-vivid: #10b981;
   --green-light: #d1fae5;
   --green-mid: #34d399;
   --red: #e11d48;
   --red-light: #ffe4e6;
   --orange: #f97316;

   /* Backgrounds */
   --bg: #f0f4ff;
   --bg-mesh: radial-gradient(at 40% 20%,
         rgba(16, 185, 129, 0.07) 0px,
         transparent 50%),
      radial-gradient(at 80% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
      radial-gradient(at 0% 50%, rgba(5, 150, 105, 0.05) 0px, transparent 50%);
   --surface: #ffffff;

   /* Sidebar */
   --sidebar-bg: #0c1628;
   --sidebar-glow: rgba(16, 185, 129, 0.18);
   --sidebar-text: #8b9fc0;
   --sidebar-active: #ffffff;

   /* Borders & Shadows */
   --border: #e2e8f3;
   --border-focus: #10b981;
   --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
   --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
   --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09),
      0 2px 6px rgba(15, 23, 42, 0.06);
   --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.14),
      0 6px 20px rgba(15, 23, 42, 0.08);
   --shadow-green: 0 8px 24px rgba(5, 150, 105, 0.25);
   --shadow-glow: 0 0 0 3px rgba(16, 185, 129, 0.2);

   /* Text */
   --text-primary: #0f172a;
   --text-secondary: #475569;
   --text-muted: #94a3b8;

   /* Accents */
   --blue: #09a372;
   --blue-light: #eef2ff;
   --purple: #7c3aed;
   --yellow: #d97706;
   --yellow-light: #fef3c7;

   /* Radii */
   --radius-xs: 6px;
   --radius-sm: 10px;
   --radius: 14px;
   --radius-lg: 20px;
   --radius-xl: 28px;
}

*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

html {
   -webkit-font-smoothing: antialiased;
}

body {
   font-family: 'Cormorant Garamond', Georgia, serif;;
   background: var(--bg);
   background-image: var(--bg-mesh);
   background-attachment: fixed;
   color: var(--text-primary);
   min-height: 100vh;
   overflow-x: hidden;
}

button {
   cursor: pointer;
   font-family: 'Cormorant Garamond', Georgia, serif;
}

input,
textarea,
select {
   font-family: 'Cormorant Garamond', Georgia, serif;
   outline: none;
}

/* ── SCREEN SYSTEM ── */
.screen {
   display: none;
}

.screen.active {
   display: flex;
}

/* ══════════════════════════════════════
   LOGIN SCREEN
══════════════════════════════════════ */
#screen-login {
   min-height: 100vh;
   background: linear-gradient(135deg, #060f20 0%, #0c2240 45%, #071525 100%);
   align-items: center;
   justify-content: center;
   position: relative;
   overflow: hidden;
}

#screen-login::before {
   content: "";
   position: absolute;
   width: 700px;
   height: 700px;
   background: radial-gradient(circle,
         rgba(16, 185, 129, 0.22) 0%,
         transparent 65%);
   top: -180px;
   right: -180px;
   border-radius: 50%;
   animation: pulse 6s ease-in-out infinite;
}

#screen-login::after {
   content: "";
   position: absolute;
   width: 500px;
   height: 500px;
   background: radial-gradient(circle,
         rgba(79, 70, 229, 0.18) 0%,
         transparent 65%);
   bottom: -120px;
   left: -120px;
   border-radius: 50%;
   animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {

   0%,
   100% {
      transform: scale(1);
      opacity: 1;
   }

   50% {
      transform: scale(1.08);
      opacity: 0.8;
   }
}

/* Floating grid lines */
#screen-login .grid-lines {
   position: absolute;
   inset: 0;
   background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px,
         transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
   background-size: 60px 60px;
   pointer-events: none;
}

.login-card {
   background: rgba(255, 255, 255, 0.98);
   border-radius: var(--radius-xl);
   padding: 52px 48px;
   width: 460px;
   max-width: 95vw;
   position: relative;
   z-index: 1;
   box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.12);
   animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardIn {
   from {
      transform: translateY(24px) scale(0.97);
      opacity: 0;
   }

   to {
      transform: translateY(0) scale(1);
      opacity: 1;
   }
}

/* Accent stripe at top of card */
.login-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 40px;
   right: 40px;
   height: 3px;
   background: linear-gradient(90deg, var(--green), #34d399, #09a372);
   border-radius: 0 0 4px 4px;
}

.login-logo {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 32px;
}

.logo-icon {
   width: 46px;
   height: 46px;
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   border-radius: 14px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   font-weight: 800;
   color: white;
   font-family: 'Cormorant Garamond', Georgia, serif;
   box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
   letter-spacing: -1px;
}

.logo-text {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 23px;
   font-weight: 700;
   color: var(--text-primary);
   letter-spacing: -0.5px;
}

.logo-text span {
   color: var(--green);
}

.login-tagline {
   font-size: 12.5px;
   color: var(--text-muted);
   margin-top: 2px;
   font-weight: 500;
}

.login-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 28px;
   font-weight: 700;
   margin-bottom: 6px;
   letter-spacing: -0.5px;
}

.login-subtitle {
   color: var(--text-secondary);
   font-size: 14px;
   margin-bottom: 32px;
   line-height: 1.5;
}

.promo-badge {
   background: linear-gradient(135deg, var(--green-light), #ecfdf5);
   border: 1px solid rgba(5, 150, 105, 0.25);
   border-radius: 10px;
   padding: 11px 15px;
   font-size: 13px;
   color: var(--green);
   font-weight: 600;
   margin-bottom: 28px;
   display: flex;
   align-items: center;
   gap: 9px;
   box-shadow: var(--shadow-xs);
}

.form-label {
   font-size: 11.5px;
   font-weight: 700;
   color: var(--text-secondary);
   margin-bottom: 7px;
   display: block;
   text-transform: uppercase;
   letter-spacing: 0.8px;
}

.phone-input-group {
   display: flex;
   border: 2px solid var(--border);
   border-radius: var(--radius-sm);
   overflow: hidden;
   margin-bottom: 20px;
   transition: border-color 0.2s, box-shadow 0.2s;
   background: white;
}

.phone-input-group:focus-within {
   border-color: var(--green);
   box-shadow: var(--shadow-glow);
}

.phone-prefix {
   background: #f8fafc;
   padding: 13px 15px;
   font-size: 14px;
   font-weight: 600;
   color: var(--text-secondary);
   border-right: 2px solid var(--border);
   display: flex;
   align-items: center;
   gap: 7px;
}

.phone-input-group input {
   flex: 1;
   padding: 13px 15px;
   border: none;
   font-size: 16px;
   font-weight: 500;
   background: white;
   color: var(--text-primary);
}

.lang-selector {
   display: flex;
   gap: 6px;
   flex-wrap: wrap;
   margin-bottom: 28px;
}

.lang-btn {
   padding: 5px 12px;
   border-radius: 20px;
   border: 1.5px solid var(--border);
   font-size: 12px;
   font-weight: 600;
   color: var(--text-secondary);
   background: white;
   transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
   border-color: var(--green);
   color: var(--green);
   background: var(--green-light);
   box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.btn-primary {
   width: 100%;
   padding: 15px;
   background: linear-gradient(135deg, var(--green) 0%, var(--green-vivid) 100%);
   color: white;
   border: none;
   border-radius: var(--radius-sm);
   font-size: 15px;
   font-weight: 700;
   transition: all 0.2s;
   letter-spacing: 0.2px;
   box-shadow: var(--shadow-green);
   position: relative;
   overflow: hidden;
}

.btn-primary::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(rgba(255, 255, 255, 0.15), transparent);
   border-radius: inherit;
}

.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

.btn-primary:active {
   transform: translateY(0);
}

.btn-primary:disabled {
   /* opacity: 0.45; */
   cursor: not-allowed;
   transform: none;
   box-shadow: none;
   width: 100px;
}

.otp-section {
   display: none;
}

.otp-inputs {
   display: flex;
   gap: 10px;
   margin-bottom: 20px;
}

.otp-inputs input {
   flex: 1;
   height: 54px;
   text-align: left;
   font-size: 24px;
   font-weight: 700;
   font-family: 'Cormorant Garamond', Georgia, serif;
   border: 2px solid var(--border);
   border-radius: var(--radius-sm);
   transition: all 0.2s;
   background: #f8fafc;
}

.otp-inputs input:focus {
   border-color: var(--green);
   background: white;
   box-shadow: var(--shadow-glow);
}

.otp-resend {
   text-align: left;
   font-size: 13px;
   color: var(--text-muted);
   margin-top: 12px;
}

.otp-resend a {
   color: var(--green);
   cursor: pointer;
   font-weight: 600;
}

/* ══════════════════════════════════════
   MAIN APP LAYOUT
══════════════════════════════════════ */
#screen-app {
   width: 100vw;
   min-height: 100vh;
   flex-direction: row;
}

/* ─ SIDEBAR ─ */
.sidebar {
   width: 232px;
   min-height: 100vh;
   background: var(--sidebar-bg);
   background-image: radial-gradient(ellipse at top left,
         rgba(16, 185, 129, 0.12) 0%,
         transparent 55%),
      radial-gradient(ellipse at bottom right,
         rgba(79, 70, 229, 0.1) 0%,
         transparent 55%);
   display: flex;
   flex-direction: column;
   padding: 0;
   flex-shrink: 0;
   position: fixed;
   left: 0;
   top: 0;
   bottom: 0;
   z-index: 100;
   border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
   display: flex;
   align-items: center;
   gap: 11px;
   padding: 24px 40px 15px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.07);
   margin-bottom: 6px;
   flex-shrink: 0;
}

.sidebar-logo .logo-icon {
   width: 38px;
   height: 38px;
   font-size: 15px;
   box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.sidebar-logo-text {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 19px;
   font-weight: 700;
   color: white;
   letter-spacing: -0.4px;
}

.sidebar-logo-text span {
   color: #34d399;
}

.sidebar-nav {
   flex: 1;
   padding: 10px 30px;
   overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
   width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.1);
   border-radius: 3px;
}

.nav-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 9px 12px;
   border-radius: 10px;
   color: var(--sidebar-text);
   font-size: 13px;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.18s;
   margin-bottom: 1px;
   position: relative;
}

.nav-item:hover {
   background: rgba(255, 255, 255, 0.07);
   color: #e2e8f0;
   transform: translateX(2px);
}

.nav-item.active {
   background: linear-gradient(135deg,
         rgba(16, 185, 129, 0.22) 0%,
         rgba(16, 185, 129, 0.08) 100%);
   color: #34d399;
   box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2);
}

.nav-item.active::before {
   content: "";
   position: absolute;
   left: 0;
   top: 25%;
   bottom: 25%;
   width: 3px;
   background: linear-gradient(180deg, #34d399, #10b981);
   border-radius: 0 3px 3px 0;
}

.nav-item svg {
   width: 17px;
   height: 17px;
   flex-shrink: 0;
}

.sidebar-logout-form {
   margin: 0;
}

.sidebar-logout-btn {
   width: 100%;
   border: 0;
   background: transparent;
   text-align: left;
   font: inherit;
}

.sidebar-business {
   padding: 12px 12px 16px;
   border-top: 1px solid rgba(255, 255, 255, 0.07);
   flex-shrink: 0;
}

.business-switcher {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 11px 12px;
   border-radius: 12px;
   cursor: pointer;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.08);
   transition: all 0.18s;
}

.business-switcher:hover {
   background: rgba(255, 255, 255, 0.09);
   border-color: rgba(255, 255, 255, 0.14);
   transform: translateY(-1px);
}

.business-avatar {
   width: 36px;
   height: 36px;
   border-radius: 10px;
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 13px;
   font-weight: 700;
   color: white;
   flex-shrink: 0;
   box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}

.business-info {
   flex: 1;
   min-width: 0;
}

.business-name {
   /* font-size: 12.5px; */
   font-weight: 700;
   color: white;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.business-sub {
   font-size: 10.5px;
   color: var(--sidebar-text);
   margin-top: 1px;
   font-weight: 500;
}

.business-switcher svg {
   color: var(--sidebar-text);
   width: 15px;
   height: 15px;
}

/* ─ MAIN CONTENT ─ */
.main-content {
   margin-left: 232px;
   flex: 1;
   display: flex;
   flex-direction: column;
   min-height: 100vh;
}

/* ─ HEADER ─ */
.app-header {
   background: rgba(255, 255, 255, 0.88);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border-bottom: 1px solid rgba(226, 232, 243, 0.8);
   padding: 0 80px;
   height: 62px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   position: sticky;
   top: 0;
   z-index: 50;
   box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.header-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 22px;
   font-weight: 700;
   letter-spacing: -0.4px;
   color: var(--text-primary);
}

.header-right {
   display: flex;
   align-items: center;
   gap: 12px;
}

.header-badge {
   background: linear-gradient(135deg, var(--green-light), #ecfdf5);
   color: var(--green);
   font-size: 10.5px;
   font-weight: 800;
   padding: 4px 10px;
   border-radius: 20px;
   letter-spacing: 0.5px;
   border: 1px solid rgba(5, 150, 105, 0.2);
   text-transform: uppercase;
}

.header-avatar {
   width: 38px;
   height: 38px;
   border-radius: 50%;
   background: linear-gradient(135deg, var(--green), #09a372);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 13px;
   font-weight: 700;
   color: white;
   cursor: pointer;
   box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3),
      0 0 0 3px rgba(5, 150, 105, 0.12);
   transition: all 0.2s;
}

.header-avatar:hover {
   transform: scale(1.08);
   box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}

/* ══════════════════════════════════════
   LEDGER / DASHBOARD
══════════════════════════════════════ */
.ledger-layout {
   display: flex;
   flex: 1;
   height: calc(100vh - 62px);
}

/* ─ LEFT PANEL ─ */
.ledger-left {
   width: 348px;
   border-right: 1px solid var(--border);
   display: flex;
   flex-direction: column;
   background: white;
   flex-shrink: 0;
   box-shadow: 4px 0 20px rgba(15, 23, 42, 0.04);
}

.ledger-tabs {
   display: flex;
   border-bottom: 1px solid var(--border);
   background: #fafbff;
}

.ledger-tab {
   flex: 1;
   padding: 15px;
   text-align: center;
   font-size: 13.5px;
   font-weight: 700;
   letter-spacing: 1px;
   color: var(--text-muted);
   cursor: pointer;
   border-bottom: 2.5px solid transparent;
   transition: all 0.18s;
   text-transform: uppercase;
}

.ledger-tab:hover {
   color: var(--text-secondary);
   background: rgba(5, 150, 105, 0.03);
}

.ledger-tab.active {
   color: var(--green);
   border-bottom-color: var(--green);
   background: white;
}

.search-area {
   padding: 12px 14px;
   border-bottom: 1px solid var(--border);
   display: flex;
   align-items: center;
   gap: 8px;
   background: white;
}

.search-box {
   flex: 1;
   display: flex;
   align-items: center;
   gap: 8px;
   background: #f8fafc;
   border: 1.5px solid var(--border);
   border-radius: var(--radius-sm);
   padding: 8px 12px;
   transition: all 0.18s;
}

.search-box:focus-within {
   border-color: var(--green);
   background: white;
   box-shadow: var(--shadow-glow);
}

.search-box svg {
   color: var(--text-muted);
   width: 15px;
   height: 15px;
   flex-shrink: 0;
}

.search-box input {
   border: none;
   background: none;
   font-size: 13.5px;
   color: var(--text-primary);
   width: 100%;
}

.filter-btn {
   padding: 8px 11px;
   border: 1.5px solid var(--border);
   border-radius: var(--radius-sm);
   background: white;
   display: flex;
   align-items: center;
   gap: 5px;
   font-size: 12px;
   font-weight: 700;
   color: var(--text-secondary);
   transition: all 0.18s;
}

.filter-btn:hover {
   border-color: var(--green);
   color: var(--green);
   background: var(--green-light);
}

.customer-list {
   flex: 1;
   overflow-y: auto;
}

.customer-item {
   padding: 13px 16px;
   border-bottom: 1px solid #f1f5f9;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 12px;
   transition: all 0.15s;
   position: relative;
}

.customer-item::before {
   content: "";
   position: absolute;
   left: 0;
   top: 15%;
   bottom: 15%;
   width: 0;
   background: var(--green);
   border-radius: 0 3px 3px 0;
   transition: width 0.15s;
}

.customer-item:hover {
   background: #f8fafc;
}

.customer-item:hover::before {
   width: 3px;
}

.customer-item.active {
   background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.customer-item.active::before {
   width: 3px;
}

.customer-avatar {
   width: 42px;
   height: 42px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 15px;
   font-weight: 700;
   color: white;
   flex-shrink: 0;
   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.customer-meta {
   flex: 1;
   min-width: 0;
}

.customer-name {
   /* font-size: 13.5px; */
   font-weight: 700;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.customer-date {
   /* font-size: 11px; */
   color: var(--text-muted);
   margin-top: 2px;
   font-weight: 500;
}

.customer-balance {
   text-align: right;
}

.balance-amount {
   font-size: 13.5px;
   font-weight: 700;
   font-family: 'Cormorant Garamond', Georgia, serif;
}

.balance-amount.due {
   color: var(--red);
}

.balance-amount.advance {
   color: var(--green);
}

.balance-label {
   font-size: 10px;
   font-weight: 700;
   letter-spacing: 0.5px;
   margin-top: 3px;
   text-align: right;
   text-transform: uppercase;
}

.balance-label.due {
   color: var(--red);
}

.balance-label.advance {
   color: var(--green);
}

.add-customer-btn {
   margin: 12px 14px;
   padding: 12px;
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   color: white;
   border: none;
   border-radius: var(--radius-sm);
   font-size: 13.5px;
   font-weight: 700;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 7px;
   transition: all 0.18s;
   flex-shrink: 0;
   box-shadow: var(--shadow-green);
   letter-spacing: 0.1px;
}

.add-customer-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 28px rgba(5, 150, 105, 0.4);
}

/* ─ RIGHT PANEL ─ */
.ledger-right {
   flex: 1;
   display: flex;
   flex-direction: column;
   overflow: hidden;
   background: #f8faff;
}

.ledger-right-empty {
   flex: 1;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   color: var(--text-muted);
   gap: 14px;
}

.ledger-right-empty svg {
   width: 72px;
   height: 72px;
   opacity: 0.18;
}

.ledger-right-empty h3 {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 17px;
   color: var(--text-secondary);
   font-weight: 700;
}

.ledger-right-empty p {
   font-size: 13px;
   color: var(--text-muted);
}

/* ─ CUSTOMER LEDGER DETAIL ─ */
.customer-detail {
   display: none;
   flex-direction: column;
   height: 100%;
}

.customer-detail.show {
   display: flex;
}

.detail-header {
   padding: 18px 26px;
   border-bottom: 1px solid var(--border);
   background: white;
   display: flex;
   align-items: center;
   justify-content: space-between;
   box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.detail-header-left {
   display: flex;
   align-items: center;
   gap: 14px;
}

.detail-customer-avatar {
   width: 46px;
   height: 46px;
   border-radius: 14px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 17px;
   font-weight: 700;
   color: white;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.detail-customer-name {
   font-size: 16px;
   font-weight: 700;
   letter-spacing: -0.3px;
}

.detail-customer-phone {
   /* font-size: 12.5px; */
   color: var(--text-muted);
   margin-top: 2px;
   font-weight: 500;
}

.detail-customer-link {
   /* font-size: 12px; */
   color: var(--green);
   cursor: pointer;
   text-decoration: underline;
   font-weight: 600;
}

.detail-header-actions {
   display: flex;
   gap: 8px;
}

.action-btn {
   padding: 8px 14px;
   border-radius: var(--radius-sm);
   font-size: 15px;
   font-weight: 700;
   border: 1.5px solid var(--border);
   background: white;
   display: flex;
   align-items: center;
   gap: 6px;
   transition: all 0.18s;
   color: var(--text-secondary);
}

.action-btn:hover {
   border-color: var(--green);
   color: var(--green);
   background: var(--green-light);
   transform: translateY(-1px);
   box-shadow: var(--shadow);
}

.action-btn svg {
   width: 14px;
   height: 14px;
}

/* TRANSACTION LIST */
.txn-list {
   flex: 1;
   overflow-y: auto;
   padding: 18px 26px;
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.txn-date-divider {
   text-align: center;
   font-size: 10.5px;
   font-weight: 800;
   color: var(--text-muted);
   letter-spacing: 1px;
   padding: 8px 0;
   text-transform: uppercase;
   display: flex;
   align-items: center;
   gap: 10px;
}

.txn-date-divider::before,
.txn-date-divider::after {
   content: "";
   flex: 1;
   height: 1px;
   background: var(--border);
}

.txn-card {
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius);
   padding: 14px 16px;
   display: flex;
   align-items: center;
   gap: 14px;
   cursor: pointer;
   transition: all 0.18s;
   box-shadow: var(--shadow-xs);
   position: relative;
   overflow: hidden;
}

.txn-card::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   bottom: 0;
   width: 3px;
   opacity: 0;
   transition: opacity 0.18s;
}

.txn-card.credit-card::before {
   background: linear-gradient(180deg, var(--red), #f43f5e);
}

.txn-card.payment-card::before {
   background: linear-gradient(180deg, var(--green), var(--green-vivid));
}

.txn-card:hover {
   border-color: #cbd5e1;
   box-shadow: var(--shadow-md);
   transform: translateY(-2px);
}

.txn-card:hover::before {
   opacity: 1;
}

.txn-icon {
   width: 20px;
   height: 20px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
}

.txn-icon.credit {
   background: linear-gradient(135deg, #ffe4e6, #fecdd3);
}

.txn-icon.payment {
   background: linear-gradient(135deg, var(--green-light), #a7f3d0);
}

.txn-icon svg {
   width: 17px;
   height: 17px;
}

.txn-info {
   flex: 1;
}

.txn-type {
   /* font-size: 13.5px; */
   font-weight: 700;
}

.txn-note {
   /* font-size: 12px; */
   color: var(--text-muted);
   margin-top: 2px;
   font-weight: 500;
}

.txn-right {
   text-align: right;
}

.txn-amount {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 15px;
   font-weight: 700;
}

.txn-amount.credit {
   color: var(--red);
}

.txn-amount.payment {
   color: var(--green);
}

.txn-balance {
   font-size: 10.5px;
   color: var(--text-muted);
   margin-top: 3px;
   font-family: 'Cormorant Garamond', Georgia, serif;
}

/* DETAIL BOTTOM BAR */
.detail-bottom {
   padding: 16px 26px;
   background: white;
   border-top: 1px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
}

.balance-summary {
   flex: 1;
}

.balance-summary .label {
   font-size: 11px;
   color: var(--text-muted);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.balance-summary .amount {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 24px;
   font-weight: 700;
   color: var(--red);
   margin-top: 2px;
}

.balance-summary .amount.advance {
   color: var(--green);
}

.btn-credit {
   padding: 12px 24px;
   background: white;
   border: 2px solid var(--red);
   color: var(--red);
   border-radius: var(--radius-sm);
   font-size: 13.5px;
   font-weight: 700;
   transition: all 0.18s;
   display: flex;
   align-items: center;
   gap: 6px;
}

.btn-credit:hover {
   background: var(--red-light);
   transform: translateY(-1px);
   box-shadow: 0 6px 20px rgba(225, 29, 72, 0.2);
}

.btn-payment {
   padding: 12px 24px;
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   border: 2px solid transparent;
   color: white;
   border-radius: var(--radius-sm);
   font-size: 13.5px;
   font-weight: 700;
   transition: all 0.18s;
   display: flex;
   align-items: center;
   gap: 6px;
   box-shadow: var(--shadow-green);
}

.btn-payment:hover {
   transform: translateY(-1px);
   box-shadow: 0 10px 28px rgba(5, 150, 105, 0.4);
}

/* ══════════════════════════════════════
   MODALS / DRAWERS
══════════════════════════════════════ */
.overlay {
   position: fixed;
   inset: 0;
   /* background: rgba(7, 15, 30, 0.55); */
   z-index: 200;
   display: none;
   align-items: center;
   justify-content: center;
   /* backdrop-filter: blur(8px); */
   /* -webkit-backdrop-filter: blur(8px); */
}

.overlay.show {
   display: flex;
   animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

.modal {
   background: white;
   border-radius: var(--radius-lg);
   width: 430px;
   max-width: 95vw;
   overflow: hidden;
   box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.06);
   animation: slideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
   from {
      transform: translateY(24px) scale(0.97);
      opacity: 0;
   }

   to {
      transform: translateY(0) scale(1);
      opacity: 1;
   }
}

.modal-header {
   padding: 22px 26px 18px;
   border-bottom: 1px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: space-between;
   background: linear-gradient(135deg, #fafbff, white);
}

.modal-title {
   font-family:'Cormorant Garamond', Georgia, serif;
   font-size: 18px;
   font-weight: 700;
   letter-spacing: -0.4px;
}

.modal-close {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   border: none;
   background: #f1f5f9;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-secondary);
   transition: all 0.15s;
   font-size: 14px;
}

.modal-close:hover {
   background: #e2e8f0;
   color: var(--red);
   transform: rotate(90deg);
}

.modal-body {
   padding: 24px 26px;
}

.modal-footer {
   padding: 16px 26px;
   border-top: 1px solid var(--border);
   background: #fafbff;
}

/* Amount Input */
.amount-display {
   text-align: center;
   padding: 28px 16px;
   background: linear-gradient(135deg, #f8fafc, #f1f5f9);
   border-radius: var(--radius);
   margin-bottom: 20px;
   border: 2px dashed var(--border);
   transition: all 0.18s;
}

.amount-display:focus-within {
   border-color: var(--green);
   background: #f0fdf4;
   box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.08);
}

.amount-display .currency {
   font-size: 28px;
   font-weight: 700;
   color: var(--text-muted);
   vertical-align: middle;
}

.amount-input-field {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 48px;
   font-weight: 700;
   border: none;
   background: none;
   text-align: center;
   width: 200px;
   color: var(--text-primary);
}

.amount-input-field.credit {
   color: var(--red);
}

.amount-input-field.payment {
   color: var(--green);
}

.secure-msg {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 11px 14px;
   background: linear-gradient(135deg, var(--green-light), #ecfdf5);
   border-radius: var(--radius-sm);
   border: 1px solid rgba(5, 150, 105, 0.2);
   font-size: 12px;
   color: var(--green);
   font-weight: 600;
   margin-bottom: 20px;
}

.form-group {
   margin-bottom: 16px;
}

.form-input {
   width: 100%;
   padding: 12px 14px;
   border: 1.5px solid var(--border);
   border-radius: var(--radius-sm);
   font-size: 14px;
   color: var(--text-primary);
   background: #fafbff;
   transition: all 0.18s;
}

.form-input:focus {
   border-color: var(--green);
   background: white;
   box-shadow: var(--shadow-glow);
}

.form-textarea {
   width: 100%;
   padding: 12px 14px;
   border: 1.5px solid var(--border);
   border-radius: var(--radius-sm);
   font-size: 14px;
   background: #fafbff;
   resize: vertical;
   min-height: 80px;
   transition: all 0.18s;
}

.form-textarea:focus {
   border-color: var(--green);
   background: white;
   box-shadow: var(--shadow-glow);
}

.form-select {
   width: 100%;
   padding: 12px 14px;
   border: 1.5px solid var(--border);
   border-radius: var(--radius-sm);
   font-size: 14px;
   background: #fafbff;
   color: var(--text-primary);
   transition: all 0.18s;
   -webkit-appearance: none;
}

.form-select:focus {
   border-color: var(--green);
   background: white;
   box-shadow: var(--shadow-glow);
}

/* ─ DRAWER (RIGHT SIDE) ─ */
.drawer-overlay {
   position: fixed;
   inset: 0;
   /* background: rgba(7, 15, 30, 0.4); */
   z-index: 300;
   display: none;
   /* backdrop-filter: blur(5px); */
}

.drawer-overlay.show {
   display: block;
   animation: fadeIn 0.2s ease;
}

.drawer {
   position: fixed;
   top: 0;
   right: -500px;
   width: 450px;
   height: 100vh;
   background: white;
   z-index: 301;
   box-shadow: -20px 0 60px rgba(15, 23, 42, 0.15);
   display: flex;
   flex-direction: column;
   transition: right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer.open {
   right: 0;
}

.drawer-header {
   padding: 22px 26px;
   border-bottom: 1px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: space-between;
   background: linear-gradient(135deg, #fafbff, white);
}

.drawer-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 17px;
   font-weight: 700;
   letter-spacing: -0.3px;
}

.drawer-back {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   border: none;
   background: #f1f5f9;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-secondary);
   transition: all 0.15s;
}

.drawer-back:hover {
   background: var(--border);
   transform: translateX(-2px);
}

.drawer-body {
   flex: 1;
   overflow-y: auto;
   padding: 22px 26px;
}

.drawer-footer {
   padding: 16px 26px;
   border-top: 1px solid var(--border);
   background: #fafbff;
}

/* Transaction Detail Sections */
.detail-section {
   margin-bottom: 20px;
   border: 1.5px solid var(--border);
   border-radius: var(--radius);
   overflow: hidden;
}

.detail-section-header {
   padding: 11px 16px;
   background: #f8fafc;
   font-size: 10.5px;
   font-weight: 800;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 0.8px;
}

.detail-section-body {
   padding: 18px;
}

.amount-edit-row {
   display: flex;
   align-items: center;
   gap: 12px;
}

.amount-big {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 34px;
   font-weight: 700;
}

.edit-icon-btn {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   border: 1.5px solid var(--border);
   background: white;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-secondary);
   cursor: pointer;
   transition: all 0.15s;
}

.edit-icon-btn:hover {
   border-color: var(--green);
   color: var(--green);
   background: var(--green-light);
}

.txn-meta-row {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 11px 0;
   border-bottom: 1px solid #f1f5f9;
   font-size: 13.5px;
}

.txn-meta-row:last-child {
   border-bottom: none;
}

.txn-meta-label {
   color: var(--text-muted);
   font-weight: 500;
}

.txn-meta-value {
   font-weight: 700;
   color: var(--text-primary);
}

/* ══════════════════════════════════════
   SETTINGS PAGE
══════════════════════════════════════ */
.settings-page {
   padding: 32px;
   max-width: 1300px;
}

.settings-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 24px;
   font-weight: 700;
   margin-bottom: 28px;
   letter-spacing: -0.5px;
}

.settings-section {
   margin-bottom: 28px;
}

.settings-section-title {
   font-size: 10.5px;
   font-weight: 800;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 1px;
   margin-bottom: 10px;
   padding: 0 4px;
}

.settings-card {
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius);
   overflow: hidden;
   box-shadow: var(--shadow-xs);
}

.settings-item {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 15px 18px;
   border-bottom: 1px solid #f1f5f9;
   cursor: pointer;
   transition: all 0.15s;
}

.settings-item:last-child {
   border-bottom: none;
}

.settings-item:hover {
   background: #f8fafc;
   transform: translateX(3px);
}

.settings-item-icon {
   width: 38px;
   height: 38px;
   border-radius: 11px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   font-size: 18px;
}

.settings-item-text {
   flex: 1;
}

.settings-item-label {
   /* font-size: 14px; */
   font-weight: 700;
}

.settings-item-desc {
   /* font-size: 12px; */
   color: var(--text-muted);
   margin-top: 2px;
   font-weight: 500;
}

.settings-item-arrow {
   color: var(--text-muted);
}

.settings-item-arrow svg {
   width: 15px;
   height: 15px;
}

.btn-signout {
   width: 150px;
   padding: 14px;
   border: 2px solid var(--red);
   background: white;
   color: var(--red);
   border-radius: var(--radius-sm);
   font-size: 14px;
   font-weight: 700;
   transition: all 0.18s;
   margin-top: 8px;
}

.btn-signout:hover {
   background: var(--red-light);
   transform: translateY(-1px);
   box-shadow: 0 6px 20px rgba(225, 29, 72, 0.2);
}

/* ══════════════════════════════════════
   MERCHANT PROFILE
══════════════════════════════════════ */
.profile-page {
   padding: 32px;
   max-width: 1300px;
}

.profile-hero {
   background: linear-gradient(135deg, #0c1628 0%, #1a3a5c 100%);
   border-radius: var(--radius-lg);
   padding: 30px;
   margin-bottom: 24px;
   display: flex;
   align-items: center;
   gap: 22px;
   position: relative;
   overflow: hidden;
   box-shadow: var(--shadow-md);
}

.profile-hero::before {
   content: "";
   position: absolute;
   top: -60px;
   right: -60px;
   width: 200px;
   height: 200px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(52, 211, 153, 0.2), transparent);
}

.profile-avatar-lg {
   width: 76px;
   height: 76px;
   border-radius: 22px;
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 28px;
   font-weight: 800;
   color: white;
   flex-shrink: 0;
   box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

.profile-hero-info {
   flex: 1;
}

.profile-business-name {
   font-family:'Cormorant Garamond', Georgia, serif;
   font-size: 22px;
   font-weight: 700;
   color: white;
   letter-spacing: -0.5px;
}

.profile-plan {
   font-size: 12px;
   margin-top: 6px;
}

.profile-plan span {
   background: #34d399;
   color: #0c1628;
   padding: 3px 10px;
   border-radius: 20px;
   font-weight: 800;
   font-size: 11px;
   letter-spacing: 0.3px;
}

.profile-form {
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   padding: 26px;
   box-shadow: var(--shadow-xs);
}

.profile-form-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 15px;
   font-weight: 700;
   margin-bottom: 20px;
   padding-bottom: 12px;
   border-bottom: 1px solid var(--border);
   color: var(--text-secondary);
   letter-spacing: -0.3px;
}

.form-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 14px;
   margin-bottom: 14px;
}

.form-row.full {
   grid-template-columns: 1fr;
}

.form-group label {
   font-size: 11px;
   font-weight: 800;
   color: var(--text-secondary);
   display: block;
   margin-bottom: 6px;
   text-transform: uppercase;
   letter-spacing: 0.6px;
}

.input-locked {
   position: relative;
}

.input-locked svg {
   position: absolute;
   right: 12px;
   top: 50%;
   transform: translateY(-50%);
   color: var(--text-muted);
   width: 14px;
   height: 14px;
}

.save-btn {
   /* width: 100%; */
   padding: 14px;
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   color: white;
   border: none;
   border-radius: var(--radius-sm);
   font-size: 15px;
   font-weight: 700;
   margin-top: 20px;
   transition: all 0.18s;
   box-shadow: var(--shadow-green);
}

.save-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

/* ══════════════════════════════════════
   MANAGE ACCOUNTS
══════════════════════════════════════ */
.manage-page {
   padding: 32px;
   max-width: 700px;
}

.manage-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 24px;
   font-weight: 700;
   margin-bottom: 24px;
   letter-spacing: -0.5px;
}

.account-card {
   background: white;
   border: 2px solid var(--green);
   border-radius: var(--radius-lg);
   padding: 22px;
   display: flex;
   align-items: center;
   gap: 20px;
   margin-bottom: 12px;
   cursor: pointer;
   transition: all 0.18s;
   box-shadow: var(--shadow-xs);
   width: 1060px;
}

.account-card:hover {
   box-shadow: 0 8px 24px rgba(5, 150, 105, 0.18);
   transform: translateY(-2px);
}

.account-card.inactive {
   border-color: var(--border);
}

.account-card.inactive:hover {
   box-shadow: var(--shadow-md);
   border-color: #cbd5e1;
}

.account-status {
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 12px;
   font-weight: 700;
}

.status-dot {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: var(--green);
   box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.status-dot.inactive {
   background: var(--text-muted);
   box-shadow: none;
}

.account-manage-link {
   font-size: 12px;
   color: var(--green);
   cursor: pointer;
   margin-top: 3px;
   font-weight: 700;
}

.create-business-btn {
   /* width: 100%; */
   padding: 14px;
   background: white;
   border: 2px dashed var(--border);
   border-radius: var(--radius-lg);
   font-size: 14px;
   font-weight: 700;
   color: var(--text-secondary);
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   transition: all 0.18s;
   margin-top: 4px;
}

.create-business-btn:hover {
   border-color: var(--green);
   color: var(--green);
   background: var(--green-light);
   transform: translateY(-1px);
}

/* ══════════════════════════════════════
   HELP PAGE
══════════════════════════════════════ */
.help-page {
   padding: 32px;
   max-width: 1300px;
}

.help-hero {
   background: linear-gradient(135deg, #0c1628, #1a3a5c);
   border-radius: var(--radius-lg);
   padding: 36px;
   text-align: center;
   margin-bottom: 24px;
   box-shadow: var(--shadow-md);
   position: relative;
   overflow: hidden;
}

.help-hero::before {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(ellipse at top right,
         rgba(16, 185, 129, 0.2),
         transparent 60%),
      radial-gradient(ellipse at bottom left,
         rgba(79, 70, 229, 0.15),
         transparent 60%);
}

.help-hero h2 {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 28px;
   font-weight: 700;
   color: white;
   margin-bottom: 8px;
   letter-spacing: -0.5px;
   position: relative;
}

.help-hero p {
   color: #94a3b8;
   font-size: 16px;
   position: relative;
   font-weight: 500;
}

.help-search {
   display: flex;
   align-items: center;
   gap: 10px;
   background: rgba(255, 255, 255, 0.1);
   border: 1.5px solid rgba(255, 255, 255, 0.15);
   border-radius: var(--radius-sm);
   padding: 12px 16px;
   margin-top: 22px;
   position: relative;
   transition: all 0.18s;
}

.help-search:focus-within {
   background: rgba(255, 255, 255, 0.15);
   border-color: rgba(52, 211, 153, 0.5);
}

.help-search svg {
   color: #94a3b8;
   width: 16px;
   height: 16px;
}

.help-search input {
   border: none;
   background: none;
   color: #fff!important;
   font-size: 17px;
   flex: 1;
}

.help-search input::placeholder {
   color: #64748b;
}

.help-cards {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 14px;
}

.help-card {
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius);
   padding: 20px;
   cursor: pointer;
   transition: all 0.2s;
   box-shadow: var(--shadow-xs);
   position: relative;
   overflow: hidden;
}

.help-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 3px;
   background: linear-gradient(90deg, var(--green), #34d399);
   transform: scaleX(0);
   transform-origin: left;
   transition: transform 0.22s ease;
}

.help-card:hover {
   border-color: rgba(5, 150, 105, 0.25);
   box-shadow: var(--shadow-md);
   transform: translateY(-3px);
}

.help-card:hover::before {
   transform: scaleX(1);
}

.help-card-icon {
   font-size: 26px;
   margin-bottom: 12px;
}

.help-card-title {
   font-size: 21px;
   font-weight: 700;
   margin-bottom: 5px;
}

.help-card-desc {
   /* font-size: 12px; */
   color: var(--text-muted);
   line-height: 1.5;
   font-weight: 500;
}

/* ══════════════════════════════════════
   CUSTOMER PORTAL
══════════════════════════════════════ */
#screen-portal {
   min-height: 100vh;
   background: var(--bg);
   display: none;
   flex-direction: column;
}

#screen-portal.active {
   display: flex;
}

.portal-header {
   background: var(--sidebar-bg);
   background-image: radial-gradient(ellipse at top right,
         rgba(16, 185, 129, 0.15),
         transparent 60%);
   padding: 18px 22px;
   display: flex;
   align-items: center;
   gap: 13px;
}

.portal-header .logo-icon {
   width: 38px;
   height: 38px;
   font-size: 17px;
}

.portal-header-text {
   color: white;
}

.portal-header-text .name {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 16px;
   font-weight: 700;
}

.portal-header-text .sub {
   font-size: 11px;
   color: #64748b;
   font-weight: 500;
}

.portal-balance-card {
   background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
   margin: 18px;
   border-radius: var(--radius-lg);
   padding: 26px;
   color: white;
   text-align: center;
   box-shadow: 0 12px 36px rgba(225, 29, 72, 0.4);
   position: relative;
   overflow: hidden;
}

.portal-balance-card::before {
   content: "";
   position: absolute;
   top: -50px;
   right: -50px;
   width: 160px;
   height: 160px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.1);
}

.portal-balance-card.advance {
   background: linear-gradient(135deg, var(--green), #047857);
   box-shadow: 0 12px 36px rgba(5, 150, 105, 0.4);
}

.portal-balance-label {
   font-size: 13px;
   opacity: 0.85;
   margin-bottom: 6px;
   font-weight: 600;
}

.portal-balance-amount {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 44px;
   font-weight: 700;
}

.portal-balance-type {
   font-size: 11px;
   font-weight: 800;
   letter-spacing: 1.5px;
   opacity: 0.85;
   margin-top: 5px;
   text-transform: uppercase;
}

.portal-merchant-info {
   margin: 0 18px 18px;
   background: white;
   border-radius: var(--radius);
   padding: 14px 18px;
   display: flex;
   align-items: center;
   gap: 13px;
   border: 1px solid var(--border);
   box-shadow: var(--shadow-xs);
}

.portal-txn-list {
   margin: 0 18px;
   flex: 1;
}

.portal-txn-card {
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius-sm);
   padding: 14px 18px;
   margin-bottom: 8px;
   display: flex;
   align-items: center;
   gap: 13px;
   box-shadow: var(--shadow-xs);
}

.portal-notice {
   background: linear-gradient(135deg, var(--green-light), #ecfdf5);
   border: 1px solid rgba(5, 150, 105, 0.2);
   border-radius: var(--radius-sm);
   padding: 13px 16px;
   font-size: 12.5px;
   color: var(--green);
   display: flex;
   align-items: flex-start;
   gap: 9px;
   margin: 18px;
   font-weight: 600;
}

/* ══════════════════════════════════════
   REPORTS PAGE
══════════════════════════════════════ */
.reports-page {
   padding: 32px;
   max-width: 1300px;
}

.reports-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 24px;
   font-weight: 700;
   margin-bottom: 24px;
   letter-spacing: -0.5px;
}

.stats-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 16px;
   margin-bottom: 28px;
}

.stat-card {
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   padding: 22px;
   position: relative;
   overflow: hidden;
   box-shadow: var(--shadow-xs);
   transition: all 0.2s;
}

.stat-card:hover {
   transform: translateY(-3px);
   box-shadow: var(--shadow-md);
}

.stat-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 10px;
   border-radius: 0;
}

.stat-card.green::before {
   background: linear-gradient(90deg, var(--green), var(--green-vivid));
}

.stat-card.red::before {
   background: linear-gradient(90deg, var(--red), #f43f5e);
}

.stat-card.blue::before {
   background: linear-gradient(90deg, var(--blue), #818cf8);
}

.stat-card::after {
   content: "";
   position: absolute;
   bottom: -20px;
   right: -20px;
   width: 80px;
   height: 80px;
   border-radius: 50%;
   opacity: 0.07;
}

.stat-card.green::after {
   background: var(--green);
}

.stat-card.red::after {
   background: var(--red);
}

.stat-card.blue::after {
   background: var(--blue);
}

.stat-icon {
   font-size: 22px;
   margin-bottom: 12px;
}

.stat-value {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 30px;
   font-weight: 700;
   letter-spacing: -0.5px;
}

.stat-value.green {
   color: var(--green);
}

.stat-value.red {
   color: var(--red);
}

.stat-value.blue {
   color: var(--blue);
}

.stat-label {
   font-size: 12px;
   color: var(--text-muted);
   margin-top: 5px;
   font-weight: 600;
}

.report-table-card {
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   overflow: hidden;
   box-shadow: var(--shadow-xs);
}

.report-table-header {
   padding: 18px 22px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   border-bottom: 1px solid var(--border);
   background: linear-gradient(135deg, #fafbff, white);
}

.report-table-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 19px;
   font-weight: 700;
   letter-spacing: -0.3px;
}

.export-btn {
   padding: 8px 15px;
   background: linear-gradient(135deg, var(--green-light), #ecfdf5);
   color: var(--green);
   border: 1px solid rgba(5, 150, 105, 0.25);
   border-radius: var(--radius-sm);
   font-size: 12.5px;
   font-weight: 700;
   display: flex;
   align-items: center;
   gap: 6px;
   transition: all 0.18s;
}

.export-btn:hover {
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   color: white;
   transform: translateY(-1px);
   box-shadow: var(--shadow-green);
}

table {
   width: 100%;
   border-collapse: collapse;
}

th {
   padding: 12px 18px;
   font-size: 10.5px;
   font-weight: 800;
   color: #fff;
   text-transform: uppercase;
   letter-spacing: 0.8px;
   text-align: left;
   background: #08a070;
   border-bottom: 1px solid var(--border);
}

td {
   padding: 14px 18px;
   /* font-size: 13.5px; */
   border-bottom: 1px solid #f1f5f9;
   font-weight: 500;
}

tr:last-child td {
   border-bottom: none;
}

tr:hover td {
   background: #f8fafc;
}

/* ══════════════════════════════════════
   SUPPLIER TAB
══════════════════════════════════════ */
.trust-badges {
   display: flex;
   gap: 6px;
   padding: 10px 14px;
   border-bottom: 1px solid var(--border);
   flex-wrap: wrap;
}

.trust-badge {
   display: flex;
   align-items: center;
   gap: 5px;
   padding: 4px 11px;
   background: linear-gradient(135deg, var(--green-light), #ecfdf5);
   border: 1px solid rgba(5, 150, 105, 0.2);
   border-radius: 20px;
   font-size: 11px;
   font-weight: 700;
   color: var(--green);
}

/* ══════════════════════════════════════
   FILTER DROPDOWN
══════════════════════════════════════ */
.filter-dropdown {
   position: absolute;
   top: 100%;
   right: 0;
   width: 210px;
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius);
   box-shadow: var(--shadow-lg);
   z-index: 100;
   display: none;
   overflow: hidden;
   margin-top: 4px;
}

.filter-dropdown.show {
   display: block;
   animation: slideUp 0.18s ease;
}

.filter-option {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 11px 16px;
   cursor: pointer;
   font-size: 13.5px;
   font-weight: 600;
   transition: background 0.12s;
}

.filter-option:hover {
   background: var(--bg);
   color: var(--green);
}

.filter-radio {
   width: 16px;
   height: 16px;
   border-radius: 50%;
   border: 2px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   transition: border-color 0.15s;
}

.filter-radio.checked {
   border-color: var(--green);
}

.filter-radio.checked::after {
   content: "";
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: var(--green);
}

/* ══════════════════════════════════════
   TOAST / NOTIFICATION
══════════════════════════════════════ */
.toast {
   position: fixed;
   bottom: 28px;
   right: 28px;
   background: var(--text-primary);
   color: white;
   padding: 13px 20px;
   border-radius: 100px;
   font-size: 13.5px;
   font-weight: 600;
   z-index: 9999;
   display: none;
   align-items: center;
   gap: 9px;
   box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
   animation: toastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.show {
   display: flex;
}

.toast.success {
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

.toast.error {
   background: linear-gradient(135deg, var(--red), #f43f5e);
   box-shadow: 0 12px 32px rgba(225, 29, 72, 0.4);
}

@keyframes toastIn {
   from {
      transform: translateY(20px) scale(0.9);
      opacity: 0;
   }

   to {
      transform: translateY(0) scale(1);
      opacity: 1;
   }
}

/* ══════════════════════════════════════
   SUBSCRIPTION BLOCK
══════════════════════════════════════ */
.subscription-block {
   position: fixed;
   inset: 0;
   /* background: rgba(7, 15, 30, 0.65); */
   z-index: 400;
   display: none;
   align-items: center;
   justify-content: center;
   /* backdrop-filter: blur(10px); */
}

.subscription-block.show {
   display: flex;
}

.sub-card {
   background: white;
   border-radius: var(--radius-xl);
   padding: 44px;
   width: 460px;
   max-width: 95vw;
   text-align: center;
   box-shadow: var(--shadow-lg);
   animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
   position: relative;
   overflow: hidden;
}

.sub-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: linear-gradient(90deg, var(--green), #34d399, var(--blue));
}

.sub-icon {
   font-size: 52px;
   margin-bottom: 18px;
}

.sub-title {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 26px;
   font-weight: 700;
   margin-bottom: 8px;
   letter-spacing: -0.5px;
}

.sub-desc {
   color: var(--text-secondary);
   font-size: 14px;
   line-height: 1.6;
   margin-bottom: 28px;
   font-weight: 500;
}

.sub-price {
   font-family: 'Cormorant Garamond', Georgia, serif;
   font-size: 42px;
   font-weight: 700;
   color: var(--green);
}

.sub-price span {
   font-size: 16px;
   color: var(--text-muted);
   font-weight: 400;
   font-family: 'Cormorant Garamond', Georgia, serif;
}

.sub-features {
   text-align: left;
   margin: 20px 0;
}

.sub-feature {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 9px 0;
   font-size: 13.5px;
   border-bottom: 1px solid #f1f5f9;
   font-weight: 500;
}

.sub-feature:last-child {
   border: none;
}

.sub-feature svg {
   color: var(--green);
   width: 16px;
   height: 16px;
   flex-shrink: 0;
}

.btn-subscribe {
   width: 100%;
   padding: 15px;
   background: linear-gradient(135deg, var(--green), var(--green-vivid));
   color: white;
   border: none;
   border-radius: var(--radius-sm);
   font-size: 15px;
   font-weight: 700;
   margin-top: 8px;
   transition: all 0.18s;
   box-shadow: var(--shadow-green);
}

.btn-subscribe:hover {
   transform: translateY(-2px);
   box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

.sub-later {
   font-size: 13px;
   color: var(--text-muted);
   margin-top: 14px;
   cursor: pointer;
   font-weight: 500;
}

.sub-later:hover {
   color: var(--text-secondary);
}

/* ══════════════════════════════════════
   SIDEBAR SECTION LABELS & DEMO ITEMS
══════════════════════════════════════ */
.nav-section-label {
   padding: 12px 12px 4px;
   font-size: 9px;
   font-weight: 800;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   color: rgba(255, 255, 255, 0.2);
}

.nav-divider {
   height: 1px;
   /* background: rgba(255,255,255,.07); */
   margin: 6px 12px;
}

.nav-item-dot {
   width: 7px;
   height: 7px;
   border-radius: 50%;
   flex-shrink: 0;
   box-shadow: 0 0 6px currentColor;
}

.dot-indigo {
   background: #818cf8;
   color: #818cf8;
}

.dot-blue {
   background: #60a5fa;
   color: #60a5fa;
}

.dot-teal {
   background: #2dd4bf;
   color: #2dd4bf;
}

.dot-red {
   background: #f87171;
   color: #f87171;
}

.dot-green {
   background: #4ade80;
   color: #4ade80;
}

.dot-orange {
   background: #fb923c;
   color: #fb923c;
}

.dot-purple {
   background: #c084fc;
   color: #c084fc;
}

.dot-cyan {
   background: #22d3ee;
   color: #22d3ee;
}

.dot-yellow {
   background: #fbbf24;
   color: #fbbf24;
}

.dot-emerald {
   background: #34d399;
   color: #34d399;
}

.dot-sky {
   background: #38bdf8;
   color: #38bdf8;
}

.dot-pink {
   background: #f472b6;
   color: #f472b6;
}

.dot-gold {
   background: #eab308;
   color: #eab308;
}

/* ══════════════════════════════════════
   MOBILE HAMBURGER & RESPONSIVE
══════════════════════════════════════ */
.hamburger-btn {
   display: none;
   align-items: center;
   justify-content: center;
   width: 38px;
   height: 38px;
   border: 1.5px solid var(--border);
   background: white;
   border-radius: var(--radius-sm);
   cursor: pointer;
   color: var(--text-secondary);
   transition: all 0.15s;
}

.hamburger-btn:hover {
   background: var(--bg);
   border-color: #cbd5e1;
   color: var(--green);
}

.hamburger-btn svg {
   width: 18px;
   height: 18px;
}

.sidebar-overlay {
   display: none;
   position: fixed;
   inset: 0;
   background: rgba(7, 15, 30, 0.5);
   z-index: 99;
   backdrop-filter: blur(4px);
}

.sidebar-overlay.show {
   display: block;
   animation: fadeIn 0.2s ease;
}

@media (max-width: 768px) {
   .hamburger-btn {
      display: flex;
   }

   .sidebar {
      transform: translateX(-100%);
      transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 200;
      width: 260px;
   }

   .sidebar.mobile-open {
      transform: translateX(0);
   }

   .main-content {
      margin-left: 0 !important;
   }

   .ledger-layout {
      flex-direction: column;
      height: auto;
   }

   .ledger-left {
      width: 100%;
      flex-shrink: 0;
      max-height: 42vh;
   }

   .customer-detail.show {
      height: calc(58vh - 62px);
   }

   .drawer {
      width: 100%;
      right: -100%;
   }

   .stats-grid {
      grid-template-columns: 1fr !important;
   }

   .help-cards {
      grid-template-columns: 1fr !important;
   }

   .form-row {
      grid-template-columns: 1fr !important;
   }

   .app-header {
      padding: 0 14px;
   }

   .reports-page,
   .settings-page,
   .profile-page,
   .manage-page,
   .help-page {
      padding: 16px;
   }

   .detail-header {
      padding: 14px 16px;
      flex-wrap: wrap;
      gap: 10px;
   }

   .detail-header-actions {
      flex-wrap: wrap;
   }
}

/* ── SCROLLBARS ── */
::-webkit-scrollbar {
   width: 5px;
}

::-webkit-scrollbar-track {
   background: transparent;
}

::-webkit-scrollbar-thumb {
   background: #cbd5e1;
   border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
   background: #94a3b8;
}
/* ══════════════════════════════════════
   MULTI-PAGE NAVIGATION ADDITIONS
══════════════════════════════════════ */
a.nav-item {
  text-decoration: none;
  color: var(--sidebar-text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: 1px;
  position: relative;
}
a.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: #e2e8f0;
  transform: translateX(2px);
}
a.nav-item.active {
  background: linear-gradient(135deg, rgba(16,185,129,.22) 0%, rgba(16,185,129,.08) 100%);
  color: #34d399;
  box-shadow: inset 0 0 0 1px rgba(52,211,153,.2);
}
a.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: linear-gradient(180deg, #34d399, #10b981);
  border-radius: 0 3px 3px 0;
}
a.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
/* Toggle switches for settings */
.toggle-track {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--green);
  border-radius: 24px;
  transition: 0.3s;
}
.toggle-thumb {
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  transform: translateX(20px);
}
/* Subscription grid responsive */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .account-card { width: 100% !important; }
}
/* FAQ hover */
.faq-item:hover { background: #f8fafc; }











/* dashboards page css strated here  */

 /* ── Sidebar nav links (unchanged) ── */
    a.nav-item {
      text-decoration: none;
      color: #fff;
    }

    a.nav-item.active {
      color: #fff;
      background: linear-gradient(135deg, rgba(16, 185, 129, .22) 0%, rgba(16, 185, 129, .08) 100%);
      box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .2);
    }

    a.nav-item.active::before {
      content: "";
      position: absolute;
      left: 0;
      top: 25%;
      bottom: 25%;
      width: 3px;
      background: linear-gradient(180deg, #34d399, #10b981);
      border-radius: 0 3px 3px 0;
    }

    a.nav-item:hover {
      background: rgba(255, 255, 255, .07);
      color: #e2e8f0;
      transform: translateX(2px);
    }

    /* ── Layout: full-width, no empty gap ── */
    .ledger-layout {
      display: flex;
      flex: 1;
      width: 100%;
      overflow: hidden;
      height: 100%;
    }

    .ledger-left {
      width: 300px;
      min-width: 260px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      border-right: 1px solid var(--border, #e5e7eb);
      background: var(--surface, #fff);
      height: 100%;
      overflow: hidden;
    }

    /* Right panel fills all remaining space */
    .ledger-right {
      flex: 1;
      overflow-y: auto;
      background: var(--bg, #f3f4f6);
      display: flex;
      flex-direction: column;
    }

    .ledger-right::-webkit-scrollbar {
      width: 4px;
    }

    .ledger-right::-webkit-scrollbar-thumb {
      background: var(--border, #e5e7eb);
      border-radius: 4px;
    }

    /* customer list scrollable */
    .customer-list {
      flex: 1;
      overflow-y: auto;
    }

    .customer-list::-webkit-scrollbar {
      width: 3px;
    }

    .customer-list::-webkit-scrollbar-thumb {
      background: var(--border, #e5e7eb);
      border-radius: 3px;
    }

    /* ── Shared animation ── */
    @keyframes panelFade {
      from {
        opacity: 0;
        transform: translateY(6px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ══════════════════════════════════════════
       OVERVIEW PANEL (default right content)
    ══════════════════════════════════════════ */
    .overview-panel {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      animation: panelFade .3s ease;
    }

    .ov-heading {
      font-size: 19px;
      font-weight: 700;
      color: var(--text, #111827);
    }

    .ov-sub {
      font-size: 12px;
      color: var(--text-muted, #9ca3af);
      margin-top: 2px;
    }

    .ov-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .ov-stat {
      background: var(--surface, #fff);
      border: 1px solid var(--border, #e5e7eb);
      border-radius: 12px;
      padding: 15px 17px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }

    .ov-stat-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .4px;
      color: var(--text-muted, #9ca3af);
    }

    .ov-stat-value {
      font-size: 21px;
      font-weight: 700;
      font-family: 'Cormorant Garamond', Georgia, serif;
      margin-top: 5px;
    }

    .ov-stat-value.red {
      color: #ef4444;
    }

    .ov-stat-value.green {
      color: #10b981;
    }

    .ov-stat-value.blue {
      color: #3b82f6;
    }

    .ov-card {
      background: var(--surface, #fff);
      border: 1px solid var(--border, #e5e7eb);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }

    .ov-card-head {
      padding: 13px 16px;
      border-bottom: 1px solid var(--border, #e5e7eb);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .ov-card-head h3 {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text, #111827);
    }

    .ov-card-head span {
      font-size: 11.5px;
      color: var(--text-muted, #9ca3af);
    }

    .ov-table {
      width: 100%;
      border-collapse: collapse;
    }

    .ov-table th {
      padding: 8px 14px;
      text-align: left;
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .4px;
      color: var(--text-muted, #9ca3af);
      background: #fafafa;
      border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .ov-table td {
      padding: 10px 14px;
      font-size: 15px;
      border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .ov-table tr:last-child td {
      border-bottom: none;
    }

    .ov-table tr:hover td {
      background: #f9fafb;
      cursor: pointer;
    }

    .ov-name-cell {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .ov-avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      flex-shrink: 0;
    }

    .ov-name-txt {
      font-weight: 600;
      font-size: 13px;
    }

    .ov-phone-txt {
      /* font-size: 11px; */
      color: var(--text-muted, #9ca3af);
    }

    .ov-date-txt {
      font-size: 12px;
      color: var(--text-muted, #9ca3af);
    }

    .ov-amt {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-weight: 600;
      font-size: 13px;
    }

    .ov-amt.due {
      color: #ef4444;
    }

    .ov-amt.advance {
      color: #10b981;
    }

    .ov-badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 8px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .3px;
    }

    .ov-badge.due {
      background: #fee2e2;
      color: #ef4444;
    }

    .ov-badge.advance {
      background: #dcfce7;
      color: #16a34a;
    }

    .ov-badge.settled {
      background: #f3f4f6;
      color: #9ca3af;
    }

    /* ══════════════════════════════════════════
       LEDGER DETAIL VIEW (right panel)
    ══════════════════════════════════════════ */
    .ledger-detail {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      animation: panelFade .25s ease;
    }

    .ld-header {
      background: var(--surface, #fff);
      border: 1px solid var(--border, #e5e7eb);
      border-radius: 12px;
      padding: 16px 18px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }

    .ld-big-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
      color: #fff;
      flex-shrink: 0;
    }

    .ld-info {
      flex: 1;
    }

    .ld-name {
      font-size: 17px;
      font-weight: 700;
      color: var(--text, #111827);
    }

    .ld-phone {
      font-size: 12.5px;
      color: var(--text-muted, #9ca3af);
      margin-top: 2px;
    }

    .ld-addr {
      font-size: 12px;
      color: var(--text-muted, #9ca3af);
      margin-top: 1px;
    }

    .ld-bal-box {
      text-align: right;
    }

    .ld-bal-amount {
      font-size: 22px;
      font-weight: 700;
      font-family: 'Cormorant Garamond', Georgia, serif;
    }

    .ld-bal-amount.due {
      color: #ef4444;
    }

    .ld-bal-amount.advance {
      color: #10b981;
    }

    .ld-bal-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .5px;
      margin-top: 3px;
    }

    .ld-bal-label.due {
      color: #ef4444;
    }

    .ld-bal-label.advance {
      color: #10b981;
    }

    .ld-bal-label.settled {
      color: var(--text-muted, #9ca3af);
    }

    .ld-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
      justify-content: flex-end;
    }

    .ld-btn {
      padding: 7px 14px;
      border-radius: 8px;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      border: none;
      transition: opacity .15s;
    }

    .ld-btn:hover {
      opacity: .8;
    }

    .ld-btn.credit {
      background: #fee2e2;
      color: #ef4444;
    }

    .ld-btn.payment {
      background: #dcfce7;
      color: #16a34a;
    }

    .txn-card {
      background: var(--surface, #fff);
      border: 1px solid var(--border, #e5e7eb);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }

    .txn-card-head {
      padding: 13px 16px;
      border-bottom: 1px solid var(--border, #e5e7eb);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text, #111827);
    }

    .txn-table {
      width: 100%;
      border-collapse: collapse;
    }

    .txn-table th {
      padding: 8px 14px;
      text-align: left;
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .4px;
      color: var(--text-muted, #9ca3af);
      background: #fafafa;
      border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .txn-table td {
      padding: 11px 14px;
      font-size: 13px;
      border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .txn-table tr:last-child td {
      border-bottom: none;
    }

    .txn-table tr:hover td {
      background: #f9fafb;
    }

    .txn-type-cell {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .txn-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .txn-dot.credit {
      background: #ef4444;
    }

    .txn-dot.payment {
      background: #10b981;
    }

    .txn-amt {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-weight: 600;
    }

    .txn-amt.credit {
      color: #ef4444;
    }

    .txn-amt.payment {
      color: #10b981;
    }

    .txn-bal {
      font-family: 'Cormorant Garamond', Georgia, serif;
      /* font-size: 12px; */
      color: var(--text-sub, #4b5563);
    }

    .txn-note {
      /* font-size: 12px; */
      color: var(--text-muted, #9ca3af);
    }

    /* ══════════════════════════════════════════
       ADD ENTITY MODAL
    ══════════════════════════════════════════ */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .modal-overlay.show {
      display: flex;
    }

    .modal-box {
      background: var(--surface, #fff);
      border-radius: 14px;
      width: 400px;
      max-width: 95vw;
      padding: 22px 24px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
      animation: panelFade .2s ease;
    }

    .modal-box h2 {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 16px;
    }

    .mf-group {
      margin-bottom: 12px;
    }

    .mf-group label {
      display: block;
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-sub, #4b5563);
      margin-bottom: 4px;
    }

    .mf-group input {
      width: 100%;
      padding: 9px 11px;
      border: 1.5px solid var(--border, #e5e7eb);
      border-radius: 8px;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 13px;
      color: var(--text, #111827);
      outline: none;
      background: var(--bg, #f9fafb);
      transition: border-color .2s;
    }

    .mf-group input:focus {
      border-color: var(--green, #10b981);
      background: #fff;
    }

    .modal-actions {
      display: flex;
      gap: 10px;
      margin-top: 18px;
    }

    .modal-actions button {
      flex: 1;
      padding: 10px;
      border-radius: 8px;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      border: none;
    }

    .btn-cancel {
      background: #f3f4f6;
      color: var(--text-sub, #4b5563);
    }

    .btn-save {
      background: linear-gradient(135deg, var(--green, #10b981), var(--green-vivid, #22c55e));
      color: #fff;
      box-shadow: 0 4px 12px rgba(16, 185, 129, .3);
    }

/* dashboards page css ended  here  */
/* add-customer page css start  here  */
/* Background */
.page-wrapper {
  min-height: calc(100vh - 70px);
  /* display: flex; */
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  padding: 30px;
  font-family:'Cormorant Garamond', Georgia, serif;
}

/* Main Container */
.customer-container {
  width: 1050px;
  max-width: 100%;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

/* Left Panel */
.info-panel {
  flex: 1;
  padding: 50px 40px;
  color: #000;
  background: var(--bg);
}

.info-panel h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.info-panel p {
  /* font-size: 14px;
  opacity: 0.9;
  margin-bottom: 30px; */
}

.info-feature {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Right Panel */
.form-panel {
  flex: 1.2;
  background: white;
  padding: 40px;
}

.form-header {
  margin-bottom: 25px;
}

.form-header h3 {
  margin: 0;
}

/* Form Layout */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  outline: none;
  transition: 0.3s ease;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
  min-height: 90px;
  resize: none;
}

.full-width {
  margin-bottom: 20px;
}

.secure-msg {
  margin-bottom: 20px;
  font-size: 13px;
  color: #64748b;
}

/* Button */
.btn-primary {
  width: 210px;
  padding: 12px;
  background: linear-gradient(135deg,var(--green),var(--green-vivid));
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .customer-container {
    flex-direction: column;
  }

  .info-panel {
    text-align: center;
  }

  .form-row {
    flex-direction: column;
  }
}

/* add-customer page css end  here  */
/* portal page css started  here  */



/* ===== Layout ===== */
.portal-wrapper {
  padding: 30px;
}

.portal-container {
  display: flex;
  gap: 30px;
}

/* ===== Left Section ===== */
.portal-left {
  flex: 1;
}

.info-bar {
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  /* font-size: 14px; */
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.balance-card {
  background: #09a372;
  color: #fff;
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

/* .balance-title {
  font-size: 14px;
  opacity: 0.9;
} */

.balance-amount {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
}

.amount-due {
  font-size: 13px;
  opacity: 0.9;
}

.customer-info-card {
  background: #ffffff;
  padding: 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.customer-avatar {
  width: 50px;
  height: 50px;
  background: #09a372;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.customer-details {
  flex: 1;
}

.customer-name {
  font-weight: 600;
}

.customer-address {
  font-size: 13px;
  color: #777;
}

.verified {
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
}

/* ===== Right Section ===== */
.portal-right {
  flex: 1.2;
}

.section-title {
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 15px;
  color: #555;
}

.transaction-card {
  background: #ffffff;
  padding: 15px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
}

.transaction-card:hover {
  transform: translateY(-3px);
}

.txn-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 12px;
}

.txn-icon.up {
  background: #fee2e2;
  color: #dc2626;
}

.txn-icon.down {
  background: #dcfce7;
  color: #16a34a;
}

.txn-details {
  flex: 1;
  margin-left: 10px;
}

.txn-title {
  font-weight: 600;
}

.txn-sub {
  font-size: 12px;
  color: #888;
}

.txn-amount {
  font-weight: bold;
  font-size: 16px;
}

.txn-amount.red {
  color: #dc2626;
}

.txn-amount.green {
  color: #16a34a;
}

/* ===== Buttons ===== */
.pay-btn {
  width: 100%;
  padding: 14px;
  background: #09a372;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s ease;
}

.pay-btn:hover {
  background: #4338ca;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .portal-container {
    flex-direction: column;
  }
}

/* portal page css end  here  */


/* pop-up enquiry form css customer and  started supllier */

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Popup Box */
.popup-box {
  background: #fff;
  width: 350px;
  border-radius: 14px;
  padding: 25px;
  animation: popupFade 0.25s ease;
}

/* Header */
.popup-header h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

/* Form */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  font-size: 16px;
  outline: none;
}

.form-group input:focus {
  border: 1px solid #0f9d58;
}

/* Buttons */
.popup-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.cancel-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #dcdcdc;
  font-weight: 600;
  cursor: pointer;
  margin:20px 4px 0 0;
}

.save-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #0f9d58;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* Animation */
@keyframes popupFade {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* pop-up enquiry form css customer and ended supllier */













/* jidnasha  csssssssssssssssssssssssssssssssssssss */



/*add-credit page css*/
.addcredit-wrap{
  display:flex;
  flex:1;
  align-items:center;
  justify-content:center;
  background:#f8faff;
}

.addcredit-card{
  background:#fff;
  border-radius:20px;
  width:100%;
  max-width:1300px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(15,23,42,.14);
}
/*add-payment page css*/
.addpayment-wrap{
  display:flex;
  flex:1;
  align-items:center;
  justify-content:center;
  background:#f8faff;
}

.addpayment-card{
  background:#fff;
  border-radius:20px;
  width:100%;
  max-width:1300px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(15,23,42,.14);
}
/*tnx detail page css*/
.enxdetail-header-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.enxdetail-wrap{
  display:flex;
  flex:1;
  align-items:flex-start;
  justify-content:center;
  padding:40px 20px;
  background:#f8faff;
  overflow-y:auto;
}

.enxdetail-card{
  background:#fff;
  border-radius:var(--radius-lg);
  width:100%;
  max-width:1300px;
  box-shadow:var(--shadow-md);
  overflow:hidden;
}

.enxdetail-top{
  padding:22px 26px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(135deg,#fafbff,white);
}

.enxdetail-title{
  font-family:'Cormorant Garamond', Georgia, serif;
  font-size:18px;
  font-weight:700;
}

.enxdetail-close{
  text-decoration:none;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#f1f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-secondary);
  font-size:14px;
}

.enxdetail-body{
  padding:22px 26px;
}

.enxdetail-amount-red{
  color:var(--red);
}

.enxdetail-badge-credit{
  margin-top:8px;
  display:inline-block;
  background:var(--red-light);
  color:var(--red);
  padding:4px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:700;
}

.enxdetail-attachment-row{
  display:flex;
  gap:10px;
}

.enxdetail-dash-btn{
  padding:8px 14px;
  border:1.5px dashed var(--border);
  border-radius:8px;
  background:none;
  font-size:13px;
  font-weight:600;
  color:var(--text-secondary);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
}

.enxdetail-textarea{
  min-height:70px;
}

.enxdetail-red-mono{
  color:var(--red);
  font-family:'Cormorant Garamond', Georgia, serif;
}

.enxdetail-mono-small{
  font-family:'Cormorant Garamond', Georgia, serif;
  font-size:11px;
}

.enxdetail-action-row{
  display:flex;
  justify-content: flex-end;
  gap:10px;
  margin-top:4px;
}

.enxdetail-save-btn{
 
  background:var(--green);
  color:#fff;

  border-radius:8px;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
   padding:12px 18px;
  border:2px solid var(--green);
}

.enxdetail-delete-btn{
  padding:12px 18px;
  border:2px solid var(--red);
  background:#fff;
  color:var(--red);
  border-radius:8px;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
}
/*customer profile page css*/
.customerprofile-header-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.customerprofile-wrap{
  display:flex;
  flex:1;
  align-items:flex-start;
  justify-content:center;
  padding:40px 20px;
  background:#f8faff;
  overflow-y:auto;
}

.customerprofile-card{
  background:#fff;
  border-radius:var(--radius-lg);
  width:100%;
  max-width:1300px;
  box-shadow:var(--shadow-md);
  overflow:hidden;
}

.customerprofile-top{
  padding:22px 26px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(135deg,#fafbff,white);
}

.customerprofile-title{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size:18px;
  font-weight:700;
}

.customerprofile-close{
  text-decoration:none;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#f1f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-secondary);
  font-size:14px;
}

.customerprofile-body{
  padding:22px 26px;
}

.customerprofile-hero{
  text-align:center;
  padding:20px 0 28px;
}

.customerprofile-avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  background:linear-gradient(135deg,#F97316,#EF4444);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:700;
  color:#fff;
  margin:0 auto 12px;
}

.customerprofile-name{
  font-size:18px;
  font-weight:700;
}

.customerprofile-balance{
  font-size:12.5px;
  color:var(--text-muted);
  margin-top:4px;
}

.customerprofile-action-row{
  display:flex;
  gap:10px;
  margin-top:8px;
  justify-content: flex-end;
}

.customerprofile-save-btn{
padding:12px 16px;
  border:2px solid var(--green);
  background:var(--green);
  color:#fff;
  border:none;
  border-radius:8px;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
}

.customerprofile-delete-btn{
  padding:12px 16px;
  border:2px solid var(--red);
  background:#fff;
  color:var(--red);
  border-radius:8px;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
}

.customerprofile-quick{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--border);
}

.customerprofile-quick-title{
  font-size:11px;
  font-weight:800;
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:.8px;
  margin-bottom:12px;
}

.customerprofile-quick-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.customerprofile-quick-credit{
  padding:8px 14px;
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:12.5px;
  font-weight:700;
  color:var(--red);
  text-decoration:none;
  background:var(--red-light);
}

.customerprofile-quick-payment{
  padding:8px 14px;
  border:1.5px solid var(--green);
  border-radius:var(--radius-sm);
  font-size:12.5px;
  font-weight:700;
  color:var(--green);
  text-decoration:none;
  background:var(--green-light);
}

.customerprofile-quick-reminder{
  padding:8px 14px;
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:12.5px;
  font-weight:700;
  color:var(--text-secondary);
  background:#fff;
  cursor:pointer;
}


/* subscrption plan started here css */


/* ===== WRAPPER ===== */
.pricing-wrapper {
  /* background: #f8faff; */
  /* padding: 60px 20px; */
  display: flex;
  justify-content: center;
}

.pricing-container {
  width: 100%;
  max-width: 1100px;
}

/* ===== HEADER ===== */
.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-star {
  font-size: 42px;
  margin-bottom: 10px;
}

.pricing-title {
  font-size: 28px;
  font-weight: 700;
}

.pricing-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-top: 6px;
}

/* ===== GRID ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== CARD ===== */
.plan-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.plan-label {
  /* font-size: 12px; */
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 20px;
  color: #94a3b8;
}

.plan-price {
  font-size: 34px;
  font-weight: 700;
}

.plan-price span {
  font-size: 14px;
  color: #64748b;
}

/* ===== FEATURES ===== */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.plan-features li {
  /* font-size: 14px; */
  margin-bottom: 10px;
  position: relative;
  padding-left: 22px;
}

.plan-features li.active::before {
  content: "✔";
  color: #22c55e;
  position: absolute;
  left: 0;
}

.plan-features li.inactive {
  color: #94a3b8;
}

.plan-features li.inactive::before {
  content: "✖";
  color: #ef4444;
  position: absolute;
  left: 0;
}

/* ===== BUTTONS ===== */
.btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.disabled-btn {
  background: #e5e7eb;
  color: #64748b;
  cursor: not-allowed;
}

/* ===== PRO PLAN ===== */
.pro-plan {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
  border: none;
  box-shadow: 0 20px 60px rgba(5,150,105,.25);
}

.pro-plan .plan-label {
  color: #34d399;
}

.pro-plan .plan-features li {
  color: #e2e8f0;
}

.pro-btn {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
}

/* ===== BUSINESS PLAN ===== */
.business-plan {
  border: 2px solid #7c3aed;
}

.business-label {
  color: #7c3aed;
}

.business-btn {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
}

/* ===== FOOTER ===== */
.pricing-footer {
  text-align: center;
  font-size: 12px;
  margin-top: 25px;
  color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* subscrption plan endedcss */

/* profile customer page css */

 /* Layout */
      .profile-container {
        max-width: 1300px;
        margin: 20px 0 0 0;
        padding: 0 20px;
      }

      /* Card */
      .profile-card {
        background: #ffffff;
        padding: 30px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        margin-bottom: 25px;
      }

      /* Top Section */
      .profile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 25px;
      }

      .profile-avatar {
        width: 70px;
        height: 70px;
        background: #09a372;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 22px;
        color: white;
      }

      .profile-info {
        flex: 1;
        margin-left: 20px;
      }

      .due-balance {
        color: #ff4d4d;
        font-weight: 600;
      }

      .profile-status {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
      }

      .profile-status.due {
        background: rgba(255, 77, 77, 0.15);
        color: #ff4d4d;
      }

      /* Form */
      .profile-form .form-row {
        display: flex;
        flex-direction: column;
        margin-bottom: 18px;
      }

      .profile-form input,
      .profile-form textarea {
        padding: 10px 14px;
        border-radius: 8px;
        border: 1px solid #000;
        background: #fff;
        color: #000;
        outline: none;
      }

      .profile-form input:focus,
      .profile-form textarea:focus {
        border-color: #00f5d4;
      }

      /* Buttons */
      .profile-actions {
        display: flex;
        gap: 15px;
        margin-top: 10px;
      }

      .btn-primary {
        /* flex: 1; */
        padding: 10px;
        border-radius: 8px;
        border: none;
        background: #09a372;
        color: white;
        cursor: pointer;
      }

      .btn-danger {
        /* flex: 1; */
        padding: 0 30px 0 30px;
        border-radius: 8px;
        border: none;
        background: #ff4d4d;
        color: white;
        cursor: pointer;
      }

      /* Quick Card */
      .quick-card {
        background: #f9f9f9;
        padding: 25px;
        border-radius: 16px;
      }

      .quick-actions {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin-top: 15px;
      }

      .quick-btn {
        padding: 10px 18px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 14px;
        cursor: pointer;
      }

      .quick-btn.credit {
        background: rgb(9 163 114);
        color: #fff;
      }

      .quick-btn.payment {
        background: rgb(0 123 255);
        color: #fff;
      }

      .quick-btn.reminder {
        background: rgb(255 200 0);
        color: #000;
        border: none;
      }

/* profile customer page css */
/* ══════════════════════════════════════════════════════════════
   GLOBAL SCREEN-APP — Row layout (overrideable on mobile)
══════════════════════════════════════════════════════════════ */
#screen-app {
  flex-direction: row;
}

/* ══════════════════════════════════════════════════════════════
   PORTAL PAGE — Enhanced Design
══════════════════════════════════════════════════════════════ */
.portal-wrapper {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

.balance-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.balance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(9, 163, 114, 0.3);
}

.transaction-card {
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.transaction-card:hover {
  border-color: rgba(9, 163, 114, 0.3);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.pay-btn {
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(9, 163, 114, 0.25);
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(9, 163, 114, 0.4);
  background: #07b87f !important;
}

.info-bar {
  border: 1px solid rgba(9, 163, 114, 0.12);
}
