/*================================================================================
   EDUWISE CUSTOM MODALS SYSTEM - MODERN GLASSMORPHISM UI WITH .appskin THEME
================================================================================*/

/* Root variables for Modal Backdrop & Cards */
:root {
  --modal-backdrop: rgba(15, 23, 42, 0.68);
  --modal-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  --modal-border: rgba(255, 255, 255, 0.4);
  --modal-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  --modal-radius: 24px;
}

/* Glassmorphism Popup Overlay */
.app_popup_overlay {
  position: fixed;
  z-index: 99999 !important;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* Activated Modal Overlay */
.app_popup_overlay:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Popup Section Container - Zero padding to ensure header is edge-to-edge flush */
.popup_app_section {
  width: 92%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 !important; /* Zero padding to remove top & side white spacing */
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  border-radius: var(--modal-radius);
  box-shadow: var(--modal-shadow);
  position: relative;
  overflow: hidden !important; /* Clips header to rounded top corners */
  transform: scale(0.93) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.app_popup_overlay:target .popup_app_section {
  transform: scale(1) translateY(0);
}

/* Specific Height Overrides for Menu Modals */
#app-menu .popup_app_section,
#student-manager .popup_app_section,
#access-manager .popup_app_section,
#emp-manager .popup_app_section,
#batch-menu .popup_app_section {
  max-height: 88vh;
}

/* Universal Modern Header - Edge-to-edge flush with top, left, & right */
.modal-custom-header {
  margin: 0 !important;
  width: 100% !important;
  padding: 16px 20px !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  border-top-left-radius: calc(var(--modal-radius) - 8px) !important;
  border-top-right-radius: calc(var(--modal-radius) - 8px) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.modal-custom-header .modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-custom-header .modal-title-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.modal-custom-header .modal-title-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-custom-header .modal-subtitle {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Close Button Styling */
.modal-close-btn,
.popup_app_section .close,
.popup_app_section .close_red,
.popup_app_section .close_white {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  z-index: 10 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.modal-close-btn:hover,
.popup_app_section .close:hover,
.popup_app_section .close_red:hover,
.popup_app_section .close_white:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  border-color: rgba(239, 68, 68, 1) !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.1) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5) !important;
}

/* Modal Body Area */

/* Specific override for light background modal close button */
#absprelist .close_white {
  position: absolute !important;
  top: 12px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  z-index: 100 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer !important;
}

#absprelist .close_white:hover {
  background: #ef4444 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

/* #absprelist Modal Custom Card Layout */
.absprelist-modal-card {
  position: relative !important;
  max-width: 920px !important;
  width: 94% !important;
  height: 90vh !important;
  max-height: 90vh !important;
  margin: 20px auto !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.absprelist-header {
  padding: 16px 20px !important;
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #334155 !important;
}

.absprelist-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
}

.absprelist-body {
  flex: 1 !important;
  padding: 16px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
}

.absprelist-table-scroll {
  max-height: calc(90vh - 90px) !important;
  overflow-y: auto !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.absprelist-table {
  margin-bottom: 0 !important;
}

.absprelist-table thead th {
  position: sticky !important;
  top: 0 !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  border-bottom: 2px solid #cbd5e1 !important;
  z-index: 5 !important;
  padding: 12px 10px !important;
}

.absprelist-table tbody tr {
  transition: background 0.15s ease !important;
}

.absprelist-table tbody tr:hover {
  background: #f1f5f9 !important;
}

.absprelist-table tbody td {
  padding: 10px 10px !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Fee status dot indicators */
.fee-dot-warning,
.fee-dot-danger {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  position: relative !important;
}

.fee-dot-warning {
  background-color: #f59e0b !important;
}

.fee-dot-danger {
  background-color: #ef4444 !important;
}

.fee-dot-warning::after {
  content: '' !important;
  position: absolute !important;
  top: -3px !important;
  left: -3px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  border: 2px solid #f59e0b !important;
  box-sizing: border-box !important;
  animation: feeDotRippleWarning 1.4s infinite ease-out !important;
}

.fee-dot-danger::after {
  content: '' !important;
  position: absolute !important;
  top: -3px !important;
  left: -3px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  border: 2px solid #ef4444 !important;
  box-sizing: border-box !important;
  animation: feeDotRippleDanger 1.4s infinite ease-out !important;
}

@keyframes feeDotRippleWarning {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.0);
    opacity: 0;
  }
}

