/* =========================================================
   Inner pages — match main Shahid promo design
   ========================================================= */

.header--solid {
  background: linear-gradient(
    180deg,
    rgba(24, 29, 37, 0.92) 0%,
    rgba(24, 29, 37, 0.55) 70%,
    transparent 100%
  );
  border-bottom: none;
  backdrop-filter: blur(8px);
}

.inner-page {
  background: var(--bg);
}

.inner-page .inner-main {
  padding: 0 0 72px;
  width: 100%;
  margin: 0;
}

.inner-page .inner-main--wide {
  width: 100%;
}

.inner-wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.inner-wrap--narrow {
  width: min(560px, calc(100% - 40px));
}

.inner-wrap--faq {
  width: min(860px, calc(100% - 40px));
}

/* Flash */
.flash {
  position: relative;
  z-index: 70;
  width: min(860px, calc(100% - 32px));
  margin: 100px auto 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.flash--success {
  background: rgba(0, 144, 108, 0.2);
  border: 1px solid rgba(0, 144, 108, 0.55);
  color: #b8ffe4;
}

.flash--error {
  background: rgba(214, 25, 98, 0.18);
  border: 1px solid rgba(214, 25, 98, 0.5);
  color: #ffd0e0;
}

.flash ul {
  margin: 0;
  padding-inline-start: 18px;
}

/* Sub hero — same mosaic + gradient language as home */
.sub-hero {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: grid;
  place-items: end center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 88px;
  padding-bottom: 48px;
}

.sub-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sub-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.55) saturate(1.05);
}

.sub-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(24, 29, 37, 0.35),
    rgba(24, 29, 37, 0.55) 45%,
    rgb(24, 29, 37) 92%
  );
}

.sub-hero__copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  text-align: center;
}

