:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;

  --pri:#6d5efc;         /* primary purple */
  --pri2:#7aa4ff;        /* secondary blue */
  --priSoft:#eef0ff;     /* soft lavender */

  --shadow: 0 16px 50px rgba(17, 24, 39, .10);
  --shadow2: 0 10px 30px rgba(17, 24, 39, .08);
}

*{box-sizing:border-box; font-family: Calibri, "Segoe UI", Roboto, Arial, sans-serif;}


body{
  margin:0;
  background: var(--bg);
  color: var(--text);
}

/* ===== TOP BAR (Calculator style) ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  padding:14px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;

  background: linear-gradient(90deg, var(--pri), var(--pri2));
  box-shadow: 0 10px 24px rgba(109, 94, 252, .25);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:44px;
  height:44px;
  object-fit:contain;
}

.brandtext .brandtitle{
  font-weight:800;
  color:#fff;
  letter-spacing:.2px;
  font-size:18px;
  line-height:1.1;
}

.brandtext .brandsub{
  color: rgba(255,255,255,.85);
  font-size:12px;
  margin-top:3px;
}

/* ===== NAV BUTTONS (white pills like calculator) ===== */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.navlink{
  text-decoration:none;
  color:#1f2a44;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.65);
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  transition:.2s;
  box-shadow: 0 8px 20px rgba(17,24,39,.10);
}

.navlink:hover{
  background:#ffffff;
  transform: translateY(-1px);
}

.navlink[aria-disabled="true"]{
  opacity:.6;
  pointer-events:none;
}

.navuser{
  color: rgba(255,255,255,.92);
  font-weight:700;
  font-size:13px;
}

.navsep{
  width:1px;
  height:26px;
  background: rgba(255,255,255,.40);
  margin:0 4px;
}

/* ===== PAGE WRAP ===== */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:22px;
}

/* ===== CARDS (white, soft shadow) ===== */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.cardhead{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:#fbfbff;
}

.title{
  font-weight:900;
  color:#111827;
}

.muted{
  color: var(--muted);
}

.body{
  padding:18px;
}

/* ===== FORM GRID ===== */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

@media(max-width:850px){
  .grid{ grid-template-columns: 1fr; }
}

/* ===== INPUTS (calculator style) ===== */
label{
  display:block;
  font-size:13px;
  font-weight:800;
  color:#111827;
  margin-bottom:8px;
}

.input, select, textarea{
  width:100%;
  background:#ffffff;
  border:1px solid #e6e8f0;
  border-radius:14px;
  padding:12px 14px;
  outline:none;
  font-size:14px;
  color:#111827;
  box-shadow: 0 2px 10px rgba(17,24,39,.05);
  transition:.2s;
}

.input::placeholder, textarea::placeholder{
  color:#9aa3b2;
}

.input:focus, select:focus, textarea:focus{
  border-color: rgba(109,94,252,.55);
  box-shadow: 0 0 0 4px rgba(109,94,252,.12), 0 10px 24px rgba(17,24,39,.08);
}

/* ===== BUTTONS (purple primary like calculator) ===== */
.btn{
  border:1px solid #e6e8f0;
  background:#ffffff;
  color:#111827;
  padding:12px 16px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
  transition:.2s;
  box-shadow: var(--shadow2);
}

.btn:hover{
  transform: translateY(-1px);
}

.btn.primary{
  border:none;
  color:#fff;
  background: linear-gradient(90deg, var(--pri), var(--pri2));
  box-shadow: 0 14px 28px rgba(109,94,252,.28);
}

.btn.primary:hover{
  box-shadow: 0 18px 36px rgba(109,94,252,.32);
}

.btn.small{
  padding:9px 12px;
  font-size:12px;
  border-radius:12px;
}

