/* —— Public app dashboard shell —— */
.public-app-page .container {
  background: transparent;
  box-shadow: none;
  padding: 12px 14px 28px;
  margin: 8px auto 16px;
}

.public-app-dashboard {
  padding-bottom: 8px;
}

/* Hero banner */
.pa-dashboard-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 55%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.22);
}

.pa-dashboard-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.pa-dashboard-hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.pa-dashboard-hero__eyebrow,
.pa-dashboard-hero__title,
.pa-dashboard-hero__sub,
.pa-dashboard-hero__cta {
  position: relative;
  z-index: 1;
}

.pa-dashboard-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.pa-dashboard-hero__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.pa-dashboard-hero__sub {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0.92;
  max-width: 100%;
}

.pa-dashboard-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.pa-dashboard-hero__cta:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Section cards */
.public-app-page .pa-dashboard-section {
  margin-bottom: 14px;
  padding: 14px 12px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8f0fe;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.06);
}

.public-app-page .pa-dashboard-section--featured {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-color: #dbeafe;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
}

.pa-dashboard-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.pa-dashboard-section__head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pa-dashboard-section__head--for-you {
  flex-wrap: wrap;
}

.pa-dashboard-section__head--simple {
  justify-content: flex-start;
}

.public-app-page .pa-dashboard-section__head-main .pa-dashboard-section__title {
  text-align: left;
}

.public-app-page .pa-dashboard-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.public-app-page .pa-dashboard-portal-link i {
  font-size: 0.85rem;
}

.public-app-page .pa-dashboard-portal-link:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}

@media (max-width: 420px) {
  .public-app-page .pa-dashboard-portal-link {
    padding: 0.38rem 0.62rem;
    font-size: 0.72rem;
  }
}

.pa-dashboard-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.pa-dashboard-section__badge--featured {
  background: #dbeafe;
  color: #1d4ed8;
}

.pa-dashboard-section__badge--registration {
  background: #ffedd5;
  color: #c2410c;
}

.pa-dashboard-section__badge--donation {
  background: #fce7f3;
  color: #be185d;
}

.pa-dashboard-section__badge--result {
  background: #d1fae5;
  color: #047857;
}

.pa-dashboard-section__badge--social {
  background: #ede9fe;
  color: #6d28d9;
}

