:root {
  --prp-navy: #0b2f4f;
  --prp-navy-deep: #071f36;
  --prp-blue: #174f7f;
  --prp-orange: #ff7a38;
  --prp-orange-dark: #ed6325;
  --prp-bg: #f4f7fb;
  --prp-text: #102a43;
  --prp-muted: #6b7f92;
  --prp-line: #dce6ef;
  --prp-white: #fff;
  --prp-shadow: 0 18px 50px rgba(11, 47, 79, .12);
}

body.prp-pwa-ready {
  --pazar-brand-navy: var(--prp-navy);
  --pazar-brand-orange: var(--prp-orange);
}

body.prp-app-page #main > #content {
  float: none !important;
  width: 100% !important;
}

body.prp-app-page #main > aside {
  display: none !important;
}

body.prp-app-page #content > .reading {
  width: 100% !important;
}

.prp-bottom-nav {
  display: none;
}

.prp-install-card {
  position: fixed;
  z-index: 999990;
  right: 22px;
  bottom: 22px;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--prp-navy-deep), var(--prp-blue));
  box-shadow: 0 24px 70px rgba(1, 22, 39, .35);
}

.prp-install-card[hidden],
.prp-network-status[hidden] { display: none !important; }
.prp-install-card img { width: 56px; height: 56px; border-radius: 16px; }
.prp-install-card div { min-width: 0; }
.prp-install-card strong,
.prp-install-card span { display: block; }
.prp-install-card strong { font-size: 15px; }
.prp-install-card span { margin-top: 3px; color: #d7e8f5; font-size: 12px; line-height: 1.35; }
.prp-install-card__button { border: 0; border-radius: 12px; padding: 11px 14px; color: #fff; background: var(--prp-orange); font-weight: 800; cursor: pointer; }
.prp-install-card__close { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; color: var(--prp-navy); background: #fff; font-size: 18px; line-height: 20px; cursor: pointer; box-shadow: 0 5px 16px rgba(0,0,0,.2); }

.prp-network-status {
  position: fixed;
  z-index: 1000000;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: #b42318;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.prp-account,
.prp-promo,
.prp-auth-card {
  width: min(1040px, calc(100% - 28px));
  margin: 32px auto 70px;
  color: var(--prp-text);
  font-family: inherit;
}

.prp-account-hero,
.prp-promo-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--prp-navy-deep), var(--prp-blue));
  box-shadow: var(--prp-shadow);
}

.prp-account-hero::after,
.prp-promo-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -90px;
  border: 42px solid rgba(255,122,56,.14);
  border-radius: 50%;
}

