@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root{--bg:#f6f8fc;--surface:#fff;--surface2:#f8fafc;--surface3:#eef3f8;--text:#101828;--muted:#667085;--line:#e4e7ec;--primary:#229ed9;--primary2:#635bff;--cyan:#06b6d4;--green:#10b981;--orange:#f59e0b;--red:#ef4444;--radius:18px;--shadow:0 8px 28px rgba(16,24,40,.07);--shadow2:0 18px 45px rgba(16,24,40,.12);--max:1180px;color-scheme:light}
html[data-theme="dark"]{--bg:#0b111a;--surface:#121a25;--surface2:#172231;--surface3:#1e2a3a;--text:#f8fafc;--muted:#98a6b8;--line:rgba(255,255,255,.1);--shadow:0 10px 30px rgba(0,0,0,.24);--shadow2:0 20px 55px rgba(0,0,0,.35);color-scheme:dark}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font:14px/1.6 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}a{text-decoration:none;color:inherit}button,input{font:inherit}button{cursor:pointer} .hidden{display:none!important}
/* UNIVERSAL NAVBAR — visually aligned with index/login/register */
#navbar{position:sticky;top:0;z-index:2000}.pt-nav{height:72px;background:color-mix(in srgb,var(--surface) 90%,transparent);border-bottom:1px solid var(--line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.pt-nav-inner{width:min(var(--max),calc(100% - 32px));height:72px;margin:auto;display:flex;align-items:center;gap:14px}.pt-menu-btn{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:13px;background:var(--surface2);color:var(--text)}.pt-menu-btn:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line));color:var(--primary)}.pt-brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:900}.pt-brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,var(--primary),#06b6d4);box-shadow:0 8px 22px rgba(34,158,217,.2)}.pt-brand-mark i{color:#fff}.pt-brand-name{letter-spacing:-.03em}.pt-spacer{flex:1}.pt-user-wrap{position:relative}.pt-user-btn{min-height:44px;display:flex;align-items:center;gap:8px;padding:5px 9px 5px 5px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text)}.pt-user-btn:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line))}.pt-avatar{width:34px;height:34px;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:800}.pt-avatar img{width:100%;height:100%;object-fit:cover}.pt-avatar-lg{width:48px;height:48px;border-radius:14px}.pt-name{font-weight:750;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pt-check{color:#229ed9}.pt-chevron{font-size:10px;color:var(--muted)}.pt-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:min(340px,calc(100vw - 24px));padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow2)}.pt-profile{display:flex;align-items:center;gap:11px;padding:6px}.pt-profile-text{min-width:0}.pt-profile-text strong,.pt-profile-text small{display:block}.pt-profile-text small{color:var(--muted);font-size:11px}.pt-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.pt-account-item{padding:11px;border:1px solid var(--line);border-radius:13px;background:var(--surface2)}.pt-account-item i{color:var(--primary);margin-right:6px}.pt-account-item strong,.pt-account-item small{display:block}.pt-account-item small{font-size:10px;color:var(--muted)}.pt-profile-link,.pt-link{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:11px}.pt-profile-link:hover,.pt-link:hover{background:var(--surface2)}.pt-link-icon{width:30px;text-align:center}.pt-link-arrow{margin-left:auto;color:var(--muted);font-size:11px}.pt-guest-actions{display:grid;gap:4px;margin-top:8px}.pt-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.48);z-index:2090;opacity:0;pointer-events:none;transition:.2s}.pt-backdrop.open{opacity:1;pointer-events:auto}.pt-drawer{position:fixed;top:0;left:0;bottom:0;width:min(340px,88vw);z-index:2100;background:var(--surface);border-right:1px solid var(--line);transform:translateX(-105%);transition:transform .25s ease;box-shadow:20px 0 50px rgba(0,0,0,.15);padding:18px;overflow:auto}.pt-drawer.open{transform:none}.pt-nav-lock{overflow:hidden}.pt-drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.pt-close{width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);color:var(--text)}
/* =========================================================
   PURCHASES — Marketplace Footer
   Self-contained footer layout for desktop, tablet & mobile
   ========================================================= */

.pastele-footer{
  width:100%;
  margin:42px 0 0;
  padding:40px 0 22px;
  background:var(--surface);
  border-top:1px solid var(--line);
  color:var(--text);
}

.pastele-footer *,
.pastele-footer *::before,
.pastele-footer *::after{
  box-sizing:border-box;
}

.footer-container{
  width:min(var(--max),calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(130px,1fr));
  gap:32px;
  align-items:start;
}

.footer-brand-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:var(--text);
  font-size:18px;
  line-height:1.2;
  font-weight:900;
}

.footer-brand-mark{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:linear-gradient(135deg,var(--primary),#06b6d4);
  color:#fff;
  box-shadow:0 8px 22px rgba(34,158,217,.16);
}

.footer-brand-mark i{
  color:#fff;
}

.footer-description{
  max-width:360px;
  margin:13px 0 12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.65;
}

.footer-platform-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

.footer-status-indicator{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 3px rgba(16,185,129,.10);
}

.footer-column{
  min-width:0;
  display:grid;
  align-content:start;
  gap:8px;
}

.footer-column h3{
  margin:0 0 5px;
  color:var(--text);
  font-size:12px;
  line-height:1.3;
  font-weight:850;
}

.footer-column a{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  width:max-content;
  max-width:100%;
  padding:2px 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  transition:color .16s ease,transform .16s ease;
}

.footer-column a:hover{
  color:var(--primary);
  transform:translateX(2px);
}

.footer-column a i{
  width:15px;
  flex:0 0 15px;
  text-align:center;
  color:currentColor;
}

.footer-bottom{
  width:min(var(--max),calc(100% - 32px));
  margin:30px auto 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

.footer-bottom > *{
  min-width:0;
}

.footer-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
}

.footer-meta span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}

.footer-meta i{
  color:var(--primary);
}

/* Footer dark mode */
html[data-theme="dark"] .pastele-footer{
  background:var(--surface);
}

html[data-theme="dark"] .footer-brand-mark{
  box-shadow:0 8px 24px rgba(34,158,217,.12);
}

/* Footer responsive */
@media(max-width:900px){
  .footer-container{
    grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(130px,1fr));
    gap:26px 24px;
  }

  .footer-brand-block{
    grid-column:1/-1;
  }

  .footer-description{
    max-width:620px;
  }
}

