/* ---------------------------------------------
   BASE LAYOUT
----------------------------------------------*/

.gpd-account {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.125rem; /* 🔥 +25% base scale */
    line-height: 1.5;
}

/* Card */
.gpd-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 2.2rem;
    box-shadow: 0 10px 25px rgba(15,23,42,.06);
    margin-bottom: 2rem;
}

/* ---------------------------------------------
   HEADINGS
----------------------------------------------*/

.gpd-page-title {
    font-size: 1.7rem;
    font-weight: 600;
    margin: 0;
}

.gpd-section-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Product name (KEEP ORIGINAL SCALE) */
.gpd-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* ---------------------------------------------
   PILLS / BADGES / BUTTONS
----------------------------------------------*/

.gpd-pill {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.95rem;
}

.gpd-badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    background: #e5e7eb;
    color: #111827;
    margin-left: 0.5rem;
}

.gpd-badge--status {
    background: #dcfce7;
    color: #166534;
}

.gpd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.gpd-button--primary {
    background: #111827;
    color: #fff;
}

/* ---------------------------------------------
   GRID / STRUCTURE
----------------------------------------------*/

.gpd-product-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2rem;
}

/* ---------------------------------------------
   LISTS / ROWS
----------------------------------------------*/

.gpd-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gpd-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.05rem;
}

/* ---------------------------------------------
   DEFINITION LIST (DETAILS PANEL)
----------------------------------------------*/

.gpd-definition-list__row {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.05rem;
}

.gpd-definition-list__row dt {
    color: #6b7280;
    font-weight: 500;
}

.gpd-definition-list__row dd {
    margin: 0;
    text-align: right;
}

/* License key row special */
.gpd-definition-list__row--license dd {
    text-align: left;
}

/* ---------------------------------------------
   DOWNLOAD LINKS
----------------------------------------------*/

.gpd-download-link {
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------------------------------------------
   ACTIVATION SECTION
----------------------------------------------*/

.gpd-definition-list__row--activations {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.gpd-definition-list__row--activations dd {
    text-align: left;
}

/* Main activation layout */
.gpd-activation-management__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.2rem;
}

/* Sites list */
.gpd-activation-sites {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gpd-activation-site {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 999px;
    padding: 0.5rem 0.7rem 0.5rem 1rem;
    margin-bottom: 0.6rem;
}

/* Domain text */
.gpd-activation-site .site-domain {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buttons */
.gpd-activation-site .gpd-button {
    font-size: 0.95rem;
}

/* Add site form */
.gpd-add-site-form {
    display: grid;
    gap: 0.75rem;
}

.gpd-add-site-form input {
    min-height: 44px;
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #d1d5db;
}

.gpd-add-site-form button {
    min-height: 44px;
    font-size: 1rem;
}

/* ---------------------------------------------
   MOBILE
----------------------------------------------*/

@media (max-width: 768px) {
    .gpd-product-card__body,
    .gpd-activation-management__grid,
    .gpd-definition-list__row--activations {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------
   PURCHASES TABLE (FINAL TUNED)
----------------------------------------------*/

.gpd-table--purchases {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 1.15rem; /* 🔥 bigger, matches rest of UI */
}

/* Cells */
.gpd-table--purchases th,
.gpd-table--purchases td {
  padding: 0.9rem 1rem;
  vertical-align: top;
  line-height: 1.5;
}

/* Header */
.gpd-table--purchases th {
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

/* Rows */
.gpd-table--purchases td {
  border-bottom: 1px solid #f1f5f9;
}

.gpd-table--purchases tr:last-child td {
  border-bottom: none;
}

/* Compact columns stay tight */
.gpd-table--purchases th:nth-child(1),
.gpd-table--purchases td:nth-child(1),
.gpd-table--purchases th:nth-child(2),
.gpd-table--purchases td:nth-child(2),
.gpd-table--purchases th:nth-child(4),
.gpd-table--purchases td:nth-child(4),
.gpd-table--purchases th:nth-child(5),
.gpd-table--purchases td:nth-child(5) {
  width: 1%;
  white-space: nowrap;
}

/* Details column gets space */
.gpd-table--purchases th:nth-child(3),
.gpd-table--purchases td:nth-child(3) {
  width: auto;
  padding-left: 1.5rem; /* 👈 FIX alignment */
}

/* Details list reset */
.gpd-table--purchases ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual product rows */
.gpd-table--purchases li {
  margin: 0 0 0.4rem;
  padding-left: 0; /* remove bullet indent */
}

/* Optional: add subtle visual indent without bullets */
.gpd-table--purchases li::before {
  content: "— ";
  color: #9ca3af;
}

/* Links */
.gpd-table--purchases .gpd-link {
  white-space: nowrap;
  font-size: 1.05rem;
}

/* Align Details heading with Details content */
.gpd-table--purchases th:nth-child(3),
.gpd-table--purchases td:nth-child(3) {
  text-align: left;
  padding-left: 3.25rem;
}

/* Remove the dash if it makes alignment feel worse */
.gpd-table--purchases li::before {
  content: none;
}