/* ═══════════════════════════════════════════════════════════════
   Donation or Tip for WooCommerce — Unified Stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {

  --ac:            #64748b;
  --ac-dark:       #334155;
  --ac-deeper:     #1e293b;
  --ac-mid:        #94a3b8;
  --ac-light:      #e2e8f0;
  --ac-xlight:     #f1f5f9;
  --ac-ghost:      #f8fafc;
  --ac-ring:       rgba(100,116,139,.18);
  --ac-glow:       rgba(100,116,139,.25);

  /* ── Sidebar ── */
  --sb-bg:         #1a1e2e;
  --sb-border:     #252a3d;
  --sb-text:       #8b92a9;
  --sb-text-act:   #ffffff;
  --sb-hover:      #252a3d;
  --sb-active:     #2d3348;

  /* ── Neutrals ── */
  --text:          #1c1917;
  --text-2:        #78716c;
  --text-3:        #a8a29e;
  --border:        #e7e2dc;
  --surface:       #ffffff;
  --surface-2:     #fdf8f3;
  --bg:            #f0f2f5;

  /* ── Semantic ── */
  --success:       #059669;
  --success-bg:    #d1fae5;
  --success-border:#6ee7b7;
  --error:         #dc2626;
  --warning:       #d97706;

  /* ── Layout ── */
  --topbar-h:      60px;
  --sidebar-w:     240px;

  /* ── Radii ── */
  --r-sm:          6px;
  --r:             10px;
  --r-lg:          14px;
  --r-pill:        999px;

  /* ── Shadows ── */
  --sh-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --sh:     0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md:  0 4px 16px rgba(0,0,0,.10);

  /* ── Motion ── */
  --dur:    170ms;
  --ease:   cubic-bezier(.4,0,.2,1);

  /* ── Typography ── */
  --font:   'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --mono:   'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}


/* ════════════════════════════════════════════════════════════════
   2. ROOT SHELL
   ════════════════════════════════════════════════════════════════ */
.dotfw-root {
  display:        flex;
  flex-direction: column;
  min-height:     100vh;
  font-family:    var(--font);
  background:     var(--bg);
  color:          var(--text);
  box-sizing:     border-box;
  margin:         20px 20px 20px 0;
  -webkit-font-smoothing: antialiased;
}
.dotfw-root *,
.dotfw-root *::before,
.dotfw-root *::after { box-sizing: inherit; }


/* ════════════════════════════════════════════════════════════════
   3. TOP BAR
   ════════════════════════════════════════════════════════════════ */
.dotfw-topbar {
  position:        sticky;
  top:             0;
  z-index:         100;
  height:          90px;
  display:         flex;
  justify-content: flex-start;
  gap:             20px;
  align-items:     center;
  padding:         0 24px;
  background:      var(--surface);
  border-radius:   8px 8px 0 0;
  box-shadow:      var(--sh-sm);
}

.dotfw-topbar-brand  { display: flex; align-items: center; gap: 10px; }
.dotfw-topbar-logo   { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 4px var(--ac-glow)); }
.dotfw-topbar-title-group { display: flex; flex-direction: column; line-height: 1.15; }
.dotfw-topbar-title  { font-weight: 800; color: var(--text); line-height: 8px; }
.dotfw-topbar-sub    { color: var(--text-2); font-weight: 500; }

.dotfw-topbar-actions { display: flex; align-items: center; gap: 8px; }
.dotfw-topbar-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  padding:         7px 14px;
  border-radius:   var(--r-sm);
  font-size:       13px;
  font-weight:     600;
  font-family:     var(--font);
  text-decoration: none;
  cursor:          pointer;
  transition:      background var(--dur) var(--ease),
                   color      var(--dur) var(--ease),
                   transform  var(--dur) var(--ease),
                   box-shadow var(--dur) var(--ease);
}
.dotfw-topbar-btn:hover   { transform: translateY(-1px); }
.dotfw-topbar-btn-icon    { line-height: 1; }

