/* ─────────── T-PORTAL JOURNEY SECTION (Tarjama-styled) ─────────── */
.tportal-section { padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 3rem); max-width: 1280px; margin: 0 auto; }
.tportal-header { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.tportal-header .cap-overview__kicker { display: block; margin-bottom: 0.75rem; }
.tportal-header h2 { margin-bottom: 1rem; }
.tportal-header p { color: rgba(15, 13, 11, 0.62); font-size: 1.05rem; line-height: 1.6; max-width: 600px; margin: 1rem auto 0; }

/* ── Progress bar ── */
.journey-progress {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto 2.5rem;
  padding: 0 clamp(0.5rem, 2vw, 2rem);
  gap: 0;
}
.jp-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; flex-shrink: 0; cursor: pointer;
  transition: opacity 0.3s;
}
.jp-dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(15, 13, 11, 0.15);
  background: #FAF8F2; color: rgba(15, 13, 11, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; font-weight: 600;
  transition: all 0.4s cubic-bezier(.2,.7,.2,1);
}
.jp-step.active .jp-dot {
  background: #FF243C; border-color: #FF243C; color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 36, 60, 0.12);
  transform: scale(1.08);
}
.jp-step.done .jp-dot {
  background: #FF243C; border-color: #FF243C; color: #fff;
}
.jp-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(15, 13, 11, 0.45);
  transition: color 0.3s;
  white-space: nowrap;
}
.jp-step.active .jp-label, .jp-step.done .jp-label { color: #FF243C; }
.jp-line {
  flex: 1; height: 2px;
  background: rgba(15, 13, 11, 0.10);
  position: relative; margin: 0 0.5rem;
  margin-bottom: 22px;
  border-radius: 2px;
  overflow: hidden;
}
.jp-line::after {
  content: ''; position: absolute; inset: 0;
  background: #FF243C; transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
:root[lang="ar"] .jp-line::after { transform-origin: right; }
.jp-line.filled::after { transform: scaleX(1); }
@media (max-width: 900px) {
  .journey-progress { overflow-x: auto; padding-bottom: 0.5rem; gap: 0.25rem; }
  .jp-label { display: none; }
  .jp-line { min-width: 24px; }
}

/* ── Browser device frame ── */
.tportal-device {
  max-width: 1100px; margin: 0 auto;
  border-radius: 14px; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 13, 11, 0.08);
  box-shadow: 0 32px 80px -20px rgba(15, 13, 11, 0.15),
              0 0 0 1px rgba(15, 13, 11, 0.04);
}
.browser-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #F5F2EA;
  border-bottom: 1px solid rgba(15, 13, 11, 0.06);
}
.browser-dots { display: flex; gap: 0.4rem; }
.browser-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(15, 13, 11, 0.18);
}
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FFBD2E; }
.browser-dots span:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1; text-align: center;
  background: #fff;
  border: 1px solid rgba(15, 13, 11, 0.08);
  padding: 0.35rem 1rem; border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: rgba(15, 13, 11, 0.6);
  max-width: 280px; margin: 0 auto;
}

/* ── App header inside browser ── */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 13, 11, 0.06);
}
.app-logo {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #FF243C; color: #fff;
  padding: 0.25rem 0.55rem; border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
}
.app-logo::after {
  content: 'portal'; color: #0F0D0B;
  background: transparent;
  margin-inline-start: 0.4rem;
  font-weight: 500;
}
.app-header-right { display: flex; align-items: center; gap: 0.85rem; }
.app-lang {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: rgba(15, 13, 11, 0.55);
  letter-spacing: 0.04em;
}
.app-submit-btn {
  background: #FF243C; color: #fff;
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
}

