/* ============================================================
   Phone Mockup CSS
   ------------------------------------------------------------
   Faithful re-creation of the CardiBee app's mobile screens.
   Used as static visuals throughout the landing page.
   ============================================================ */

.phone {
  --w: 340px;
  --h: 700px;
  width: var(--w);
  height: var(--h);
  position: relative;
  border-radius: 46px;
  background: #0a0a0a;
  padding: 12px;
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 28px 60px -20px rgba(14,22,58,.45),
    0 60px 120px -40px rgba(14,22,58,.3),
    inset 0 1px 2px rgba(255,255,255,.05);
  flex-shrink: 0;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #F6F2E9;
  overflow: hidden;
  position: relative;
  color: var(--ink);
  font-family: var(--font-sans);
}
/* Dynamic island */
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
}

/* === Status bar === */
.p-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  height: 44px;
}
.p-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: .85;
}

/* === Content body === */
.p-body {
  padding: 12px 18px 90px;
  height: calc(100% - 44px);
  overflow: hidden;
}

/* === Page heading === */
.p-head {
  margin: 6px 0 16px;
}
.p-head h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.p-head .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.p-head .small {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
}

/* === Welcome row === */
.p-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 4px;
}
.p-welcome .sub-greet {
  font-size: 13px;
  color: var(--muted);
}
.p-welcome .name {
  font-size: 24px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -0.02em;
}
.p-welcome .actions {
  display: flex;
  gap: 8px;
}
.p-welcome .icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(14,22,58,.06);
  display: grid; place-items: center;
  position: relative;
  color: var(--ink);
}
.p-welcome .icon-btn.alert::after {
  content: "";
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  position: absolute;
  top: 6px; right: 8px;
}

