* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #eef5ff;
  color: #10203a;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 800;
  background: #fff;
  box-shadow: 0 1px 4px #cdd8ec;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5deed;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.hidden {
  display: none !important;
}

.muted {
  color: #8a97aa;
}

.primary {
  background: #075bd8;
  color: #fff;
}

.success,
.whatsapp {
  background: #0aa83f;
  color: #fff;
}

.danger {
  background: #f22727;
  color: #fff;
}

.orange-btn {
  background: #f96401;
  color: #fff;
}

.full {
  width: 100%;
}

/* Login */
.login-screen {
  min-height: 100vh;
  max-width: 430px;
  margin: auto;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.login-hero {
  background: linear-gradient(160deg, #075bd8, #003079);
  color: #fff;
  text-align: center;
  padding: 48px 20px 34px;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.brand-logo {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.brand-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
}

.login-hero h1 {
  margin: 8px 0 4px;
  font-size: 30px;
}

.login-hero p {
  margin: 0 0 20px;
}

.hero-art {
  font-size: 76px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 25px;
  margin: 18px auto 0;
  max-width: 190px;
}

.login-form {
  padding: 24px;
  display: grid;
  gap: 10px;
}

.password-wrap {
  position: relative;
}

.password-wrap span {
  position: absolute;
  right: 12px;
  top: 12px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.check {
  display: flex;
  gap: 6px;
  align-items: center;
}

.check input {
  width: auto;
}

/* App Shell */
.app {
  min-height: 100vh;
  max-width: 430px;
  margin: auto;
  background: #f7fbff;
  position: relative;
  box-shadow: 0 0 0 1px #d9e4f7;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 58px;
  background: #075bd8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.mobile-header h3 {
  margin: 0;
  font-size: 16px;
}

.icon-btn,
.bell {
  background: transparent;
  color: #fff;
  box-shadow: none;
  padding: 8px;
  font-size: 20px;
}

.bell {
  position: relative;
}

.bell span {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: red;
  border-radius: 50%;
}

.mobile-content {
  padding: 14px 14px 86px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* Dashboard */
.stat {
  border-radius: 12px;
  color: #fff;
  padding: 15px 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px #d2def0;
}

.stat small,
.stat span {
  display: block;
  opacity: 0.95;
}

.stat b {
  font-size: 28px;
  display: block;
  margin: 3px 0;
}

.green {
  background: linear-gradient(135deg, #09a647, #22c66b);
}

.blue {
  background: linear-gradient(135deg, #075bd8, #1782ff);
}

.purple {
  background: linear-gradient(135deg, #7c26b8, #c044c7);
}

.orange {
  background: linear-gradient(135deg, #aa4701, #be6602);
}

/* Cards */
.card,
.form-card,
.filter-card,
.detail-card,
.profile-view,
.order-request-card {
  background: #fff;
  border: 1px solid #deebfb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px #dfeaf7;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.card-title a {
  color: #075bd8;
  font-weight: 800;
}

/* Chart Mock */
.bars {
  height: 110px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 8px 6px 0;
}

.bars i {
  flex: 1;
  background: #0db357;
  border-radius: 6px 6px 0 0;
  min-height: 22px;
}

.bars i:nth-child(2) {
  height: 55px;
}

.bars i:nth-child(3) {
  height: 68px;
}

.bars i:nth-child(4) {
  height: 44px;
}

.bars i:nth-child(5) {
  height: 58px;
}

.bars i:nth-child(6) {
  height: 70px;
}

.bars i:nth-child(7) {
  height: 90px;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #758299;
}

/* Search */
.search-line {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-line button {
  width: 46px;
  padding: 0;
  color: #075bd8;
}

/* Lists */
.customer-list,
.order-list,
.mini-list,
.beneficiary-list {
  display: grid;
  gap: 10px;
}

.customer-card,
.order-card,
.bene-card {
  background: #fff;
  border: 1px solid #e0ebfb;
  border-radius: 12px;
  padding: 13px;
  box-shadow: 0 3px 10px #e1ebf7;
}

.customer-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.customer-card input {
  width: 20px;
  height: 20px;
}

.cust-code {
  color: #075bd8;
  font-weight: 900;
}

.cust-name {
  font-weight: 900;
  margin: 4px 0;
}

.cust-phone {
  font-weight: 800;
}

.cust-date {
  font-size: 12px;
  color: #34435b;
  text-align: right;
}

.wa-round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0aa83f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: none;
}

.bottom-actions {
  position: sticky;
  bottom: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

/* Order List */
.filter-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-card label {
  font-size: 12px;
  color: #5b687a;
}

.filter-card button {
  grid-column: 2;
}

.order-card {
  position: relative;
}

.order-card h4 {
  margin: 0;
  color: #10203a;
}

.order-card .meta {
  font-size: 12px;
  color: #566276;
  margin-top: 3px;
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 5px;
  background: #10a64a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.badge.pending {
  background: #ffad00;
}

.badge.failed {
  background: #f22727;
}

.badge.opened {
  background: #1976bf;
}

.eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #075bd8;
  background: transparent;
  box-shadow: none;
}

/* Forms */
.form-card {
  display: grid;
  gap: 8px;
}

.form-card label {
  font-size: 12px;
  font-weight: 800;
  color: #34435b;
}

.phone-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
}

.upload-card {
  border: 2px dashed #99bdf4;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
  text-align: center;
}

.upload-card input {
  border: 0;
  padding: 4px;
}

.upload-card small {
  display: block;
  color: #5d6b82;
  margin-top: 5px;
}

.id-preview {
  width: 100%;
  max-height: 150px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #d5deed;
  margin-top: 10px;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

/* Beneficiary */
.bene-card {
  display: grid;
  gap: 4px;
}

.bene-name {
  font-size: 16px;
  font-weight: 900;
  color: #075bd8;
}

.bene-customer {
  font-size: 13px;
  font-weight: 800;
  color: #10203a;
}

.bene-address {
  color: #6d7b91;
  font-size: 13px;
}

.bene-contact {
  font-weight: 700;
  margin-top: 4px;
}

/* Order Request */
.order-request-card h3 {
  margin: 0 0 12px;
  color: #075bd8;
}

.order-row {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.order-row label {
  font-size: 12px;
  font-weight: 800;
  color: #34435b;
}

.amount {
  font-weight: 900;
  color: #075bd8;
}

/* Detail */
.detail-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin: 0 0 12px;
}

.detail-card dt {
  font-weight: 800;
  color: #4c5a70;
}

.detail-card dd {
  margin: 0;
}

.message-bubble,
.whatsapp-preview {
  background: #eaffdf;
  border: 1px solid #bfe8b8;
  border-radius: 10px;
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
  box-shadow: 0 2px 8px #dfeadf;
}

.message-bubble.big {
  margin-top: 70px;
  min-height: 240px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.action-grid .orange-btn {
  grid-column: 1 / -1;
}

.preview-screen {
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Customer Detail */
.customer-detail {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #deebfb;
}

.customer-detail-header {
  text-align: center;
  padding: 20px;
}

.customer-detail-header img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.customer-detail-body {
  padding: 15px;
}

.detail-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

/* Profile */
.profile-view {
  text-align: left;
}

.profile-top {
  text-align: center;
  padding: 20px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #d5e6ff;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #075bd8;
  font-size: 20px;
  font-weight: 900;
}

.profile-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 4px;
  border-top: 1px solid #eef3fa;
  font-size: 14px;
}

/* More Menu */
.menu-list {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e0ebfb;
}

.menu-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #eef3fa;
  background: #fff;
  color: #182033;
  text-align: left;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 68px;
  background: #fff;
  border-top: 1px solid #dbe6f5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 6;
}

.bottom-nav button {
  box-shadow: none;
  border-radius: 0;
  background: #fff;
  color: #5b6679;
  font-size: 20px;
  padding: 8px 0;
}

.bottom-nav button span {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.bottom-nav button.active {
  color: #075bd8;
}

.desktop-only {
  display: none;
}

/* Desktop Preview Phone Frame */
@media (min-width: 760px) {
  body {
    background: #dfeafb;
  }

  .app,
  .login-screen {
    border-radius: 30px;
    overflow: hidden;
    margin: 24px auto;
    border: 8px solid #111;
    box-shadow: 0 20px 60px #8ba2bf;
  }

  .bottom-nav {
    bottom: 24px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .login-screen {
    min-height: 820px;
  }

  .app {
    min-height: 820px;
  }
}

.customer-card{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px;
    margin-bottom:14px;
    background:#fff;
    border:1px solid #dce8f8;
    border-radius:24px;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.customer-avatar{
    width:32px;
    height:32px;
    min-width:32px;
    border-radius:50%;
    background:linear-gradient(135deg,#0b57d0,#2d8cff);
    color:#fff;
    font-size:16px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
}

.customer-info{
    flex:1;
    min-width:0;
}

.cust-code{
    color:#0b57d0;
    font-size:12px;
    font-weight:800;
    margin-bottom:6px;
}

.cust-name{
    font-size:12px;
    font-weight:800;
    color:#14284b;
    margin-bottom:6px;
    text-transform:uppercase;
}

.cust-phone{
    font-size:12px;
    font-weight:700;
    color:#203350;
}

.wa-round{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:50%;
    background:#10b33d;
    color:#fff;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:bold;
}

@media(max-width:480px){

    .customer-avatar{
        width:32px;
        height:32px;
        min-width:32px;
        font-size:14px;
    }

    .cust-name{
        font-size:12px;
    }

    .cust-phone{
        font-size:12px;
    }

    .wa-round{
        width:40px;
        height:40px;
        min-width:40px;
        font-size:14px;
    }
}

.bene-card {
    background: #fff;
    border: 1px solid #dce8f8;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.bene-card b {
    color: #075bd8;
}

.action-buttons{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.btn-success{
    flex:1;
    border:none;
    border-radius:12px;
    background:#16a34a !important;
    color:#fff;
    font-weight:600;
    padding:12px;
}

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.modal-box{
    width:90%;
    max-width:500px;
    background:#fff;
    border-radius:16px;
    padding:20px;
}

.modal-box textarea{
    width:100%;
    margin-top:10px;
}

.modal-actions{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    position: relative;
}

.notification-card.unread {
    border-left: 4px solid #0b6bff;
    background: #f8fbff;
}

.notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.notification-message {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

.notification-dot {
    width: 10px;
    height: 10px;
    background: #0b6bff;
    border-radius: 50%;
    margin-top: 6px;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #6b7280;
}

.bank-label{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    margin-bottom:8px;
    font-weight:600;
}

.btn-add-bank{
    border:none;
    background:#0b6bff;
    color:#fff;
    padding:6px 12px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.btn-add-bank:hover{
    opacity:.9;
}

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

.hidden{
    display:none !important;
}

.modal-content{
    width:92%;
    max-width:500px;
    max-height:90vh;
    overflow:auto;
    background:#fff;
    border-radius:20px;
    padding:20px;
}

.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.close-btn{
    border:none;
    background:none;
    font-size:24px;
    cursor:pointer;
}

.modal-footer{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.modal-footer button{
    flex:1;
}

.required {
    color: #f22727;
    font-weight: bold;
}

.dash-breakdown-inline{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
    gap:8px;
}

.dash-item{
    flex:1;
    text-align:center;
    background:rgba(255,255,255,.15);
    border-radius:10px;
    padding:6px;
}

.dash-item label{
    display:block;
    font-size:12px;
    margin-bottom:2px;
    color:#fff;
}

.dash-item b{ 
    font-size:18px !important;
}

.badge-new b{
    color:#dbeafe;
}

.badge-pending b{
    color:#fff;
}

.badge-completed b{
    color:#dcfce7;
}

.stat-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
}

.view-all-link{
    color:#fff;
    font-size:12px;
    text-decoration:none;
    font-weight:600;
}

.view-all-link:hover{
    text-decoration:underline;
}