/* =========================================
   PRAYER.RUN() — Main Stylesheet
   ========================================= */

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

:root {
  --primary: #4a90e2;
  --primary-dark: #397acb;
  --primary-light: #d6eaff;
  --purple: #7c5cbf;
  --purple-light: #ede8f7;
  --gold: #f0a500;
  --gold-light: #fff3cc;
  --green: #27ae60;
  --green-light: #d4f5e4;
  --orange: #e67e22;
  --orange-light: #fdebd0;
  --bg-gradient: linear-gradient(160deg, #d0e6f7 0%, #e8f0fb 50%, #ede8f7 100%);
  --card-bg: #ffffffee;
  --text-dark: #2c2c3a;
  --text-mid: #555;
  --text-light: #888;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(74, 100, 200, 0.12);
  --shadow-lg: 0 16px 50px rgba(74, 100, 200, 0.18);
  --transition: 0.25s ease;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
  background: linear-gradient(135deg, #2c3e7a 0%, #4a6bb5 50%, #7c5cbf 100%);
  color: white;
  padding: 28px 20px 24px;
  text-align: center;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.logo-icon {
  font-size: 2rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: #a8d4ff;
}

.header-tagline {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* =========================================
   DAILY BANNER
   ========================================= */

.daily-banner {
  background: linear-gradient(135deg, #2c3e7a, #5b3fa0);
  color: white;
  padding: 0;
  overflow: hidden;
}

.daily-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.daily-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.daily-theme {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 150px;
}

.daily-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  white-space: nowrap;
}

.daily-btn:hover { background: rgba(255,255,255,0.3); }

.daily-expanded {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 14px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.daily-scripture {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.scripture-ref {
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.daily-reflection {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 12px;
  font-style: italic;
}

/* =========================================
   TAB NAVIGATION
   ========================================= */

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: white;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  box-shadow: 0 3px 12px rgba(74, 144, 226, 0.35);
}

/* =========================================
   MAIN CONTENT
   ========================================= */

.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.tab-section {
  display: none;
  animation: fadeSlideIn 0.35s ease;
}

.tab-section.active {
  display: block;
}

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

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   LEARN SECTION
   ========================================= */

.learn-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.intro-card {
  text-align: center;
  border-top: 4px solid var(--primary);
}

.learn-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.learn-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.learn-card p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}

.scripture-quote {
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  margin-top: 20px;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
}

.scripture-quote em {
  font-size: 0.95rem;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
}

.scripture-quote cite {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-style: normal;
}

.learn-section-title {
  margin: 36px 0 16px;
  text-align: center;
}

.learn-section-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.learn-section-title p {
  color: var(--text-mid);
}

/* ACTS Grid */
.acts-grid {
  display: grid;
  gap: 14px;
}

.acts-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-left: 5px solid;
}

.acts-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.acts-adoration { border-left-color: var(--purple); }
.acts-confession { border-left-color: var(--orange); }
.acts-thanksgiving { border-left-color: var(--green); }
.acts-supplication { border-left-color: var(--primary); }

.acts-letter {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.acts-adoration .acts-letter { background: linear-gradient(135deg, var(--purple), #a678e2); }
.acts-confession .acts-letter { background: linear-gradient(135deg, var(--orange), #f39c12); }
.acts-thanksgiving .acts-letter { background: linear-gradient(135deg, var(--green), #2ecc71); }
.acts-supplication .acts-letter { background: linear-gradient(135deg, var(--primary), #74b3f5); }

.acts-info {
  flex: 1;
}

.acts-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.acts-short {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin: 0;
}

.acts-toggle-icon {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.acts-card.open .acts-toggle-icon {
  transform: rotate(180deg);
}

.acts-expanded {
  margin-top: 14px;
  border-top: 1px solid #eee;
  padding-top: 14px;
}

.acts-expanded p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 10px;
}

.acts-example {
  background: #f8f9fa;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.acts-scripture {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.acts-tips {
  font-size: 0.9rem;
  color: var(--text-mid);
  background: #fffaed;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.btn-acts {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-acts:hover {
  background: var(--primary);
  color: white;
}

/* Types Grid */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.type-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.type-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.type-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.type-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.type-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.type-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* Tips List */
.tips-list {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.tip-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tip-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
}

.tip-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tip-content p {
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* Learn CTA */
.learn-cta {
  background: linear-gradient(135deg, #2c3e7a, #7c5cbf);
  color: white;
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-top: 30px;
}

.learn-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.learn-cta p {
  opacity: 0.9;
  margin-bottom: 20px;
}

/* =========================================
   GUIDED BUILDER
   ========================================= */

.style-selector-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.style-label {
  font-weight: 600;
  color: var(--text-mid);
  font-size: 0.9rem;
  white-space: nowrap;
}

.style-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.style-btn {
  background: white;
  border: 1.5px solid #ddd;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-mid);
  transition: var(--transition);
  font-weight: 600;
}

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

.style-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Progress */
.progress-container {
  margin-bottom: 28px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
  transition: var(--transition);
  flex: 1;
}

.progress-step.active, .progress-step.done {
  opacity: 1;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  transition: var(--transition);
}

.progress-step.active .step-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.progress-step.done .step-dot {
  background: var(--green);
}

.progress-step span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Guided Steps */
.guided-step {
  display: none;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  animation: fadeSlideIn 0.3s ease;
}

.guided-step.active {
  display: block;
}

.step-header {
  padding: 22px 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-letter {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.acts-adoration-bg { background: linear-gradient(135deg, #7c5cbf, #a678e2); }
.acts-confession-bg { background: linear-gradient(135deg, #e67e22, #f39c12); }
.acts-thanksgiving-bg { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.acts-supplication-bg { background: linear-gradient(135deg, #4a90e2, #74b3f5); }
.review-bg { background: linear-gradient(135deg, #2c3e7a, #7c5cbf); }

.step-teaching {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffbf0;
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  margin: 20px 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.teaching-icon { font-size: 1.4rem; flex-shrink: 0; }

.teaching-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.teaching-text strong { color: var(--text-dark); }

.step-prompts {
  padding: 16px 20px 0;
}

.prompt-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 600;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: white;
  border: 1.5px solid #ddd;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-mid);
  transition: var(--transition);
}

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

.step-textarea {
  display: block;
  width: calc(100% - 40px);
  margin: 16px 20px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid #e0e0e0;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--transition);
  color: var(--text-dark);
}

.acts-adoration-focus:focus { border-color: var(--purple); outline: none; }
.acts-confession-focus:focus { border-color: var(--orange); outline: none; }
.acts-thanksgiving-focus:focus { border-color: var(--green); outline: none; }
.acts-supplication-focus:focus { border-color: var(--primary); outline: none; }

.step-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.step-scripture {
  font-size: 0.8rem;
  color: var(--text-mid);
  font-style: italic;
  flex: 1;
  min-width: 200px;
}

.step-nav {
  display: flex;
  gap: 10px;
}

.supplication-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px 0;
}

.supp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* Review Step */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
}

.review-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border-left: 4px solid;
}

.review-item h5 {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

.review-item p {
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.5;
}

.review-adoration { background: var(--purple-light); border-left-color: var(--purple); }
.review-adoration h5 { color: var(--purple); }
.review-confession { background: var(--orange-light); border-left-color: var(--orange); }
.review-confession h5 { color: var(--orange); }
.review-thanksgiving { background: var(--green-light); border-left-color: var(--green); }
.review-thanksgiving h5 { color: var(--green); }
.review-supplication { background: var(--primary-light); border-left-color: var(--primary); }
.review-supplication h5 { color: var(--primary-dark); }

.generate-area {
  text-align: center;
  padding: 24px 20px;
}

/* Guided Result */
.guided-result {
  margin: 0 20px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 8px;
}

.result-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.result-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-item {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}

.adoration-tag { background: var(--purple-light); color: var(--purple); }
.confession-tag { background: var(--orange-light); color: var(--orange); }
.thanksgiving-tag { background: var(--green-light); color: var(--green); }
.supplication-tag { background: var(--primary-light); color: var(--primary-dark); }

.prayer-annotated {
  padding: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.prayer-annotated .prayer-block {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
}

.prayer-annotated .prayer-block::before {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.block-adoration { background: var(--purple-light); }
.block-adoration::before { content: "A — Adoration"; color: var(--purple); }
.block-confession { background: var(--orange-light); }
.block-confession::before { content: "C — Confession"; color: var(--orange); }
.block-thanksgiving { background: var(--green-light); }
.block-thanksgiving::before { content: "T — Thanksgiving"; color: var(--green); }
.block-supplication { background: var(--primary-light); }
.block-supplication::before { content: "S — Supplication"; color: var(--primary-dark); }
.block-closing { background: #f0f0f0; font-style: italic; }
.block-closing::before { content: "✨ Closing"; color: var(--text-mid); }

.learn-reminder {
  display: flex;
  gap: 12px;
  background: #fffbf0;
  border: 1px solid #ffe0a0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 16px 20px;
  font-size: 0.88rem;
  align-items: flex-start;
}

.learn-reminder-icon { font-size: 1.4rem; flex-shrink: 0; }

/* =========================================
   QUICK PRAYER
   ========================================= */

.quick-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 2px;
}

input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  transition: border-color var(--transition);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
}

.response-box {
  margin-top: 24px;
  background: #f8faff;
  border: 1.5px solid #d0e3ff;
  border-radius: var(--radius);
  overflow: hidden;
}

.prayer-output {
  padding: 24px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-dark);
  white-space: pre-wrap;
}

.learn-nudge {
  border-top: 1px solid #e8eef8;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #f0f5ff;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
}

/* =========================================
   SAVED PRAYERS
   ========================================= */

.empty-state {
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 60px 30px;
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-mid);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.saved-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.saved-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.saved-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.saved-card-type {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.7rem;
}

.saved-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  font-style: italic;
}

.saved-card-actions {
  display: flex;
  gap: 8px;
}

.saved-card-full {
  display: none;
  margin-top: 14px;
  border-top: 1px solid #eee;
  padding-top: 14px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  white-space: pre-wrap;
}

.saved-card.expanded .saved-card-excerpt {
  display: none;
}

.saved-card.expanded .saved-card-full {
  display: block;
}

/* =========================================
   ASK THE TEACHER
   ========================================= */

.teacher-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.teacher-avatar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #2c3e7a, #7c5cbf);
  color: white;
}

.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.avatar-info strong {
  display: block;
  font-size: 1.1rem;
}

.avatar-info span {
  font-size: 0.82rem;
  opacity: 0.85;
}

.preset-questions {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.preset-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.preset-btn {
  background: white;
  border: 1.5px solid #ddd;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-mid);
  text-align: left;
  transition: var(--transition);
  line-height: 1.4;
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.chat-area {
  padding: 20px;
  min-height: 250px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeSlideIn 0.3s ease;
}

.teacher-msg {
  justify-content: flex-start;
}

.user-msg {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.teacher-msg .chat-bubble {
  background: var(--purple-light);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.user-msg .chat-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.teacher-thinking .chat-bubble {
  background: var(--purple-light);
  color: var(--text-light);
  font-style: italic;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px;
  border: 2px solid #e0e0e0;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--primary);
}

/* =========================================
   BUTTONS
   ========================================= */

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5ba0f5);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(74, 144, 226, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary {
  background: white;
  color: var(--text-mid);
  border: 1.5px solid #ddd;
  padding: 12px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-action {
  background: white;
  border: 1.5px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
}

.btn-action:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; }

.btn-glow {
  box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.5);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(74, 144, 226, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(74, 144, 226, 0.6); }
}

.result-actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* =========================================
   UTILITIES
   ========================================= */

.hidden { display: none !important; }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
  .logo-text { font-size: 1.7rem; }
  .tab-btn { padding: 7px 10px; font-size: 0.78rem; }
  .acts-grid, .acts-card { flex-direction: column; }
  .acts-letter { width: 40px; height: 40px; font-size: 1.6rem; }
  .review-grid { grid-template-columns: 1fr; }
  .supplication-two-col { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .progress-step span { display: none; }
  .step-footer { flex-direction: column; text-align: center; }
  .section-header h2 { font-size: 1.5rem; }
  .daily-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}
