/* V728 — profile compact polish + prominent admin access + professional system notifications */

/* ----- Profile: move coupon summary upward and remove redundant heading/status ----- */
#profile .profile-coupon-summary-v454,
#profile .profile-coupon-summary-v564,
#profile .profile-coupon-summary-v565{
  margin-top:6px!important;
  padding:8px!important;
  border-radius:16px!important;
  box-shadow:0 8px 22px rgba(45,84,136,.07)!important;
}
#profile .profile-coupon-summary-head-v454,
#profile .profile-coupon-summary-head-v564,
#profile .profile-coupon-summary-head-v565{
  display:none!important;
}
#profile .profile-coupon-stats-grid-v454,
#profile .profile-coupon-stats-grid-v564,
#profile .profile-coupon-stats-grid-v565{
  margin-top:0!important;
  gap:6px!important;
}
#profile .profile-coupon-stat-v454,
#profile .profile-coupon-stat-v564,
#profile .profile-coupon-stat-v565{
  min-height:72px!important;
  padding:8px 7px!important;
  border-radius:13px!important;
  justify-content:center!important;
  gap:3px!important;
}
#profile .profile-coupon-stat-icon-v564{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:10px!important;
  font-size:10px!important;
}
#profile .profile-coupon-stat-copy-v564 small{
  font-size:9px!important;
  line-height:1.2!important;
}
#profile .profile-coupon-stat-copy-v564 b,
#profile .profile-coupon-stat-v454 b{
  font-size:16px!important;
  line-height:1.1!important;
}
#profile .profile-coupon-stat-copy-v564 b em{
  font-size:8px!important;
}
#profile .profile-coupon-actions-v564{
  margin-top:7px!important;
  gap:6px!important;
}
#profile .profile-coupon-actions-v564 button{
  min-height:34px!important;
  height:34px!important;
  border-radius:11px!important;
  font-size:9.5px!important;
  padding:0 9px!important;
}
#profile .profile-tools-card-v429{
  margin-top:2px!important;
}

@media(max-width:640px){
  #profile .profile-mobile-page-v429{gap:6px!important}
  #profile .profile-coupon-summary-v454,
  #profile .profile-coupon-summary-v564,
  #profile .profile-coupon-summary-v565{margin-top:5px!important;padding:7px!important;border-radius:14px!important}
  #profile .profile-coupon-stats-grid-v454,
  #profile .profile-coupon-stats-grid-v564,
  #profile .profile-coupon-stats-grid-v565{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  #profile .profile-coupon-stat-v454,
  #profile .profile-coupon-stat-v564,
  #profile .profile-coupon-stat-v565{min-height:68px!important;padding:7px 6px!important;border-radius:12px!important}
  #profile .profile-coupon-actions-v564{margin-top:6px!important}
}

/* ----- Admin access card on customer profile: make it obvious but professional ----- */
#profile .profile-admin-access-v709{
  margin:0 0 8px!important;
  padding:0!important;
  position:relative!important;
  z-index:2!important;
}
#profile .profile-admin-button-v709{
  min-height:78px!important;
  border:1px solid rgba(255,255,255,.34)!important;
  border-radius:21px!important;
  padding:13px 14px!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  gap:12px!important;
  background:
    radial-gradient(circle at 85% -20%,rgba(255,255,255,.24),transparent 32%),
    linear-gradient(135deg,#182742 0%,#203b68 58%,#f45735 130%)!important;
  box-shadow:0 13px 32px rgba(24,39,66,.20),inset 0 1px 0 rgba(255,255,255,.15)!important;
  color:#fff!important;
  overflow:hidden!important;
}
#profile .profile-admin-button-v709::before{
  content:'ADMIN ACCESS';
  position:absolute;
  right:13px;
  top:8px;
  font-size:7px;
  line-height:1;
  font-weight:900;
  letter-spacing:.12em;
  color:rgba(255,255,255,.58);
}
#profile .profile-admin-button-v709:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 16px 36px rgba(24,39,66,.25),inset 0 1px 0 rgba(255,255,255,.18)!important;
}
#profile .profile-admin-icon-v709{
  width:48px!important;
  height:48px!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.13)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18)!important;
  font-size:20px!important;
}
#profile .profile-admin-button-v709 b{
  color:#fff!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
