/**
 * PakARQ Text to Handwriting Tool - Stylesheet
 * Native Integration with PakARQ Design System (Outfit, Space Grotesk, Purple Theme)
 */

/* Preset Quick-Selector Bar */
.tth-presets-wrap {
  margin-bottom: 28px;
}
.tth-presets-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tth-presets-title i {
  color: var(--purple-600);
}
.tth-presets-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-200) transparent;
}
.tth-presets-row::-webkit-scrollbar {
  height: 6px;
}
.tth-presets-row::-webkit-scrollbar-thumb {
  background: var(--purple-200);
  border-radius: 999px;
}
.tth-preset-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--purple-100);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(106, 28, 255, 0.05);
}
.tth-preset-chip i {
  color: var(--purple-600);
  font-size: 0.95rem;
}
.tth-preset-chip .preset-badge {
  font-size: 0.68rem;
  background: var(--purple-50);
  color: var(--purple-600);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tth-preset-chip:hover {
  border-color: var(--purple-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tth-preset-chip.active {
  background: var(--grad-purple);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.tth-preset-chip.active i {
  color: #ffffff;
}
.tth-preset-chip.active .preset-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Studio 2-Column Grid Layout */
.tth-studio-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1040px) {
  .tth-studio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Main Cards */
.tth-card {
  background: #ffffff;
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
  position: relative;
  transition: box-shadow 0.3s ease;
}
.tth-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Section Header Titles within Cards */
.tth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--purple-50);
}
.tth-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tth-card-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--purple-50);
  color: var(--purple-600);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

/* Text Editor Area */
.tth-editor-box {
  position: relative;
  margin-bottom: 24px;
}
.tth-textarea-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tth-textarea-header label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tth-editor-actions {
  display: flex;
  gap: 8px;
}
.tth-sm-btn {
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  color: var(--purple-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tth-sm-btn:hover {
  background: var(--purple-100);
  color: var(--purple-900);
}

.tth-main-textarea {
  width: 100%;
  min-height: 180px;
  max-height: 480px;
  resize: vertical;
  border: 1.5px solid var(--purple-100);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fdfcff;
  transition: all 0.2s ease;
  outline: none;
}
.tth-main-textarea:focus {
  border-color: var(--purple-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(124, 28, 255, 0.12);
}

/* Statistics Bar */
.tth-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-top: 10px;
}
.tth-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
}
.tth-stat-item strong {
  color: var(--purple-700);
  font-weight: 800;
}
.tth-page-indicator-badge {
  background: var(--grad-purple);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Form Controls & Groups */
.tth-form-group {
  margin-bottom: 22px;
}
.tth-group-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tth-group-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

/* Handwriting Styles Grid Selector */
.tth-styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
}
.tth-style-card {
  background: #ffffff;
  border: 1.5px solid var(--purple-100);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.tth-style-card:hover {
  border-color: var(--purple-300);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 28, 255, 0.08);
}
.tth-style-card.active {
  border-color: var(--purple-600);
  background: var(--purple-50);
  box-shadow: 0 0 0 2px rgba(124, 28, 255, 0.2);
}
.tth-style-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--purple-600) transparent transparent;
}
.tth-style-card.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.55rem;
  color: #ffffff;
}
.tth-style-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tth-style-sample {
  font-size: 1.15rem;
  color: var(--purple-800);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Paper Styles Grid Selector */
.tth-papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
}
.tth-paper-card {
  background: #ffffff;
  border: 1.5px solid var(--purple-100);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.tth-paper-card:hover {
  border-color: var(--purple-300);
  transform: translateY(-2px);
}
.tth-paper-card.active {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 2px rgba(124, 28, 255, 0.2);
}
.tth-paper-preview-thumb {
  height: 48px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}
.tth-paper-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thumbnail miniature backgrounds */
.thumb-ruled {
  background: #ffffff repeating-linear-gradient(0deg, #fff, #fff 7px, #cbd5e1 8px);
}
.thumb-ruled::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ef4444;
}
.thumb-college {
  background: #fafbfc repeating-linear-gradient(0deg, #fafbfc, #fafbfc 6px, #93c5fd 7px);
}
.thumb-college::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #dc2626;
}
.thumb-plain {
  background: #ffffff;
}
.thumb-a4-white {
  background: #fbfbfb;
}
.thumb-a4-ruled {
  background: #ffffff repeating-linear-gradient(0deg, #fff, #fff 7px, #94a3b8 8px);
}
.thumb-legal {
  background: #fef08a repeating-linear-gradient(0deg, #fef08a, #fef08a 7px, #a3a3a3 8px);
}
.thumb-legal::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-left: 1px solid #dc2626;
  border-right: 1px solid #dc2626;
}
.thumb-grid {
  background: #ffffff;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.2) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* Ink Colors Selector */
.tth-colors-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tth-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 2px solid #ffffff;
}
.tth-color-swatch:hover {
  transform: scale(1.15);
}
.tth-color-swatch.active {
  box-shadow: 0 0 0 3px var(--purple-500), 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}
.tth-color-swatch.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.75rem;
}
.tth-custom-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--purple-100);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.tth-custom-color-picker input[type="color"] {
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  padding: 0;
}

/* Segmented Control Buttons */
.tth-segmented-group {
  display: flex;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}
