/* ════════════════════════════════════════
   contrast.css — Color Contrast Checker Specific Styles
   style.css ke saath use karo
   ════════════════════════════════════════ */

/* ── Color Picker Area ── */
.color-picker-area {
  display: flex;
  gap: 1.2rem;
  padding: 1.3rem;
  flex: 1;
}

.color-swatch-big {
  width: 90px;
  min-width: 90px;
  height: 90px;
  border-radius: 14px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.swatch-label {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Baloo 2', sans-serif;
  opacity: 0.85;
  user-select: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.color-inputs-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cin-row label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.hex-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hex-row:focus-within {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(192,98,42,0.1);
}

.hash {
  padding: 0 0.4rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  user-select: none;
}

.hex-row input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.45rem 0.3rem;
  font-size: 0.88rem;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  text-transform: uppercase;
  width: 0;
}

.native-picker {
  width: 36px;
  height: 36px;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  padding: 2px;
  border-left: 1px solid var(--border);
  -webkit-appearance: none;
}
.native-picker::-webkit-color-swatch-wrapper { padding: 2px; border-radius: 0; }
.native-picker::-webkit-color-swatch { border: none; border-radius: 4px; }

.rgb-row {
  display: flex;
  gap: 0.4rem;
}

.rgb-row input[type="number"] {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.4rem;
  font-size: 0.82rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
  transition: border-color 0.2s;
}
.rgb-row input[type="number"]::-webkit-outer-spin-button,
.rgb-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.rgb-row input[type="number"]:focus {
  border-color: var(--accent2);
  background: #fffdf9;
}

/* ── Contrast Result Card ── */
.contrast-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  animation: fadeUp 0.5s ease both 0.2s;
}

.ratio-display {
  margin-bottom: 1.5rem;
}

.ratio-number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -2px;
  transition: all 0.4s ease;
}

.ratio-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.3rem;
  letter-spacing: 0.3px;
}

.wcag-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.wcag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid;
  transition: all 0.3s ease;
}

.wcag-badge.pass {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.wcag-badge.fail {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.wcag-badge .badge-icon { font-size: 0.9rem; }
  .seo-content {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
    color: #1a1a2e;
    line-height: 1.8;
  }
 
  .seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 12px;
    color: #0f172a;
    border-left: 4px solid #e879f9;
    padding-left: 12px;
  }
 
  .seo-content p {
    margin-bottom: 14px;
    color: #374151;
    font-size: 0.97rem;
  }
 
  .wcag-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
  }
 
  .wcag-card {
    border-radius: 12px;
    padding: 22px;
  }
 
  .wcag-card.aa  { background: #fefce8; border: 2px solid #fbbf24; }
  .wcag-card.aaa { background: #f0fdf4; border: 2px solid #4ade80; }
 
  .wcag-card .badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
  }
 
  .wcag-card.aa  .badge { background: #f59e0b; }
  .wcag-card.aaa .badge { background: #22c55e; }
 
  .wcag-card strong { display: block; font-size: 1rem; margin-bottom: 10px; color: #0f172a; }
 
  .wcag-card table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
  .wcag-card td { padding: 5px 8px; border-bottom: 1px solid rgba(0,0,0,0.06); color: #374151; }
  .wcag-card td:last-child { font-weight: 700; text-align: right; }
 
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
 
  .feature-card {
    background: #fdf4ff;
    border: 1px solid #f0abfc;
    border-radius: 10px;
    padding: 16px;
  }
 
  .feature-card .icon { font-size: 1.4rem; }
  .feature-card strong { display: block; margin: 6px 0 4px; font-size: 0.95rem; color: #86198f; }
  .feature-card span { font-size: 0.85rem; color: #4b5563; }
 
  .contrast-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
  }
 
  .contrast-ex {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
  }
 
  .contrast-ex .ratio { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
  .contrast-ex .label { font-size: 0.78rem; margin-bottom: 10px; }
  .contrast-ex .sample { font-size: 1rem; font-weight: 600; }
 
  .ex-fail   { background: #ffeb99; color: #b8860b; border: 2px solid #f59e0b; }
  .ex-aa     { background: #1a1a2e; color: #ffffff; border: 2px solid #22c55e; }
  .ex-aaa    { background: #000000; color: #ffffff; border: 2px solid #3b82f6; }
  .ex-poor   { background: #cccccc; color: #999999; border: 2px dashed #ef4444; }
 
  .steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: steps;
  }
 
  .steps-list li {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #e2e8f0;
  }
 
  .steps-list li::before {
    content: counter(steps);
    background: #e879f9;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
 
  .use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
  }
 
  .use-case-tag {
    background: #fdf4ff;
    border: 1px solid #f0abfc;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #86198f;
  }
 
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
  }
 
  .compare-table th {
    background: #a21caf;
    color: white;
    padding: 12px 16px;
    text-align: left;
  }
 
  .compare-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
  }
 
  .compare-table tr:nth-child(even) td { background: #fdf4ff; }
 
  .faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
  }
 
  .faq-q {
    background: #f9fafb;
    padding: 14px 18px;
    font-weight: 600;
    color: #86198f;
    font-size: 0.95rem;
  }
 
  .faq-a {
    padding: 12px 18px;
    color: #4b5563;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
  }
 
  .info-box {
    background: #fdf4ff;
    border: 1px solid #f0abfc;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.92rem;
    color: #701a75;
  }
 
  .warning-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.92rem;
    color: #7f1d1d;
  }

/* Ratio Bar */
.ratio-bar-wrap { max-width: 500px; margin: 0 auto; }

.ratio-bar-bg {
  height: 10px;
  background: var(--border);
  border-radius: 100px;
  overflow: visible;
  position: relative;
  margin-bottom: 1.5rem;
}

.ratio-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 30%, #84cc16 60%, #22c55e 100%);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 100%;
}

.ratio-bar-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
}

.marker {
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
}
.marker::before {
  content: '';
  display: block;
  width: 2px;
  height: 16px;
  background: var(--muted);
  margin: 0 auto;
  opacity: 0.5;
}
.marker span {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
}

/* ── Preview Section ── */
.preview-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  overflow: hidden;
  animation: fadeUp 0.5s ease both 0.3s;
}

.preview-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #fdfaf7, var(--surface));
  flex-wrap: wrap;
  gap: 0.7rem;
}

.preview-section-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.preview-tabs {
  display: flex;
  gap: 0.4rem;
}

.ptab {
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Baloo 2', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.ptab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: transparent;
}
.ptab:hover:not(.active) {
  border-color: var(--accent2);
  color: var(--accent);
  background: var(--accent-lt);
}

.preview-tab-content {
  display: none;
  padding: 1.3rem;
}
.preview-tab-content.active { display: block; }

.live-preview-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.preview-inner {
  padding: 2rem;
  min-height: 180px;
  transition: background 0.3s ease;
}

.preview-swap-overlay {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  user-select: none;
}
.preview-swap-overlay:hover { transform: scale(1.1); }

/* Preview Components */
.preview-card-demo { max-width: 420px; }

.preview-badge-demo {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  border: 1px solid currentColor;
  opacity: 0.85;
}

.preview-heading {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  line-height: 1.2;
  font-family: 'Baloo 2', sans-serif;
}

.preview-body {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.preview-btn-demo {
  display: inline-flex;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid currentColor;
  cursor: pointer;
  font-family: 'Baloo 2', sans-serif;
}

/* Text Sizes Tab */
.text-size-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
.text-size-row:last-child { border-bottom: none; }

.ts-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 70px;
  font-family: 'Baloo 2', monospace;
  opacity: 0.7;
}

.ts-sample {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 500;
  transition: color 0.3s;
}

/* Components Tab */
.comp-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.comp-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}
.comp-btn:hover { opacity: 0.85; }

.comp-btn-outline {
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  border: 2px solid currentColor;
  transition: opacity 0.2s;
}

.comp-input-wrap { margin-bottom: 1rem; }
.comp-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-family: 'Baloo 2', sans-serif;
}
.comp-input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 2px solid currentColor;
  background: transparent;
  font-size: 0.9rem;
  font-family: 'Baloo 2', sans-serif;
  outline: none;
}

