/* Ntech Account Dashboard */
:root{
  --nt-blue:#185FA5;
  --nt-blue-dark:#0C447C;
  --nt-blue-light:#E6F1FB;
  --nt-border:#e3e8ee;
  --nt-text:#1f2937;
  --nt-muted:#6b7280;
}

/* ---------- Sidebar menu ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation{
  background:#fff !important;
  border:1px solid var(--nt-border) !important;
  border-radius:12px !important;
  padding:10px !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  list-style:none !important; margin:0 !important; padding:0 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li{
  border:0 !important; margin:0 0 2px !important; padding:0 !important; height:auto !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display:flex !important; flex-direction:row !important;
  align-items:center !important; justify-content:flex-start !important;
  gap:10px; text-align:left !important;
  padding:11px 14px !important; height:auto !important; line-height:1.3 !important;
  border-radius:8px; border:0 !important;
  color:var(--nt-muted); font-size:14px; font-weight:500;
  transition:background .15s, color .15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a::before,
.woocommerce-account .woocommerce-MyAccount-navigation li a::after{
  float:none !important; position:static !important;
  margin:0 !important; color:inherit !important; opacity:.85;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{
  background:var(--nt-blue-light); color:var(--nt-blue-dark);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{
  background:var(--nt-blue) !important; color:#fff !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a{
  margin-top:6px; color:#A32D2D;
}

/* ---------- Dashboard ---------- */
.ntd, .ntd *{box-sizing:border-box;}
.ntd{display:flex; flex-direction:column; gap:16px; width:100%;}
.ntd a{text-decoration:none !important; box-shadow:none !important;}
.ntd p, .ntd h2, .ntd h3{padding:0 !important; border:0 !important;}
.ntd h2::before,.ntd h2::after,.ntd h3::before,.ntd h3::after{display:none !important; content:none !important;}