.public-app-page .pa-tile-grid--social {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-app-page .pa-tile--social .pa-tile__icon--social {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.public-app-page .pa-tile--social .menu-fa-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.public-app-page .pa-tile--social.dashboard-link:hover {
  border-color: #c4b5fd;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.1);
}

@media (max-width: 600px) {
  .public-app-page .pa-tile--social .menu-fa-icon {
    font-size: 1.5rem;
  }
}

.public-app-page .portal-home-section-title,
.public-app-page .pa-dashboard-section__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.public-app-page .pa-dashboard-section--featured .pa-dashboard-section__title {
  color: #1e40af;
}

.public-app-page .portal-home-section {
  margin-bottom: 0;
}

.public-app-page .portal-home-section--for-you {
  padding: 14px 12px 16px;
  margin-bottom: 14px;
  overflow: visible;
}

/* Tile grid */
.public-app-page .pa-tile-grid {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.public-app-page .pa-tile-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-app-page .pa-tile-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-app-page .pa-tile-grid--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 200px;
}

/* App tiles */
.public-app-page .pa-tile.dashboard-link {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 8px 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.public-app-page .pa-tile.dashboard-link:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.public-app-page .pa-dashboard-section--featured .pa-tile.dashboard-link {
  background: #fff;
  border-color: #dbeafe;
}

.public-app-page .pa-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 14px;
}

.public-app-page .pa-tile__icon--emerald {
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
}

.public-app-page .pa-tile__icon--teal {
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
}

.public-app-page .pa-tile__icon--amber {
  background: linear-gradient(145deg, #fef3c7, #fde68a);
}

.public-app-page .pa-tile__icon--orange {
  background: linear-gradient(145deg, #ffedd5, #fed7aa);
}

.public-app-page .pa-tile__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.public-app-page .pa-tile__icon .menu-fa-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.public-app-page .adhkar {
  color: #047857;
}

.public-app-page .prayertime {
  color: #0f766e;
}

.public-app-page .journal {
  color: #b45309;
}

.public-app-page .store {
  color: #c2410c;
}

.public-app-page .pa-tile .menu-label {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

.public-app-page .pa-tile .menu-icon-button {
  width: auto;
  max-width: 42px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.public-app-page .pa-tile .menu-icon-button.ism-tv-logo,
.public-app-page .pa-tile .ism-tv-logo-flip-frame--dashboard {
  width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  margin: 0;
  box-shadow: none;
}

.public-app-page .pa-tile.dashboard-link:hover .ism-tv-logo-flip-frame--dashboard {
  transform: none;
}

/* Override legacy grid rules from module-hub-dashboard */
.public-app-page .menu-grid--4col {
  display: grid !important;
  justify-items: stretch;
}

@media (max-width: 600px) {
  .public-app-page .container {
    padding: 8px 10px 24px;
    margin: 6px 8px 12px;
  }

  .pa-dashboard-hero {
    padding: 18px 16px 16px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .pa-dashboard-hero__sub {
    font-size: clamp(0.68rem, 2.9vw, 0.88rem);
    line-height: 1.3;
    white-space: nowrap;
  }

  .public-app-page .pa-dashboard-section {
    padding: 12px 10px 14px;
    border-radius: 16px;
  }

  .public-app-page .pa-tile-grid {
    gap: 8px;
  }

  .public-app-page .pa-tile.dashboard-link {
    padding: 10px 6px 8px;
    border-radius: 12px;
  }

  .public-app-page .pa-tile__icon,
  .public-app-page .pa-tile__media {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .public-app-page .pa-tile__icon .menu-fa-icon {
    font-size: 1.4rem;
  }

  .public-app-page .pa-tile .menu-icon-button {
    max-width: 36px;
    max-height: 36px;
  }

  .public-app-page .pa-tile .menu-icon-button.ism-tv-logo,
  .public-app-page .pa-tile .ism-tv-logo-flip-frame--dashboard {
    width: 36px !important;
    height: 36px !important;
  }

  .public-app-page .pa-tile .menu-label {
    font-size: 0.7rem;
    margin-top: 6px;
  }
}

@media (min-width: 768px) {
  .public-app-page .pa-tile-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 480px;
  }

  .public-app-page .pa-tile__icon,
  .public-app-page .pa-tile__media {
    width: 58px;
    height: 58px;
  }

  .public-app-page .pa-tile__icon .menu-fa-icon {
    font-size: 1.85rem;
  }

  .public-app-page .pa-tile .menu-icon-button {
    max-width: 48px;
    max-height: 48px;
  }

  .public-app-page .pa-tile .menu-icon-button.ism-tv-logo,
  .public-app-page .pa-tile .ism-tv-logo-flip-frame--dashboard {
    width: 48px !important;
    height: 48px !important;
  }

  .public-app-page .pa-tile .menu-label {
    font-size: 0.82rem;
  }
}

.public-app-modal__card .modal-buttons {
  margin-top: 16px;
}

.public-app-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.public-app-modal.hidden {
  display: none;
}

.public-app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.public-app-modal__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
}

.public-app-modal__card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.public-app-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.public-app-modal__card--notice {
  text-align: center;
}

.public-app-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  font-size: 1.5rem;
}

.public-app-modal__icon--danger {
  background: #fee2e2;
  color: #dc2626;
}

.public-app-modal__card--notice h2 {
  text-align: center;
}

.public-app-modal__message {
  margin: 0 0 4px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-buttons.public-app-modal__actions--center {
  justify-content: center;
}

.public-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.public-app-btn--primary {
  background: #1d4ed8;
  color: #fff;
}

.public-app-btn--secondary {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

.pa-field-hint {
  display: block;
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* —— Public app signup wizard —— */
.pa-signup-shell .ar-panel {
  padding: 1.35rem 1.25rem 1.5rem;
}

.pa-signup-form .pa-signup-lead {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pa-signup-form .pa-signup-fields {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.pa-signup-form .pa-signup-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pa-signup-form .pa-signup-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.pa-signup-form .pa-signup-optional {
  font-weight: 500;
  color: #94a3b8;
}

.pa-signup-form input,
.pa-signup-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.35;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pa-signup-form input:focus,
.pa-signup-form select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.pa-signup-form input.pa-signup-readonly {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
}

.pa-signup-form select:disabled {
  background: #f8fafc;
  color: #94a3b8;
}

.pa-signup-form .pwd-field {
  width: 100%;
}

.pa-signup-form .pwd-field input {
  width: 100%;
}

.pa-signup-form .pa-signup-inline.ar-inline-action {
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: stretch;
}

.pa-signup-form .ar-wizard-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e8f0;
}

.pa-signup-form .ar-wizard-btn {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pa-signup-form .ar-wizard-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.pa-signup-form .ar-wizard-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.pa-signup-form .ar-wizard-btn--primary:hover:not(:disabled) {
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.pa-signup-form .ar-wizard-btn--secondary {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.pa-signup-form .ar-wizard-btn--secondary:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.pa-signup-form .ar-wizard-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.pa-signup-form .pa-signup-inline .ar-wizard-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.7rem 1rem;
}

.pa-signup-login-link {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .pa-signup-shell {
    width: min(100% - 1rem, 980px);
  }

  .pa-signup-shell .ar-panel {
    padding: 1.15rem 1rem 1.35rem;
  }

  .pa-signup-form .pa-signup-fields {
    gap: 1rem;
  }

  /* Keep verify input + button on one row; nav buttons side by side */
  .pa-signup-form .pa-signup-inline.ar-inline-action {
    grid-template-columns: 1fr auto;
  }

  .pa-signup-form .ar-wizard-nav {
    flex-direction: row;
  }

  .pa-signup-form .ar-wizard-btn,
  .pa-signup-form .pa-signup-inline .ar-wizard-btn {
    width: auto;
    flex: 1;
  }

  .pa-signup-form .pa-signup-inline .ar-wizard-btn {
    flex: 0 0 auto;
  }
}

.public-app-page .brand-row-spacer .dashboard-mobile-actions {
  display: flex;
  justify-content: flex-end;
}

.public-app-page .dashboard-menu-item--placeholder,
.public-app-page .dashboard-menu-item--placeholder:disabled,
.public-app-page .dashboard-menu-item--disabled,
.public-app-page .dashboard-menu-item--disabled:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.public-app-page .dashboard-menu-section-label {
  margin: 6px 16px 2px;
  padding-top: 6px;
  border-top: 1px solid #e8f0fe;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  cursor: default;
  user-select: none;
}