.sub-hero__eyebrow {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.sub-hero__copy h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.sub-hero__lead {
  margin-top: 12px;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;
}

.sub-hero .underline-title {
  margin-top: 22px;
}

/* Section spacing under hero */
.sub-section {
  margin-top: -8px;
  position: relative;
  z-index: 2;
  padding: 8px 0 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

/* Cards = same as plan-card on home */
.panel,
.plan-card-like {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: 5px;
  background: var(--card);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel h2,
.panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-soft);
  margin-bottom: 14px;
}

/* Forms — voucher-like inputs */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(0, 144, 108, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-actions .btn-sub {
  min-height: 42px;
}

/* Content pages */
.content-block {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.98rem;
}

.content-block h2 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 28px 0 10px;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p + p {
  margin-top: 12px;
}

.content-block ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin: 10px 0;
}

/* Plan detail */
.plan-detail {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .plan-detail {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: stretch;
  }
}

.highlights {
  display: grid;
  gap: 12px;
  margin: 8px 0 22px;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.highlights img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.plan-side {
  text-align: center;
  justify-content: center;
  position: relative;
}

.plan-side .plan-card__badge {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
}

.plan-side h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-side .price {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 8px 0 10px;
}

.plan-side .muted {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

/* Related plans — reuse home card look */
.related-plans {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

@media (min-width: 800px) {
  .related-plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-plans .plan-card {
  min-height: auto;
}

.related-plans .plan-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Apps */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 700px) {
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.app-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
}

.app-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.app-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.info-list {
  display: grid;
  gap: 22px;
}

.info-list h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.info-list a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-list p {
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Success */
.success-box {
  text-align: center;
  padding: 40px 24px;
}

.success-box h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.success-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.75;
}

.success-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  font-size: 0.85rem;
  font-weight: 700;
}

.success-box .payment-account p {
  margin-bottom: 6px;
}

/* FAQ on inner pages */
.inner-faq {
  margin-top: 8px;
}

.inner-faq .faq__list {
  border-top: 1px solid var(--border);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Region / VAT */
.footer__market {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
}

.hero__vat,
.vat-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.vat-note {
  text-align: center;
  margin-bottom: 18px;
}

.payment-account {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  line-height: 1.7;
}

.payment-account strong {
  display: block;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-method {
  cursor: pointer;
}

.payment-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-method__logos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.payment-method__logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 32px;
  padding: 3px 5px;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.payment-method__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.payment-method__logo--wide {
  width: 84px;
}

.payment-method__logo--card {
  width: 52px;
  height: 34px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.payment-method__logo--tall {
  width: 36px;
  height: 36px;
  padding: 3px;
}

.payment-method__name {
  font-weight: 700;
  line-height: 1.3;
}

.payment-method input:checked + .payment-method__box {
  border-color: rgba(0, 144, 108, 0.85);
  background: rgba(0, 144, 108, 0.12);
}

.payment-method:hover .payment-method__box {
  border-color: rgba(255, 255, 255, 0.35);
}

.payment-method-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-method-inline img {
  width: 54px;
  height: 26px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
  padding: 2px;
}

.payment-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-pay__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card-preview {
  position: relative;
  margin-bottom: 22px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(0, 144, 108, 0.45), rgba(8, 18, 28, 0.95) 55%, rgba(20, 40, 55, 0.98)),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  min-height: 190px;
  overflow: hidden;
}

.card-preview__chip {
  width: 42px;
  height: 30px;
  border-radius: 6px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #d8c07a, #f5e6b8 45%, #b8974a);
}

.card-preview__method {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.card-preview__number {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}

.card-preview__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.card-preview__meta span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.card-preview__meta strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.pay-otp-panel {
  position: relative;
}

.pay-otp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 144, 108, 0.18);
  color: #3dd6a5;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 560px) {
  .card-pay__row {
    grid-template-columns: 1fr;
  }
}

/* Payment unavailable modal */
body.pay-modal-open {
  overflow: hidden;
}

.pay-modal[hidden] {
  display: none !important;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

.pay-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, #15232e 0%, #0d151c 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.pay-modal__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

.pay-modal__text,
.pay-modal__hint {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 10px;
}

.pay-modal__hint {
  color: #9fe7c4;
  font-weight: 600;
  margin-bottom: 22px;
}

.pay-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-modal__actions .btn-sub {
  width: 100%;
  justify-content: center;
}

/* Dashboard table removed — dashboard page is standalone */

.otp-hint {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: -4px;
}

.otp-debug {
  margin-bottom: 20px;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 144, 108, 0.5);
  background: rgba(0, 144, 108, 0.14);
  text-align: center;
}

.otp-debug__label {
  color: #7dffb3;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.otp-debug__code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: #fff;
  line-height: 1.2;
}

.otp-debug__hint {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.otp-input {
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.35rem;
  font-weight: 800;
}

.otp-resend {
  margin-top: 18px;
  text-align: center;
}

.otp-resend .link-more {
  background: none;
  border: 0;
  color: #7dffb3;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

@media (max-width: 760px) {
  .sub-hero {
    min-height: 320px;
    padding-top: 68px;
    padding-bottom: 36px;
  }

  .inner-wrap,
  .inner-wrap--narrow,
  .inner-wrap--faq {
    width: calc(100% - 24px);
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-sub {
    width: 100%;
  }
}

/* Soft page transition loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.page-loader__bar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.page-loader__bar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -40%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #1db954 20%, #7dffb0 50%, #1db954 80%, transparent);
  animation: pageLoaderSlide 0.9s ease-in-out infinite;
}

.page-loader__veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.18);
  backdrop-filter: blur(1px);
}

.page-loader__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.22);
  border-top-color: #1db954;
  animation: pageLoaderSpin 0.7s linear infinite;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.page-loader__text {
  position: absolute;
  top: calc(50% + 36px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 16px;
  width: min(90vw, 320px);
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@keyframes pageLoaderSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(350%); }
}

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

html[dir="rtl"] .page-loader__bar::after {
  animation-name: pageLoaderSlideRtl;
}

@keyframes pageLoaderSlideRtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-350%); }
}
