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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.dhh-footer-widget {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
  border-top: 3px solid #4299e1;
  padding: 24px 20px;
  margin-top: 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dhh-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dhh-footer-text {
  flex: 1;
  min-width: 250px;
}

.dhh-footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.dhh-footer-subtitle {
  color: #cbd5e0;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.dhh-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #4299e1;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.dhh-footer-cta:hover {
  background-color: #3182ce;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
  color: #ffffff;
}

.dhh-footer-cta svg {
  width: 16px;
  height: 16px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .dhh-footer-content {
      flex-direction: column;
      text-align: center;
  }
  
  .dhh-footer-cta {
      width: 100%;
      justify-content: center;
  }
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal--active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__inner {
  padding: 40px 24px;
  text-align: center;
}

.modal__title {
  font-size: 32px;
  font-weight: 700;
  color: #2d5f8d;
  margin-bottom: 8px;
}

.modal__subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 28px;
}

.modal__rules {
  background: #f0f5f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: left;
}

.modal__rules h2 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.modal__rules ul {
  list-style: none;
}

.modal__rules li {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.modal__rules li:before {
  content: '•';
  position: absolute;
  left: 0;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn--primary {
  background: #2d5f8d;
  color: white;
  width: 100%;
}

.btn--primary:hover {
  background: #1f4562;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 95, 141, 0.25);
}

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

.btn--fitiq {
  background: #4CAF50;
  color: white;
  width: 100%;
}

.btn--fitiq:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

/* ===== AD CONTAINERS ===== */
.ad-container {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

.ad-container--top {
  margin-top: 0;
  margin-bottom: 20px;
  background: white;
  padding: 12px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.ad-slot {
  width: 100%;
  max-width: 728px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== APP CONTAINER ===== */
.app-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px;
  padding-bottom: 40px;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, #2d5f8d 0%, #1f4562 100%);
  color: white;
  padding: 40px 24px 32px;
  text-align: center;
  margin: 0 -16px 24px;
}

.header__title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}

.header__subtitle {
  font-size: 16px;
  opacity: 0.95;
}

/* ===== HERO SECTION ===== */
.hero {
  background: white;
  padding: 40px 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  border: 1px solid #e0e0e0;
}

.hero__content {
  max-width: 100%;
}

.hero__title {
  font-size: 24px;
  font-weight: 700;
  color: #2d5f8d;
  text-align: center;
  margin-bottom: 28px;
}

.hero__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .hero__benefits {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__benefit {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #2d5f8d;
}

.hero__benefit-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d5f8d;
  margin-bottom: 8px;
}

.hero__benefit-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: none;
  color: #999;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.tab--active {
  color: #2d5f8d;
  border-bottom-color: #2d5f8d;
}

/* ===== POST FORM ===== */
.post-form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 28px;
  border: 1px solid #e0e0e0;
}

.post-form__textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  margin-bottom: 12px;
  transition: border 0.2s ease;
}

.post-form__textarea:focus {
  outline: none;
  border-color: #2d5f8d;
  box-shadow: 0 0 0 3px rgba(45, 95, 141, 0.1);
}

.post-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-form__char-count {
  font-size: 12px;
  color: #999;
}

/* ===== RESPONSE BOX ===== */
.response-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.response-box__content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.response-box__text {
  font-size: 24px;
  font-weight: 600;
  color: #2d5f8d;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ===== FEED ===== */
.feed {
  margin-bottom: 40px;
}

.feed__empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

.feed__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== POST CARD ===== */
.post {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
}

.post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post__type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.post__type--prayer {
  background: #e3f2fd;
  color: #1565c0;
}

.post__type--confession {
  background: #fce4ec;
  color: #c2185b;
}

.post__text {
  font-size: 15px;
  color: #333;
  margin-bottom: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.post__time {
  font-size: 12px;
  color: #999;
}

/* ===== FITIQHUB PROMOTION ===== */
.fitiq-promo {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  padding: 40px 24px;
  border-radius: 8px;
  margin: 40px 0;
  color: white;
}

.fitiq-promo__content {
  max-width: 100%;
}

.fitiq-promo__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.fitiq-promo__subtitle {
  font-size: 16px;
  text-align: center;
  margin-bottom: 24px;
  opacity: 0.95;
}

.fitiq-promo__box {
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fitiq-promo__heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.fitiq-promo__description {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
  opacity: 0.95;
}

/* ===== FOOTER ===== */
.footer {
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  padding: 32px 16px;
  text-align: center;
  margin-top: 40px;
}

.footer__content {
  max-width: 700px;
  margin: 0 auto;
}

.footer__nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer__link {
  font-size: 13px;
  color: #2d5f8d;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #1f4562;
  text-decoration: underline;
}

.footer__copyright {
  font-size: 12px;
  color: #999;
}

/* ===== LOADING ===== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #2d5f8d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .header {
    padding: 30px 20px 24px;
  }

  .header__title {
    font-size: 32px;
  }

  .header__subtitle {
    font-size: 14px;
  }

  .hero {
    padding: 24px;
  }

  .hero__title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .hero__benefit {
    padding: 16px;
  }

  .hero__benefit-title {
    font-size: 14px;
  }

  .hero__benefit-text {
    font-size: 13px;
  }

  .modal__inner {
    padding: 32px 20px;
  }

  .post-form {
    padding: 16px;
  }

  .post {
    padding: 16px;
  }

  .tabs {
    gap: 8px;
  }

  .tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .response-box__content {
    padding: 30px 20px;
  }

  .response-box__text {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .fitiq-promo {
    padding: 30px 20px;
    margin: 30px 0;
  }

  .fitiq-promo__title {
    font-size: 22px;
  }

  .fitiq-promo__subtitle {
    font-size: 14px;
  }

  .fitiq-promo__box {
    padding: 16px;
  }

  .ad-slot {
    padding: 0 8px;
  }

  .ad-placeholder {
    min-height: 75px;
    padding: 40px 16px;
  }

  .footer__nav {
    gap: 12px;
  }

  .footer__link {
    font-size: 12px;
  }
}