@media(max-width:640px){
  .pastele-footer{
    margin-top:32px;
    padding:32px 0 18px;
  }

  .footer-container{
    width:calc(100% - 24px);
    grid-template-columns:1fr 1fr;
    gap:24px 18px;
  }

  .footer-brand-block{
    grid-column:1/-1;
  }

  .footer-column a{
    font-size:11px;
  }

  .footer-bottom{
    width:calc(100% - 24px);
    margin-top:24px;
    padding-top:16px;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .footer-meta{
    justify-content:flex-start;
    gap:9px 13px;
  }
}

@media(max-width:420px){
  .footer-container{
    grid-template-columns:1fr;
    gap:20px;
  }

  .footer-brand-block,
  .footer-column{
    grid-column:auto;
  }

  .footer-description{
    font-size:11px;
  }
}


/* =========================================================
   PURCHASES — Marketplace Canonical UI
   Page-specific content only.
   Navbar/footer remain aligned with Marketplace.
   ========================================================= */

.purchases-main{
  min-height:calc(100vh - 72px);
}

.purchases-section{
  padding:42px 0 24px;
}

.purchases-container{
  width:min(var(--max),calc(100% - 32px));
  margin:auto;
}

/* ---------- Header ---------- */

.purchases-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}

.purchases-header-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:14px;
}

.purchases-icon{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  border:1px solid rgba(34,158,217,.18);
  border-radius:16px;
  background:linear-gradient(
    135deg,
    rgba(34,158,217,.12),
    rgba(99,91,255,.10)
  );
  color:var(--primary);
  font-size:20px;
}

.purchases-heading{
  min-width:0;
}

.purchases-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
  color:var(--primary);
  font-size:9px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.12em;
}

.purchases-heading h1{
  margin:0;
  font-size:clamp(30px,4vw,42px);
  line-height:1.08;
  letter-spacing:-.045em;
}

.purchases-heading p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}

.purchases-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.purchases-action-btn,
.purchases-market-btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  color:var(--text);
  font-size:11px;
  font-weight:800;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.purchases-action-btn:hover,
.purchases-market-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(34,158,217,.28);
  color:var(--primary);
  box-shadow:0 6px 18px rgba(16,24,40,.06);
}

.purchases-market-btn{
  border-color:var(--primary);
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  box-shadow:0 7px 20px rgba(34,158,217,.15);
}

.purchases-market-btn:hover{
  border-color:var(--primary);
  color:#fff;
  box-shadow:0 10px 24px rgba(34,158,217,.22);
}

/* ---------- Summary ---------- */

.purchases-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:20px;
}

.purchase-stat-card{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.purchase-stat-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow2);
  border-color:rgba(34,158,217,.2);
}

.purchase-stat-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
  font-size:15px;
}

.purchase-stat-icon.success{
  background:rgba(16,185,129,.11);
  color:var(--green);
}

.purchase-stat-icon.pending{
  background:rgba(245,158,11,.11);
  color:var(--orange);
}

.purchase-stat-icon.money{
  background:rgba(99,91,255,.10);
  color:var(--primary2);
}

.purchase-stat-content{
  min-width:0;
}

.purchase-stat-content span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
}

.purchase-stat-content strong{
  display:block;
  margin-top:2px;
  color:var(--text);
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}

/* ---------- Toolbar ---------- */

.purchases-toolbar{
  display:grid;
  grid-template-columns:minmax(220px,1fr) repeat(3,minmax(130px,160px)) auto;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
}

.purchases-search{
  position:relative;
  min-width:0;
}

.purchases-search>i{
  position:absolute;
  left:14px;
  top:50%;
  z-index:1;
  transform:translateY(-50%);
  color:var(--muted);
  pointer-events:none;
}

.purchases-search input{
  width:100%;
  height:46px;
  padding:0 40px 0 41px;
  border:1px solid var(--line);
  border-radius:13px;
  outline:none;
  background:var(--surface);
  color:var(--text);
  box-shadow:0 3px 12px rgba(16,24,40,.025);
  transition:border-color .18s ease,box-shadow .18s ease;
}

.purchases-search input::placeholder{
  color:var(--muted);
}

.purchases-search input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(34,158,217,.10);
}

