.wpt-account { padding: 48px 0; }
.wpt-account .container{ max-width:1100px; margin:0 auto; padding:0 20px; }

.wpt-account__header{
  display:flex; justify-content:space-between; align-items:flex-start; gap:14px;
  margin-bottom:18px;
}
.wpt-account__title{ margin:0; font-size:42px; line-height:1.1; color:#0f172a; }
.wpt-account__meta{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.wpt-account__email{ color:#64748b; font-weight:700; }

.wpt-account__layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:14px;
  align-items:start;
}
@media(max-width:900px){
  .wpt-account__layout{ grid-template-columns: 1fr; }
}

.wpt-tabs{
  display:flex;
  flex-direction:column;
  gap:12px;
  position:sticky;
  top: 18px;
}
@media(max-width:900px){
  .wpt-tabs{
    position:static;
    flex-direction:row;
    overflow:auto;
    padding-bottom:6px;
  }
}

.wpt-tabs__link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:12px;
  text-decoration:none;
  color:#334155;
  border:1px solid rgba(24,50,90,.10);
  background:#fff;
  font-weight:800;
  white-space:nowrap;
}
.wpt-tabs__link:hover{ background:#f8fbff; }
.wpt-tabs__link.is-active{
  border-color: rgba(31,91,255,.25);
  box-shadow: 0 12px 30px rgba(12,30,70,.08);
  color:#1d4ed8;
}

.wpt-card{
  background:#fff;
  border:1px solid rgba(24,50,90,.10);
  border-radius:14px;
  padding:18px;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.wpt-muted{ color:#64748b; }

.wpt-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:42px; padding:0 16px; border-radius:999px;
  text-decoration:none; font-weight:800;
}
.wpt-btn--primary{ background:#2563eb; color:#fff; }
.wpt-btn--primary:hover{ background:#1d4ed8; }
.wpt-btn--ghost{ background:#fff; color:#2563eb; border:1px solid #dbe3f0; }
.wpt-btn--ghost:hover{ background:#f8fbff; }

.wpt-grid-3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:14px; }
@media(max-width:900px){ .wpt-grid-3{ grid-template-columns:1fr; } }

.wpt-stat{
  border:1px solid rgba(24,50,90,.10);
  border-radius:14px;
  padding:14px;
  background:#fff;
}
.wpt-stat__label{ color:#64748b; font-weight:800; font-size:13px; }
.wpt-stat__value{ font-size:26px; font-weight:900; color:#0f172a; margin-top:6px; }
.wpt-stat__hint{ color:#94a3b8; font-weight:700; font-size:12px; margin-top:4px; }

.wpt-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }

.wpt-account__notice{
  border-radius:14px;
  padding:14px 16px;
  border:1px solid rgba(24,50,90,.10);
  background:#fff;
  margin-bottom:14px;
}
.wpt-account__notice--success{
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.06);
}
.wpt-account__notice-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.wpt-account__small{ margin-top:8px; font-size:12px; color:#64748b; font-weight:700; }

.wpt-empty{
  padding:14px;
  border:1px dashed rgba(24,50,90,.20);
  border-radius:14px;
  background:#fff;
}

/* ============================
   Account auth (logged out)
============================ */

.wpt-account__auth-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:24px;
}

@media(max-width:900px){
  .wpt-account__auth-grid{
    grid-template-columns:1fr;
  }
}

.wpt-label{
  display:block;
  font-size:13px;
  font-weight:800;
  color:#334155;
  margin-bottom:6px;
}

.wpt-input{
  width:100%;
  height:44px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(24,50,90,.15);
  background:#fff;
  font-size:14px;
  font-weight:700;
  color:#0f172a;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.wpt-input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.wpt-btn--block{
  width:100%;
  margin-top:14px;
}

.wpt-small{
  font-size:13px;
  color:#64748b;
  font-weight:700;
}

.wpt-small a{
  color:#2563eb;
  text-decoration:none;
  font-weight:800;
}

.wpt-small a:hover{
  text-decoration:underline;
}

/* Error notice */
.wpt-account__notice--error{
  border-color: rgba(220,38,38,.25);
  background: rgba(220,38,38,.06);
  color:#7f1d1d;
  font-weight:700;
}

/* Success screen */
.wpt-success{
  min-height: calc(100vh - 220px); /* adjust if your header/footer differ */
  display: grid;
  place-items: center;
  padding: 32px 0 56px;
}

.wpt-success__card{
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid rgba(24,50,90,.10);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
  text-align: center;
}

.wpt-success__icon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,163,74,.10);
  border: 1px solid rgba(22,163,74,.20);
  margin: 0 auto 12px;
  font-size: 22px;
}

.wpt-success__title{
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -.02em;
}

.wpt-success__text{
  margin: 10px 0 0;
  color: #64748b;
  font-weight: 600;
}

.wpt-success__ref{
  margin: 14px 0 0;
  color: #64748b;
  font-weight: 700;
}

.wpt-success__ref code{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(24,50,90,.10);
  background: #f8fafc;
  font-weight: 800;
  color: #0f172a;
  word-break: break-all;
}

.wpt-success__actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.wpt-success__icon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,163,74,.10);
  border: 1px solid rgba(22,163,74,.20);
  margin: 0 auto 12px;
  font-size: 22px; /* controls the FA icon size */
  color: #16a34a;   /* icon colour */
}

/* ---- Mobile: tabs become dropdown ---- */
.wpt-tabs--mobile{ display:none; }

.wpt-select{
  width:100%;
  height:44px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(24,50,90,.15);
  background:#fff;
  font-size:14px;
  font-weight:800;
  color:#0f172a;
}

/* Prevent background bleed under last card */
.wpt-account{
  background: none;
}

.wpt-account > .container{
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 70%);
  padding-bottom: 32px;
}

.wpt-card{
  position: relative;
  z-index: 2;
}

@media(max-width:900px){
  .wpt-account{
    padding-bottom: 0;
  }

  .wpt-account__layout{
    margin-bottom: 0;
  }

  .wpt-actions{
    margin-bottom: 0;
  }
}

.wpt-actions{
  padding-bottom: 6px;
}

/* Optional: make the two buttons equal width on desktop */
@media(min-width: 720px){
  .wpt-success__actions .wpt-btn{
    min-width: 180px;
  }
}

@media(max-width:900px){
  .wpt-account{ padding: 26px 0; }
  .wpt-account .container{ padding: 10px 16px; }

  .wpt-account__header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .wpt-account__title{
    font-size:34px;
    line-height:1.05;
  }

  .wpt-account__meta{
    width:100%;
    justify-content:space-between;
  }

  .wpt-account__email{
    font-size:13px;
    font-weight:800;
    word-break:break-word;
  }

  /* Buttons a bit smaller on mobile */
  .wpt-btn{
    height:40px;
    padding:0 14px;
  }

  /* Cards slightly tighter */
  .wpt-card{ padding:16px; }
  .wpt-stat{ padding:12px; }
}

@media(max-width:900px){
  .wpt-tabs--desktop{ display:none; }
  .wpt-tabs--mobile{ display:block; }
}

.wpt-table__head, .wpt-table__row{
  display:grid;
  grid-template-columns: 2.2fr 1.2fr 0.8fr 1.6fr 0.9fr;
  gap: 12px;
  align-items:center;
}

.wpt-table__head{
  font-weight:600;
  font-size:14px;
  padding: 10px 12px;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.wpt-table__row{
  padding: 10px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.wpt-product__body{
  max-width: 100%;
  overflow-x: hidden;
}

.wpt-table{
  width: 100%;
}

.wpt-account__main{ max-width:100%; overflow:hidden; }
.wpt-products, .wpt-product, .wpt-product__body, .wpt-table{ max-width:100%; }

@media (max-width: 820px){

  .wpt-table__head{ display:none; }

  .wpt-table__row{
    display:grid;
    grid-template-columns: 1fr;
    gap:10px;
    padding:12px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:14px;
    margin:10px 0;
    background:#fff;
  }

  .wpt-table__row > div{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    min-width:0;
  }

  .wpt-table__row > div::before{
    font-weight:800;
    color:#64748b;
    flex:0 0 auto;
  }

  /* TOKENS labels */
  .wpt-table--tokens .wpt-table__row > div:nth-child(1)::before{ content:"Token"; }
  .wpt-table--tokens .wpt-table__row > div:nth-child(2)::before{ content:"Status"; }
  .wpt-table--tokens .wpt-table__row > div:nth-child(3)::before{ content:"Bound site"; }
  .wpt-table--tokens .wpt-table__row > div:nth-child(4)::before{ content:"Expires"; }
  .wpt-table--tokens .wpt-table__row > div:nth-child(5)::before{ content:"Action"; }

  /* SITES labels */
  .wpt-table--sites .wpt-table__row > div:nth-child(1)::before{ content:"Site"; }
  .wpt-table--sites .wpt-table__row > div:nth-child(2)::before{ content:"Status"; }
  .wpt-table--sites .wpt-table__row > div:nth-child(3)::before{ content:"Token"; }
  .wpt-table--sites .wpt-table__row > div:nth-child(4)::before{ content:"Expires"; }
  .wpt-table--sites .wpt-table__row > div:nth-child(5)::before{ content:"Action"; }

  /* Make long values behave */
  .wpt-code{
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    max-width: 100%;
  }

  /* Bind form must not force width */
  .wpt-bind-form{
    width:100%;
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .wpt-bind-form .wpt-input{
    width:100%;
    max-width:100%;
  }

  .wpt-btn--small{
    width:100%;
  }
}

/* Grouped products */
.wpt-product{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  margin: 12px 0;
  overflow: hidden;
}

.wpt-product__summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wpt-product__summary::-webkit-details-marker{ display:none; }

.wpt-product__title{
  font-weight: 700;
  font-size: 16px;
}

.wpt-product__meta{
  margin-top: 2px;
  font-size: 13px;
}

.wpt-product__body{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.wpt-chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.8);
}

.wpt-code{
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.04);
}

.wpt-code{
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px){
  .wpt-code{
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.wpt-bind-form{
  display:flex;
  gap:8px;
  align-items:center;
}

.wpt-input{
  height:34px;
  padding: 0 10px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
}

.wpt-btn--small{
  height:34px;
  padding: 0 12px;
  border-radius:10px;
}

.wpt-notice{
  margin: 0 0 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.wpt-notice--success{
  background: rgba(0, 180, 90, 0.10);
  border: 1px solid rgba(0, 180, 90, 0.25);
}

.wpt-notice--error{
  background: rgba(220, 40, 40, 0.10);
  border: 1px solid rgba(220, 40, 40, 0.25);
}

/* Mobile form */
@media (max-width: 640px){

  .wpt-input{
	width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }

  .wpt-card p{
    margin-bottom: 12px;
  }

  .wpt-label{
    margin-bottom: 4px;
  }

}