#profile .profile-admin-button-v709 small{
  color:rgba(255,255,255,.72)!important;
  font-size:9.5px!important;
  margin-top:3px!important;
  line-height:1.35!important;
}
#profile .profile-admin-button-v709 em{
  min-width:62px!important;
  height:34px!important;
  padding:0 10px!important;
  border-radius:11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  color:#e94d2c!important;
  font-size:9.5px!important;
  font-weight:900!important;
  box-shadow:0 7px 18px rgba(15,23,42,.14)!important;
}
#profile .profile-admin-badge-v710{
  display:none!important;
}
@media(max-width:430px){
  #profile .profile-admin-button-v709{min-height:72px!important;padding:11px 11px!important;grid-template-columns:43px minmax(0,1fr) auto!important;gap:9px!important;border-radius:18px!important}
  #profile .profile-admin-icon-v709{width:43px!important;height:43px!important;border-radius:13px!important;font-size:18px!important}
  #profile .profile-admin-button-v709 b{font-size:13px!important}
  #profile .profile-admin-button-v709 small{font-size:8.5px!important}
  #profile .profile-admin-button-v709 em{min-width:54px!important;height:31px!important;padding:0 8px!important;font-size:8.5px!important}
}

/* ----- Storefront system notifications ----- */
.toast-container{
  top:calc(10px + env(safe-area-inset-top))!important;
  right:10px!important;
  left:auto!important;
  bottom:auto!important;
  width:min(370px,calc(100vw - 20px))!important;
  z-index:2147483646!important;
  pointer-events:none!important;
}
.toast-container .toast-item.system-toast-v728{
  --notice:#3187ee;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 24px!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-height:66px!important;
  margin:0!important;
  padding:10px 10px 10px 11px!important;
  border:1px solid #dbe5f1!important;
  border-left:1px solid #dbe5f1!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.97)!important;
  color:#17233a!important;
  box-shadow:0 17px 44px rgba(15,23,42,.18),inset 0 1px 0 #fff!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
  opacity:0!important;
  transform:translateY(-9px) scale(.985)!important;
  transition:opacity .20s ease,transform .20s ease!important;
  pointer-events:auto!important;
  overflow:hidden!important;
}
.toast-container .toast-item.system-toast-v728::before{display:none!important;content:none!important}
.toast-container .toast-item.system-toast-v728::after{
  content:'';
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius:0 999px 999px 0;
  background:var(--notice);
}
.toast-container .toast-item.system-toast-v728.success{--notice:#16a34a}
.toast-container .toast-item.system-toast-v728.error{--notice:#e5484d}
.toast-container .toast-item.system-toast-v728.warning{--notice:#e99b16}
.toast-container .toast-item.system-toast-v728.info{--notice:#3187ee}
.toast-container .toast-item.system-toast-v728.show{opacity:1!important;transform:translateY(0) scale(1)!important}
.toast-container .toast-item.system-toast-v728.hide{opacity:0!important;transform:translateY(-8px) scale(.985)!important}
.system-toast-icon-v728{
  width:38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:color-mix(in srgb,var(--notice) 11%,#fff);
  color:var(--notice);
  border:1px solid color-mix(in srgb,var(--notice) 20%,#fff);
}
.system-toast-icon-v728 svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.system-toast-copy-v728{min-width:0;display:block!important}
.system-toast-copy-v728 small{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  color:#7a879a!important;
  font-size:7.5px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  margin:0 0 3px!important;
}
.system-toast-copy-v728 small::before{content:'';width:6px;height:6px;border-radius:999px;background:var(--notice);box-shadow:0 0 0 3px color-mix(in srgb,var(--notice) 12%,transparent)}
.system-toast-copy-v728 b{display:block!important;color:#1e293b!important;font-size:11.5px!important;font-weight:800!important;line-height:1.38!important;letter-spacing:0!important;word-break:break-word!important}
.system-toast-close-v728{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:8px!important;
  background:#f3f6fa!important;
  color:#8a97a9!important;
  font-size:16px!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:none!important;
}
@media(max-width:640px){
  .toast-container{top:calc(7px + env(safe-area-inset-top))!important;left:7px!important;right:7px!important;width:auto!important}
  .toast-container .toast-item.system-toast-v728{grid-template-columns:35px minmax(0,1fr) 22px!important;min-height:60px!important;gap:8px!important;padding:8px 8px 8px 10px!important;border-radius:16px!important}
  .system-toast-icon-v728{width:35px;height:35px;border-radius:12px}
  .system-toast-icon-v728 svg{width:18px;height:18px}
  .system-toast-copy-v728 small{font-size:7px!important;margin-bottom:2px!important}
  .system-toast-copy-v728 b{font-size:10.5px!important;line-height:1.35!important}
  .system-toast-close-v728{width:22px!important;height:22px!important;min-width:22px!important;font-size:14px!important}
}