.search-clear{
  position:absolute;
  right:6px;
  top:6px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:9px;
  background:var(--surface2);
  color:var(--muted);
}

.search-clear:hover{
  color:var(--primary);
}

.purchases-filter{
  min-width:0;
}

.purchases-filter select{
  width:100%;
  height:46px;
  min-width:0;
  padding:0 32px 0 12px;
  border:1px solid var(--line);
  border-radius:13px;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  background:
    linear-gradient(45deg,transparent 50%,var(--muted) 50%) calc(100% - 15px) 19px/5px 5px no-repeat,
    linear-gradient(135deg,var(--muted) 50%,transparent 50%) calc(100% - 11px) 19px/5px 5px no-repeat,
    var(--surface);
  color:var(--text);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

.purchases-filter select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(34,158,217,.10);
}

.purchases-reset-btn{
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  transition:.18s ease;
}

.purchases-reset-btn:hover{
  border-color:rgba(34,158,217,.28);
  color:var(--primary);
  background:var(--surface2);
}

/* ---------- Result bar ---------- */

.purchases-result-bar{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 12px;
  padding:0 2px;
}

.purchases-result-info{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
}

.purchases-result-info i{
  color:var(--primary);
}

/* ---------- Main content shell ---------- */

.purchases-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

/* JS-rendered purchase list */
.purchase-list{
  display:grid;
  gap:0;
}

.purchase-item{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  padding:17px;
  border-bottom:1px solid var(--line);
  transition:background .16s ease;
}

.purchase-item:last-child{
  border-bottom:0;
}

.purchase-item:hover{
  background:var(--surface2);
}

.purchase-item-main{
  min-width:0;
}

.purchase-item-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}

.purchase-item-title{
  min-width:0;
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  line-height:1.35;
  font-weight:850;
  letter-spacing:-.015em;
}

.purchase-item-meta{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:6px;
  color:var(--muted);
  font-size:10px;
}

.purchase-item-meta span{
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.purchase-item-description{
  margin:8px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

.purchase-item-description:empty{
  display:none;
}

/* Status badges */
.purchase-status,
.status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex:0 0 auto;
  min-height:25px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface2);
  color:var(--muted);
  font-size:9px;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
}

.purchase-status.paid,
.status-badge.paid,
.status-badge.success{
  border-color:rgba(16,185,129,.20);
  background:rgba(16,185,129,.09);
  color:#07824f;
}

.purchase-status.pending,
.status-badge.pending{
  border-color:rgba(245,158,11,.20);
  background:rgba(245,158,11,.10);
  color:#b54708;
}

.purchase-status.failed,
.status-badge.failed{
  border-color:rgba(239,68,68,.20);
  background:rgba(239,68,68,.09);
  color:#b42318;
}

.purchase-status.cancelled,
.status-badge.cancelled{
  border-color:rgba(98,108,122,.18);
  background:var(--surface2);
  color:var(--muted);
}

/* Common dynamic detail structures */
.purchase-details,
.purchase-detail-grid,
.purchase-item-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.purchase-detail,
.purchase-detail-chip,
.detail-chip{
  min-width:0;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface2);
  color:var(--text);
  font-size:10px;
}

.purchase-detail small,
.purchase-detail-chip small,
.detail-chip small{
  display:block;
  margin-bottom:2px;
  color:var(--muted);
  font-size:8px;
  font-weight:700;
}

.purchase-detail strong,
.purchase-detail-chip strong,
.detail-chip strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
}

/* Price / purchase info */
.purchase-price{
  color:var(--primary);
  font-size:14px;
  font-weight:900;
}

.purchase-price.free{
  color:#079455;
}

/* Right-side action area */
.purchase-item-actions,
.purchase-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
  align-self:center;
}

.purchase-btn,
.purchase-action-btn,
.purchase-access-btn{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  color:var(--text);
  font-size:10px;
  font-weight:800;
  transition:.18s ease;
}

.purchase-btn:hover,
.purchase-action-btn:hover,
.purchase-access-btn:hover{
  border-color:rgba(34,158,217,.28);
  color:var(--primary);
  background:var(--surface2);
  transform:translateY(-1px);
}

.purchase-access-btn,
.purchase-btn.primary{
  border-color:transparent;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
}

.purchase-access-btn:hover,
.purchase-btn.primary:hover{
  border-color:transparent;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  box-shadow:0 7px 18px rgba(34,158,217,.18);
}

.purchase-delete-btn,
.purchase-btn.danger{
  color:var(--red);
}

.purchase-delete-btn:hover,
.purchase-btn.danger:hover{
  border-color:rgba(239,68,68,.20);
  background:rgba(239,68,68,.07);
  color:var(--red);
}

/* ---------- Loading ---------- */

.purchases-loading{
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  padding:35px 20px;
  color:var(--muted);
  text-align:left;
}

.purchases-loading-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
  font-size:17px;
}

.purchases-loading-text strong,
.purchases-loading-text span{
  display:block;
}

.purchases-loading-text strong{
  color:var(--text);
  font-size:13px;
}

.purchases-loading-text span{
  margin-top:2px;
  font-size:10px;
}

/* ---------- Empty / error states generated by JS ---------- */

.purchases-empty,
.purchase-empty,
.purchases-error,
.purchase-error{
  min-height:220px;
  display:grid;
  place-items:center;
  padding:45px 20px;
  border:0;
  background:var(--surface);
  text-align:center;
}