@keyframes feeDotRippleDanger {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.0);
    opacity: 0;
  }
}

/* Ensure sub-modals like performanceModal appear above app_popup_overlay modals */
#performanceModal,
#openempattendanceModal,
#userSettingModal {
  z-index: 999999 !important;
}

#performanceModal .modal-dialog,
#openempattendanceModal .modal-dialog,
#userSettingModal .modal-dialog {
  z-index: 1000000 !important;
}

.modal-backdrop.user-setting-modal-backdrop {
  z-index: 999998 !important;
}

.popup_app_section .body_content,
.popup_app_section .menu-info {
  padding: 18px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  flex-grow: 1;
}

/*================================================================================
   BEAUTIFUL GRADIENT ICON CARDS (.dash & .dash-model) WITH ELEGANT HOVER TRANSITION
================================================================================*/
.dash {
  min-height: 82px;
  width: 100%;
box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.2);
background:linear-gradient(135deg, #bad5ff 0%, #f1f8ff 45%, #ecfffb 100%);
  border: 1.5px solid rgba(186, 213, 255, 0.85);
  border-radius: 22px;
  margin-bottom: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  cursor: pointer;
}



/* Top .appskin Gradient Line Accent on Hover */
.dash::before,
.dash-model::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(to right, var(--theme-color-lite, #0052D4), var(--theme-color-dark, #4364F7));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.dash:hover,
.dash-model:hover {
  background: linear-gradient(to right, #e9ecef, #eee) !important;
  border-color: var(--theme-color-lite, #3b82f6) !important;
  box-shadow: 0 14px 28px -6px rgba(0, 82, 212, 0.2), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-4px);
}

.dash:hover::before,
.dash-model:hover::before {
  opacity: 1;
}

.dashimg {
  height: 48px;
  width: auto;
  max-width: 48px;
  margin: 0 auto 8px auto;
  display: block;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
  position: relative;
  z-index: 3;
}

.dash:hover .dashimg {
  transform: scale(1.12);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.14));
}

/* Using .appskin for dynamic text gradient */
.dashicontext {
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0;
  display: block;
  text-align: center;
  position: relative;
  z-index: 3;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Batch Modal Card Styling (.dash-model) */
.dash-model {
  min-height: 90px;
  width: 100%;
  background: linear-gradient(135deg, #bad5ff 0%, #f1f8ff 45%, #ecfffb 100%) !important;
  border: 1.5px solid rgba(186, 213, 255, 0.85);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  cursor: pointer;
}

.dashimg-batch-model {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  position: relative;
  z-index: 3;
}

.dash-model:hover .dashimg-batch-model {
  transform: scale(1.12);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.14));
}

.dashicontext-model {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  position: relative;
  z-index: 3;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.dashicontext-model-small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
  -webkit-text-fill-color: #64748b !important;
}

/* Custom Modal Form Fields & Search Inputs */
.popup_app_section .form-control,
.popup_app_section .form-select {
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

/* Select2 dropdown must render above modal overlay (overlay z-index: 99999) */
.app_popup_overlay .select2-container {
  width: 100% !important;
  z-index: 100001;
}

.app_popup_overlay .select2-dropdown {
  z-index: 100002 !important;
}

#GetUpdates .popup_app_section,
#more-menu .popup_app_section {
  overflow: visible !important;
}

#GetUpdates .popup_app_section .body_content,
#more-menu .popup_app_section .body_content {
  overflow: visible !important;
}

/* Sleek Scrollbar */
.popup_app_section ::-webkit-scrollbar,
.app_popup_overlay ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.popup_app_section ::-webkit-scrollbar-track,
.app_popup_overlay ::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
  border-radius: 10px;
}

.popup_app_section ::-webkit-scrollbar-thumb,
.app_popup_overlay ::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 10px;
}

