/* Shared Fahikari content surfaces: auth auxiliaries, legal, store, placeholders, subscriptions. */

.fh-content-page {
  display: grid;
  gap: 1rem;
  color: var(--fh-shell-text, #f8fafc);
}

.fh-content-hero,
.fh-content-panel,
.fh-content-card,
.fh-subscription-card,
.fh-plan-card,
.fh-legal-doc-panel {
  border: 1px solid rgba(115, 227, 139, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(115, 227, 139, 0.08), rgba(15, 23, 42, 0.12) 48%, rgba(250, 204, 21, 0.055)),
    rgba(7, 12, 18, 0.78);
  color: var(--fh-shell-text, #f8fafc);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

.fh-content-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.2rem;
  align-items: center;
  min-height: 12rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  background:
    linear-gradient(100deg, rgba(3, 7, 12, 0.86), rgba(3, 7, 12, 0.6) 52%, rgba(3, 7, 12, 0.86)),
    url("../img/dashboard/fahikari-cosmic-hero.webp") center / cover no-repeat;
}

.fh-content-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 32%, rgba(115, 227, 139, 0.2), transparent 17rem),
    radial-gradient(circle at 88% 16%, rgba(250, 204, 21, 0.13), transparent 17rem),
    linear-gradient(180deg, transparent, rgba(2, 6, 10, 0.34));
}

.fh-content-hero > * {
  position: relative;
  z-index: 1;
}

.fh-content-hero__mark {
  width: clamp(4.3rem, 8vw, 6.2rem);
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(115, 227, 139, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(115, 227, 139, 0.22), rgba(2, 8, 7, 0.78) 62%),
    rgba(3, 7, 12, 0.7);
  color: #a7f3d0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  box-shadow: 0 0 42px rgba(115, 227, 139, 0.22);
}

.fh-content-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  color: #facc15;
  font-family: var(--fh-font-ui);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fh-content-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--fh-font-ui);
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.fh-legal-page .fh-content-hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
}

.fh-content-hero p {
  max-width: 48rem;
  margin: 0.55rem 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-family: var(--fh-font-ui);
  font-size: 1rem;
}

.fh-content-hero__actions,
.fh-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.fh-content-panel,
.fh-content-card {
  padding: clamp(1rem, 2vw, 1.45rem);
}

.fh-content-panel__head,
.fh-content-card__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.fh-content-panel__icon,
.fh-content-card__icon {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(115, 227, 139, 0.3);
  border-radius: 50%;
  background: rgba(115, 227, 139, 0.1);
  color: rgba(115, 227, 139, 0.92);
}

.fh-content-panel h2,
.fh-content-card h2,
.fh-content-card h3 {
  margin: 0;
  color: #fff;
  font-family: var(--fh-font-ui);
  font-weight: 830;
  letter-spacing: 0;
}

.fh-legal-page .fh-content-panel h2 {
  font-weight: 700;
}

.fh-content-panel p,
.fh-content-card p,
.fh-plan-card p,
.fh-subscription-card p {
  color: rgba(226, 232, 240, 0.68);
}

.fh-content-card__body {
  display: grid;
  gap: 0.85rem;
}

.fh-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fh-content-link-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 5.1rem;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.86) !important;
  text-decoration: none !important;
}

.fh-content-link-card:hover {
  border-color: rgba(115, 227, 139, 0.34);
  background: rgba(115, 227, 139, 0.09);
  color: #fff !important;
}

.fh-content-link-card i:first-child {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(115, 227, 139, 0.1);
  color: #a7f3d0;
}

.fh-content-link-card strong,
.fh-content-link-card small {
  display: block;
}

.fh-content-link-card strong {
  color: #fff;
  font-family: var(--fh-font-ui);
}

.fh-content-link-card small {
  color: rgba(226, 232, 240, 0.58);
}

.fh-content-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(250, 204, 21, 0.08);
  color: rgba(254, 240, 138, 0.94);
  font-family: var(--fh-font-ui);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Guest auth variants beyond login. */

body.fh-guest-auth-layout .fh-auth-shell--single {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
}

body.fh-guest-auth-layout .fh-auth-panel--wide {
  max-width: 560px;
}

body.fh-guest-auth-layout .fh-auth-panel label {
  color: rgba(226, 232, 240, 0.82);
  font-family: var(--fh-font-ui);
  font-size: 0.86rem;
  font-weight: 750;
}

body.fh-guest-auth-layout .fh-auth-panel .form-control,
body.fh-guest-auth-layout .fh-auth-panel .input-group-text {
  min-height: 3rem;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 10, 0.5);
  color: #f8fafc;
}