.purchases-empty i,
.purchase-empty i,
.purchases-error i,
.purchase-error i{
  margin-bottom:10px;
  color:var(--primary);
  font-size:30px;
}

.purchases-empty strong,
.purchase-empty strong,
.purchases-error strong,
.purchase-error strong{
  display:block;
  color:var(--text);
  font-size:14px;
}

.purchases-empty span,
.purchase-empty span,
.purchases-error span,
.purchase-error span{
  display:block;
  max-width:480px;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}

.purchases-empty .btn,
.purchase-empty .btn,
.purchases-error .btn,
.purchase-error .btn{
  margin-top:14px;
}

/* ---------- Pagination ---------- */

.purchase-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:22px 0 8px;
}

.purchase-pagination button{
  min-width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:10px;
  font-weight:800;
  transition:.18s ease;
}

.purchase-pagination button:hover:not(:disabled){
  border-color:rgba(34,158,217,.28);
  color:var(--primary);
  background:var(--surface2);
}

.purchase-pagination button.active{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}

.purchase-pagination button:disabled{
  opacity:.42;
  cursor:not-allowed;
}

/* ---------- Quick actions ---------- */

.purchases-quick-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:20px;
}

.purchase-quick-card{
  min-width:0;
  display:flex;
  align-items:center;
  gap:11px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:var(--shadow);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.purchase-quick-card:hover{
  transform:translateY(-2px);
  border-color:rgba(34,158,217,.22);
  background:var(--surface2);
  box-shadow:var(--shadow2);
}

.purchase-quick-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
}

.purchase-quick-content{
  min-width:0;
  flex:1;
}

.purchase-quick-content strong,
.purchase-quick-content small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}

.purchase-quick-content strong{
  white-space:nowrap;
  font-size:12px;
}

.purchase-quick-content small{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}

.purchase-quick-arrow{
  flex:0 0 auto;
  color:var(--muted);
  font-size:10px;
  transition:.18s ease;
}

.purchase-quick-card:hover .purchase-quick-arrow{
  color:var(--primary);
  transform:translateX(2px);
}

/* ---------- Utility ---------- */

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* ---------- Dark mode details ---------- */

html[data-theme="dark"] .purchases-search input,
html[data-theme="dark"] .purchases-filter select{
  box-shadow:none;
}

html[data-theme="dark"] .purchases-market-btn{
  box-shadow:0 8px 24px rgba(34,158,217,.14);
}

html[data-theme="dark"] .purchase-status.paid,
html[data-theme="dark"] .status-badge.paid,
html[data-theme="dark"] .status-badge.success{
  color:#6ee7b7;
}

html[data-theme="dark"] .purchase-status.pending,
html[data-theme="dark"] .status-badge.pending{
  color:#fbbf24;
}

html[data-theme="dark"] .purchase-status.failed,
html[data-theme="dark"] .status-badge.failed{
  color:#fca5a5;
}

/* ---------- Responsive ---------- */

@media(max-width:1050px){
  .purchases-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .purchases-toolbar{
    grid-template-columns:minmax(0,1fr) repeat(2,minmax(130px,1fr));
  }

  .purchases-search{
    grid-column:1/-1;
  }

  .purchases-reset-btn{
    min-width:100px;
  }
}

