/* ==========================================================================
   MATRIX RUNWAY — GLOBAL TOOLS STYLE SYSTEM (global-tools-style.css)
   
   PURPOSE: 
   Contains shared styles that belong specifically to all tool utility pages:
   1. Unified Tool Header & Title Spacing (.tool-section, .tool-header, .tool-title-large)
   2. Unified Tool Cards & About Container Mobile Padding (Word Counter Standard)
   3. Tool Info & How-to-Use Step List (CSS Auto Counter Step Balls)
   4. SEO Explainer Feature Grid Section (.explainer-section, .explainer-grid, .explainer-card)
   5. Global FAQ Accordion System (.faq-section-tool, .faq-card, .faq-answer-wrapper)
   6. Related Tools Backlink Section (.related-tools-section, .related-link)

   NOTE: Core framework UI styles (variables, reset, container layout, toast, etc.) 
   belong in → global.css
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 0: STANDARDIZED GLOBAL CONTAINER SYSTEM
   Universal container applied across every tool, header, footer, and page.
   ────────────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (min-width: 1250px) {
  .container {
    width: min(1360px, calc(100vw - 352px));
    min-width: 898px;
  }
}

@media (max-width: 860px) {
  .container {
    padding: 0 8px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 1: UNIFIED TOOL HEADER & TITLE SPACING
   Standardizes the top spacing, h1 title size, line height, and subtitle text 
   gap across every tool page to match Word Counter standards.
   ────────────────────────────────────────────────────────────────────────── */
.tool-section,
.dt-section {
  padding: 0 0 80px !important;
  position: relative;
  overflow: visible !important;
}

.tool-header,
.tool-header-section,
.tool-title-wrap,
.tool-top-header,
.dt-tool-header {
  margin-top: 0 !important;
  margin-bottom: 32px !important;
  padding-top: 24px !important;   /* ← universal top gap above every tool heading */
}

.tool-title-large,
.tool-title,
.tool-main-title,
.tool-header h1,
.tool-header-section h1,
.dt-title-large,
.dt-tool-header h1 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.tool-subtitle-text,
.tool-subtitle,
.tool-main-subtitle,
.tool-header p,
.tool-header-section p,
.dt-subtitle-text,
.dt-tool-header p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 2: UNIFIED TOOL CARDS & ABOUT CONTAINER MOBILE PADDING (WORD COUNTER STANDARD)
   Enforces consistent mobile & tablet card container paddings across all 
   tool utility pages (24px 20px on <= 768px, 20px 16px on <= 480px).
   ────────────────────────────────────────────────────────────────────────── */
.tool-info-section,
.tool-info-card {
  padding: 32px;
  margin-top: 48px;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .tool-header,
  .tool-header-section,
  .tool-title-wrap,
  .tool-top-header,
  .dt-tool-header {
    margin-bottom: 24px !important;
    padding-top: 16px !important;
  }
  .tool-title-large,
  .tool-title,
  .tool-main-title,
  .tool-header h1,
  .tool-header-section h1,
  .dt-title-large,
  .dt-tool-header h1 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.01em !important;
  }
  .tool-subtitle-text,
  .tool-subtitle,
  .tool-main-subtitle,
  .tool-header p,
  .tool-header-section p,
  .dt-subtitle-text,
  .dt-tool-header p {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
  }
  .tool-info-section,
  .tool-info-card {
    padding: 24px 20px !important;
    margin-top: 40px !important;
  }
  .explainer-card {
    padding: 20px !important;
  }
  .faq-card,
  .faq-card.glass-card {
    padding: 12px 14px !important;
    border-radius: 8px !important;
  }
  .love-calculator-card,
  .password-generator-card,
  .ir-section-card,
  .ir-workspace-card,
  .sticky-input-card,
  .input-panel,
  .output-panel {
    padding: 24px 20px !important;
  }
}