.btn.danger{
  border:none;
  color:#fff;
  background: linear-gradient(90deg, #ff5c7a, #ff8a5c);
}

/* ===== BADGES / HR / LIST ===== */
.hr{
  height:1px;
  background: var(--line);
  margin:18px 0;
}

.badge{
  font-size:12px;
  font-weight:900;
  color:#3b3f55;
  background: #f3f4ff;
  border:1px solid #e6e8ff;
  padding:6px 12px;
  border-radius:999px;
}

.notice{
  background:#eef0ff;
  border:1px solid #d9dcff;
  padding:12px 14px;
  border-radius:14px;
  color:#1f2a44;
  font-weight:700;
}

.error{
  background:#fff1f2;
  border:1px solid #ffd2d8;
  padding:12px 14px;
  border-radius:14px;
  color:#7a1f2a;
  font-weight:700;
}

.listitem{
  padding:14px 16px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:12px;
  text-decoration:none;
  color:inherit;
  transition:.15s;
}

.listitem:hover{
  background:#fafaff;
}

.row{
  display:flex;
  gap:12px;
  align-items:center;
}

.row > *{
  flex:1;
}


/* ===== MODAL (white, premium) ===== */
.modal{
  position:fixed;
  inset:0;
  background: rgba(17,24,39,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.modalCard{
  width:min(720px, 96vw);
  background: #ffffff;
  border:1px solid #e6e8f0;
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.modalHead{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fbfbff;
}

.modalBody{ padding:16px; }

.modalFoot{
  padding:14px 16px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:flex-end;
  gap:10px;
  background:#fbfbff;
}

/* ===== AUTH (Login/Register) Split Layout ===== */
.auth-shell{
  min-height: calc(100vh - 72px);
  display:grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
}

@media(max-width: 980px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-right{ display:none; }
}

.auth-left{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 18px;
  background: #ffffff;
}

.auth-card{
  width: min(420px, 92vw);
  background: #ffffff;
  border:1px solid #e6e8f0;
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:22px;
}

.auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.auth-brand img{
  width:54px;
  height:54px;
  object-fit:contain;
}

.auth-title{
  font-size:18px;
  font-weight:900;
  color:#111827;
}

.auth-sub{
  font-size:13px;
  font-weight:700;
  color:#6b7280;
  margin-top:2px;
}

.auth-right{
  position:relative;
  background: linear-gradient(180deg, #2b6cb0, #234e9b);
}

.auth-illustration{
  position:absolute;
  inset:0;
  background-image: url("login-illustration.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
  opacity: 1;
}

.phoneRow{
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
}

.ccSelect{
  width:140px;
  min-width:140px;
  height:44px;   /* match your input height */
}

.phoneInput{
  flex:1;
  height:44px;
}

/* On very small screens still keep proper layout */
@media (max-width: 480px){
  .ccSelect{ width:130px; min-width:130px; }
}


/* ===== MOBILE POLISH ===== */
@media (max-width: 720px){
  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:12px 14px;
  }

  .brand{
    width:100%;
    justify-content:flex-start;
  }

  .nav{
    width:100%;
    overflow-x:auto;
    flex-wrap:nowrap;
    gap:8px;
    padding-bottom:6px;
    -webkit-overflow-scrolling: touch;
  }

  .navlink{
    white-space:nowrap;
    flex:0 0 auto;
    padding:9px 12px;
    font-size:12px;
  }

  .navsep{
    display:none;
  }

  .wrap{
    padding:12px;
  }

  .cardhead{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
}

@media (max-width: 520px){
  .listitem{
    flex-direction:column;
    align-items:flex-start;
  }
  .listitem > div:last-child{
    white-space:normal !important;
  }

  .phoneRow{
    gap:8px;
  }
  .ccSelect{
    width:120px;
    min-width:120px;
  }
}




/* ---------------- Notifications (blocking modal) ---------------- */
.vf-notif-overlay{
  position:fixed; inset:0;
  background:rgba(8,12,18,0.65);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.vf-notif-modal{
  width:min(920px, 96vw);
  max-height:88vh;
  background:#fff;
  border-radius:18px;
  box-shadow:0 30px 90px rgba(0,0,0,0.35);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.vf-notif-head{
  padding:18px 18px 10px 18px;
  border-bottom:1px solid rgba(0,0,0,0.08);
}
.vf-notif-title{ font-size:18px; font-weight:900; }
.vf-notif-sub{ margin-top:4px; }
.vf-notif-list{
  padding:14px 18px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.vf-notif-item{
  border:1px solid rgba(0,0,0,0.10);
  border-radius:14px;
  padding:12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.vf-notif-client{ font-weight:900; }
.vf-notif-small{ margin-top:6px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.vf-notif-small .dot{ opacity:0.55; }
.vf-notif-remark{
  margin-top:8px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(15,107,79,0.06);
}
.vf-notif-actions{ display:flex; flex-direction:column; gap:8px; min-width:140px; }
.vf-notif-foot{ padding:10px 18px 16px 18px; border-top:1px solid rgba(0,0,0,0.08); }

/* ---------------- Screen-guard deterrents ---------------- */
.vf-secure-blur body{
  filter: blur(10px);
  user-select: none;
}
.vf-secure-overlay{
  position:fixed; inset:0;
  background:rgba(8,12,18,0.72);
  z-index:9998;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.vf-secure-box{
  background:#fff;
  border-radius:16px;
  padding:18px 20px;
  box-shadow:0 24px 70px rgba(0,0,0,0.35);
  text-align:center;
  max-width:420px;
}


/* Notification bell badge */
.navlink.notif{ position:relative; }
.navbadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(255,255,255,0.92);
  color:#1d1d1d;
  margin-left:6px;
  border:1px solid rgba(0,0,0,0.15);
}


.success{
  background:#ecfdf3;
  color:#166534;
  border:1px solid #bbf7d0;
  padding:12px 14px;
  border-radius:12px;
  font-weight:600;
}

.error{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
  padding:12px 14px;
  border-radius:12px;
  font-weight:600;
}