@media(max-width:780px){
  .purchases-section{
    padding-top:28px;
  }

  .purchases-header{
    align-items:flex-start;
    flex-direction:column;
    gap:16px;
  }

  .purchases-header-actions{
    width:100%;
  }

  .purchases-action-btn,
  .purchases-market-btn{
    flex:1;
  }

  .purchases-toolbar{
    grid-template-columns:1fr 1fr;
  }

  .purchases-search{
    grid-column:1/-1;
  }

  .purchases-reset-btn{
    width:100%;
  }

  .purchase-item{
    grid-template-columns:1fr;
    gap:13px;
  }

  .purchase-item-actions,
  .purchase-actions{
    justify-content:flex-start;
  }

  .purchases-quick-actions{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .purchases-container{
    width:calc(100% - 20px);
  }

  .purchases-summary{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .purchase-stat-card{
    padding:13px;
    gap:9px;
    border-radius:15px;
  }

  .purchase-stat-icon{
    width:36px;
    height:36px;
    flex-basis:36px;
    border-radius:11px;
    font-size:13px;
  }

  .purchase-stat-content strong{
    font-size:15px;
  }

  .purchases-toolbar{
    grid-template-columns:1fr;
  }

  .purchases-search{
    grid-column:auto;
  }

  .purchases-heading h1{
    font-size:31px;
  }

  .purchases-heading p{
    font-size:12px;
  }

  .purchases-header-main{
    align-items:flex-start;
  }

  .purchases-icon{
    width:46px;
    height:46px;
    flex-basis:46px;
    border-radius:14px;
  }

  .purchase-details,
  .purchase-detail-grid,
  .purchase-item-details{
    grid-template-columns:1fr;
  }

  .purchase-item{
    padding:14px;
  }

  .purchase-item-title{
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }

  .purchase-item-head{
    align-items:flex-start;
  }

  .purchase-item-actions,
  .purchase-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
  }

  .purchase-btn,
  .purchase-action-btn,
  .purchase-access-btn{
    width:100%;
  }

  .purchases-loading{
    min-height:190px;
  }

  .purchase-quick-card{
    padding:13px;
  }
}

@media(prefers-reduced-motion:reduce){
  .purchase-stat-card,
  .purchases-action-btn,
  .purchases-market-btn,
  .purchase-item,
  .purchase-btn,
  .purchase-action-btn,
  .purchase-access-btn,
  .purchase-quick-card{
    transition:none!important;
  }
}

/* =========================================================
   PasTele Marketplace — Navbar Menu Polish
   Drawer menu only. Keep marketplace content untouched.
   ========================================================= */
.pt-nav-inner{gap:12px}
.pt-menu-btn{flex:0 0 42px;transition:all .18s ease}
.pt-brand{min-width:0;gap:9px}
.pt-brand-name{white-space:nowrap}
.pt-drawer{padding:0;display:flex;flex-direction:column;overflow:hidden}
.pt-drawer-head{flex:0 0 auto;margin:0;padding:18px 18px 15px;border-bottom:1px solid var(--line);background:var(--surface)}
.pt-drawer-title{min-width:0;display:flex;flex-direction:column;gap:2px}
.pt-drawer-title span{font-size:9px;font-weight:900;letter-spacing:.14em;color:var(--primary);text-transform:uppercase}
.pt-drawer-title strong{font-size:17px;line-height:1.25;letter-spacing:-.02em;color:var(--text)}
.pt-close-btn{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);color:var(--text);transition:all .18s ease}
.pt-close-btn:hover{background:rgba(34,158,217,.1);border-color:rgba(34,158,217,.3);color:var(--primary);transform:rotate(3deg)}
.pt-menu-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:14px 14px 8px;scrollbar-width:thin}
.pt-menu-scroll::-webkit-scrollbar{width:5px}
.pt-menu-scroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px}
.pt-group{margin:0 0 18px}
.pt-group:last-child{margin-bottom:10px}
.pt-group h3{margin:0 7px 7px;color:var(--muted);font-size:9px;line-height:1.2;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.pt-link{position:relative;width:100%;min-height:48px;display:flex;align-items:center;gap:11px;padding:8px 11px;border:1px solid transparent;border-radius:13px;background:transparent;color:var(--text);font-size:13px;font-weight:700;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.pt-group .pt-link + .pt-link{margin-top:4px}
.pt-link:hover{background:var(--surface2);border-color:var(--line);color:var(--text);transform:translateX(2px)}
.pt-link.active{background:rgba(34,158,217,.1);border-color:rgba(34,158,217,.22);color:var(--primary)}
.pt-link.active::before{content:"";position:absolute;left:-1px;top:10px;bottom:10px;width:3px;border-radius:0 4px 4px 0;background:var(--primary)}
.pt-link-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:var(--surface2);color:var(--muted);font-size:13px;transition:all .16s ease}
.pt-link:hover .pt-link-icon{color:var(--primary);background:rgba(34,158,217,.1)}
.pt-link.active .pt-link-icon{color:var(--primary);background:rgba(34,158,217,.13)}
.pt-link-label{min-width:0;flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-link-arrow{margin-left:auto;flex:0 0 auto;color:var(--muted);font-size:9px;transition:transform .16s ease,color .16s ease}
.pt-link:hover .pt-link-arrow{color:var(--primary);transform:translateX(2px)}
.pt-forum-trigger{margin:0 14px 8px;width:calc(100% - 28px);background:var(--surface2);border-color:var(--line)}
.pt-forum-trigger:hover{background:rgba(34,158,217,.08);border-color:rgba(34,158,217,.22)}
.pt-drawer-bottom{flex:0 0 auto;padding:10px 14px 14px;border-top:1px solid var(--line);background:var(--surface)}
.pt-drawer-socials{display:flex;gap:7px;margin-bottom:9px;padding:0 2px}
.pt-drawer-socials a{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--muted);transition:all .16s ease}
.pt-drawer-socials a:hover{color:var(--primary);border-color:rgba(34,158,217,.25);transform:translateY(-1px)}
.pt-drawer-bottom .pt-link{min-height:46px}
.pt-drawer-bottom .pt-link.logout{color:var(--red)}
.pt-drawer-bottom .pt-link.logout .pt-link-icon{color:var(--red);background:rgba(239,68,68,.08)}
.pt-drawer-bottom .pt-link.logout:hover{background:rgba(239,68,68,.07);border-color:rgba(239,68,68,.18)}
.pt-socials{display:flex;gap:7px;flex-wrap:wrap;padding:2px 6px 10px}
.pt-socials a{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--muted)}
.pt-socials a:hover{color:var(--primary);border-color:rgba(34,158,217,.25)}
.pt-social-empty{font-size:10px;color:var(--muted);padding:5px 0}
.pt-profile-link{border:1px solid transparent;transition:all .16s ease}
.pt-profile-link:hover{border-color:var(--line)}
.pt-guest-actions{gap:5px}
.pt-guest-actions .pt-profile-link{background:var(--surface2);border-color:var(--line)}
.pt-account-item{display:flex;align-items:center;gap:7px;min-width:0;color:var(--text);font-size:11px}
.pt-account-item span{min-width:0;flex:1}
.pt-account-item strong{margin-left:auto;font-size:11px;text-align:right}
button.pt-account-item{width:100%;text-align:left;cursor:pointer}