/* ── Screens ── */
.app-screen {
  min-height: 420px;
  padding: 1.75rem 2rem;
  position: relative;
  background: #fff;
}
.screen-panel {
  animation: fadeIn 0.5s cubic-bezier(.2,.7,.2,1);
}
.screen-panel.hidden { display: none; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.screen-title {
  font-size: 1.05rem; font-weight: 600; color: #0F0D0B;
  margin-bottom: 1.25rem;
}
.screen-title span {
  font-weight: 400; color: rgba(15, 13, 11, 0.55);
}
.screen-footer { margin-top: 1.5rem; }
.screen-btn {
  display: inline-block;
  background: #FF243C; color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
}

/* ── Screen 1: Bundle picker ── */
.bundle-pick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.bp-card {
  position: relative;
  padding: 1.25rem 1rem;
  background: #FAF8F2;
  border: 1.5px solid rgba(15, 13, 11, 0.08);
  border-radius: 12px;
  transition: all 0.3s;
}
.bp-card.selected {
  border-color: #FF243C;
  background: #fff;
  box-shadow: 0 8px 24px -8px rgba(255, 36, 60, 0.2);
}
.bp-badge-pop {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  background: #FF243C; color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  white-space: nowrap;
}
.bp-tier {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FF243C; margin-bottom: 0.4rem;
}
.bp-name {
  font-size: 1.05rem; font-weight: 600; color: #0F0D0B;
  margin-bottom: 0.5rem;
}
.bp-price {
  font-size: 1.5rem; font-weight: 700; color: #0F0D0B;
}
.bp-usd {
  font-size: 0.75rem; font-weight: 500; opacity: 0.5;
}
@media (max-width: 700px) {
  .bundle-pick-grid { grid-template-columns: 1fr; }
}

/* ── Screen 2: Info form ── */
.info-form {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.info-field.full { grid-column: 1 / -1; }
.info-field label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(15, 13, 11, 0.5);
  margin-bottom: 0.35rem;
}
.fi-input {
  background: #FAF8F2;
  border: 1.5px solid rgba(15, 13, 11, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem; color: #0F0D0B;
}
.fi-input.filled { background: #fff; }
@media (max-width: 700px) {
  .info-form { grid-template-columns: 1fr; }
}

/* ── Screen 3: Payment ── */
.payment-layout {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}
.payment-card-visual {
  background: linear-gradient(135deg, #15120F 0%, #2A211D 100%);
  border-radius: 12px;
  padding: 1.5rem;
  color: #F5F2EA;
  margin-bottom: 1rem;
  position: relative; overflow: hidden;
}
.payment-card-visual::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,36,60,0.25), transparent 60%);
}
.card-chip {
  width: 36px; height: 26px;
  background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
  border-radius: 5px;
  margin-bottom: 1.25rem;
}
.card-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem; letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}
.card-meta {
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem; opacity: 0.7;
}
.pay-fields {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.pay-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pay-field label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(15, 13, 11, 0.5);
  margin-bottom: 0.3rem;
}
.pf-input {
  background: #FAF8F2;
  border: 1.5px solid rgba(15, 13, 11, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}
.pf-input.filled { background: #fff; }
.secure-badges {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.sec-badge {
  background: #FAF8F2;
  border: 1px solid rgba(15, 13, 11, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem; color: rgba(15, 13, 11, 0.65);
}
.pay-summary-box {
  background: #FAF8F2;
  border-radius: 12px;
  padding: 1.25rem;
}
.psb-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(15, 13, 11, 0.5);
  margin-bottom: 0.85rem;
}
.psb-bundle { font-size: 1.1rem; font-weight: 600; color: #0F0D0B; }
.psb-tier {
  font-size: 0.8rem; color: rgba(15, 13, 11, 0.55);
  margin-bottom: 1rem;
}
.psb-row {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(15, 13, 11, 0.06);
}
.psb-row:first-of-type { padding-top: 0.85rem; }
.psb-total {
  display: flex; justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(15, 13, 11, 0.10);
  margin-top: 0.5rem;
  font-weight: 700; color: #0F0D0B;
  font-size: 1rem;
}
.pay-btn {
  display: block;
  background: #FF243C; color: #fff;
  padding: 0.85rem; border-radius: 999px;
  text-align: center;
  font-size: 13px; font-weight: 600;
  margin-top: 0.85rem; cursor: pointer;
}
@media (max-width: 700px) {
  .payment-layout { grid-template-columns: 1fr; }
}

/* ── Screen 4: Confirm ── */
.confirm-screen { text-align: center; padding: 1.5rem 0; }
.confirm-circle {
  width: 76px; height: 76px; border-radius: 50%;
  background: #FF243C; color: #fff;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 300;
  box-shadow: 0 8px 32px -4px rgba(255, 36, 60, 0.4),
              0 0 0 8px rgba(255, 36, 60, 0.08);
  animation: pop 0.5s cubic-bezier(.2,.7,.2,1);
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.confirm-title {
  font-size: 1.4rem; font-weight: 600;
  color: #0F0D0B;
  margin-bottom: 0.75rem;
}
.confirm-sub {
  font-size: 0.95rem; line-height: 1.55;
  color: rgba(15, 13, 11, 0.62);
  max-width: 480px; margin: 0 auto 1.5rem;
}
.confirm-details {
  display: flex; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}
.cd-item { text-align: center; }
.cd-val {
  font-size: 1.5rem; font-weight: 700;
  color: #FF243C;
}
.cd-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(15, 13, 11, 0.55);
  margin-top: 0.25rem;
}
.confirm-ref {
  display: inline-block;
  background: rgba(255, 36, 60, 0.08);
  color: #FF243C;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  padding: 0.5rem 1rem; border-radius: 8px;
}

/* ── Screen 5: Email ── */
.email-client {
  background: #FAF8F2;
  border: 1px solid rgba(15, 13, 11, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.email-topbar {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 13, 11, 0.06);
}
.email-topbar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(15, 13, 11, 0.2);
  flex-shrink: 0;
}
.email-topbar-dot.unread { background: #FF243C; }
.email-subject { font-size: 0.9rem; font-weight: 600; color: #0F0D0B; }
.email-from {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: rgba(15, 13, 11, 0.5);
  margin-top: 0.15rem;
}
.email-body { padding: 1.25rem; }
.email-logo-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 13, 11, 0.06);
}
.email-body h3 {
  font-size: 1.1rem; font-weight: 600; color: #0F0D0B;
  margin-bottom: 0.5rem;
}
.email-body p {
  font-size: 0.9rem; line-height: 1.55;
  color: rgba(15, 13, 11, 0.62);
  margin-bottom: 1rem;
}
.email-cta {
  display: inline-block;
  background: #FF243C; color: #fff;
  padding: 0.65rem 1.25rem; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  cursor: pointer; margin-bottom: 1rem;
}
.email-details-box {
  background: #FAF8F2;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.edb-row {
  display: flex; justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  color: rgba(15, 13, 11, 0.7);
}

/* ── Screen 6: Account ── */
.account-screen {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.acct-card {
  background: #FAF8F2;
  border: 1px solid rgba(15, 13, 11, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
}
.acct-card.portal-access-card {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: #15120F;
  color: #F5F2EA;
  border-color: rgba(255, 36, 60, 0.3);
}
.acct-profile {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.acct-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #FF243C; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.05rem;
}
.acct-name { font-size: 0.95rem; font-weight: 600; color: #0F0D0B; }
.acct-email {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: rgba(15, 13, 11, 0.55);
  margin-top: 0.15rem;
}
.acct-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(40, 200, 100, 0.10);
  color: #28A65C;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.06em;
}
.acct-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #28A65C;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.acct-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.acct-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(15, 13, 11, 0.5);
  margin-bottom: 0.35rem;
}
.acct-value {
  font-size: 1.5rem; font-weight: 700; color: #FF243C;
  animation: walletCount 0.6s ease;
}
.acct-sub {
  font-size: 0.78rem; color: rgba(15, 13, 11, 0.55);
  margin-top: 0.25rem;
}
@keyframes walletCount {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.pac-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.pac-sub { font-size: 0.85rem; opacity: 0.65; line-height: 1.5; }
.pac-btn {
  background: #FF243C; color: #fff;
  padding: 0.65rem 1.25rem; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
@media (max-width: 700px) {
  .account-screen { grid-template-columns: 1fr; }
  .acct-card.portal-access-card { flex-direction: column; align-items: flex-start; }
}

/* ── Journey strip (below browser) ── */
.journey-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: 1100px; margin: 2.5rem auto 0;
}
.js-step {
  padding: 1.25rem 1rem;
  background: #FAF8F2;
  border: 1px solid rgba(15, 13, 11, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.js-step:hover, .js-step.active {
  background: #fff;
  border-color: rgba(255, 36, 60, 0.25);
  box-shadow: 0 8px 24px -10px rgba(15, 13, 11, 0.12);
}
.js-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.4rem; font-weight: 300;
  color: rgba(15, 13, 11, 0.2);
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}
.js-step.active .js-num { color: #FF243C; font-weight: 600; }
.js-title {
  font-size: 0.92rem; font-weight: 600; color: #0F0D0B;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.js-desc {
  font-size: 0.78rem; line-height: 1.45;
  color: rgba(15, 13, 11, 0.55);
}
@media (max-width: 900px) {
  .journey-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .journey-strip { grid-template-columns: 1fr; }
}

/* RTL adjustments */
:root[lang="ar"] .browser-dots { flex-direction: row-reverse; }

/* T-Portal logo in browser mockup — use actual SVG */
.app-logo {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
  letter-spacing: 0 !important;
  font-weight: normal !important;
  display: inline-flex !important;
  align-items: center !important;
}
.app-logo::after { content: none !important; }
.app-logo-svg {
  height: 24px;
  width: auto;
  color: #0F0D0B;
  display: block;
}