/* Mobile Viewport Optimizations */
@media (max-width: 768px) {
  .popup_app_section {
    width: 95%;
    max-height: 92vh;
    border-radius: 20px;
  }
  .modal-custom-header {
    padding: 14px 16px !important;
  }
  .modal-custom-header .modal-title-text {
    font-size: 1.05rem;
  }
  .dash {
    min-height: 82px;
    padding: 6px 6px;
    margin-bottom: 10px;
  }
  .dashimg {
    height: 42px;
    max-width: 42px;
  }
  .dashicontext {
    font-size: 0.78rem;
  }
}

/* App updating toast modal (replaces swal updating()) */
.app-updating-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 22, 48, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.app-updating-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-updating-overlay.is-hiding {
  opacity: 0;
  visibility: hidden;
}

.app-updating-card {
  position: relative;
  width: min(360px, 92vw);
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 50px rgba(8, 20, 45, 0.28);
  text-align: center;
  overflow: hidden;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
}

.app-updating-overlay.is-visible .app-updating-card {
  animation: appUpdatingIn 0.38s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.app-updating-overlay.is-hiding .app-updating-card {
  animation: appUpdatingOut 0.28s ease forwards;
}

.app-updating-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 70%);
  pointer-events: none;
  animation: appUpdatingGlow 1.6s ease-in-out infinite;
}

.app-updating-loader {
  position: relative;
  z-index: 1;
  margin: 0 auto 12px;
  width: min(220px, 78%);
}

.app-updating-loader img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  animation: appUpdatingFloat 1.8s ease-in-out infinite;
}

.app-updating-text {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #0f172a;
}

.app-updating-bar {
  position: relative;
  z-index: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.app-updating-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(to right, var(--theme-color-lite, #6366f1), var(--theme-color-dark, #4338ca));
}

.app-updating-overlay.is-visible .app-updating-bar span {
  animation: appUpdatingProgress var(--app-updating-duration, 2s) linear forwards;
}

.app-loader-overlay--persist.is-visible .app-updating-bar span {
  animation: appUpdatingProgressLoop 2.4s ease-in-out infinite;
}

@keyframes appUpdatingProgressLoop {
  0% { width: 8%; opacity: 0.75; }
  50% { width: 88%; opacity: 1; }
  100% { width: 8%; opacity: 0.75; }
}

@keyframes appUpdatingIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes appUpdatingOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.96) translateY(8px); }
}

@keyframes appUpdatingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes appUpdatingGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes appUpdatingProgress {
  from { width: 0; }
  to { width: 100%; }
}

.app-loader-media--compact {
  width: min(280px, 88%);
  margin-bottom: 10px;
}

.app-loader-media--compact img {
  max-height: 28px;
  animation: none;
}

/* Blocking modal */
.app-blocking-overlay {
  z-index: 100002;
}

.app-blocking-card {
  width: min(380px, 92vw);
}

.app-blocking-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.app-blocking-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
  animation: appBlockingPulse 1.4s ease-in-out infinite;
}

.app-blocking-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #991b1b;
  text-transform: uppercase;
}

.app-blocking-text {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #475569;
}

.app-blocking-bar span {
  background: linear-gradient(to right, #f59e0b, #dc2626);
}

@keyframes appBlockingPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28); }
  50% { transform: scale(1.06); box-shadow: 0 14px 28px rgba(220, 38, 38, 0.38); }
}

/* Confirm modal (pwd login switch) */
.app-confirm-overlay {
  z-index: 100003;
}

.app-confirm-card {
  width: min(440px, 94vw);
  padding: 0 !important;
  overflow: hidden;
  text-align: left;
}

.app-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #fff;
}

.app-confirm-header.appskin {
  background: linear-gradient(to right, var(--theme-color-lite), var(--theme-color-dark));
}

.app-confirm-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-confirm-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.app-confirm-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.app-confirm-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.92);
}

.app-confirm-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.app-confirm-body {
  padding: 20px 18px 18px;
  background: #fff;
}

.app-confirm-message {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #64748b;
}

.app-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-confirm-btn {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-confirm-btn:active {
  transform: scale(0.98);
}

.app-confirm-secondary {
  background: #fff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
}

.app-confirm-primary {
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

@media (max-width: 520px) {
  .app-confirm-actions {
    grid-template-columns: 1fr;
  }

  .app-confirm-btn {
    width: 100%;
  }
}