.prp-account-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 30px;
}
.prp-account-hero img { width: 88px; height: 88px; border: 4px solid rgba(255,255,255,.2); border-radius: 24px; }
.prp-account-hero span { color: #b9d3e8; font-size: 13px; }
.prp-account-hero h1 { margin: 2px 0 4px; color: #fff; font-size: 30px; }
.prp-account-hero p { margin: 0; color: #d9e8f3; }
.prp-account-hero > a { position: relative; z-index: 2; color: #fff; text-decoration: none; font-weight: 700; }

.prp-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.prp-account-actions a,
.prp-account-actions button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--prp-line);
  border-radius: 18px;
  color: var(--prp-text);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(11,47,79,.06);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.prp-account-actions strong { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 13px; background: var(--prp-orange); font-size: 24px; }
.prp-account-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.prp-panel {
  margin: 18px 0;
  padding: 24px;
  border: 1px solid var(--prp-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(11,47,79,.06);
}
.prp-panel__title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.prp-panel__title h2 { margin: 0; color: var(--prp-navy); font-size: 20px; }
.prp-panel__title span { color: var(--prp-muted); }
.prp-panel__title a { color: var(--prp-orange-dark); font-weight: 800; text-decoration: none; }
.prp-list article,
.prp-orders article { display: grid; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #edf2f6; }
.prp-list article { grid-template-columns: 62px 1fr auto; }
.prp-list__thumb { display: grid; place-items: center; width: 62px; height: 62px; overflow: hidden; border-radius: 14px; color: #fff; background: var(--prp-navy); font-weight: 900; }
.prp-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.prp-list article div:nth-child(2) strong,
.prp-list article div:nth-child(2) span,
.prp-orders article div strong,
.prp-orders article div span { display: block; }
.prp-list article a { color: var(--prp-blue); font-weight: 800; text-decoration: none; }
.prp-status,
.prp-order-status { width: max-content; margin-top: 5px; padding: 4px 8px; border-radius: 999px; color: #536779; background: #edf2f6; font-size: 11px; font-style: normal; font-weight: 800; }
.prp-status--publish,
.prp-order-status--approved { color: #067647; background: #ecfdf3; }
.prp-status--pending,
.prp-order-status--pending { color: #b54708; background: #fffaeb; }
.prp-order-status--rejected { color: #b42318; background: #fef3f2; }
.prp-orders article { grid-template-columns: 1fr auto auto; }
.prp-orders article b { color: var(--prp-navy); white-space: nowrap; }
.prp-empty { padding: 28px; border: 1px dashed #c9d8e5; border-radius: 16px; color: var(--prp-muted); text-align: center; }

.prp-promo-hero { padding: 42px; }
.prp-promo-hero span { color: #ffc29f; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.prp-promo-hero h1 { max-width: 680px; margin: 10px 0; color: #fff; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }
.prp-promo-hero p { max-width: 650px; margin: 0; color: #d9e8f3; font-size: 16px; line-height: 1.65; }
.prp-step-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.prp-step-title > b { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 14px; color: #fff; background: var(--prp-orange); font-size: 18px; }
.prp-step-title h2 { margin: 0; color: var(--prp-navy); font-size: 21px; }
.prp-step-title p { margin: 3px 0 0; color: var(--prp-muted); }
.prp-promo-form select,
.prp-promo-form textarea,
.prp-promo-form input[type="text"] { width: 100%; padding: 14px; border: 1px solid #cbd8e3; border-radius: 13px; color: var(--prp-text); background: #fff; font: inherit; }
.prp-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prp-package { position: relative; display: flex; flex-direction: column; min-height: 190px; padding: 22px; border: 2px solid #e1e9f0; border-radius: 20px; cursor: pointer; transition: .2s ease; }
.prp-package:hover,
.prp-package.is-selected { border-color: var(--prp-orange); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,122,56,.12); }
.prp-package input { position: absolute; opacity: 0; }
.prp-package__check { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #cbd8e3; border-radius: 50%; color: transparent; }
.prp-package.is-selected .prp-package__check { color: #fff; border-color: var(--prp-orange); background: var(--prp-orange); }
.prp-package strong { padding-right: 35px; color: var(--prp-navy); font-size: 18px; }
.prp-package p { flex: 1; margin: 10px 0; color: var(--prp-muted); line-height: 1.55; }
.prp-package b { color: var(--prp-orange-dark); font-size: 22px; }
.prp-bank-card { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; overflow: hidden; margin-bottom: 18px; border: 1px solid #d7e2eb; border-radius: 18px; background: #d7e2eb; }
.prp-bank-card > div { position: relative; padding: 16px; background: #f8fbfd; }
.prp-bank-card span,
.prp-bank-card strong { display: block; }
.prp-bank-card span { color: var(--prp-muted); font-size: 12px; }
.prp-bank-card strong { margin-top: 4px; color: var(--prp-navy); }
.prp-bank-card__iban { grid-column: 1 / -1; }
.prp-bank-card__iban button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 9px; padding: 8px 11px; color: #fff; background: var(--prp-navy); cursor: pointer; font-weight: 800; }
.prp-warning { margin-bottom: 18px; padding: 14px; border: 1px solid #fedf89; border-radius: 13px; color: #93370d; background: #fffaeb; }
.prp-upload-receipt { display: block; margin-bottom: 16px; padding: 16px; border: 1px dashed #b8c9d7; border-radius: 14px; background: #f8fbfd; }
.prp-upload-receipt span,
.prp-promo-form > section > label > span { display: block; margin-bottom: 8px; color: var(--prp-navy); font-weight: 800; }
.prp-upload-receipt small,
.prp-promo-form small { color: var(--prp-muted); font-weight: 400; }
.prp-primary-button,
.prp-secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; text-decoration: none !important; font-weight: 900; cursor: pointer; }
.prp-primary-button { color: #fff !important; background: linear-gradient(135deg, var(--prp-orange), var(--prp-orange-dark)); box-shadow: 0 10px 24px rgba(255,122,56,.24); }
.prp-secondary-button { color: var(--prp-navy) !important; border: 1px solid #cbd8e3; background: #fff; }
.prp-submit-order { width: 100%; font-size: 16px; }
.prp-legal-note { color: var(--prp-muted); font-size: 12px; text-align: center; }
.prp-success-card,
.prp-empty-card,
.prp-auth-card { padding: 42px 28px; border: 1px solid var(--prp-line); border-radius: 24px; background: #fff; box-shadow: var(--prp-shadow); text-align: center; }
.prp-success-card { margin-top: 18px; }
.prp-success-card i { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; color: #fff; background: #12b76a; font-size: 34px; font-style: normal; }
.prp-success-card h2,
.prp-empty-card h2,
.prp-auth-card h1 { margin: 18px 0 8px; color: var(--prp-navy); }
.prp-success-card p,
.prp-empty-card p,
.prp-auth-card p { max-width: 580px; margin: 0 auto 22px; color: var(--prp-muted); line-height: 1.65; }
.prp-auth-card img { width: 92px; height: 92px; border-radius: 24px; }
.prp-auth-card .prp-secondary-button { margin-left: 8px; }
.prm-owner-promote { display: flex !important; width: 100%; margin-top: 10px; justify-content: center; }

@media (display-mode: standalone) {
  body.prp-pwa-ready { padding-top: 0; }
  body.prp-pwa-ready #mainMenu { display: none !important; }
  body.prp-pwa-ready #wrapper { margin-top: 0 !important; }
}

@media (max-width: 782px) {
  body.prp-pwa-ready { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.prp-pwa-ready #mainMenu { display: none !important; }
  body.prp-pwa-ready .prh-mobile-nav { display: none !important; }
  .prp-bottom-nav {
    position: fixed;
    z-index: 999985;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 68px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: rgba(7,31,54,.96);
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
  }
  .prp-bottom-nav > a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #b9cddd; text-decoration: none; font-size: 10px; font-weight: 800; }
  .prp-bottom-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .prp-bottom-nav > a.is-active { color: #fff; }
  .prp-bottom-nav > a.is-active::after { content: ""; position: absolute; bottom: 5px; width: 18px; height: 3px; border-radius: 999px; background: var(--prp-orange); }
  .prp-bottom-nav__market { transform: translateY(-14px); }
  .prp-bottom-nav__market i { display: grid; place-items: center; width: 52px; height: 52px; border: 5px solid #f4f7fb; border-radius: 18px; color: #fff; background: linear-gradient(135deg,var(--prp-orange),var(--prp-orange-dark)); box-shadow: 0 9px 22px rgba(255,122,56,.35); }
  .prp-bottom-nav__market svg { width: 25px; height: 25px; }
  .prp-bottom-nav__market span { margin-top: -1px; }
  .prp-install-card { right: 14px; bottom: 92px; }
  .prp-account,
  .prp-promo,
  .prp-auth-card { width: min(100% - 20px, 720px); margin-top: 18px; margin-bottom: 30px; }
  .prp-account-hero { grid-template-columns: auto 1fr; padding: 22px; }
  .prp-account-hero img { width: 68px; height: 68px; border-radius: 20px; }
  .prp-account-hero h1 { font-size: 23px; }
  .prp-account-hero > a { grid-column: 1 / -1; width: max-content; }
  .prp-account-actions { gap: 9px; }
  .prp-account-actions a,
  .prp-account-actions button { padding: 14px 10px; font-size: 13px; }
  .prp-panel { padding: 17px; border-radius: 18px; }
  .prp-list article { grid-template-columns: 52px 1fr; }
  .prp-list__thumb { width: 52px; height: 52px; }
  .prp-list article > a { grid-column: 2; }
  .prp-orders article { grid-template-columns: 1fr auto; }
  .prp-orders article em { grid-column: 1 / -1; }
  .prp-promo-hero { padding: 28px 22px; border-radius: 22px; }
  .prp-promo-hero h1 { font-size: 30px; }
  .prp-package-grid { grid-template-columns: 1fr; }
  .prp-package { min-height: 165px; }
  .prp-bank-card { grid-template-columns: 1fr; }
  .prp-bank-card__iban { grid-column: auto; }
  .prp-auth-card .prp-primary-button,
  .prp-auth-card .prp-secondary-button { width: 100%; margin: 7px 0 0; }
}