@media(max-width:520px){
  .pt-drawer{width:min(320px,88vw)}
  .pt-drawer-head{padding:15px 14px 13px}
  .pt-menu-scroll{padding:12px 10px 7px}
  .pt-group{margin-bottom:15px}
  .pt-group h3{margin-left:7px}
  .pt-link{min-height:46px;padding:7px 10px}
  .pt-link-icon{width:32px;height:32px;flex-basis:32px}
  .pt-forum-trigger{margin-left:10px;margin-right:10px;width:calc(100% - 20px)}
  .pt-drawer-bottom{padding:9px 10px 12px}
}


/* =========================================================
   PURCHASES — COLLAPSED / EXPANDABLE ITEMS
   ========================================================= */

.purchase-list{
  display:grid;
  gap:10px;
}

.purchase-item.purchase-collapsed{
  display:block;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 5px 18px rgba(16,24,40,.045);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.purchase-item.purchase-collapsed:hover{
  border-color:rgba(34,158,217,.22);
  box-shadow:0 9px 25px rgba(16,24,40,.07);
}

.purchase-item.purchase-collapsed.is-expanded{
  border-color:rgba(34,158,217,.28);
  box-shadow:0 12px 30px rgba(16,24,40,.09);
}

.purchase-summary-toggle{
  width:100%;
  min-height:72px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 14px;
  border:0;
  background:transparent;
  color:var(--text);
  text-align:left;
}

.purchase-summary-toggle:hover{
  background:var(--surface2);
}

.purchase-summary-main{
  min-width:0;
  flex:1;
  display:flex;
  align-items:center;
  gap:11px;
}

.purchase-summary-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
}

.purchase-summary-icon.type-link{color:var(--primary2);background:rgba(99,91,255,.10)}
.purchase-summary-icon.type-code{color:var(--primary);background:rgba(34,158,217,.10)}
.purchase-summary-icon.type-channel{color:var(--cyan);background:rgba(6,182,212,.10)}
.purchase-summary-icon.type-group{color:var(--green);background:rgba(16,185,129,.10)}

.purchase-summary-text{
  min-width:0;
  flex:1;
  display:grid;
  gap:3px;
}

.purchase-summary-title{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  line-height:1.35;
  font-weight:850;
  color:var(--text);
}

.purchase-summary-meta{
  min-width:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}

.purchase-summary-dot{
  color:var(--line);
}

.purchase-summary-meta .purchase-status{
  font-size:9px;
  padding:3px 7px;
}

.purchase-summary-price{
  flex:0 0 auto;
  margin-left:8px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
  color:var(--text);
}

.purchase-summary-chevron{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface2);
  color:var(--muted);
  font-size:10px;
  transition:transform .2s ease,color .18s ease,border-color .18s ease;
}

.purchase-item.is-expanded .purchase-summary-chevron{
  transform:rotate(180deg);
  color:var(--primary);
  border-color:rgba(34,158,217,.25);
}

.purchase-detail{
  border-top:1px solid var(--line);
}

.purchase-detail[hidden]{
  display:none;
}

.purchase-detail-inner{
  padding:16px;
  background:linear-gradient(180deg,var(--surface2),var(--surface));
}

.purchase-detail-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:15px;
}

.purchase-detail-heading h3{
  margin:5px 0 0;
  font-size:16px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:-.02em;
}

.purchase-detail-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--primary);
  font-size:9px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.09em;
}

.purchase-detail-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

.purchase-detail-field{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
}

.purchase-detail-field span{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:9px;
  font-weight:650;
}

.purchase-detail-field strong{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--text);
  font-size:11px;
  font-weight:850;
}

.purchase-code-value{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}

.purchase-link-box{
  margin-top:10px;
  padding:12px;
  border:1px dashed rgba(34,158,217,.3);
  border-radius:13px;
  background:rgba(34,158,217,.045);
}

.purchase-link-box>span{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
  color:var(--primary);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
}

.purchase-link-box code{
  display:block;
  overflow:auto;
  padding:8px 9px;
  border-radius:9px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  white-space:nowrap;
}

.purchase-detail-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.purchase-detail-actions .purchase-access-btn,
.purchase-detail-actions .purchase-copy-btn,
.purchase-detail-actions .purchase-delete-btn{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:10px;
  font-weight:800;
}

.purchase-detail-actions .purchase-access-btn{
  border-color:var(--primary);
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
}

.purchase-detail-actions .purchase-copy-btn:hover{
  border-color:rgba(34,158,217,.3);
  color:var(--primary);
  background:var(--surface2);
}

.purchase-detail-actions .purchase-delete-btn{
  color:var(--red);
  border-color:rgba(239,68,68,.18);
}

.purchase-detail-actions .purchase-delete-btn:hover{
  background:rgba(239,68,68,.06);
  border-color:rgba(239,68,68,.3);
}

.purchase-detail-actions .is-disabled{
  opacity:.55;
  cursor:not-allowed;
}