.comp-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.comp-chip {
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid currentColor;
  font-family: 'Baloo 2', sans-serif;
}

.comp-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1.5px solid currentColor;
  line-height: 1.5;
  font-family: 'Baloo 2', sans-serif;
}

/* ── WCAG Detail Table ── */
.wcag-detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  padding: 1.5rem;
  animation: fadeUp 0.5s ease both 0.4s;
}

.wcag-detail-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.wcag-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.wcag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.wcag-table th {
  background: var(--bg);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wcag-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.wcag-table tr:last-child td { border-bottom: none; }
.wcag-table tr:hover td { background: var(--accent-lt); }

.status-pass {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-fail {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── Suggestion Section ── */
.suggestion-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  padding: 1.5rem;
  animation: fadeUp 0.5s ease both 0.5s;
}

.suggestion-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.sug-desc {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.sug-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sug-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

.sug-preview {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: -0.5px;
  transition: all 0.3s;
}

.sug-info {
  padding: 0.5rem 0.65rem;
  background: var(--surface);
}

.sug-hex {
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--text);
}

.sug-ratio {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── Saved Pairs ── */
.saved-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  overflow: hidden;
  animation: fadeUp 0.5s ease both 0.6s;
}

.saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #fdfaf7, var(--surface));
}

.saved-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(192,98,42,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.save-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(192,98,42,0.35); }

.saved-list {
  padding: 0.8rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.saved-pair-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition: background 0.2s;
}
.saved-pair-item:hover { background: var(--accent-lt); }

.saved-swatches {
  display: flex;
  gap: 0.3rem;
}

.saved-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.saved-info {
  flex: 1;
}

.saved-info-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.saved-colors {
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--text);
}

.saved-ratio {
  font-size: 0.72rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
  font-weight: 600;
}

.saved-actions {
  display: flex;
  gap: 0.4rem;
}

.saved-load-btn {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
}
.saved-load-btn:hover {
  background: var(--accent-lt);
  border-color: var(--accent2);
  color: var(--accent);
}

.saved-del-btn {
  padding: 0.3rem 0.6rem;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.18s;
}
.saved-del-btn:hover { background: #fee2e2; }

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Baloo 2', sans-serif;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .color-picker-area {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
  }
  .color-swatch-big {
    width: 100%;
    height: 70px;
    border-radius: 10px;
  }
  .preview-section-header { flex-direction: column; align-items: flex-start; }
  .preview-tabs { width: 100%; }
  .ptab { flex: 1; text-align: center; }
  .suggestion-grid { grid-template-columns: repeat(3, 1fr); }
  .ratio-number { font-size: 3.5rem; }
  .contrast-result-card { padding: 1.5rem 1rem 1.2rem; }
  .wcag-detail-section { padding: 1.2rem 1rem; }
  .suggestion-section { padding: 1.2rem 1rem; }
  .saved-pair-item { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .suggestion-grid { grid-template-columns: repeat(2, 1fr); }
  .wcag-badges { flex-direction: column; align-items: center; }
  .comp-row { flex-direction: column; }
}
