/* CampusCart styles on top of Bootstrap 5. Colours match the project deck. */
:root {
  --cc-ink: #1F2A2E;
  --cc-deep: #0E3B36;
  --cc-teal: #1E8C78;
  --cc-amber: #F5A623;
  --cc-coral: #E4572E;
  --cc-mint: #EEF4F1;
  --cc-muted: #5C6B73;
  --bs-primary: #1E8C78;
  --bs-primary-rgb: 30, 140, 120;
  --bs-link-color: #1E8C78;
  --bs-link-color-rgb: 30, 140, 120;
  --bs-link-hover-color: #0E3B36;
  --bs-body-font-family: "Inter", system-ui, sans-serif;
  --bs-body-color: #1F2A2E;
}
body { background: #FAFCFB; }
h1, h2, h3, h4, .brand, .display-font { font-family: "Plus Jakarta Sans", "Inter", sans-serif; color: var(--cc-deep); }

.prototype-banner { background: var(--cc-deep); color: #9CCFC0; font-size: .78rem; padding: .3rem .75rem; }
.cc-nav { background: #fff; border-bottom: 1px solid #E3ECE8; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.35rem; color: var(--cc-deep) !important; }
.user-chip { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--cc-ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cc-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.verify-strip { background: #FFF4DE; color: #6B4A00; border-bottom: 1px solid #F5D9A0; }
.cc-footer { background: var(--cc-deep); color: #CFE5DE; }

.btn-primary { --bs-btn-bg: var(--cc-teal); --bs-btn-border-color: var(--cc-teal); --bs-btn-hover-bg: var(--cc-deep); --bs-btn-hover-border-color: var(--cc-deep); --bs-btn-active-bg: var(--cc-deep); --bs-btn-disabled-bg: var(--cc-teal); --bs-btn-disabled-border-color: var(--cc-teal); }
.btn-outline-primary { --bs-btn-color: var(--cc-teal); --bs-btn-border-color: var(--cc-teal); --bs-btn-hover-bg: var(--cc-teal); --bs-btn-hover-border-color: var(--cc-teal); --bs-btn-active-bg: var(--cc-deep); }
.btn-amber { background: var(--cc-amber); color: var(--cc-deep); font-weight: 600; border: 0; }
.btn-amber:hover { background: #E19410; color: var(--cc-deep); }
.text-teal { color: var(--cc-teal) !important; }
.bg-mint { background: var(--cc-mint) !important; }

/* Landing */
.hero { background: var(--cc-deep); color: #fff; border-radius: 0 0 2rem 2rem; }
.hero h1 { color: #fff; font-weight: 800; }
.hero .lead { color: #CFE5DE; }
.hero .search-box { max-width: 560px; }
.pillar-icon, .icon-badge { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--cc-teal); color: #fff; flex-shrink: 0; }
.icon-badge.amber { background: var(--cc-amber); color: var(--cc-deep); }
.icon-badge.coral { background: var(--cc-coral); }
.icon-badge.sm { width: 38px; height: 38px; font-size: 1.05rem; }

.cc-card { background: #fff; border: 1px solid #E3ECE8; border-radius: 1rem; }
.cc-card-mint { background: var(--cc-mint); border-radius: 1rem; }

/* Listings */
.listing-card { transition: transform .15s ease, box-shadow .15s ease; }
.listing-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.25rem rgba(14, 59, 54, .08); }
.listing-thumb { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 1rem 1rem 0 0; background: var(--cc-mint); }
.listing-thumb-placeholder { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--cc-teal); background: var(--cc-mint); border-radius: 1rem 1rem 0 0; }
.price { font-weight: 700; color: var(--cc-deep); }
.badge-condition { background: var(--cc-mint); color: var(--cc-deep); font-weight: 600; }

/* Auth pages */
.auth-card { max-width: 480px; }

/* Status pills */
.status-pill { font-size: .75rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; }
.status-ok { background: #DDF2EB; color: #0E5A4C; }
.status-wait { background: #FFF1D6; color: #7A5200; }
.status-bad { background: #FBE1DA; color: #8E2A10; }
.status-neutral { background: #E9EEF0; color: #3E4B51; }
.nav-search { max-width: 420px; }

/* Order progress */
.stepper { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.stepper li { flex: 1; text-align: center; font-size: .8rem; color: var(--cc-muted); position: relative; }
.stepper .dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .35rem; background: #E3ECE8; color: var(--cc-muted); font-weight: 700; position: relative; z-index: 1; }
.stepper li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: #E3ECE8; }
.stepper li:first-child::before { display: none; }
.stepper li.done .dot { background: var(--cc-teal); color: #fff; }
.stepper li.done::before, .stepper li.current::before { background: var(--cc-teal); }
.stepper li.current .dot { background: var(--cc-amber); color: var(--cc-deep); }
.stepper li.done, .stepper li.current { color: var(--cc-deep); font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0 0 1rem 1.25rem; border-left: 2px solid #E3ECE8; position: relative; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cc-teal); position: absolute; left: -6px; top: .35rem; }
.timeline li:last-child { border-left-color: transparent; }

/* Checkout */
.network-option { display: flex; align-items: center; gap: .6rem; border: 2px solid #E3ECE8; border-radius: .9rem; padding: .9rem 1rem; cursor: pointer; font-weight: 600; }
.network-option input { accent-color: var(--cc-teal); }
.network-option.mtn .network-name::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #FFCB05; margin-right: .5rem; vertical-align: -2px; }
.network-option.airtel .network-name::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #E40000; margin-right: .5rem; vertical-align: -2px; }
.network-option:has(input:checked) { border-color: var(--cc-teal); background: var(--cc-mint); }
.sim-phone { width: 300px; background: #111; border-radius: 2.2rem; padding: .9rem; box-shadow: 0 1rem 2rem rgba(0,0,0,.18); }
.sim-notch { width: 90px; height: 16px; background: #000; border-radius: 0 0 .7rem .7rem; margin: -.2rem auto .5rem; }
.sim-screen { background: linear-gradient(160deg, #0E3B36, #1E8C78); color: #fff; border-radius: 1.6rem; padding: 1.2rem; min-height: 420px; }
.sim-phone.mtn .sim-screen { background: linear-gradient(160deg, #2B2B2B, #4A4200); }
.sim-phone.airtel .sim-screen { background: linear-gradient(160deg, #3A0A0A, #8A1010); }
.sim-sms { background: #fff; color: var(--cc-ink); border-radius: 1rem 1rem 1rem .2rem; padding: .9rem 1rem; font-size: .9rem; }
.sim-sms.failed { border-left: 0; background: #FFE9E3; }
.pay-steps li { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; color: var(--cc-muted); }
.pay-steps .dot { width: 30px; height: 30px; border-radius: 50%; background: #E3ECE8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.pay-steps li.done { color: var(--cc-deep); }
.pay-steps li.done .dot { background: var(--cc-teal); color: #fff; }
.pay-steps li.current { color: var(--cc-deep); font-weight: 600; }
.pay-steps li.current .dot { background: var(--cc-amber); color: var(--cc-deep); }
.sim-prompt { background: rgba(255,255,255,.12); border-radius: 1rem; padding: 1rem; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--cc-teal); --bs-nav-link-color: var(--cc-teal); --bs-nav-link-hover-color: var(--cc-deep); }

/* Dashboard */
.stat-label { font-size: .8rem; color: var(--cc-muted); text-transform: uppercase; letter-spacing: .03em; }
.stat-value { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--cc-deep); }
.bell-count { position: absolute; top: 2px; right: -2px; background: var(--cc-coral); color: #fff; border-radius: 999px; font-size: .65rem; font-weight: 700; padding: .1rem .38rem; }

/* Ratings */
.stars { color: var(--cc-amber); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; font-size: 1.6rem; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { color: #D5DEDA; cursor: pointer; }
.star-input label:hover, .star-input label:hover ~ label, .star-input label:has(input:checked), .star-input label:has(input:checked) ~ label { color: var(--cc-amber); }
.star-input label:has(input:focus-visible) { outline: 2px solid var(--cc-teal); border-radius: 4px; }