@media(max-width:780px){
  .purchase-summary-toggle{
    min-height:68px;
    padding:10px 11px;
  }

  .purchase-summary-price{
    font-size:11px;
  }

  .purchase-detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px){
  .purchase-summary-main{
    gap:9px;
  }

  .purchase-summary-icon{
    width:36px;
    height:36px;
    flex-basis:36px;
    border-radius:10px;
  }

  .purchase-summary-title{
    font-size:12px;
  }

  .purchase-summary-meta{
    font-size:9px;
  }

  .purchase-summary-price{
    display:none;
  }

  .purchase-summary-chevron{
    width:30px;
    height:30px;
    flex-basis:30px;
  }

  .purchase-detail-inner{
    padding:13px;
  }

  .purchase-detail-heading{
    flex-direction:column;
    gap:9px;
  }

  .purchase-detail-grid{
    grid-template-columns:1fr 1fr;
  }

  .purchase-detail-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .purchase-detail-actions>*{
    width:100%;
  }
}

@media(max-width:360px){
  .purchase-detail-grid{
    grid-template-columns:1fr;
  }

  .purchase-detail-actions{
    grid-template-columns:1fr;
  }
}

@media(prefers-reduced-motion:reduce){
  .purchase-item.purchase-collapsed,
  .purchase-summary-chevron{
    transition:none;
  }
}


/* PasTele NAV MENU — Create dropdown + menu badges */
.pt-create-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;font-weight:850;cursor:pointer;transition:.18s ease}
.pt-create-toggle span{display:flex;align-items:center;gap:8px}.pt-create-toggle span i{color:var(--primary)}
.pt-create-toggle:hover,.pt-create-toggle.is-open{border-color:rgba(34,158,217,.28);background:rgba(34,158,217,.06);color:var(--primary)}
.pt-create-chevron{font-size:10px;color:var(--muted);transition:transform .18s ease}.pt-create-toggle.is-open .pt-create-chevron{transform:rotate(180deg)}
.pt-create-items{padding-left:7px;border-left:1px solid rgba(34,158,217,.16);margin-left:8px}.pt-create-items[hidden]{display:none!important}
.pt-menu-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:31px;height:19px;padding:0 7px;border-radius:999px;background:rgba(99,91,255,.10);border:1px solid rgba(99,91,255,.18);color:#635bff;font-size:9px;font-weight:900;line-height:1;white-space:nowrap}
.pt-menu-badge-count{background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.18);color:#ef4444}.pt-menu-badge-count[hidden]{display:none!important}

/* INLINE GLASS UI — kept in this page stylesheet; no extra global CSS file. */
/* Canonical visual layer — colorful glassmorphism + auto day/night theme.
   Loaded after page CSS so cards/forms/nav/footer share one visual language without replacing page layouts. */