body.fh-guest-auth-layout .fh-auth-panel .form-control:focus {
  border-color: rgba(250, 204, 21, 0.72);
  background: rgba(2, 6, 10, 0.72);
  color: #f8fafc;
  box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.14);
}

body.fh-guest-auth-layout .fh-auth-panel .input-group-text {
  color: #a7f3d0;
}

body.fh-guest-auth-layout .fh-auth-legal-check {
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

body.fh-guest-auth-layout .fh-auth-legal-check label {
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.fh-guest-auth-layout .fh-auth-panel .invalid-feedback,
body.fh-guest-auth-layout .fh-auth-panel .text-danger {
  color: #fca5a5 !important;
}

body.fh-guest-auth-layout .fh-auth-panel .alert-warning {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(113, 63, 18, 0.22);
  color: #fde68a;
}

/* Legal. */

body.guest-legal-layout .login-page {
  background:
    linear-gradient(90deg, rgba(2, 6, 10, 0.98), rgba(2, 6, 10, 0.76) 46%, rgba(2, 6, 10, 0.96)),
    linear-gradient(180deg, rgba(2, 6, 10, 0.38), #02060a 82%),
    url("../img/dashboard/fahikari-cosmic-hero.webp") center top / cover fixed no-repeat,
    #02060a;
}

.fh-legal-page {
  display: grid;
  gap: 1rem;
}

.fh-legal-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fh-legal-doc-panel {
  overflow: hidden;
}

.fh-legal-doc-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.035);
}

.fh-legal-doc-panel__bar h1 {
  margin: 0;
  color: #fff;
  font-family: var(--fh-font-ui);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0;
}

.fh-legal-doc-panel .legal-prose {
  padding: clamp(1rem, 2.5vw, 1.55rem);
}

.fh-legal-doc-panel .legal-prose h1,
.fh-legal-doc-panel .legal-prose h2,
.fh-legal-doc-panel .legal-prose h3 {
  color: #fff;
}

/* Store and placeholder. */

.fh-store-page .fh-content-hero,
.fh-placeholder-page .fh-content-hero {
  min-height: 15rem;
}

.fh-store-status {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.fh-store-status__icon {
  width: 5.2rem;
  height: 5.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.11);
  color: #facc15;
  font-size: 2.35rem;
}

.fh-placeholder-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fh-placeholder-items .fh-content-card {
  min-height: 9rem;
}

/* Subscriptions. */

.fh-subscription-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fh-subscription-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.fh-subscription-card__top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.fh-subscription-card__icon {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(115, 227, 139, 0.11);
  color: #a7f3d0;
}

.fh-subscription-card h2 {
  margin: 0;
  color: #fff;
  font-family: var(--fh-font-ui);
  font-size: 1.1rem;
  font-weight: 830;
}

.fh-subscription-meter {
  display: grid;
  gap: 0.45rem;
}

.fh-subscription-meter__row,
.fh-plan-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(226, 232, 240, 0.76);
}

.fh-subscription-meter__row strong,
.fh-plan-feature strong {
  color: #fff;
}

.fh-subscription-state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.fh-subscription-state strong {
  color: #fff;
  font-size: 1.1rem;
}

.fh-subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  border: 1px solid rgba(115, 227, 139, 0.28);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(115, 227, 139, 0.11);
  color: #a7f3d0;
  font-size: 0.74rem;
  font-weight: 850;
}

.fh-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fh-plan-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1rem;
}

.fh-plan-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.fh-plan-card h3 {
  margin: 0;
  color: #fff;
  font-family: var(--fh-font-ui);
  font-size: 1.2rem;
  font-weight: 850;
}

.fh-plan-card__price {
  margin: 0;
  color: #facc15;
  font-family: var(--fh-font-ui);
  font-size: 1.65rem;
  font-weight: 900;
}

.fh-plan-features {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fh-plan-feature i {
  color: #73e38b;
}

@media (max-width: 991.98px) {
  .fh-content-hero,
  body.fh-guest-auth-layout .fh-auth-shell--single,
  .fh-subscription-summary-grid,
  .fh-plan-grid {
    grid-template-columns: 1fr;
  }

  .fh-content-hero__actions,
  .fh-content-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .fh-content-grid,
  .fh-placeholder-items {
    grid-template-columns: 1fr;
  }

  .fh-legal-doc-panel__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .fh-subscription-meter__row,
  .fh-plan-feature {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}
