/* Falah — Prayer Time Calendar Alerts */
/* RTL-first, responsive, minimal design */

:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #0d9488;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Noto Kufi Arabic', 'Noto Sans Arabic', -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-light: #042f2e;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-focus: #2dd4bf;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.app-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.app-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.app-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Wizard container */
.wizard-container {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* Step indicator */
.step-indicator {
  margin-bottom: 1.5rem;
}

.step-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.step-dot .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}

.step-dot.active .dot {
  background: var(--primary);
  transform: scale(1.3);
}

.step-dot.completed .dot {
  background: var(--primary);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.step-dot.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-dot.completed .step-label {
  color: var(--text-secondary);
}

/* Steps */
.step {
  display: none;
}

.step.active {
  display: block;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* Search input */
.search-group {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  margin-top: 4px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover,
.result-item.highlighted {
  background: var(--primary-light);
}

.result-item.result-empty,
.result-item.result-error {
  color: var(--text-muted);
  cursor: default;
  justify-content: center;
}

.result-item.result-error {
  color: #ef4444;
}

.result-flag {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.result-name {
  font-weight: 600;
  flex: 1;
}

.result-name mark {
  background: rgba(13, 148, 136, 0.2);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.result-secondary {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-pop {
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.result-cc {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Divider */
.divider-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.1s;
  min-height: 48px;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
  margin-top: 1rem;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  width: 100%;
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  color: var(--primary-hover);
}

.geo-btn .geo-icon {
  font-size: 1.1rem;
}

/* Status messages */
.status-msg {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.status-loading {
  color: var(--primary);
}

.status-error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

/* Location summary */
.location-summary {
  margin-top: 1.25rem;
}

.summary-card {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.summary-flag {
  font-size: 1.3rem;
}

.summary-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.summary-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Method section */
.method-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.method-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.method-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.method-select-group {
  margin-top: 0.75rem;
}

.select-input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg-input);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  direction: rtl;
  cursor: pointer;
}

.select-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Next button */
.next-btn {
  margin-top: 1.25rem;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* Template cards */
.template-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.template-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: right;
  font-family: var(--font);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.template-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.template-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.template-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.template-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.template-prayers {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Customize toggle */
.customize-toggle {
  text-align: center;
  margin-bottom: 1rem;
}

/* Custom prayer checkboxes */
.custom-prayers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.prayer-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s;
  min-width: 80px;
}

.prayer-checkbox:hover {
  background: var(--primary-light);
}

.prayer-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* Alert section */
.alert-section {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.alert-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-slider {
  flex: 1;
  height: 6px;
  accent-color: var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow);
}

.alert-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
}

/* Collapsible sections */
.collapsible-section {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
}

.collapsible-header:hover {
  color: var(--primary);
}

.collapse-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.collapse-arrow.expanded {
  transform: rotate(180deg);
}

.collapsible-body {
  padding: 0.5rem 0 0.25rem;
}

/* Label inputs */
.label-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label-input-group {
  display: flex;
  align-items: center;
}

.label-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg-input);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.label-input::placeholder {
  color: var(--text-muted);
}

.label-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Step 3: Subscription URL */
.url-display {
  margin-bottom: 1rem;
}

.url-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: monospace, var(--font);
  font-size: 0.8rem;
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  direction: ltr;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.subscribe-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.btn-webcal {
  background: var(--primary);
  color: #fff;
  width: 100%;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
}

.btn-webcal:hover {
  background: var(--primary-hover);
}

.btn-download {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-download:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.webcal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Preview summary */
.preview-summary {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.preview-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.preview-item dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 80px;
  flex-shrink: 0;
}

.preview-item dd {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Step 4: Device setup guide accordion */
.guide-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.25rem;
}

.guide-section {
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.guide-section:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.guide-section:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.guide-section + .guide-section {
  border-top: none;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-input);
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.guide-header:hover {
  background: var(--primary-light);
}

.guide-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.guide-section.open .guide-arrow {
  transform: rotate(180deg);
}

.guide-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.1rem;
}

.guide-section.open .guide-body {
  max-height: 800px;
  padding: 0.75rem 1.1rem 1rem;
}

.guide-steps {
  list-style: none;
  counter-reset: guide-step;
  padding: 0;
  margin: 0;
}

.guide-steps li {
  counter-increment: guide-step;
  position: relative;
  padding-right: 2rem;
  padding-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.guide-steps li::before {
  content: counter(guide-step);
  position: absolute;
  right: 0;
  top: 0.1em;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

[dir="ltr"] .guide-steps li {
  padding-right: 0;
  padding-left: 2rem;
}

[dir="ltr"] .guide-steps li::before {
  right: auto;
  left: 0;
}

.guide-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.guide-tip {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Warning inline (used in iPhone "Remove Alerts" step) */
.warning-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  .warning-inline {
    background: #422006;
    color: #fde68a;
  }
}

.warning-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

/* Android paths */
.android-path {
  margin-bottom: 1rem;
}

.android-path-fallback {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.path-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.path-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

[dir="ltr"] .path-badge {
  margin-left: 0;
  margin-right: 0.5rem;
}

.android-subsection {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.subsection-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* Focus/DND warning card */
.warning-card {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}

@media (prefers-color-scheme: dark) {
  .warning-card {
    background: #422006;
    border-color: #b45309;
  }
}

.warning-card-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.4rem;
}

@media (prefers-color-scheme: dark) {
  .warning-card-title {
    color: #fde68a;
  }
}

.warning-card-text {
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.7;
}

@media (prefers-color-scheme: dark) {
  .warning-card-text {
    color: #fcd34d;
  }
}

/* Language toggle */
.lang-toggle-wrap {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

[dir="ltr"] .lang-toggle-wrap {
  left: auto;
  right: 1rem;
}

.lang-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Make header relative for toggle positioning */
.app-header {
  position: relative;
}

/* Back button */
.btn-back {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.35rem 0;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.btn-back:hover {
  color: var(--primary);
}

/* Step transition animation */
.step {
  display: none;
  animation: stepFadeIn 0.3s ease;
}

.step.active {
  display: block;
}

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

/* Alert testing */
.alert-test-card {
  margin-top: 1rem;
}

.test-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.btn-success {
  background: #059669;
  color: #fff;
  width: 100%;
}

.btn-success:hover {
  background: #047857;
}

.btn-outline-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  width: 100%;
}

.btn-outline-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.test-result {
  margin-top: 1rem;
}

/* Success celebration */
.success-celebration {
  text-align: center;
  margin-bottom: 0.75rem;
}

.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  font-size: 2rem;
  animation: celebrationPop 0.4s ease;
}

@keyframes celebrationPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-msg {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #059669;
  line-height: 1.7;
}

@media (prefers-color-scheme: dark) {
  .success-msg {
    color: #34d399;
  }
}

/* Troubleshooting */
.troubleshoot-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.troubleshoot-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.troubleshoot-list li {
  position: relative;
  padding-right: 1.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.troubleshoot-list li::before {
  content: '•';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-muted);
  font-weight: 700;
}

[dir="ltr"] .troubleshoot-list li {
  padding-right: 0;
  padding-left: 1.5rem;
}

[dir="ltr"] .troubleshoot-list li::before {
  right: auto;
  left: 0;
}

/* LTR overrides for body */
[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .search-input {
  direction: ltr;
}

[dir="ltr"] .template-card {
  text-align: left;
}

/* Responsive */
@media (max-width: 480px) {
  .app-header {
    padding: 1.5rem 1rem 0.75rem;
  }

  .app-title {
    font-size: 1.75rem;
  }

  .card {
    padding: 1.25rem;
  }

  .step-dots {
    gap: 1rem;
  }

  .summary-details {
    flex-direction: column;
    gap: 0.25rem;
  }
}