@media (max-width: 480px) {
  .tool-header,
  .tool-header-section,
  .tool-title-wrap,
  .tool-top-header,
  .dt-tool-header {
    margin-bottom: 20px !important;
    padding-top: 12px !important;
  }
  .tool-title-large,
  .tool-title,
  .tool-main-title,
  .tool-header h1,
  .tool-header-section h1,
  .dt-title-large,
  .dt-tool-header h1 {
    font-size: 1.38rem !important;
    line-height: 1.22 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.01em !important;
  }
  .tool-subtitle-text,
  .tool-subtitle,
  .tool-main-subtitle,
  .tool-header p,
  .tool-header-section p,
  .dt-subtitle-text,
  .dt-tool-header p {
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }
  .tool-info-section,
  .tool-info-card {
    padding: 20px 16px !important;
    margin-top: 32px !important;
  }
  .explainer-card {
    padding: 16px !important;
  }
  .faq-card,
  .faq-card.glass-card {
    padding: 11px 12px !important;
    border-radius: 8px !important;
  }
  .love-calculator-card,
  .password-generator-card,
  .ir-section-card,
  .ir-workspace-card,
  .sticky-input-card,
  .input-panel,
  .output-panel {
    padding: 18px 16px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 3: TOOL INFO & HOW-TO-USE STEP LIST (CSS AUTO COUNTER STEP BALLS)
   Styles the "About the Tool" text block and the 4-step "How to Use" numbered 
   list using CSS automatic step counter (.step-num-ball).
   ────────────────────────────────────────────────────────────────────────── */
.tool-info-section {
  margin-top: 48px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tool-info-section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tool-info-section p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Rounded Ball Step Numbers List (CSS Auto Counter) */
.tool-info-section ol,
.how-to-steps-list {
  counter-reset: step;
  list-style: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  margin: 12px 0 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item-row {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-num-ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary, linear-gradient(135deg, #7c3aed 0%, #6366f1 100%));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: transform var(--transition-fast);
}

.step-num-ball::before {
  content: counter(step);
}

@media (hover: hover) {
  .step-item-row:hover .step-num-ball {
    transform: scale(1.08);
  }
}

.step-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 4: SEO EXPLAINER FEATURE GRID SECTION
   Styles the 3-column keyword-rich informational card grid (.explainer-grid) 
   and color-coded icon squares (.icon-square.purple, .blue, .emerald).
   ────────────────────────────────────────────────────────────────────────── */
.explainer-section {
  margin-top: 56px;
  border-top: 1.5px solid var(--border);
  padding-top: 48px;
}

.explainer-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.explainer-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.explainer-card .card-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.explainer-card .card-header-row .icon-square {
  margin: 0 !important;
  flex-shrink: 0;
}

.explainer-card h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.explainer-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.explainer-card ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explainer-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Color Coded Icon Squares for Explainers */
.icon-square {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.icon-square svg,.icon-square .icon,

.icon-square img ,.icon-square .icon {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .explainer-card:hover .icon-square {
    transform: scale(1.08) rotate(3deg);
  }
}

.icon-square.purple  { background: #f3e8ff; color: #7c3aed; }
.icon-square.blue    { background: #e0f2fe; color: #0284c7; }
.icon-square.emerald { background: #d1fae5; color: #059669; }
.icon-square.orange  { background: #ffedd5; color: #ea580c; }
.icon-square.amber   { background: #fef3c7; color: #d97706; }

[data-theme="dark"] .icon-square.purple  { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
[data-theme="dark"] .icon-square.blue    { background: rgba(2, 132, 199, 0.15); color: #7dd3fc; }
[data-theme="dark"] .icon-square.emerald { background: rgba(5, 150, 105, 0.15); color: #6ee7b7; }
[data-theme="dark"] .icon-square.orange  { background: rgba(234, 88, 12, 0.15); color: #fb923c; }
[data-theme="dark"] .icon-square.amber   { background: rgba(217, 119, 6, 0.15); color: #fcd34d; }

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 5: GLOBAL FAQ ACCORDION SYSTEM
   GPU-accelerated accordion drawer system (.faq-card, .faq-answer-wrapper) 
   with CSS Grid row animation (0fr -> 1fr) and rotating chevron (.faq-chevron).
   ────────────────────────────────────────────────────────────────────────── */
.faq-section-tool {
  border-top: 1.5px solid var(--border);
  margin-top: 80px;
  padding-top: 64px;
  text-align: left;
}

.faq-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 28px;
}

.faq-list {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.faq-card,
.faq-card.glass-card {
  padding: 16px 20px !important;
  text-align: left;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

@media (max-width: 1024px) {
  .faq-card,
  .faq-card.glass-card {
    padding: 14px 18px !important;
    border-radius: 8px !important;
  }
  .faq-icon-wrapper {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }
}

@media (hover: hover) {
  .faq-card:hover {
    border-color: var(--purple-500) !important;
  }
}

.faq-card.open {
  border-color: var(--purple-500) !important;
  background: var(--bg-tertiary);
}

.faq-question-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
}

.faq-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-icon-wrapper svg,.faq-icon-wrapper .icon,

.faq-icon-wrapper img ,.faq-icon-wrapper .icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .faq-card:hover .faq-icon-wrapper {
    transform: scale(1.08) rotate(3deg);
  }
}

.faq-icon-wrapper.security { background: #f3e8ff; color: #7c3aed; }
.faq-icon-wrapper.formats  { background: #e0f2fe; color: #0284c7; }
.faq-icon-wrapper.errors   { background: rgba(239, 68, 68, 0.08); color: #dc2626; }
.faq-icon-wrapper.limits   { background: #d1fae5; color: #059669; }

[data-theme="dark"] .faq-icon-wrapper.security { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
[data-theme="dark"] .faq-icon-wrapper.formats  { background: rgba(2, 132, 199, 0.15); color: #7dd3fc; }
[data-theme="dark"] .faq-icon-wrapper.errors   { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
[data-theme="dark"] .faq-icon-wrapper.limits   { background: rgba(5, 150, 105, 0.15); color: #6ee7b7; }

.faq-q {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 0;
  flex: 1;
  text-align: left;
}

.faq-chevron {
  width: 9px;
  height: 9px;
  border-right: 2.2px solid var(--text-muted);
  border-bottom: 2.2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-card.open .faq-chevron {
  transform: rotate(-135deg);
  border-color: var(--purple-500);
}

.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: grid-template-rows;
  text-align: left;
}

.faq-card.open .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-a {
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.faq-card.open .faq-a {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  padding-top: 12px;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 6: RELATED TOOLS BACKLINK SECTION
   Styles the bottom internal cross-link section (.related-tools-section) 
   and pill buttons (.related-link) for SEO internal linking.
   ────────────────────────────────────────────────────────────────────────── */
.related-tools-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1.5px solid var(--border);
  text-align: center;
}
.related-tools-section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.related-tools-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.related-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.related-link:hover {
  border-color: var(--purple-500);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  color: var(--purple-600);
  box-shadow: var(--shadow-md);
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 7: RESPONSIVE MEDIA QUERIES FOR EXPLAINERS & FAQS
   Tablet and mobile breakpoint overrides for explainer grids and FAQ card paddings.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .explainer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .explainer-section, 
  .faq-section-tool {
    margin-top: 48px;
    padding-top: 40px;
  }

  .explainer-grid {
    margin-bottom: 48px;
    gap: 20px;
  }

  .explainer-card {
    padding: 20px;
    gap: 10px;
  }

  .explainer-heading {
    font-size: 1.35rem !important;
    margin-bottom: 20px !important;
  }

  .explainer-card h2 {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }

  .explainer-card p,
  .explainer-card li {
    font-size: 0.86rem !important;
    line-height: 1.48 !important;
  }

  .tool-info-section h2 {
    font-size: 1.18rem !important;
    margin-bottom: 6px !important;
  }

  .tool-info-section p,
  .step-text {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  .icon-square {
    margin-bottom: 12px;
    width: 40px;
    height: 40px;
  }

  .faq-heading {
    font-size: 1.35rem !important;
    margin-bottom: 20px !important;
  }

  .faq-list {
    gap: 16px;
  }

  .faq-card,
  .faq-card.glass-card {
    padding: 12px 14px !important;
    border-radius: 8px !important;
  }

  .faq-q {
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
  }

  .faq-a {
    font-size: 0.86rem !important;
    line-height: 1.48 !important;
  }

  .faq-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .related-tools-section h2 {
    font-size: 1.25rem !important;
    margin-bottom: 18px !important;
  }

  .related-link {
    font-size: 0.85rem !important;
    padding: 8px 16px !important;
  }
}

@media (max-width: 480px) {
  .explainer-section, 
  .faq-section-tool {
    margin-top: 36px;
    padding-top: 24px;
  }

  .explainer-grid {
    margin-bottom: 36px;
    gap: 16px;
  }

  .explainer-card {
    padding: 16px;
  }

  .explainer-heading {
    font-size: 1.2rem !important;
    margin-bottom: 16px !important;
  }

  .explainer-card h2 {
    font-size: 0.92rem !important;
    line-height: 1.3 !important;
  }

  .explainer-card p,
  .explainer-card li {
    font-size: 0.83rem !important;
    line-height: 1.42 !important;
  }

  .tool-info-section h2 {
    font-size: 1.1rem !important;
    margin-bottom: 4px !important;
  }

  .tool-info-section p,
  .step-text {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

  .faq-heading {
    font-size: 1.2rem !important;
    margin-bottom: 16px !important;
  }

  .faq-list {
    gap: 12px;
  }

  .faq-card,
  .faq-card.glass-card {
    padding: 11px 12px !important;
    border-radius: 8px !important;
  }

  .faq-question-header {
    gap: 10px;
  }

  .faq-q {
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
  }

  .faq-a {
    font-size: 0.83rem !important;
    line-height: 1.42 !important;
  }

  .related-tools-section h2 {
    font-size: 1.15rem !important;
    margin-bottom: 14px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 8: GLOBAL TOOL ACTION BUTTONS & ANIMATIONS
   Shared primary action buttons, result buttons, and download buttons across tools.
   ────────────────────────────────────────────────────────────────────────── */
.tool-btn-primary,
.tool-btn-download,
.tool-btn-process,
.btn-primary,
.pm-btn-download,
.pm-btn-process {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

/* Global Tool Spinners Animation */
@keyframes pm-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes sp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ──────────────────────────────────────────────────────────────────────────
   SECTION 9: GLASS CARDS & CONTAINERS (.glass-card)
   Glassmorphism cards with border, shadow, and hover lift effects used
   across all tool pages (explainer cards, faq cards, workspace panels, etc.)
   ────────────────────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.faq-card.glass-card {
  border-radius: 12px !important;
  padding: 16px 20px !important;
}
@media (max-width: 992px) {
  .dt-workspace.glass-card {
    padding: 0;
  }
  .faq-card.glass-card {
    border-radius: 8px !important;
    padding: 14px 18px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 10: GLOBAL TOAST ACKNOWLEDGEMENT MESSAGE SYSTEM (.toast-ack)
   Center-bottom floating toast message UI with curved pill border-radius,
   sleek glassmorphic backdrop, responsive text wrapping, and single-instance replacement.
   ────────────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed !important;
  bottom: 28px !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 999999 !important;
  pointer-events: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.toast-ack {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px; /* Curved pill design */
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .toast-ack {
  background: rgba(30, 41, 59, 0.94);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Toast entrance / visible state */
.toast-ack.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Re-trigger bump animation when user clicks frequently */
.toast-ack.bump {
  animation: toast-bump 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-bump {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-4px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

/* Toast Type Variants */
.toast-ack.toast-success .toast-icon {
  color: #34d399;
}

.toast-ack.toast-error .toast-icon {
  color: #f87171;
}

.toast-ack.toast-info .toast-icon {
  color: #60a5fa;
}

.toast-ack.toast-warning .toast-icon {
  color: #fbbf24;
}

.toast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.toast-message {
  flex: 1;
  min-width: 0;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .toast-container {
    bottom: 20px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - 24px) !important;
  }
  
  .toast-ack {
    padding: 9px 16px;
    font-size: 0.82rem;
    border-radius: 999px;
  }
  
  .toast-icon {
    width: 16px;
    height: 16px;
  }
}