.dotfw-topbar-btn--outline {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-dark) 100%);
  color:      #fff;
  border:     none;
  box-shadow: 0 2px 8px var(--ac-glow);
}
.dotfw-topbar-btn--outline:hover {
  background: linear-gradient(135deg, var(--ac-dark) 0%, var(--ac-deeper) 100%);
  color: #ffffff;
  border-color: #c5c9d6;
}
.dotfw-topbar-btn--star {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-dark) 100%);
  color:      #fff;
  border:     none;
  box-shadow: 0 2px 8px var(--ac-glow);
}
.dotfw-topbar-btn--star:hover {
  background: linear-gradient(135deg, var(--ac-dark) 0%, var(--ac-deeper) 100%);
  color: #ffffff;
}
.dotfw-topbar-btn--pro {
  background:   #1a1e2e;
  color:        #fbbf24;
  border:       1.5px solid #fbbf24;
}
.dotfw-topbar-btn--pro:hover {
  background:   #1a1e2e;
  box-shadow: 0 4px 16px var(--ac-glow);
  color:#fbbf24;
}


/* ════════════════════════════════════════════════════════════════
   4. BODY  (sidebar + content)
   ════════════════════════════════════════════════════════════════ */
.dotfw-body {
  display:    flex;
  flex:       1;
  min-height: calc(100vh - var(--topbar-h));
}


/* ════════════════════════════════════════════════════════════════
   5. SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.dotfw-sidebar {
  width:          var(--sidebar-w);
  flex-shrink:    0;
  background:     #f8fafc;
  border-right:   1px solid #f2f3f3;
  display:        flex;
  flex-direction: column;
  padding:        24px 0 16px;
  position:       sticky;
  top:            var(--topbar-h);
  height:         calc(100vh - var(--topbar-h));
  overflow-y:     auto;
  border-radius:  0px 0px 0px 10px;
}
.dotfw-sidebar-heading {
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color:          #989ba7;
  padding:        0 18px 10px;
  margin:         0;
}
.dotfw-sidebar-nav {
  display:        flex;
  flex-direction: column;
  gap:            3px;
  padding:        0 10px;
}
.dotfw-sidebar-item {
  position:      relative;
  display:       flex;
  align-items:   center;
  gap:           12px;
  padding:       10px 12px;
  border:        none;
  border-radius: var(--r);
  background:    transparent;
  cursor:        pointer;
  text-align:    left;
  width:         100%;
  color:         var(--sb-text);
  transition:    background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dotfw-sidebar-item:hover     { background: #606781;  color: #c8ccdb; }
.dotfw-sidebar-item.is-active { background: #606781; color: var(--sb-text-act); }
.dotfw-sidebar-item-icon {
  font-size:   20px;
  flex-shrink: 0;
  width:       28px;
  text-align:  center;
  transition:  transform var(--dur) var(--ease);
}
.dotfw-sidebar-item:hover .dotfw-sidebar-item-icon,
.dotfw-sidebar-item.is-active .dotfw-sidebar-item-icon { transform: scale(1.12); }
.dotfw-sidebar-item-text { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.dotfw-sidebar-item-label {
  font-size:     13.5px;
  font-weight:   600;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.dotfw-sidebar-item-desc {
  font-size:     11px;
  opacity:       .65;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.dotfw-sidebar-item.is-active .dotfw-sidebar-item-desc { opacity: .55; }

.dotfw-sidebar-item-indicator {
  position:      absolute;
  right:         0;
  top:           50%;
  transform:     translateY(-50%);
  width:         3px;
  height:        60%;
  background:    var(--ac);
  border-radius: 99px 0 0 99px;
  box-shadow:    0 0 8px var(--ac-glow);
}
.dotfw-sidebar-footer {
  margin-top:   auto;
  padding:      16px 18px 0;
  border-top:   1px solid var(--sb-border);
  margin-left:  10px;
  margin-right: 10px;
}
.dotfw-sidebar-version { font-size: 11px; font-weight: 600; color: #3e4460; letter-spacing: .5px; }


/* ════════════════════════════════════════════════════════════════
   6. MAIN CONTENT AREA
   ════════════════════════════════════════════════════════════════ */
.dotfw-content { 
  flex: 1; 
  min-width: 0; 
  padding: 32px 36px; 
  background: #efefef;
  border-style: solid;
  border-width: 0px 2px 2px 0px;
  border-color: #e0e0e3;
  border-radius: 0px 0px 10px 0px; 
}