/* Banner */
.ntd .ntd-hero{
  background:var(--nt-blue); color:#fff; border-radius:12px;
  padding:22px 24px; display:flex; align-items:center;
  justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.ntd .ntd-hero__text{display:flex; flex-direction:column; gap:4px;}
.ntd .ntd-hero__sub{font-size:12px; color:#B5D4F4; display:block; margin:0;}
.ntd .ntd-hero__title{margin:0 !important; font-size:24px; font-weight:600; color:#fff !important; line-height:1.25;}
.ntd .ntd-hero__desc{margin:0 !important; font-size:13px; color:#B5D4F4;}
.ntd .ntd-hero__btn{
  display:inline-block; background:#fff; color:var(--nt-blue-dark) !important;
  padding:10px 18px; border-radius:8px; font-size:14px; font-weight:600;
  line-height:1.2; white-space:nowrap;
}
.ntd .ntd-hero__btn:hover{background:var(--nt-blue-light);}
.ntd .ntd-hero__btn--solid{background:var(--nt-blue); color:#fff !important;}
.ntd .ntd-hero__btn--solid:hover{background:var(--nt-blue-dark);}

/* Stat cards */
.ntd .ntd-stats{display:grid !important; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px;}
.ntd .ntd-stat{
  display:flex !important; flex-direction:column; gap:2px;
  width:100% !important; max-width:none !important; min-width:0 !important;
  height:auto !important; float:none !important; margin:0 !important;
  background:#fff; border:1px solid var(--nt-border); border-radius:12px;
  padding:16px !important; transition:border-color .15s, transform .15s;
}
.ntd .ntd-stat:hover{border-color:var(--nt-blue); transform:translateY(-2px);}
.ntd .ntd-stat__ico{
  width:36px; height:36px; border-radius:8px; margin-bottom:10px;
  display:flex; align-items:center; justify-content:center;
}
.ntd .ntd-c-blue{background:#E6F1FB; color:#0C447C;}
.ntd .ntd-c-amber{background:#FAEEDA; color:#633806;}
.ntd .ntd-c-pink{background:#FBEAF0; color:#72243E;}
.ntd .ntd-c-teal{background:#E1F5EE; color:#085041;}
.ntd .ntd-stat__num{display:block; font-size:24px; font-weight:600; color:var(--nt-text); line-height:1.2;}
.ntd .ntd-stat__lbl{display:block; font-size:13px; color:var(--nt-muted);}

/* Card + orders */
.ntd .ntd-card{background:#fff; border:1px solid var(--nt-border); border-radius:12px; padding:16px 18px;}
.ntd .ntd-card__head{display:flex; justify-content:space-between; align-items:center; margin:0 0 8px;}
.ntd .ntd-card__head h3{margin:0 !important; font-size:16px; font-weight:600; color:var(--nt-text);}
.ntd .ntd-card__head a{font-size:13px; color:var(--nt-blue);}

.ntd .ntd-order{
  display:flex; align-items:center; gap:12px; padding:12px 0;
  border-top:1px solid var(--nt-border); color:var(--nt-text); font-size:14px;
}
.ntd .ntd-order:hover .ntd-order__no{color:var(--nt-blue);}
.ntd .ntd-order__no{font-weight:600; min-width:64px;}
.ntd .ntd-order__item{flex:1; color:var(--nt-muted); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.ntd .ntd-order__item em{font-style:normal; font-size:12px; margin-left:4px;}
.ntd .ntd-order__total{font-weight:600;}

.ntd .ntd-badge{padding:3px 10px; border-radius:8px; font-size:12px; font-weight:500; background:#F1EFE8; color:#444441;}
.ntd .ntd-badge--completed{background:#EAF3DE; color:#27500A;}
.ntd .ntd-badge--processing,.ntd .ntd-badge--on-hold{background:#FAEEDA; color:#633806;}
.ntd .ntd-badge--pending{background:#E6F1FB; color:#0C447C;}
.ntd .ntd-badge--cancelled,.ntd .ntd-badge--failed,.ntd .ntd-badge--refunded{background:#FCEBEB; color:#791F1F;}

.ntd .ntd-empty{text-align:center; padding:24px 0 8px; border-top:1px solid var(--nt-border);}
.ntd .ntd-empty p{color:var(--nt-muted); margin:0 0 14px !important; font-size:14px;}

/* Quick links */
.ntd .ntd-links{display:grid !important; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px;}
.ntd .ntd-link{
  display:flex !important; align-items:center; gap:12px;
  width:100% !important; max-width:none !important; float:none !important; margin:0 !important;
  background:#fff; border:1px solid var(--nt-border); border-radius:12px;
  padding:14px 16px !important; transition:border-color .15s;
}
.ntd .ntd-link:hover{border-color:var(--nt-blue);}
.ntd .ntd-link__ico{color:var(--nt-blue); display:flex; flex-shrink:0;}
.ntd .ntd-link strong{display:block; font-size:14px; color:var(--nt-text); line-height:1.3;}
.ntd .ntd-link small{display:block; font-size:12px; color:var(--nt-muted); line-height:1.3;}

/* Tablet / mobile */
@media (max-width:900px){
  .ntd .ntd-stats{grid-template-columns:repeat(2, minmax(0,1fr));}
  .ntd .ntd-links{grid-template-columns:1fr;}
}
@media (max-width:600px){
  .ntd .ntd-order{flex-wrap:wrap;}
  .ntd .ntd-order__item{flex-basis:100%; order:3; white-space:normal;}
}


/* ================= v3 additions ================= */

/* Stray <br>/<p> (wpautop) grid ma khali cell banavta hata – aa fix kare che */
.ntd br, .ntd p:empty{display:none !important;}
.ntd .ntd-stats > :not(.ntd-stat),
.ntd .ntd-links > :not(.ntd-link){display:none !important;}

/* Need help phone number ek line ma */
.ntd .ntd-link small{white-space:nowrap;}

/* Sidebar: user card (avatar + naam) */
.woocommerce-account .woocommerce-MyAccount-navigation .ntd-user{
  display:flex; align-items:center; gap:10px;
  padding:4px 4px 14px; margin-bottom:8px;
  border-bottom:1px solid var(--nt-border);
}
.ntd-user__av{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background:var(--nt-blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:600;
}
.ntd-user__name{display:block; font-size:14px; font-weight:600; color:var(--nt-text); line-height:1.3;}
.ntd-user__role{display:block; font-size:12px; color:var(--nt-muted); line-height:1.3;}

/* Sidebar: theme na juna icons hatavi ne naava line icons */
.woocommerce-account .woocommerce-MyAccount-navigation li a::after{display:none !important; content:none !important;}
.woocommerce-account .woocommerce-MyAccount-navigation li a::before{
  content:"" !important; display:inline-block !important;
  width:18px !important; height:18px !important; flex-shrink:0;
  font-size:0 !important; line-height:0 !important;
  background-color:currentColor !important;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-size:contain; mask-size:contain;
  opacity:1 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='7' rx='1'/%3E%3Crect x='14' y='4' width='6' height='4' rx='1'/%3E%3Crect x='14' y='12' width='6' height='8' rx='1'/%3E%3Crect x='4' y='15' width='6' height='5' rx='1'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='7' rx='1'/%3E%3Crect x='14' y='4' width='6' height='4' rx='1'/%3E%3Crect x='14' y='12' width='6' height='8' rx='1'/%3E%3Crect x='4' y='15' width='6' height='5' rx='1'/%3E%3C/svg%3E");}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3z'/%3E%3Cpath d='M12 12l8-4.5M12 12v9M12 12L4 7.5'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3z'/%3E%3Cpath d='M12 12l8-4.5M12 12v9M12 12L4 7.5'/%3E%3C/svg%3E");}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17v2a2 2 0 002 2h12a2 2 0 002-2v-2M7 11l5 5 5-5M12 4v12'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17v2a2 2 0 002 2h12a2 2 0 002-2v-2M7 11l5 5 5-5M12 4v12'/%3E%3C/svg%3E");}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3Cpath d='M12 21l-6.5-6.5a9 9 0 1113 0L12 21z'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3Cpath d='M12 21l-6.5-6.5a9 9 0 1113 0L12 21z'/%3E%3C/svg%3E");}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2'/%3E%3C/svg%3E");}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 8V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2h7a2 2 0 002-2v-2M9 12h12l-3-3m3 3l-3 3'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 8V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2h7a2 2 0 002-2v-2M9 12h12l-3-3m3 3l-3 3'/%3E%3C/svg%3E");}