/* === Search === */
.p-search {
  margin-top: 14px;
  height: 46px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

/* === Wallet card (navy) === */
.p-wallet {
  margin-top: 14px;
  background: linear-gradient(160deg, #1a2350 0%, #0E163A 60%, #0a0f2a 100%);
  border-radius: 22px;
  padding: 20px 18px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.p-wallet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(245,176,39,.18), transparent 50%);
  pointer-events: none;
}
.p-wallet .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.p-wallet .label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.p-wallet .count {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.p-wallet .info { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.p-wallet .view-btn {
  height: 38px;
  padding: 0 16px;
  background: var(--honey);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.p-wallet .cards-stack {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.p-card-mini {
  flex-shrink: 0;
  width: 232px;
  height: 142px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8C26B 0%, #C9A04A 50%, #B58A39 100%);
  position: relative;
  padding: 12px;
  color: #1a1108;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.p-card-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 30% 50%, rgba(255,255,255,.25), transparent 40%);
  pointer-events: none;
}
.p-card-mini .bank {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.p-card-mini .nickname {
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  margin-top: 2px;
  color: #2a1a08;
}
.p-card-mini .brand-name {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.1;
}
.p-card-mini .chip-sq {
  width: 26px; height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d4d4d4, #8d8d8d);
  margin-top: 22px;
  position: relative;
}
.p-card-mini .chip-sq::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 2px;
}
.p-card-mini .last4 {
  position: absolute;
  bottom: 28px; right: 12px;
  font-size: 10px;
  font-weight: 700;
}
.p-card-mini .visa {
  position: absolute;
  bottom: 10px; right: 12px;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
}
.p-card-mini .name {
  position: absolute;
  bottom: 24px; left: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.p-card-mini .num {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0,0,0,.7);
}
.p-card-mini.peek { opacity: .55; }

/* === Categories grid === */
.p-cats-title {
  margin: 18px 0 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.p-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.p-cat {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
}
.p-cat svg { width: 22px; height: 22px; }

/* === Filter pills === */
.p-pills {
  display: flex;
  gap: 8px;
  overflow: hidden;
  margin-top: 10px;
}
.p-pill {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.p-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* === Offer list === */
.p-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.p-results .sort {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; color: var(--ink);
}
.p-offers {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p-offer {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.p-offer .logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.logo-fp { background: linear-gradient(135deg, #FF4081 0%, #E91E63 100%); }
.logo-sd { background: linear-gradient(135deg, #FF6F3F 0%, #E94B1F 100%); }
.logo-mb { background: linear-gradient(135deg, #26C285 0%, #1B9C68 100%); }
.logo-dz { background: linear-gradient(135deg, #FF9F1C 0%, #E97B0F 100%); }
.logo-pa { background: linear-gradient(135deg, #FF4D4D 0%, #C92020 100%); }
.logo-ar { background: linear-gradient(135deg, #8C5BFF 0%, #5D33D6 100%); }

.p-offer .info { flex: 1; min-width: 0; }
.p-offer .merchant {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.p-offer .deal {
  font-size: 14px;
  font-weight: 800;
  margin-top: 1px;
  letter-spacing: -0.01em;
}
.p-offer .tags {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  /* let pills extend under the heart column so both fit on one line */
  margin-right: -38px;
}
.p-offer .tag {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.tag-off { background: var(--honey-soft); color: #8C5A00; }
.tag-exp { background: var(--orange-soft); color: #B33C00; }
.p-offer .heart {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--muted);
  align-self: flex-start;
}

/* === Bottom nav (in phone) === */
.p-tabs {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 78px;
  background: rgba(246,242,233,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: flex-start;
  padding: 10px 18px 0;
  justify-content: space-between;
}
.p-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  flex: 1;
}
.p-tab .ic {
  width: 36px; height: 28px;
  border-radius: 14px;
  display: grid; place-items: center;
  position: relative;
}
.p-tab.active { color: var(--ink); }
.p-tab.active .ic { background: var(--honey-soft); }
.p-tab.active .ic::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--honey);
}

/* === Profile-specific === */
.p-prof-card {
  background: linear-gradient(160deg, #1a2350 0%, #0E163A 60%, #0a0f2a 100%);
  color: #fff;
  border-radius: 22px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}
.p-prof-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(245,176,39,.16), transparent 50%);
}
.p-prof-card .head {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 1;
}
.p-prof-card .avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--honey);
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
}
.p-prof-card .name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.p-prof-card .phone-num { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.p-prof-card .divider {
  height: 1px; background: rgba(255,255,255,.12);
  margin: 16px 0 12px;
}
.p-prof-card .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative; z-index: 1;
}
.p-prof-card .stat .v {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
}
.p-prof-card .stat .k {
  font-size: 11px; color: rgba(255,255,255,.65); margin-top: 1px;
}

.p-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.p-list .item {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-list .item .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(14,22,58,.06);
  display: grid; place-items: center;
}
.p-list .item .label { font-size: 14px; font-weight: 700; flex: 1; }
.p-list .item .meta {
  font-size: 12px;
  color: var(--muted);
}
.p-list .item .badge-honey {
  width: 22px; height: 22px;
  background: var(--honey-soft);
  color: #8C5A00;
  font-size: 11px; font-weight: 800;
  border-radius: 50%;
  display: grid; place-items: center;
}

/* === Notifications screen === */
.p-notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px; margin-bottom: 18px;
}
.p-notif-head .left {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
}
.p-notif-head .back {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(14,22,58,.06);
  display: grid; place-items: center;
}
.p-notif-head .mark {
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.p-notif {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.p-notif.unread { background: rgba(255,233,181,.5); border-color: rgba(245,176,39,.3); }
.p-notif .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.p-notif .ic-orange { background: var(--orange-soft); color: var(--orange); }
.p-notif .ic-mint { background: var(--mint-soft); color: var(--mint); }
.p-notif .body { flex: 1; }
.p-notif .title { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.p-notif .desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.p-notif .dot {
  width: 8px; height: 8px;
  background: var(--ink); border-radius: 50%;
  align-self: flex-start; margin-top: 4px; flex-shrink: 0;
}

/* === Cards screen === */
.p-bigcard {
  margin-top: 6px;
  background: linear-gradient(135deg, #E8C26B 0%, #C9A04A 50%, #B58A39 100%);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  height: 175px;
  color: #1a1108;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.p-bigcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.22), transparent 50%);
}
.p-bigcard .bank { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; position: relative; }
.p-bigcard .brand-name {
  position: absolute; top: 16px; right: 16px;
  font-size: 13px; font-weight: 900; letter-spacing: 0.08em;
  text-align: right; line-height: 1.1;
}
.p-bigcard .nick {
  font-size: 13px; font-style: italic; font-weight: 700;
  color: #2a1a08; position: relative; margin-top: 2px;
}
.p-bigcard .chip-sq {
  width: 36px; height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d4d4d4, #8d8d8d);
  margin-top: 14px;
  position: relative;
}
.p-bigcard .credit {
  position: absolute; bottom: 40px; left: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.p-bigcard .holder {
  position: absolute; bottom: 25px; left: 16px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
}
.p-bigcard .last {
  position: absolute; bottom: 12px; left: 16px;
  font-size: 11px; font-weight: 700; color: rgba(0,0,0,.7);
}
.p-bigcard .net {
  position: absolute; bottom: 10px; right: 14px;
  font-size: 16px; font-weight: 900; font-style: italic;
}
.p-bigcard .contact {
  position: absolute; top: 90px; right: 16px;
  font-size: 11px; font-weight: 700;
}

.p-bigcard-info {
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  margin-top: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-bigcard-info .l .t { font-size: 14px; font-weight: 800; }
.p-bigcard-info .l .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.p-bigcard-info .acts { display: flex; gap: 8px; }
.p-bigcard-info .arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
}