.dotfw-content-header {
  display:        flex;
  align-items:    center;
  gap:            14px;
  margin-bottom:  28px;
  padding-bottom: 22px;
  border-bottom:  1px solid var(--border);
}
.dotfw-content-icon {
  font-size:     34px;
  line-height:   1;
  flex-shrink:   0;
  padding:       10px;
  background:    var(--surface);
  border-radius: var(--r);
  box-shadow:    var(--sh-sm);
}
.dotfw-content-title {
  font-size:      20px;
  font-weight:    700;
  color:          var(--text);
  margin:         0 0 3px;
  letter-spacing: -.4px;
  line-height:    1.2;
}
.dotfw-content-desc { font-size: 13px; color: var(--text-2); margin: 0; font-weight: 500; }
.dotfw-content-body {
  background:    var(--surface);
  border-radius: var(--r-lg);
  border:        1px solid var(--border);
  box-shadow:    var(--sh-sm);
  padding:       28px 32px;
  min-height:    400px;
}


/* ════════════════════════════════════════════════════════════════
   7. TAB CONTENT WRAPPER
   ════════════════════════════════════════════════════════════════ */
.tab-root {
  display:        flex;
  flex-direction: column;
  gap:            20px;
  font-family:    var(--font);
  color:          var(--text);
  position:       relative;
}


/* ════════════════════════════════════════════════════════════════
   8. SECTION CARDS
   ════════════════════════════════════════════════════════════════ */
.tab-section {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--r);
  box-shadow:    var(--sh);
  overflow:      hidden;
  animation:     dotfw-fadein .22s var(--ease);
}
.tab-section-header {
  display:       flex;
  align-items:   center;
  gap:           14px;
  padding:       16px 24px;
  background:    var(--ac-ghost);
  border-bottom: 1px solid var(--ac-light);
}
.tab-section-meta  { display: flex; flex-direction: column; gap: 2px; }
.tab-section-title {
  font-size:      20px;
  font-weight:    700;
  color:          var(--ac-dark);
  margin:         0;
  letter-spacing: -.2px;
  line-height:    1.2;
}
.tab-section-sub { font-size: 12px; color: var(--ac); margin: 0; font-weight: 500; opacity: .85; }
.tab-section-body { padding: 20px; }


/* ════════════════════════════════════════════════════════════════
   9. INPUT ROWS
   ════════════════════════════════════════════════════════════════ */
.dotfw-input-row {
  display:       grid;
  grid-template-columns: 220px 1fr;
  align-items:   start;
  gap:           16px 20px;
  padding:       16px 0;
  border-bottom: 1px solid var(--border);
  font-family:   var(--font);
}
.dotfw-input-row:last-child  { border-bottom: none; }
.dotfw-input-row:first-child { padding-top: 0; }
.dotfw-input-row--radio      { align-items: start; }

.dotfw-input-row-label {
  display:     block;
  padding-top: 9px;
  font-size:   13.5px;
  font-weight: 600;
  color:       var(--text);
  line-height: 1.4;
  cursor:      default;
  user-select: none;
}
.dotfw-input-row-field { display: flex; flex-direction: column; gap: 7px; }
.dotfw-input-row-field--radio { gap: 10px; }

.dotfw-input-description { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-2); }
.dotfw-input-description::before { content: '↳ '; opacity: .45; }

/* Conditional block */
.gst-conditional-block {
  margin:        10px 0 4px;
  border:        1.5px solid var(--ac-light);
  border-radius: var(--r-sm);
  background:    var(--ac-ghost);
  overflow:      hidden;
  animation:     dotfw-slidein .2s var(--ease);
}
.gst-conditional-label {
  display:        flex;
  align-items:    center;
  gap:            6px;
  padding:        8px 16px;
  font-size:      10px;
  font-weight:    700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color:          var(--ac);
  background:     var(--ac-ring);
  border-bottom:  1px solid var(--ac-light);
}
.gst-conditional-icon { font-style: normal; font-size: 13px; opacity: .55; }
.gst-conditional-block .dotfw-input-row { padding-left: 16px; padding-right: 16px; }


/* ════════════════════════════════════════════════════════════════
   10. FIELD BASE  (text · textarea · select inherit)
   ════════════════════════════════════════════════════════════════ */
.dotfw-field {
  width:         100%;
  font-family:   var(--font);
  font-size:     13.5px;
  color:         var(--text);
  background:    var(--surface);
  border:        1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding:       8px 12px;
  line-height:   1.5;
  outline:       none;
  appearance:    none;
}
.dotfw-field::placeholder { color: var(--text-3); }
.dotfw-field:hover:not(:focus) { border-color: var(--ac-mid); background: var(--ac-ghost); }
.dotfw-field:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-ring); background: var(--ac-xlight); }
.dotfw-field--text { height: 38px; }
.dotfw-field--textarea { resize: vertical; min-height: 96px; font-family: var(--mono); font-size: 13px; line-height: 1.6; }

