/* Shared content-page chrome — matches dashboard language */

.gd-main.gd-page {
    max-width: none;
    width: 100%;
}

.gd-page .gd-page-header {
    display: none;
}

.gd-page-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gd-page-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.gd-page-top h1 {
    margin: 0 0 0.35rem;
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary, #f4f5f7);
}

.gd-page-top p {
    margin: 0;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.95rem;
}

.gd-page-top__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.gd-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    background: var(--bg-surface, #12151c);
    border-radius: 6px;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.82rem;
    font-weight: 600;
}

.gd-page-chip i {
    color: var(--ui-action, #0088cc);
    font-size: 0.78rem;
}

.gd-page-chip strong {
    color: var(--text-primary, #f4f5f7);
    font-weight: 650;
}

.gd-page-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.gd-page-block__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text-primary, #f4f5f7);
}

.gd-page-block__head p {
    margin: 0.2rem 0 0;
    color: var(--text-muted, #5b6270);
    font-size: 0.85rem;
}

.gd-page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}

.gd-page-back:hover {
    color: #fff;
    text-decoration: none;
}

.gd-page-empty {
    padding: 1.25rem 1rem;
    background: var(--bg-surface, #12151c);
    border-radius: 10px;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.92rem;
}

.gd-page-panel {
    padding: 1.1rem 1.15rem;
    background: var(--bg-surface, #12151c);
    border-radius: 10px;
}

.gd-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gd-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gd-page-btn--primary {
    background: var(--ui-action, #0088cc);
    color: #fff;
}

.gd-page-btn--primary:hover {
    background: var(--ui-action-hover, #0070a8);
    color: #fff;
    text-decoration: none;
}

.gd-page-btn--ghost {
    background: transparent;
    color: var(--text-secondary, #9ca3af);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.gd-page-btn--ghost:hover {
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    text-decoration: none;
}

.gd-page-btn--danger {
    background: transparent;
    color: #ff8a8a;
    box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.35);
}

.gd-page-btn--danger:hover {
    background: rgba(255, 107, 107, 0.08);
    color: #ffb0b0;
    text-decoration: none;
}

/* Profile — same language as dashboard / content pages */
.gd-profile {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.gd-profile__aside {
    display: grid;
    gap: 0.85rem;
}

.gd-profile-identity__head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.gd-profile-identity__avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1e2a38, #121820);
    color: #7ec8e3;
    font-size: 1.25rem;
    font-weight: 700;
}

.gd-profile-identity__name {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text-primary, #f4f5f7);
}

.gd-profile-identity__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.gd-profile-role {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: var(--ui-action-soft, rgba(0, 136, 204, 0.16));
    color: #7ec8e3;
    font-size: 0.72rem;
    font-weight: 700;
}

.gd-profile-facts {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.gd-profile-facts dt {
    margin: 0 0 0.2rem;
    color: var(--text-muted, #5b6270);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-profile-facts dd {
    margin: 0;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.gd-profile-links {
    display: grid;
    gap: 0.55rem;
}

.gd-profile-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-inset, #0e1015);
}

.gd-profile-link__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e2a38, #121820);
    color: #7ec8e3;
}

.gd-profile-link__body {
    min-width: 0;
}

.gd-profile-link__body strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text-primary, #f4f5f7);
    font-size: 0.9rem;
    font-weight: 650;
}

.gd-profile-link__body span {
    display: block;
    color: var(--text-muted, #5b6270);
    font-size: 0.82rem;
}

.gd-profile-link__action {
    color: var(--text-muted, #5b6270);
    padding: 0.35rem;
}

.gd-profile-link__action:hover {
    color: #fff;
    text-decoration: none;
}

.gd-profile__main {
    min-width: 0;
    display: grid;
    gap: 0.75rem;
}

.gd-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.gd-profile-tabs button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted, #5b6270);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
}

.gd-profile-tabs button:hover {
    color: var(--text-secondary, #9ca3af);
    background: rgba(255, 255, 255, 0.03);
}

.gd-profile-tabs button.is-active {
    color: var(--text-primary, #f4f5f7);
    background: var(--bg-surface, #12151c);
}

.gd-profile-panel .ucp-tab-panel {
    display: none;
    padding: 0;
}

.gd-profile-panel .ucp-tab-panel.active {
    display: block;
}

.gd-profile-record-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 1rem;
    padding: 0.15rem 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.gd-profile-record-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.3rem;
    min-height: 4.25rem;
    padding: 0.85rem 1.05rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.gd-profile-record-stat:last-child {
    border-right: 0;
}

.gd-profile-record-stat__label {
    display: block;
    margin: 0;
    color: var(--text-muted, #5b6270);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.gd-profile-record-stat__value {
    display: block;
    color: var(--text-primary, #f4f5f7);
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.gd-profile-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.gd-profile-subtabs button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted, #5b6270);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-size: 0.84rem;
    font-weight: 600;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.gd-profile-subtabs button.is-active {
    color: #fff;
    background: var(--ui-action, #0088cc);
    box-shadow: none;
}

.gd-profile-standing__card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.95rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.gd-profile-standing__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--status-good-soft, rgba(52, 211, 153, 0.12));
    color: var(--status-good, #34D399);
    font-size: 1.1rem;
}

.gd-profile-standing__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.gd-profile-standing__card.is-warn .gd-profile-standing__icon {
    background: var(--ui-action-soft, rgba(0, 136, 204, 0.16));
    color: var(--ui-action, #0088cc);
}

.gd-profile-standing__card.is-bad .gd-profile-standing__icon {
    background: rgba(224, 75, 75, 0.14);
    color: #ff8a8a;
}

.gd-profile-standing__eyebrow {
    margin-bottom: 0.2rem;
    color: var(--text-muted, #5b6270);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-profile-standing__status {
    margin: 0;
    color: var(--status-good, #34D399);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.gd-profile-standing__card.is-warn .gd-profile-standing__status {
    color: var(--ui-action, #0088cc);
}

.gd-profile-standing__card.is-bad .gd-profile-standing__status {
    color: #ff8a8a;
}

.gd-profile-standing__blurb,
.gd-profile-standing__meta {
    margin: 0;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.9rem;
    line-height: 1.45;
}

.gd-profile-standing__meta {
    margin-top: 0.35rem;
    color: var(--text-muted, #5b6270);
    font-size: 0.84rem;
}

.gd-profile-record-full {
    display: grid;
    gap: 0.75rem;
}

.gd-profile-record-clean {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.gd-profile-record-clean__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(71, 164, 71, 0.12);
    color: #6ecf6e;
}

.gd-profile-record-clean strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #f4f5f7);
    font-size: 1rem;
}

.gd-profile-record-clean p {
    margin: 0;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.9rem;
    line-height: 1.45;
}

.gd-profile-record-clean__note {
    margin-top: 0.45rem !important;
    color: var(--text-muted, #5b6270) !important;
    font-size: 0.84rem !important;
}

.gd-profile-record-block {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.gd-profile-record-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.gd-profile-record-block__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--text-primary, #f4f5f7);
}

.gd-profile-record-block__count {
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #9ca3af);
    font-size: 0.78rem;
    font-weight: 700;
}

.gd-profile-record-block:not(.is-empty) .gd-profile-record-block__count {
    background: rgba(0, 136, 204, 0.16);
    color: #7ec8e3;
}

.gd-profile-record-empty {
    margin: 0;
    color: var(--text-muted, #5b6270);
    font-size: 0.88rem;
}

.gd-profile-record-table {
    color: var(--text-secondary, #9ca3af);
    font-size: 0.86rem;
}

.gd-profile-record-table thead th {
    border-top: 0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #5b6270);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-profile-record-table td {
    border-top-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.gd-profile-record-footnote {
    margin: 0.15rem 0 0;
    color: var(--text-muted, #5b6270);
    font-size: 0.82rem;
}

.gd-profile-identity .gd-founder-badge {
    margin: 0;
}

@media (max-width: 960px) {
    .gd-profile {
        grid-template-columns: 1fr;
    }

    .gd-profile-record-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gd-profile-record-stat:nth-child(2n) {
        border-right: 0;
    }

    .gd-profile-record-stat:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 560px) {
    .gd-profile-record-stats {
        grid-template-columns: 1fr;
    }

    .gd-profile-record-stat {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .gd-profile-record-stat:last-child {
        border-bottom: 0;
    }

    .gd-profile-standing__card,
    .gd-profile-record-clean {
        grid-template-columns: 1fr;
    }
}

/* Public shared record page */
.gd-record-public {
    min-height: 100vh;
    background: var(--bg-app, #0b0d12);
}

.gd-record-public__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #0b0d12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gd-record-public__brand img {
    height: 48px;
    width: auto;
}

.gd-record-public__badge {
    color: var(--text-muted, #5b6270);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-record-public__label {
    margin: 0 0 0.25rem;
    color: var(--text-muted, #5b6270);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-record-public__identity {
    align-items: center;
    margin-bottom: 0.85rem;
}

.gd-record-public__name {
    margin: 0;
    color: var(--text-primary, #f4f5f7);
    font-size: 1.05rem;
    line-height: 1.3;
}

.gd-record-public__name-label {
    color: var(--text-muted, #5b6270);
    font-weight: 600;
}

.gd-record-public__name strong {
    font-weight: 700;
}

.gd-record-public__main {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1.1rem 2.5rem;
}

.gd-record-public__state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary, #9ca3af);
}

.gd-record-public__error {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.25rem;
    background: var(--bg-surface, #12151c);
    border-radius: 10px;
}

.gd-record-public__error strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #fff;
    font-size: 1.1rem;
}

.gd-record-public__error p {
    margin: 0 0 1rem;
    color: var(--text-secondary, #9ca3af);
}

.gd-record-public__footnote {
    margin: 1rem 0 0;
    color: var(--text-muted, #5b6270);
    font-size: 0.82rem;
    line-height: 1.45;
}

.gd-profile-share-note {
    margin: 0.65rem 0 0;
    color: var(--text-muted, #5b6270);
    font-size: 0.82rem;
}

/* Shop catalog */
.gd-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.gd-shop-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.05rem 1.1rem;
    background: var(--bg-surface, #12151c);
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.gd-shop-card:hover {
    background: var(--bg-surface-2, #171b24);
}

.gd-shop-card.is-disabled {
    opacity: 0.72;
}

.gd-shop-card.is-disabled:hover {
    background: var(--bg-surface, #12151c);
}

.gd-shop-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    background: linear-gradient(145deg, #1e2a38, #121820);
    color: #7ec8e3;
    font-size: 1.05rem;
}

.gd-shop-card__body {
    flex: 1 1 auto;
}

.gd-shop-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.gd-shop-card__topline h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.25;
}

.gd-shop-card__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 136, 204, 0.14);
    color: #7ec8e3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gd-shop-card__badge--soon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #5b6270);
}

.gd-shop-card__body p {
    margin: 0;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.86rem;
    line-height: 1.45;
}

.gd-shop-card__foot {
    margin-top: 1rem;
}

.gd-shop-card__foot .gd-page-btn {
    width: 100%;
}

.gd-shop-card__foot .gd-page-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.gd-shop-redeem {
    scroll-margin-top: 1.25rem;
}

.gd-shop-redeem__cost {
    color: var(--text-secondary, #9ca3af);
    font-size: 0.9rem;
    font-weight: 650;
}