.tth-seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.tth-seg-btn:hover {
  color: var(--purple-900);
}
.tth-seg-btn.active {
  background: #ffffff;
  color: var(--purple-700);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(106, 28, 255, 0.1);
}

/* Two-column Row for sliders */
.tth-controls-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .tth-controls-dual-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Slider Style */
.tth-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tth-slider-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--purple-100);
  border-radius: 999px;
  outline: none;
}
.tth-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple-600);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(106, 28, 255, 0.35);
  transition: transform 0.15s;
}
.tth-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.tth-slider-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-700);
  min-width: 38px;
  text-align: right;
}

/* Advanced Settings Accordion */
.tth-advanced-accordion {
  border-top: 1px solid var(--purple-50);
  padding-top: 18px;
  margin-top: 24px;
}
.tth-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
}
.tth-accordion-toggle:hover {
  color: var(--purple-600);
}
.tth-accordion-toggle .toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-50);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--purple-600);
  transition: transform 0.3s ease;
}
.tth-accordion-toggle.open .toggle-icon {
  transform: rotate(180deg);
}
.tth-accordion-content {
  display: none;
  padding-top: 16px;
}
.tth-accordion-content.open {
  display: block;
}

/* Toggle Switch */
.tth-switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 14px;
}
.tth-switch-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.tth-switch-sub {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
}
.tth-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.tth-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.tth-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}
.tth-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tth-switch input:checked + .tth-switch-slider {
  background-color: var(--purple-600);
}
.tth-switch input:checked + .tth-switch-slider:before {
  transform: translateX(20px);
}

/* Generate Main Button */
.tth-btn-generate {
  width: 100%;
  background: var(--grad-purple);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  margin-top: 10px;
}
.tth-btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.tth-btn-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.tth-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: tthSpin 0.8s linear infinite;
}
@keyframes tthSpin {
  to { transform: rotate(360deg); }
}

/* RIGHT COLUMN - PREVIEW CONTAINER */
.tth-preview-sticky {
  position: sticky;
  top: 90px;
}

.tth-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.tth-page-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 999px;
  padding: 4px 12px;
}
.tth-nav-btn {
  background: #ffffff;
  border: 1px solid var(--purple-100);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--purple-700);
  transition: all 0.2s;
}
.tth-nav-btn:hover:not(:disabled) {
  background: var(--purple-600);
  color: #ffffff;
}
.tth-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.tth-page-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 80px;
  text-align: center;
}

.tth-zoom-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tth-zoom-btn {
  background: #ffffff;
  border: 1px solid var(--purple-100);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.tth-zoom-btn:hover, .tth-zoom-btn.active {
  background: var(--purple-50);
  color: var(--purple-700);
  border-color: var(--purple-300);
}

/* Canvas Viewport */
.tth-canvas-viewport {
  background: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tth-canvas-frame {
  background: #ffffff;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.22), 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  position: relative;
  transition: transform 0.2s ease;
  line-height: 0;
  max-width: 100%;
}

.tth-preview-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Thumbnails Strip */
.tth-thumbs-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 4px 6px;
  margin-top: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-200) transparent;
}
.tth-thumbs-strip::-webkit-scrollbar {
  height: 5px;
}
.tth-thumbs-strip::-webkit-scrollbar-thumb {
  background: var(--purple-200);
  border-radius: 999px;
}
.tth-thumb-item {
  flex-shrink: 0;
  width: 58px;
  height: 78px;
  border-radius: 6px;
  border: 2px solid var(--purple-100);
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.tth-thumb-item:hover {
  transform: translateY(-2px);
  border-color: var(--purple-400);
}
.tth-thumb-item.active {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 2px var(--purple-400);
}
.tth-thumb-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}
.tth-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Download Actions Toolbar */
.tth-download-card {
  margin-top: 20px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-md);
  padding: 20px;
}
.tth-download-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tth-download-buttons-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 680px) {
  .tth-download-buttons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tth-btn-download-main {
  background: var(--grad-purple);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.tth-btn-download-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tth-btn-download-sec {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--purple-100);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.tth-btn-download-sec:hover {
  border-color: var(--purple-400);
  color: var(--purple-700);
  transform: translateY(-2px);
  background: #ffffff;
}

.tth-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--purple-100);
}

/* Informational Feature Tiles (Matching PakARQ) */
.tth-features-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--purple-100);
}
.tth-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.tth-feature-tile {
  background: #ffffff;
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.tth-feature-tile:hover {
  transform: translateY(-4px);
  border-color: var(--purple-300);
  box-shadow: var(--shadow-lg);
}
.tth-feature-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple-300);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 12px;
  display: block;
}
.tth-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-50);
  color: var(--purple-600);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.tth-feature-tile h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.tth-feature-tile p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* FAQ Grid (Matching QR & FAQs) */
.tth-faq-section {
  padding: 90px 0 110px;
  background: #faf6ff;
  border-top: 1px solid var(--purple-100);
}
.tth-faq-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .tth-faq-grid {
    grid-template-columns: 1fr;
  }
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--purple-100);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-600);
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--purple-600);
  color: #ffffff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-answer p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Toast Notification */
.tth-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tth-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.tth-toast.success { border-left: 4px solid #10b981; }
.tth-toast.error { border-left: 4px solid #ef4444; }
.tth-toast.info { border-left: 4px solid var(--purple-500); }