.dotfw-select-wrap { position: relative; display: inline-flex; width: 100%; }
/* .dotfw-field--select { padding-right: 36px; cursor: pointer; } */
.dotfw-field--select { min-height: 38px !important; min-width: 360px !important; cursor: pointer !important; }
.dotfw-select-chevron {
  position:       absolute;
  right:          12px;
  top:            50%;
  transform:      translateY(-50%);
  pointer-events: none;
  color:          var(--text-2);
  display:        flex;
  align-items:    center;
  transition:     color var(--dur) var(--ease);
}
.dotfw-select-wrap:focus-within .dotfw-select-chevron { color: var(--ac); }


/* ════════════════════════════════════════════════════════════════
   11. TOGGLE
   ════════════════════════════════════════════════════════════════ */
.dotfw-toggle        { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding: 4px 0; }
.dotfw-toggle-input  { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.dotfw-toggle-track {
  position:      relative;
  width:         44px;
  height:        24px;
  border-radius: var(--r-pill);
  background:    var(--ac-light);
  border:        1.5px solid var(--ac-mid);
  flex-shrink:   0;
  transition:    background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dotfw-toggle-input:checked ~ .dotfw-toggle-track   { background: var(--ac); border-color: var(--ac-dark); }
.dotfw-toggle-input:focus-visible ~ .dotfw-toggle-track { box-shadow: 0 0 0 3px var(--ac-ring); }
.dotfw-toggle-thumb {
  position:      absolute;
  top:           2px;
  left:          2px;
  width:         18px;
  height:        18px;
  border-radius: 50%;
  background:    #fff;
  box-shadow:    0 1px 3px rgba(0,0,0,.2);
  transition:    transform var(--dur) var(--ease);
}
.dotfw-toggle-input:checked ~ .dotfw-toggle-track .dotfw-toggle-thumb { transform: translateX(20px); }
.dotfw-toggle-label { font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: color var(--dur) var(--ease); }
.dotfw-toggle:has(.dotfw-toggle-input:checked) .dotfw-toggle-label { color: var(--ac-dark); }


/* ════════════════════════════════════════════════════════════════
   12. RADIO GROUP
   ════════════════════════════════════════════════════════════════ */
.dotfw-radio-group   { display: flex; flex-wrap: wrap; gap: 8px; }
.dotfw-radio-input   { position: absolute; opacity: 0; width: 0; height: 0; }
.dotfw-radio-option {
  display:       inline-flex;
  align-items:   center;
  gap:           7px;
  padding:       7px 14px;
  border-radius: var(--r-pill);
  border:        1.5px solid var(--border);
  background:    var(--surface);
  cursor:        pointer;
  font-size:     13px;
  font-weight:   500;
  color:         var(--text-2);
  user-select:   none;
  transition:    background var(--dur) var(--ease), border-color var(--dur) var(--ease),
                 color      var(--dur) var(--ease), box-shadow   var(--dur) var(--ease);
}
.dotfw-radio-option:hover:not(.is-checked) { background: var(--surface-2); border-color: var(--ac-mid); color: var(--text); }
.dotfw-radio-option.is-checked             { background: var(--ac-light); border-color: var(--ac); color: var(--ac-dark); box-shadow: 0 0 0 3px var(--ac-ring); }
.dotfw-radio-option:has(.dotfw-radio-input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.dotfw-radio-dot {
  width:         10px;
  height:        10px;
  border-radius: 50%;
  border:        1.5px solid currentColor;
  flex-shrink:   0;
  position:      relative;
  transition:    background var(--dur) var(--ease);
}
.dotfw-radio-option.is-checked .dotfw-radio-dot { background: var(--ac); border-color: var(--ac); }
.dotfw-radio-option.is-checked .dotfw-radio-dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #fff; }
.dotfw-radio-text  { line-height: 1; }


/* ════════════════════════════════════════════════════════════════
   13. COLOR PICKER
   ════════════════════════════════════════════════════════════════ */
.dotfw-color-wrap { position: relative; display: inline-block; }
.dotfw-color-native { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dotfw-color-swatch-btn {
  display:       inline-flex;
  align-items:   center;
  gap:           12px;
  padding:       8px 14px 8px 8px;
  border-radius: var(--r-sm);
  border:        1.5px solid var(--border);
  background:    var(--surface);
  cursor:        pointer;
  transition:    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dotfw-color-swatch-btn:hover { border-color: var(--ac-mid); background: var(--ac-ghost); box-shadow: 0 0 0 3px var(--ac-ring); }
.dotfw-color-swatch { display: block; width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid rgba(0,0,0,.08); flex-shrink: 0; }
.dotfw-color-hex { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: .5px; text-transform: uppercase; }
.dotfw-color-hint { font-size: 11px; color: var(--text-3); margin-left: auto; }


/* ════════════════════════════════════════════════════════════════
   14. SAVE ROW
   ════════════════════════════════════════════════════════════════ */
.tab-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  position: sticky;
  bottom: 20px;
  z-index: 10;
}
.tab-save-row-left { min-height: 28px; display: flex; align-items: center; }
.tab-save-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: #065f46;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  animation: dotfw-fadein .25s var(--ease);
}
.tab-save-btn {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  padding:        10px 22px;
  border-radius:  var(--r-sm);
  border:         none;
  background:     linear-gradient(135deg, var(--ac) 0%, var(--ac-dark) 100%);
  color:          #fff;
  font-family:    var(--font);
  font-size:      14px;
  font-weight:    700;
  letter-spacing: -.1px;
  cursor:         pointer;
  box-shadow:     0 2px 8px var(--ac-ring), 0 1px 2px rgba(0,0,0,.1);
  transition:     background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                  transform  var(--dur) var(--ease), opacity    var(--dur) var(--ease);
}
.tab-save-btn:hover:not(:disabled)  { background: linear-gradient(135deg, var(--ac-dark) 0%, var(--ac-deeper) 100%); box-shadow: 0 4px 16px var(--ac-glow); transform: translateY(-1px); }
.tab-save-btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 1px 4px var(--ac-ring); }
.tab-save-btn:disabled,
.tab-save-btn--busy                 { opacity: .7; cursor: not-allowed; transform: none; }
.tab-btn-spinner { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: dotfw-spin .65s linear infinite; flex-shrink: 0; }


/* ════════════════════════════════════════════════════════════════
   15. LOADING OVERLAY
   ════════════════════════════════════════════════════════════════ */
.spinner-overlay {
  position:        fixed;
  inset:           -12px;
  z-index:         50;
  background:      rgba(248,250,252,.78);
  backdrop-filter: blur(3px);
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-radius:   var(--r);
  animation:       dotfw-fadein var(--dur) var(--ease);
}
.spinner-overlay-card { transform: translateX(120px); display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--border); box-shadow: var(--sh-md); }
.spinner-overlay-text { font-size: 14px; font-weight: 600; color: var(--ac-dark); }
.rotating-spinner { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--ac-light); border-top-color: var(--ac); animation: dotfw-spin .7s linear infinite; flex-shrink: 0; }