:root{
  --glass-bg:rgba(255,255,255,.62);
  --glass-bg-strong:rgba(255,255,255,.78);
  --glass-border:rgba(255,255,255,.72);
  --glass-border-soft:rgba(99,91,255,.20);
  --glass-shadow:0 18px 55px rgba(31,38,135,.12),0 4px 18px rgba(34,158,217,.08);
  --glass-text:#101828;
  --glass-muted:#667085;
  --glass-cyan:#00d4ff;
  --glass-blue:#2f6bff;
  --glass-violet:#7c3aed;
  --glass-pink:#ec4899;
  --glass-orange:#f59e0b;
  --glass-green:#10b981;
  --glass-purple:#8b5cf6;
}
html[data-theme="dark"]{
  --glass-bg:rgba(12,18,35,.62);
  --glass-bg-strong:rgba(17,25,45,.78);
  --glass-border:rgba(255,255,255,.15);
  --glass-border-soft:rgba(139,92,246,.34);
  --glass-shadow:0 22px 65px rgba(0,0,0,.34),0 5px 22px rgba(0,212,255,.07);
  --glass-text:#f8fafc;
  --glass-muted:#a9b4c7;
}
html,body{transition:background-color .35s ease,color .25s ease}
body{
  background:
    radial-gradient(circle at 8% 8%,rgba(236,72,153,.10),transparent 28%),
    radial-gradient(circle at 92% 10%,rgba(0,212,255,.12),transparent 30%),
    radial-gradient(circle at 55% 90%,rgba(124,58,237,.09),transparent 34%),
    var(--bg,#f7f9ff);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 8% 8%,rgba(236,72,153,.12),transparent 30%),
    radial-gradient(circle at 92% 10%,rgba(0,212,255,.10),transparent 30%),
    radial-gradient(circle at 55% 90%,rgba(124,58,237,.13),transparent 36%),
    var(--bg,#080d18);
}
/* Shared glass surfaces. */
:is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card,.hero-plan,.hero-balance,.market-toolbar,.market-tabs,.checkout-summary,form){
  position:relative;
  background:linear-gradient(135deg,rgba(255,255,255,.20),rgba(255,255,255,.04)) padding-box,var(--glass-bg) border-box;
  border:1px solid transparent;
  border-radius:20px;
  box-shadow:var(--glass-shadow);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
}
html[data-theme="dark"] :is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card,.hero-plan,.hero-balance,.market-toolbar,.market-tabs,.checkout-summary,form){
  background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.015)) padding-box,var(--glass-bg) border-box;
}
:is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card,.hero-plan,.hero-balance,.market-toolbar,.market-tabs,.checkout-summary){overflow:hidden}
/* Iridescent edge/highlight inspired by the supplied logo. */
:is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card):before{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(120deg,rgba(0,212,255,.10),transparent 28%,rgba(236,72,153,.08) 52%,transparent 76%,rgba(124,58,237,.10));
  opacity:.75;
}
:is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card):hover{
  transform:translateY(-2px);
  box-shadow:0 24px 70px rgba(31,38,135,.15),0 6px 24px rgba(0,212,255,.09);
}
:is(input,select,textarea){
  background:rgba(255,255,255,.52)!important;
  border-color:rgba(124,58,237,.20)!important;
  color:var(--glass-text)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
html[data-theme="dark"] :is(input,select,textarea){background:rgba(8,13,24,.58)!important;border-color:rgba(139,92,246,.30)!important}
:is(input,select,textarea):focus{border-color:rgba(0,212,255,.65)!important;box-shadow:0 0 0 4px rgba(0,212,255,.11),0 10px 30px rgba(124,58,237,.08)!important;outline:none}
:is(button,.btn,.button,.btn-primary,.primary,.market-tab,.hero-action,.period-switch button,.content-tab,.profile-content-tabs button){
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,border-color .18s ease;
}
:is(button,.btn,.button,.btn-primary,.primary):hover{filter:saturate(1.08);box-shadow:0 12px 30px rgba(124,58,237,.13)}
/* Gradient action surfaces. */
:is(.btn.primary,.btn-primary,.primary,.submit-btn,.auth-submit,.market-buy,.checkout-pay,.create-submit,.save-btn){
  background:linear-gradient(135deg,var(--glass-blue),var(--glass-violet) 48%,var(--glass-pink))!important;
  border-color:transparent!important;color:#fff!important;
  box-shadow:0 12px 30px rgba(99,91,255,.22)!important;
}
/* Canonical navbar/footer logo treatment. */
.pt-brand-mark,.footer-brand-mark{overflow:hidden;background:transparent!important;border:0!important;box-shadow:0 8px 24px rgba(124,58,237,.18)!important}
.pt-brand-mark img,.footer-brand-mark img{width:100%;height:100%;object-fit:contain;display:block}
.pt-nav{background:rgba(255,255,255,.62)!important;border-bottom-color:rgba(124,58,237,.16)!important;backdrop-filter:blur(24px) saturate(170%)!important;-webkit-backdrop-filter:blur(24px) saturate(170%)!important}
html[data-theme="dark"] .pt-nav{background:rgba(8,13,24,.70)!important;border-bottom-color:rgba(139,92,246,.22)!important}
.pastele-footer{background:rgba(255,255,255,.48)!important;border-top-color:rgba(124,58,237,.16)!important;backdrop-filter:blur(22px) saturate(150%)!important;-webkit-backdrop-filter:blur(22px) saturate(150%)!important}
html[data-theme="dark"] .pastele-footer{background:rgba(8,13,24,.56)!important;border-top-color:rgba(139,92,246,.22)!important}
@media (max-width:900px){
  :is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card,form){border-radius:17px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Desktop navigation — same source as mobile drawer. */
.pt-desktop-links{display:flex;align-items:center;gap:4px;min-width:0}
.pt-desktop-link{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 9px;border:1px solid transparent;border-radius:11px;background:transparent;color:inherit;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.pt-desktop-link:hover{background:rgba(124,58,237,.08);border-color:rgba(124,58,237,.14);transform:translateY(-1px)}
.pt-desktop-link i:first-child{color:var(--primary,#2f6bff)}
.pt-desktop-create{position:relative}
.pt-desktop-create-btn{cursor:pointer}
.pt-desktop-create-menu{position:absolute;top:calc(100% + 8px);left:0;width:250px;padding:8px;border:1px solid rgba(124,58,237,.18);border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 22px 55px rgba(31,38,135,.18);backdrop-filter:blur(24px) saturate(170%);z-index:2200}
html[data-theme="dark"] .pt-desktop-create-menu{background:rgba(12,18,35,.88);border-color:rgba(139,92,246,.28)}
.pt-desktop-create-menu .pt-link{display:flex;width:100%;color:var(--glass-text);text-decoration:none}
.pt-mini-badge,.pt-mini-notif{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:17px;padding:0 5px;border-radius:999px;background:linear-gradient(135deg,#06b6d4,#6366f1);color:#fff;font-size:8px;font-weight:900;line-height:1}
.pt-mini-badge.new{background:linear-gradient(135deg,#ec4899,#8b5cf6)}
.pt-mini-notif{background:linear-gradient(135deg,#f97316,#ec4899)}
.pt-brand-mark{width:42px!important;height:42px!important;padding:0!important}
.pt-brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important}
.footer-brand-mark{width:42px!important;height:42px!important;padding:0!important}
.footer-brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important}
@media (max-width:1180px){.pt-desktop-link{padding:0 7px}.pt-desktop-link span{display:none}.pt-desktop-link i:first-child{font-size:14px}.pt-mini-badge{display:none}}
@media (max-width:860px){.pt-desktop-links{display:none}.pt-menu-btn{display:grid!important}}
@media (min-width:861px){.pt-menu-btn{display:none!important}}
.auth-logo{overflow:hidden!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.auth-logo img{width:100%;height:100%;object-fit:contain;display:block}


/* CANONICAL NAVBAR POSITION FIX — keep navbar in document flow.
   This page owns its own CSS; no global chrome stylesheet is required. */
#navbar{
  position:sticky !important;
  top:0 !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  height:auto !important;
  z-index:5000 !important;
}
#navbar .pt-nav{
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  z-index:1 !important;
}
@media (max-width:700px){
  #navbar .pt-nav{height:64px !important;}
}

