.hygfp-profile {
    --hygfp-card-bg: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
    --hygfp-card-border: rgba(33, 31, 32, 0.08);
    --hygfp-text: #211f20;
    --hygfp-muted: #5d5b5c;
    --hygfp-accent: #d0b8f4;
    --hygfp-accent-strong: #6b4fa8;
    --hygfp-shadow: 0 18px 40px rgba(33, 31, 32, 0.08);
    --hygfp-weight-regular: 400;
    --hygfp-weight-accent: 600;
    --hygfp-size-overline: 12px;
    --hygfp-size-caption: 13px;
    --hygfp-size-body: 15px;
    --hygfp-size-title: clamp(28px, 3vw, 40px);
    --hygfp-size-section: clamp(24px, 2vw, 28px);
    --hygfp-size-stat: clamp(22px, 1.9vw, 30px);
    color: var(--hygfp-text);
}

.hygfp-card {
    background: var(--hygfp-card-bg);
    border: 1px solid var(--hygfp-card-border);
    border-radius: 24px;
    box-shadow: var(--hygfp-shadow);
}

.hygfp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
    gap: 20px;
    padding: 28px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at top right, rgba(208, 184, 244, 0.32), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #fcf9ff 100%);
}

.hygfp-eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(107, 79, 168, 0.08);
    color: var(--hygfp-accent-strong);
    font-size: var(--hygfp-size-overline);
    font-weight: var(--hygfp-weight-accent);
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hygfp-title {
    margin: 14px 0 12px;
    font-size: var(--hygfp-size-title);
    font-weight: var(--hygfp-weight-regular);
    line-height: 1.05;
    color: var(--hygfp-text);
}

.hygfp-intro {
    max-width: 62ch;
    margin: 0;
    color: var(--hygfp-muted);
    font-size: var(--hygfp-size-body);
    font-weight: var(--hygfp-weight-regular);
    line-height: 1.7;
}

.hygfp-badges {
    display: grid;
    gap: 12px;
    margin: 0;
}

.hygfp-badge {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(107, 79, 168, 0.12);
}

.hygfp-badge dt {
    margin: 0 0 6px;
    color: var(--hygfp-muted);
    font-size: var(--hygfp-size-overline);
    font-weight: var(--hygfp-weight-regular);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hygfp-badge dd {
    margin: 0;
    color: var(--hygfp-text);
    font-size: 18px;
    line-height: 1.35;
    font-weight: var(--hygfp-weight-accent);
}

.hygfp-badge-link {
    color: var(--hygfp-accent-strong);
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 79, 168, 0.2);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hygfp-badge-link:hover,
.hygfp-badge-link:focus {
    color: #ffaa62;
    border-color: rgba(255, 170, 98, 0.45);
}

.hygfp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.hygfp-main,
.hygfp-side {
    display: grid;
    gap: 24px;
}

.hygfp-card__header {
    margin-bottom: 18px;
}

.hygfp-card__header h3 {
    margin: 0 0 8px;
    color: var(--hygfp-text);
    font-size: var(--hygfp-size-section);
    font-weight: var(--hygfp-weight-regular);
    line-height: 1.15;
}

.hygfp-card__header p,
.hygfp-card-note {
    margin: 0;
    color: var(--hygfp-muted);
    font-size: 14px;
    font-weight: var(--hygfp-weight-regular);
    line-height: 1.65;
}

.hygfp-notes,
.hygfp-details,
.hygfp-applications,
.hygfp-documents,
.hygfp-limits {
    padding: 24px;
}

.hygfp-note-table,
.hygfp-detail-list,
.hygfp-app-list,
.hygfp-doc-list {
    display: grid;
    gap: 12px;
}

.hygfp-note-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(33, 31, 32, 0.08);
}

.hygfp-note-row:last-child,
.hygfp-detail-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hygfp-app-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hygfp-note-label {
    display: flex;
    align-items: center;
    min-height: 38px;
    color: var(--hygfp-text);
    font-size: var(--hygfp-size-caption);
    font-weight: var(--hygfp-weight-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hygfp-note-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hygfp-note-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 255, 0.98));
    border: 1px solid rgba(107, 79, 168, 0.14);
    color: var(--hygfp-accent-strong);
    font-size: 14px;
    line-height: 1.3;
    font-weight: var(--hygfp-weight-accent);
}

.hygfp-detail-row,
.hygfp-app-row {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(33, 31, 32, 0.08);
}