/* ════════════════════════════════════════════════════════════════
   16. TOAST STACK
   ════════════════════════════════════════════════════════════════ */
.dotfw-toast-stack  { position: fixed; top: 60px; right: 24px; z-index: 999999; display: flex; flex-direction: column; gap: 8px; max-width: 360px; pointer-events: none; }
.dotfw-toast {
  display:        flex;
  align-items:    center;
  gap:            12px;
  padding:        12px 16px;
  border-radius:  var(--r);
  box-shadow:     0 16px 40px rgba(13,15,26,.14);
  font-size:      13px;
  font-weight:    500;
  pointer-events: all;
  animation:      dotfw-toastin .22s cubic-bezier(.34,1.56,.64,1) forwards;
}
.dotfw-toast-icon  { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; flex-shrink: 0; background: rgba(255,255,255,.22); }
.dotfw-toast-msg   { flex: 1; line-height: 1.4; }
.dotfw-toast-close { background: transparent; border: none; cursor: pointer; font-size: 18px; line-height: 1; opacity: .6; padding: 0; color: inherit; flex-shrink: 0; }
.dotfw-toast-close:hover { opacity: 1; }

.dotfw-toast-success { background: #0a3d2b; color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.dotfw-toast-error   { background: #3b0a14; color: #fca5a5; border: 1px solid rgba(244,63,94,.3); }
.dotfw-toast-warning { background: #3b2800; color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.dotfw-toast-info    { background: #0f172a; color: var(--ac-mid); border: 1px solid rgba(100,116,139,.35); }


/* ════════════════════════════════════════════════════════════════
   17. DIALOG
   ════════════════════════════════════════════════════════════════ */
.dotfw-dialog-overlay { position: fixed; inset: 0; background: rgba(13,15,26,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 999998; animation: dotfw-fadein .15s var(--ease); }
.dotfw-dialog         { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; box-shadow: 0 24px 60px rgba(13,15,26,.18); max-width: 360px; width: 100%; text-align: center; animation: dotfw-scalein .2s cubic-bezier(.34,1.56,.64,1); }
.dotfw-dialog-icon    { font-size: 32px; margin-bottom: 12px; }
.dotfw-dialog-msg     { font-size: 14px; color: var(--text); font-weight: 500; line-height: 1.5; margin: 0 0 24px; }
.dotfw-dialog-actions { display: flex; gap: 12px; justify-content: center; }


/* ════════════════════════════════════════════════════════════════
   18. DONATION REPORT TAB
   ════════════════════════════════════════════════════════════════ */
.dotfw-report-tab    { display: flex; flex-direction: column; gap: 16px; }
.dotfw-report-meta   { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dotfw-report-pill   { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--border); background: var(--ac-ghost); color: var(--text-2); white-space: nowrap; }
.dotfw-report-pill--green { background: #EAF3DE; color: #27500A; border-color: #C0DD97; }

.dotfw-report-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--ac-ghost); }
.dotfw-report-search-wrap { position: relative; flex: 1; max-width: 300px; }
.dotfw-report-search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 13px; pointer-events: none; }
.dotfw-report-search {
  width: 100%; padding: 6px 10px 6px 30px; font-size: 12.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  outline: none; appearance: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dotfw-report-search:focus        { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-ring); }
.dotfw-report-count               { font-size: 12px; color: var(--text-3); margin-left: auto; white-space: nowrap; }
.dotfw-report-toolbar-right       { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dotfw-perpage-label              { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.dotfw-perpage-select {
  font-size: 12.5px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 5px 24px 5px 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
  cursor: pointer; outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dotfw-perpage-select:focus       { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-ring); }

.dotfw-report-state               { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 20px; color: var(--text-2); font-size: 13px; }
.dotfw-report-state--error        { color: var(--error); }
.dotfw-report-empty-icon          { font-size: 28px; line-height: 1; }
.dotfw-report-empty-sub           { font-size: 12px; color: var(--text-3); text-align: center; max-width: 300px; line-height: 1.6; }

.dotfw-report-table-wrap          { overflow-x: auto; }
.dotfw-report-table               { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.dotfw-report-table thead tr      { border-bottom: 1px solid var(--border); background: var(--ac-ghost); }
.dotfw-report-table thead th      { padding: 9px 14px; font-size: 11px; font-weight: 600; color: var(--text-2); text-align: left; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.dotfw-th-right                   { text-align: right; }
.dotfw-th-sortable                { cursor: pointer; user-select: none; }
.dotfw-th-sortable:hover          { color: var(--ac); }
.dotfw-report-table tbody tr      { border-bottom: 1px solid var(--border); transition: background var(--dur) var(--ease); }
.dotfw-report-table tbody tr:last-child { border-bottom: none; }
.dotfw-report-table tbody tr:hover      { background: var(--ac-ghost); }
.dotfw-report-table tbody td      { padding: 10px 14px; color: var(--text); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dotfw-td-muted                   { color: var(--text-3) !important; font-size: 12px !important; }
.dotfw-td-date                    { font-size: 11.5px !important; }
.dotfw-td-empty                   { text-align: center; padding: 28px 14px !important; color: var(--text-3) !important; }

.dotfw-order-link                 { color: var(--ac); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }
.dotfw-order-link:hover           { text-decoration: underline; }
.dotfw-order-link-icon            { font-size: 10px; opacity: .6; }

.dotfw-customer-cell              { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.dotfw-avatar                     { width: 26px; height: 26px; border-radius: 50%; background: var(--ac-light); color: var(--ac-dark); font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .02em; }
.dotfw-value-badge                { display: inline-block; background: var(--ac-light); color: var(--ac-dark); border-radius: var(--r-sm); padding: 2px 8px; font-weight: 500; font-size: 12px; }
.dotfw-total-row                  { background: var(--ac-ghost); }
.dotfw-total-row td               { padding: 10px 14px; border-top: 1px solid var(--border); }
.dotfw-total-label                { font-size: 12px; font-weight: 500; color: var(--text-2); }


/* ════════════════════════════════════════════════════════════════
   19. PAGINATION
   ════════════════════════════════════════════════════════════════ */
.dotfw-pagination           { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--ac-ghost); gap: 12px; flex-wrap: wrap; }
.dotfw-pagination-info      { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.dotfw-pagination-controls  { display: flex; align-items: center; gap: 3px; }
.dotfw-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-2);
  font-size: 12.5px; font-weight: 500; cursor: pointer; line-height: 1;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dotfw-page-btn:hover:not(:disabled)  { background: var(--ac-light); border-color: var(--ac); color: var(--ac-dark); }
.dotfw-page-btn:disabled              { opacity: .35; cursor: default; }
.dotfw-page-btn--active               { background: var(--ac); border-color: var(--ac); color: #fff; cursor: default; }
.dotfw-page-btn--active:hover         { background: var(--ac) !important; color: #fff !important; }
.dotfw-page-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; font-size: 12.5px; color: var(--text-3); user-select: none; }


.dotfw-field-inline-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dotfw-pro-notice {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

.dotfw-pro-notice a {
  /* color: #6c63ff; */
  color: #56657c;
  font-weight: 600;
  /* text-decoration: none; */
}

.dotfw-pro-notice a:hover {
  text-decoration: underline;
}


/* ════════════════════════════════════════════════════════════════
   20. KEYFRAMES
   ════════════════════════════════════════════════════════════════ */
@keyframes dotfw-fadein  { from{opacity:0}                               to{opacity:1}                          }
@keyframes dotfw-slidein { from{opacity:0;transform:translateY(-6px)}    to{opacity:1;transform:translateY(0)}  }
@keyframes dotfw-scalein { from{opacity:0;transform:scale(.94)}          to{opacity:1;transform:scale(1)}       }
@keyframes dotfw-toastin { from{opacity:0;transform:translateX(20px) scale(.95)} to{opacity:1;transform:translateX(0) scale(1)} }
@keyframes dotfw-spin    { to{transform:rotate(360deg)} }


/* ════════════════════════════════════════════════════════════════
   21. RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .dotfw-body           { flex-direction: column; }
  .dotfw-sidebar        { width: 100%; height: auto; position: static; flex-direction: row; padding: 12px 10px; overflow-x: auto; overflow-y: visible; border-right: none; border-bottom: 1px solid var(--sb-border); }
  .dotfw-sidebar-heading,
  .dotfw-sidebar-footer { display: none; }
  .dotfw-sidebar-nav    { flex-direction: row; gap: 6px; padding: 0; width: 100%; }
  .dotfw-sidebar-item   { flex: 1; justify-content: center; padding: 10px 8px; border-radius: var(--r-sm); }
  .dotfw-sidebar-item-desc,
  .dotfw-sidebar-item-indicator { display: none; }
  .dotfw-sidebar-item-icon      { width: auto; }
  .dotfw-content        { padding: 20px 16px; }
  .dotfw-content-body   { padding: 20px 18px; }
}

@media (max-width: 720px) {
  .dotfw-input-row      { grid-template-columns: 1fr; gap: 6px; }
  .dotfw-input-row-label { padding-top: 0; }
  .dotfw-radio-group    { flex-direction: column; }
  .tab-section-header   { padding: 14px 16px; }
  .tab-section-body     { padding: 4px 16px 8px; }
  .tab-save-row         { flex-direction: column-reverse; gap: 12px; position: static; }
  .tab-save-btn         { width: 100%; justify-content: center; }
  .tab-save-row-left    { width: 100%; justify-content: center; }
  .gst-conditional-block .dotfw-input-row { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 640px) {
  .dotfw-topbar-btn--outline { display: none; }
  .dotfw-topbar-sub          { display: none; }
  .dotfw-content-header      { flex-wrap: wrap; }
  .dotfw-report-meta         { display: none; }
  .dotfw-report-toolbar      { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dotfw-report-search-wrap  { max-width: 100%; width: 100%; }
  .dotfw-report-count        { margin-left: 0; }
  .dotfw-report-toolbar-right{ margin-left: 0; }
  .dotfw-pagination          { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dotfw-pagination-controls { flex-wrap: wrap; }
}