:root{
  --bg:#050813;
  --bg2:#0b1030;
  --card:#111628;
  --card2:#0b1025;
  --text:#f5f7ff;
  --muted:#a2a9c5;
  --border:#232842;
  --accent:#3fd0ff;
  --accent2:#7c5cff;
  --good:#00e0a4;
  --radius:18px;
  --radius2:26px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: radial-gradient(circle at top, var(--bg2) 0, var(--bg) 55%, #02030a 100%);
  color:var(--text);
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.container{
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.shell{
  background: linear-gradient(145deg, rgba(20, 26, 53, 0.98), rgba(5, 8, 20, 0.98));
  border:1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: 0 26px 60px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.02);
  padding: 18px 18px 22px;
  position:relative;
  overflow:hidden;
}
.shell::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(63, 208, 255, 0.22), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(124, 92, 255, 0.16), transparent 55%);
  opacity:0.24;
  pointer-events:none;
  z-index:-1;
}

.header{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand img{
  width:42px;height:42px;border-radius:999px;
  border:1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}
.brand h1{
  font-size: 1.25rem;
  letter-spacing:0.04em;
  text-transform: uppercase;
}
.brand .tagline{
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
}
.pill{
  font-size: 0.75rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(63, 208, 255, 0.4);
  background: radial-gradient(circle at top left, rgba(63, 208, 255, 0.15), transparent);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing:0.1em;
  white-space:nowrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(162,169,197,0.35);
  background: rgba(10, 14, 30, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
  cursor:pointer;
  text-decoration:none;
  transition: transform .12s ease, filter .12s ease;
  white-space: nowrap;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.05)}
.btn.primary{
  border-color: var(--accent);
  background: radial-gradient(circle at top left, rgba(63, 208, 255, 0.20), rgba(10, 16, 37, 0.95));
  color: var(--text);
}
.btn.good{
  border-color: var(--good);
  background: radial-gradient(circle at top left, rgba(0, 224, 164, 0.30), rgba(10, 20, 30, 0.95));
  color: #eafff7;
}
.btn.disabled{
  opacity:0.45;
  pointer-events:none;
  cursor:default;
}

.hero{
  margin: 8px 0 18px;
}
.hero h2{
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.hero p{
  color: var(--muted);
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.section{
  margin-top: 18px;
}
.section-head{
  display:flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.section-head h3{
  font-size: 1.1rem;
}
.section-head p{
  color: var(--muted);
  font-size: 0.9rem;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 740px){
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

.card{
  background: radial-gradient(circle at top left, #20274a, #101427);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px 14px;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, rgba(63, 208, 255, 0.08), transparent 45%);
  opacity:0;
  transition: opacity .18s ease-out;
  pointer-events:none;
}
.card:hover::after{opacity:1}

.card-top{
  display:flex;
  gap: 10px;
  align-items:center;
}
.card-top img{
  width:46px;height:46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  object-fit: contain;
}
.card-title{
  font-size: 0.98rem;
  font-weight: 650;
}
.card-meta{
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 1px;
}

.card-desc{
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.btnrow{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 2px;
}
.list{
  margin-top: 4px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.list a{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  color: var(--text);
  opacity:0.9;
}
.list a span{
  color: var(--muted);
  font-size: 0.78rem;
}

.footer{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}
.small-muted{color:var(--muted)}
hr.sep{border:0;height:1px;background:rgba(255,255,255,0.08); margin: 12px 0}
/* --- PayPal UI block --- */
.paypalWrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 10px;
}

.paypalLabel {
  font-size: 0.9rem;
  opacity: 0.9;
}

.paypalSlot {
  /* PayPal iframe/buttons will render here */
  min-height: 40px;
}

/* Disabled buy placeholder */
.btn-buy-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  cursor: not-allowed;
  user-select: none;
}

/* A tiny bit of card button spacing safety */
.cardButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
/* --- PayPal / Buy button support --- */

.btn.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(1);
}

.btn.buy {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.paypal-area {
  margin-top: 10px;
}

.paypal-hosted-wrap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.paypal-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.paypal-container {
  min-height: 40px;
}

.paypal-fallback {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}
/* --- Buy box (PayPal) --- */
.buy-box {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.buy-box[open] {
  background: rgba(255,255,255,0.06);
}

.buy-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.buy-summary::-webkit-details-marker { display: none; }

.buy-summary-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.buy-summary-hint {
  opacity: 0.7;
  font-size: 0.9em;
}

.buy-inner {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.buy-disabled {
  opacity: 0.75;
}

.buy-disabled-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.buy-disabled-desc {
  opacity: 0.8;
  font-size: 0.95em;
  line-height: 1.3;
}

/* Visually grey out disabled buy boxes */
.buy-box.is-disabled .buy-summary {
  opacity: 0.75;
}

.buy-box.is-disabled .buy-summary-hint {
  opacity: 0.6;
}
/* =========================
   PayPal Accordion (compact pill)
   ========================= */

.pp-accordion{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;                 /* pill outer */
  overflow: hidden;
  background: rgba(0,0,0,0.16);
}

/* When open, let the body have a rounded bottom */
.pp-accordion[open]{
  border-radius: 16px;                  /* card-like when expanded */
}

.pp-summary{
  list-style:none;
  cursor:pointer;
  user-select:none;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding: 8px 10px;                    /* smaller */
  background: rgba(255,255,255,0.06);
}

.pp-summary::-webkit-details-marker{display:none}

.pp-left{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

/* PayPal mark on the title line */
.pp-mark{
  width: 34px;                          /* smaller */
  height: auto;
  display:block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.pp-title{
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 0.86rem;                   /* smaller */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-right{
  display:inline-flex;
  align-items:center;
  gap:8px;
  opacity:0.95;
}

.pp-secure{
  font-size: 0.72rem;                   /* smaller */
  opacity: 0.9;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

.pp-caret{
  font-size: 11px;
  opacity: 0.85;
  transform: translateY(1px);
  transition: transform 160ms ease;
}

.pp-accordion[open] .pp-caret{
  transform: rotate(180deg) translateY(-1px);
}

.pp-body{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 0 0 16px 16px;
}

.pp-badges{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom: 8px;
  opacity: 0.95;
}

/* "Secure Checkout" badge image */
.pp-secured{
  height: 20px;                         /* smaller */
  width: auto;
  display:block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.pp-hosted-wrap{
  padding-top: 6px;
}

.pp-placeholder{
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
}

.pp-disabled .pp-summary{
  opacity: 0.7;
}

.pp-disabled .pp-secure{
  opacity: 0.75;
}