.hygfp-detail-label,
.hygfp-app-label {
    color: var(--hygfp-text);
    font-size: var(--hygfp-size-body);
    line-height: 1.45;
    font-weight: var(--hygfp-weight-regular);
    flex: 0 1 46%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

.hygfp-app-label {
    font-size: 16px;
    font-weight: var(--hygfp-weight-accent);
}

.hygfp-detail-value-wrap,
.hygfp-app-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hygfp-detail-value-wrap {
    flex: 0 1 54%;
    justify-items: end;
    text-align: right;
}

.hygfp-app-copy {
    flex: 1 1 auto;
    min-width: 0;
    justify-items: start;
    text-align: left;
}

.hygfp-detail-value {
    color: var(--hygfp-text);
    font-size: var(--hygfp-size-body);
    line-height: 1.5;
    font-weight: var(--hygfp-weight-accent);
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

.hygfp-detail-hint,
.hygfp-doc-subtitle {
    color: var(--hygfp-muted);
    font-size: var(--hygfp-size-caption);
    font-weight: var(--hygfp-weight-regular);
    line-height: 1.5;
}

.hygfp-app-usage {
    color: var(--hygfp-text);
    font-size: 19px;
    font-weight: var(--hygfp-weight-accent);
    line-height: 1.2;
}

.hygfp-applications .hygfp-card-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(33, 31, 32, 0.08);
}

.hygfp-detail-row.is-flashpoint .hygfp-detail-value {
    color: #ffaa62;
    font-weight: var(--hygfp-weight-accent);
}

.hygfp-app-row.is-safe .hygfp-app-state {
    color: #6d9d3b;
    background: rgba(109, 157, 59, 0.1);
}

.hygfp-app-row.is-blocked .hygfp-app-state {
    color: #c94d4d;
    background: rgba(201, 77, 77, 0.1);
}

.hygfp-app-state {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: var(--hygfp-weight-accent);
    line-height: 1;
}

.hygfp-doc-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(107, 79, 168, 0.12);
    color: var(--hygfp-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hygfp-doc-link:hover,
.hygfp-doc-link:focus {
    transform: translateY(-1px);
    border-color: rgba(107, 79, 168, 0.28);
    box-shadow: 0 12px 28px rgba(107, 79, 168, 0.12);
    color: var(--hygfp-text);
}

.hygfp-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(208, 184, 244, 0.2);
    color: var(--hygfp-accent-strong);
    flex: 0 0 auto;
}

.hygfp-doc-copy {
    display: grid;
    gap: 2px;
}

.hygfp-doc-title {
    color: var(--hygfp-text);
    font-size: var(--hygfp-size-body);
    line-height: 1.4;
    font-weight: var(--hygfp-weight-accent);
}

.hygfp-limit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.hygfp-limit {
    min-height: 104px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(107, 79, 168, 0.12);
}

.hygfp-limit__label {
    display: block;
    margin-bottom: 10px;
    color: var(--hygfp-muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: var(--hygfp-weight-regular);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hygfp-limit__value {
    color: var(--hygfp-text);
    font-size: clamp(18px, 1.45vw, 24px);
    line-height: 1.1;
    font-weight: var(--hygfp-weight-accent);
}

@media (max-width: 900px) {
    .hygfp-hero,
    .hygfp-layout {
        grid-template-columns: 1fr;
    }

    .hygfp-badges {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 680px) {
    .hygfp-card {
        box-shadow: none;
    }

    .hygfp-hero,
    .hygfp-notes,
    .hygfp-details,
    .hygfp-applications,
    .hygfp-documents,
    .hygfp-limits {
        padding: 20px;
        border-radius: 20px;
    }

    .hygfp-intro {
        display: none;
    }

    .hygfp-note-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hygfp-detail-row,
    .hygfp-app-row {
        flex-direction: column;
    }

    .hygfp-detail-value-wrap,
    .hygfp-app-copy {
        justify-items: start;
        text-align: left;
    }

    .hygfp-app-row {
        position: relative;
        padding-right: 46px;
    }

    .hygfp-app-state {
        position: absolute;
        top: 14px;
        right: 0;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs,
    .woocommerce-page div.product .woocommerce-tabs ul.tabs {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        width: 100%;
        margin: 0 0 20px;
        padding: 0;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li,
    .woocommerce-page div.product .woocommerce-tabs ul.tabs li {
        float: none !important;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 4px !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a,
    .woocommerce-page div.product .woocommerce-tabs ul.tabs li a {
        display: block;
        width: 100%;
        padding: 0 2px 12px !important;
        font-size: clamp(11px, 2.9vw, 14px) !important;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
    .woocommerce-page div.product .woocommerce-tabs ul.tabs li.active a {
        font-weight: 600;
    }
}
