:root {
    --redi-bg: #f4f7fb;
    --redi-panel: #ffffff;
    --redi-border: #e7ebf3;
    --redi-text: #16304f;
    --redi-muted: #59708e;
    --redi-primary: #123e74;
    --redi-primary-2: #1f5aa6;
    --redi-soft: #eef4ff;
    --redi-success-bg: #e8f7ef;
    --redi-success-text: #0f7a43;
    --redi-warning-bg: #fff8e8;
    --redi-warning-text: #b7791f;
    --redi-shadow: 0 18px 50px rgba(19, 44, 77, 0.08);
    --redi-radius-xl: 24px;
    --redi-radius-lg: 18px;
    --redi-radius-md: 14px;
}

.redi-dps-member-shell {
    margin: 0 0 28px;
}

.redi-dps-hero,
.redi-dps-member-panel,
.redi-dps-login-card {
    background: var(--redi-panel);
    border: 1px solid var(--redi-border);
    border-radius: var(--redi-radius-xl);
    box-shadow: var(--redi-shadow);
}

.redi-dps-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr);
    gap: 24px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.14), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.redi-dps-hero::after {
    content: "";
    position: absolute;
    inset: auto -90px -90px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(18,62,116,.08), transparent 65%);
    pointer-events: none;
}

.redi-dps-hero-main {
    position: relative;
    z-index: 1;
}

.redi-dps-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.redi-dps-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--redi-soft);
    color: var(--redi-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.redi-dps-chip-soft {
    background: #edfdf5;
    color: #047857;
}

.redi-dps-chip-warn {
    background: var(--redi-warning-bg);
    color: var(--redi-warning-text);
}

.redi-dps-hero h1 {
    margin: 0 0 10px;
    color: var(--redi-text);
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
}

.redi-dps-hero-desc {
    margin: 0;
    max-width: 720px;
    color: var(--redi-muted);
    font-size: 17px;
    line-height: 1.8;
}

.redi-dps-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.redi-dps-link-logout {
    color: var(--redi-primary);
    font-weight: 700;
    text-decoration: none;
}

.redi-dps-profile-card {
    position: relative;
    z-index: 1;
    border: 1px solid var(--redi-border);
    border-radius: var(--redi-radius-lg);
    padding: 22px;
    background: linear-gradient(180deg, #fefefe 0%, #f7fbff 100%);
}

.redi-dps-profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--redi-border);
    margin-bottom: 18px;
}

.redi-dps-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--redi-primary), var(--redi-primary-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(18,62,116,.24);
}

.redi-dps-profile-name {
    color: var(--redi-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.redi-dps-profile-sub {
    color: var(--redi-muted);
    font-size: 14px;
    line-height: 1.5;
}

.redi-dps-profile-list {
    display: grid;
    gap: 14px;
}

.redi-dps-profile-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--redi-muted);
}

.redi-dps-profile-list strong {
    color: var(--redi-text);
    text-align: right;
}

.redi-dps-status-good {
    color: var(--redi-success-text);
}

.redi-dps-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.redi-dps-stat-card {
    background: var(--redi-panel);
    border: 1px solid var(--redi-border);
    border-radius: var(--redi-radius-lg);
    box-shadow: var(--redi-shadow);
    padding: 20px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.redi-dps-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(19, 44, 77, 0.12);
}

.redi-dps-stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.redi-dps-stat-value {
    color: var(--redi-text);
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
}

.redi-dps-stat-label {
    margin-top: 4px;
    color: var(--redi-text);
    font-weight: 700;
}

.redi-dps-stat-note {
    margin-top: 6px;
    color: var(--redi-muted);
    font-size: 14px;
    line-height: 1.6;
}

.redi-dps-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.redi-dps-section-head h2 {
    margin: 10px 0 6px;
    color: var(--redi-text);
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
}

.redi-dps-section-head p {
    margin: 0;
    color: var(--redi-muted);
    line-height: 1.7;
}

.redi-dps-member-panel {
    padding: 18px 18px 20px;
}

.redi-dps-panel-table {
    overflow: hidden;
}

.redi-dps-empty-state {
    background: var(--redi-panel);
    border: 1px dashed var(--redi-border);
    border-radius: var(--redi-radius-lg);
    padding: 28px;
    color: var(--redi-muted);
}

.redi-dps-empty-state strong {
    display: block;
    color: var(--redi-text);
    font-size: 18px;
    margin-bottom: 6px;
}

.redi-dps-responsive-table {
    overflow-x: auto;
}

.redi-dps-member-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 4px;
    overflow: hidden;
}

.redi-dps-member-table thead th {
    background: #f7faff;
    color: var(--redi-text);
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid var(--redi-border);
}

.redi-dps-member-table thead th:first-child {
    border-top-left-radius: 14px;
}

.redi-dps-member-table thead th:last-child {
    border-top-right-radius: 14px;
}

.redi-dps-member-table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--redi-border);
    color: var(--redi-text);
    vertical-align: top;
    background: #fff;
}

.redi-dps-member-table tbody tr:hover td {
    background: #fbfdff;
}

.redi-dps-member-table small,
.redi-dps-muted {
    color: var(--redi-muted);
}

.redi-dps-badge,
.redi-dps-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.redi-dps-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

.redi-dps-status-badge {
    background: var(--redi-success-bg);
    color: var(--redi-success-text);
    text-transform: capitalize;
}

.redi-dps-progress {
    margin: 8px 0 6px;
    width: 100%;
    max-width: 220px;
    height: 8px;
    background: #e9edf5;
    border-radius: 999px;
    overflow: hidden;
}

.redi-dps-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--redi-primary), #4f8ee7);
}

.redi-dps-license-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.redi-dps-license-code {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7faff;
    border: 1px solid var(--redi-border);
    color: var(--redi-text);
    font-size: 14px;
    word-break: break-all;
}

.redi-dps-copy-btn {
    border: 1px solid var(--redi-border);
    background: #fff;
    color: var(--redi-primary);
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.redi-dps-copy-btn:hover {
    background: #f7faff;
}

.redi-dps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--redi-primary), var(--redi-primary-2));
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(18,62,116,.18);
    border: none;
}

.redi-dps-button:hover {
    opacity: .95;
    transform: translateY(-1px);
}

.redi-dps-button-light {
    background: #fff;
    color: var(--redi-primary) !important;
    border: 1px solid var(--redi-border);
    box-shadow: none;
}

.redi-dps-warning-box {
    border-color: #f7d488;
    background: linear-gradient(180deg, #fffdf7 0%, #fff8eb 100%);
}

.redi-dps-login-card {
    max-width: 720px;
    padding: 28px;
    margin: 18px auto;
}

.redi-dps-login-head h2 {
    margin: 10px 0 6px;
    color: var(--redi-text);
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
}

.redi-dps-login-head p {
    margin: 0;
    color: var(--redi-muted);
    line-height: 1.7;
}

.redi-dps-login-form-wrap,
.redi-dps-login-state {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--redi-border);
}

.redi-dps-member-box form p {
    margin-bottom: 14px;
}

.redi-dps-member-box label,
.redi-dps-login-card label {
    display: block;
    margin-bottom: 6px;
    color: var(--redi-text);
    font-weight: 700;
}

.redi-dps-member-box input[type="text"],
.redi-dps-member-box input[type="password"],
.redi-dps-login-card input[type="text"],
.redi-dps-login-card input[type="password"] {
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
    border: 1px solid var(--redi-border);
    border-radius: 12px;
    background: #fff;
}

.redi-dps-member-box input[type="submit"],
.redi-dps-login-card input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--redi-primary), var(--redi-primary-2));
    color: #fff;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18,62,116,.18);
}

.redi-dps-member-box h2 {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .redi-dps-hero {
        grid-template-columns: 1fr;
    }

    .redi-dps-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .redi-dps-hero {
        padding: 20px;
    }

    .redi-dps-hero h1 {
        font-size: 28px;
    }

    .redi-dps-section-head h2,
    .redi-dps-login-head h2 {
        font-size: 26px;
    }

    .redi-dps-stat-grid {
        grid-template-columns: 1fr;
    }

    .redi-dps-quick-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .redi-dps-profile-list div {
        flex-direction: column;
        align-items: flex-start;
    }

    .redi-dps-profile-list strong {
        text-align: left;
    }
}


.redi-dps-portal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.redi-dps-portal-sidebar {
    position: sticky;
    top: 24px;
    background: var(--redi-panel);
    border: 1px solid var(--redi-border);
    border-radius: var(--redi-radius-xl);
    box-shadow: var(--redi-shadow);
    padding: 22px;
}

.redi-dps-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--redi-border);
    margin-bottom: 18px;
}

.redi-dps-sidebar-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--redi-primary), var(--redi-primary-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.redi-dps-sidebar-user strong {
    display: block;
    color: var(--redi-text);
    font-size: 17px;
    line-height: 1.3;
}

.redi-dps-sidebar-user span {
    color: var(--redi-muted);
    font-size: 13px;
}

.redi-dps-sidebar-nav {
    display: grid;
    gap: 10px;
}

.redi-dps-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--redi-text);
    font-weight: 700;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.redi-dps-nav-link:hover,
.redi-dps-nav-link.active {
    background: #f7faff;
    color: var(--redi-primary);
    border-color: var(--redi-border);
}

.redi-dps-sidebar-mini {
    display: grid;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid var(--redi-border);
    border-radius: 18px;
}

.redi-dps-sidebar-stat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--redi-muted);
    font-size: 14px;
}

.redi-dps-sidebar-stat strong {
    color: var(--redi-text);
}

.redi-dps-button-full {
    width: 100%;
}

.redi-dps-portal-content {
    min-width: 0;
}

.redi-dps-soft-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #f5f3ff;
    color: #6d28d9;
}

.redi-dps-soft-note {
    margin-top: 6px;
    color: var(--redi-muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .redi-dps-portal-layout {
        grid-template-columns: 1fr;
    }

    .redi-dps-portal-sidebar {
        position: relative;
        top: 0;
    }

    .redi-dps-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .redi-dps-sidebar-nav {
        grid-template-columns: 1fr;
    }
}


/* Member App Mode fallback: theme/header/page title cleanup */
body.redi-dps-member-app .site-header,
body.redi-dps-member-app #site-header,
body.redi-dps-member-app header.site-header,
body.redi-dps-member-app #masthead,
body.redi-dps-member-app .main-header,
body.redi-dps-member-app .header,
body.redi-dps-member-app .site-branding,
body.redi-dps-member-app .elementor-location-header,
body.redi-dps-member-app .wp-block-template-part,
body.redi-dps-member-app .entry-header,
body.redi-dps-member-app .page-header,
body.redi-dps-member-app .entry-title,
body.redi-dps-member-app .page-title,
body.redi-dps-member-app .post-thumbnail,
body.redi-dps-member-app .site-footer,
body.redi-dps-member-app #colophon,
body.redi-dps-member-app footer.site-footer,
body.redi-dps-member-app .elementor-location-footer {
    display: none !important;
}

body.redi-dps-member-app {
    background: #f4f7fb !important;
}

body.redi-dps-member-app .site,
body.redi-dps-member-app #page,
body.redi-dps-member-app .site-content,
body.redi-dps-member-app #content,
body.redi-dps-member-app .content-area,
body.redi-dps-member-app main,
body.redi-dps-member-app .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.redi-dps-portal-layout {
    max-width: 1160px;
    margin: 36px auto 56px;
    padding: 0 18px;
    box-sizing: border-box;
}

.redi-dps-portal-layout *,
.redi-dps-portal-layout *::before,
.redi-dps-portal-layout *::after {
    box-sizing: border-box;
}


/* v0.2.3 stronger member-only app mode */
body.redi-dps-member-page header,
body.redi-dps-member-page footer,
body.redi-dps-member-page .site-header,
body.redi-dps-member-page #site-header,
body.redi-dps-member-page #masthead,
body.redi-dps-member-page .main-header,
body.redi-dps-member-page .header,
body.redi-dps-member-page .site-branding,
body.redi-dps-member-page .elementor-location-header,
body.redi-dps-member-page .site-footer,
body.redi-dps-member-page #colophon,
body.redi-dps-member-page .footer,
body.redi-dps-member-page .footer-area,
body.redi-dps-member-page .site-info,
body.redi-dps-member-page .copyright,
body.redi-dps-member-page .elementor-location-footer,
body.redi-dps-member-page .entry-header,
body.redi-dps-member-page .page-header,
body.redi-dps-member-page .entry-title,
body.redi-dps-member-page .page-title,
body.redi-dps-member-page .post-title,
body.redi-dps-member-page .wp-block-post-title,
body.redi-dps-member-page .nv-page-title-wrap,
body.redi-dps-member-page .generate-page-header,
body.redi-dps-member-page .inside-page-header {
    display: none !important;
}

body.redi-dps-member-page {
    background: #f4f7fb !important;
}

body.redi-dps-member-page .site,
body.redi-dps-member-page #page,
body.redi-dps-member-page .site-content,
body.redi-dps-member-page #content,
body.redi-dps-member-page .content-area,
body.redi-dps-member-page .site-main,
body.redi-dps-member-page main,
body.redi-dps-member-page article,
body.redi-dps-member-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* v0.2.4 layout width and long text handling */
.redi-dps-portal-layout {
    width: min(96vw, 1440px) !important;
    max-width: 1440px !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 28px !important;
}

.redi-dps-portal-content,
.redi-dps-member-shell,
.redi-dps-hero,
.redi-dps-member-panel,
.redi-dps-profile-card,
.redi-dps-stat-card,
.redi-dps-sidebar-user,
.redi-dps-profile-top,
.redi-dps-profile-list,
.redi-dps-member-table {
    min-width: 0 !important;
}

.redi-dps-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
}

.redi-dps-profile-card {
    overflow: hidden !important;
}

.redi-dps-profile-name,
.redi-dps-profile-sub,
.redi-dps-profile-list span,
.redi-dps-profile-list strong,
.redi-dps-sidebar-user strong,
.redi-dps-sidebar-user span,
.redi-dps-member-table td,
.redi-dps-member-table th,
.redi-dps-license-code {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.redi-dps-profile-sub,
.redi-dps-sidebar-user span {
    max-width: 100%;
    display: block;
}

.redi-dps-profile-list div {
    align-items: flex-start !important;
}

.redi-dps-profile-list strong {
    max-width: 58%;
    line-height: 1.45;
}

.redi-dps-member-table {
    table-layout: auto;
}

.redi-dps-member-table td,
.redi-dps-member-table th {
    line-height: 1.55;
}

.redi-dps-section-head,
.redi-dps-hero-main,
.redi-dps-hero-desc {
    max-width: none !important;
}

@media (min-width: 1280px) {
    .redi-dps-hero h1 {
        max-width: 760px;
    }

    .redi-dps-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .redi-dps-portal-layout {
        width: min(96vw, 980px) !important;
        grid-template-columns: 1fr !important;
    }

    .redi-dps-hero {
        grid-template-columns: 1fr !important;
    }

    .redi-dps-portal-sidebar {
        position: relative !important;
        top: 0 !important;
    }
}

@media (max-width: 640px) {
    .redi-dps-portal-layout {
        width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .redi-dps-profile-list strong {
        max-width: 100%;
    }
}


/* Member Updates */
.redi-dps-updates-head {
    margin-top: 6px;
}

.redi-dps-updates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.redi-dps-update-card,
.redi-dps-updates-empty {
    background: var(--redi-panel);
    border: 1px solid var(--redi-border);
    border-radius: var(--redi-radius-lg);
    box-shadow: var(--redi-shadow);
}

.redi-dps-update-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.redi-dps-update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(19, 44, 77, 0.12);
}

.redi-dps-update-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--redi-primary);
}

.redi-dps-update-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.redi-dps-update-type,
.redi-dps-update-pin {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.redi-dps-update-type {
    background: #eff6ff;
    color: #1d4ed8;
}

.redi-dps-update-pin {
    background: #fff7ed;
    color: #c2410c;
}

.redi-dps-update-card h3 {
    margin: 0 0 8px;
    color: var(--redi-text);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
}

.redi-dps-update-card p {
    margin: 0;
    color: var(--redi-muted);
    line-height: 1.7;
}

.redi-dps-update-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--redi-border);
    color: var(--redi-muted);
    font-size: 13px;
    font-weight: 700;
}

.redi-dps-update-important::before {
    background: #dc2626;
}

.redi-dps-update-important .redi-dps-update-type {
    background: #fee2e2;
    color: #b91c1c;
}

.redi-dps-update-promo::before {
    background: #7c3aed;
}

.redi-dps-update-promo .redi-dps-update-type {
    background: #f5f3ff;
    color: #6d28d9;
}

.redi-dps-update-maintenance::before {
    background: #d97706;
}

.redi-dps-update-maintenance .redi-dps-update-type {
    background: #fffbeb;
    color: #b45309;
}

.redi-dps-update-tutorial::before {
    background: #059669;
}

.redi-dps-update-tutorial .redi-dps-update-type {
    background: #ecfdf5;
    color: #047857;
}

.redi-dps-updates-empty {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 22px;
    color: var(--redi-muted);
}

.redi-dps-updates-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.redi-dps-updates-empty strong {
    color: var(--redi-text);
    display: block;
    margin-bottom: 4px;
}

.redi-dps-updates-empty p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .redi-dps-updates-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.2.6 Member Updates visual refresh */
.redi-dps-updates-section {
    position: relative;
    padding: 20px 22px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.58) 0%, rgba(255, 255, 255, 0.88) 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 18px 40px rgba(29, 78, 216, 0.06);
}

.redi-dps-updates-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 35%, #22c55e 100%);
}

.redi-dps-updates-head {
    margin-top: 2px;
    margin-bottom: 18px;
}

.redi-dps-updates-head .redi-dps-chip {
    background: #dbeafe;
    color: #1d4ed8;
}

.redi-dps-updates-head h2 {
    color: #13315c;
}

.redi-dps-updates-head p {
    color: #506786;
}

.redi-dps-updates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.redi-dps-update-card,
.redi-dps-updates-empty {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(20, 53, 92, 0.08);
}

.redi-dps-update-card {
    position: relative;
    overflow: hidden;
    padding: 22px 20px 18px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.redi-dps-update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(19, 49, 92, 0.12);
}

.redi-dps-update-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: #2563eb;
}

.redi-dps-update-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, rgba(37, 99, 235, 0) 72%);
    pointer-events: none;
}

.redi-dps-update-card.is-pinned {
    background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
    border-color: #fed7aa;
    box-shadow: 0 18px 38px rgba(234, 88, 12, 0.10);
}

.redi-dps-update-card.is-pinned::before {
    background: linear-gradient(180deg, #f97316 0%, #fb923c 100%);
}

.redi-dps-update-card.is-pinned::after {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 74%);
}

.redi-dps-update-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.redi-dps-update-type,
.redi-dps-update-pin {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

.redi-dps-update-type {
    background: #dbeafe;
    color: #1d4ed8;
}

.redi-dps-update-pin {
    background: #fff1df;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.redi-dps-update-card h3 {
    margin: 0 0 9px;
    color: #13315c;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 800;
}

.redi-dps-update-card p {
    margin: 0;
    color: #5d738f;
    line-height: 1.72;
}

.redi-dps-update-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8eef6;
    color: #6a7f98;
    font-size: 13px;
    font-weight: 700;
}

.redi-dps-update-important {
    background: linear-gradient(180deg, #fff3f3 0%, #ffffff 100%);
    border-color: #fecaca;
}

.redi-dps-update-important::before {
    background: #dc2626;
}

.redi-dps-update-important .redi-dps-update-type {
    background: #fee2e2;
    color: #b91c1c;
}

.redi-dps-update-promo {
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    border-color: #e9d5ff;
}

.redi-dps-update-promo::before {
    background: #7c3aed;
}

.redi-dps-update-promo .redi-dps-update-type {
    background: #f3e8ff;
    color: #6d28d9;
}

.redi-dps-update-maintenance {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-color: #fde68a;
}

.redi-dps-update-maintenance::before {
    background: #d97706;
}

.redi-dps-update-maintenance .redi-dps-update-type {
    background: #fef3c7;
    color: #b45309;
}

.redi-dps-update-tutorial {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-color: #bbf7d0;
}

.redi-dps-update-tutorial::before {
    background: #059669;
}

.redi-dps-update-tutorial .redi-dps-update-type {
    background: #d1fae5;
    color: #047857;
}

.redi-dps-update-update {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-color: #bfdbfe;
}

.redi-dps-update-update::before {
    background: #2563eb;
}

.redi-dps-update-update .redi-dps-update-type {
    background: #dbeafe;
    color: #1d4ed8;
}

.redi-dps-updates-empty {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 22px;
    color: var(--redi-muted);
}

.redi-dps-updates-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.redi-dps-updates-empty strong {
    color: #13315c;
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 860px) {
    .redi-dps-updates-grid {
        grid-template-columns: 1fr;
    }

    .redi-dps-updates-section {
        padding: 18px;
    }
}


/* v0.2.7 Member Updates: visual media, read more, modal, cleaner layout */
.redi-dps-updates-section {
    padding: 26px 28px 30px !important;
}

.redi-dps-updates-grid {
    align-items: stretch;
}

.redi-dps-updates-count-1 {
    grid-template-columns: minmax(0, 1fr) !important;
}

.redi-dps-updates-count-1 .redi-dps-update-card {
    max-width: none;
}

.redi-dps-update-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 0;
    padding: 0 !important;
    min-height: 220px;
}

.redi-dps-update-card.is-featured {
    grid-column: 1 / -1;
}

.redi-dps-update-media {
    min-height: 220px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    overflow: hidden;
    position: relative;
}

.redi-dps-update-media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.redi-dps-update-media-fallback {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,.7), transparent 28%),
        linear-gradient(135deg, #dbeafe 0%, #bfdbfe 45%, #eff6ff 100%);
}

.redi-dps-update-media-fallback span {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .16);
    font-size: 34px;
}

.redi-dps-update-content {
    min-width: 0;
    padding: 22px 24px 18px;
    display: flex;
    flex-direction: column;
}

.redi-dps-update-card h3 {
    font-size: 22px !important;
    margin-bottom: 10px !important;
}

.redi-dps-update-card p {
    font-size: 15px;
    max-width: 760px;
}

.redi-dps-update-foot {
    margin-top: auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.redi-dps-readmore-btn {
    border: 1px solid #cfe0f5;
    background: #ffffff;
    color: #174f91;
    padding: 9px 13px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
}

.redi-dps-readmore-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.redi-dps-update-important .redi-dps-update-media-fallback {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 45%, #fff1f2 100%);
}

.redi-dps-update-promo .redi-dps-update-media-fallback {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 45%, #faf5ff 100%);
}

.redi-dps-update-maintenance .redi-dps-update-media-fallback {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 45%, #fffbeb 100%);
}

.redi-dps-update-tutorial .redi-dps-update-media-fallback {
    background: linear-gradient(135deg, #d1fae5 0%, #bbf7d0 45%, #ecfdf5 100%);
}

.redi-dps-update-card.is-pinned .redi-dps-update-media-fallback {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 45%, #fff7ed 100%);
}

.redi-dps-update-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.redi-dps-update-modal.is-open {
    display: block;
}

.redi-dps-update-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(7px);
}

.redi-dps-update-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    border: 1px solid rgba(255,255,255,.7);
}

.redi-dps-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,.92);
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.redi-dps-modal-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    background: #eff6ff;
}

.redi-dps-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.redi-dps-modal-body {
    padding: 30px 34px 34px;
}

.redi-dps-modal-date {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.redi-dps-modal-body h2 {
    margin: 14px 0 14px;
    color: #13315c;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 900;
}

.redi-dps-modal-content {
    color: #425b78;
    line-height: 1.85;
    font-size: 16px;
}

.redi-dps-modal-content p {
    margin: 0 0 16px;
}

.redi-dps-modal-content ul,
.redi-dps-modal-content ol {
    margin: 0 0 16px 20px;
}

body.redi-dps-modal-open {
    overflow: hidden;
}

@media (max-width: 940px) {
    .redi-dps-update-card,
    .redi-dps-update-card.is-featured {
        grid-template-columns: 1fr;
    }

    .redi-dps-update-media,
    .redi-dps-update-media img,
    .redi-dps-update-media-fallback {
        min-height: 190px;
    }
}

@media (max-width: 640px) {
    .redi-dps-updates-section {
        padding: 20px 16px 22px !important;
    }

    .redi-dps-update-content {
        padding: 18px;
    }

    .redi-dps-update-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .redi-dps-modal-body {
        padding: 24px 20px 26px;
    }

    .redi-dps-modal-body h2 {
        font-size: 25px;
    }
}


/* v0.2.8 Member Updates feed layout: top 2, bottom 3 */
.redi-dps-updates-section {
    padding: 26px 28px 30px !important;
}

.redi-dps-updates-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.redi-dps-update-card,
.redi-dps-update-card.is-featured {
    grid-column: span 2 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
}

.redi-dps-update-item-1,
.redi-dps-update-item-2 {
    grid-column: span 3 !important;
}

.redi-dps-updates-count-1 .redi-dps-update-card {
    grid-column: 1 / -1 !important;
}

.redi-dps-updates-count-2 .redi-dps-update-card {
    grid-column: span 3 !important;
}

.redi-dps-updates-count-3 .redi-dps-update-card {
    grid-column: span 2 !important;
}

.redi-dps-updates-count-4 .redi-dps-update-card {
    grid-column: span 3 !important;
}

.redi-dps-update-media {
    min-height: 155px !important;
    height: 155px !important;
}

.redi-dps-update-item-1 .redi-dps-update-media,
.redi-dps-update-item-2 .redi-dps-update-media {
    min-height: 190px !important;
    height: 190px !important;
}

.redi-dps-update-media img,
.redi-dps-update-media-fallback {
    min-height: 100% !important;
    height: 100% !important;
}

.redi-dps-update-content {
    padding: 18px 18px 16px !important;
}

.redi-dps-update-item-1 .redi-dps-update-content,
.redi-dps-update-item-2 .redi-dps-update-content {
    padding: 21px 22px 18px !important;
}

.redi-dps-update-card h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}

.redi-dps-update-item-1 h3,
.redi-dps-update-item-2 h3 {
    font-size: 22px !important;
}

.redi-dps-update-card p {
    font-size: 14px !important;
    line-height: 1.62 !important;
}

.redi-dps-update-item-1 p,
.redi-dps-update-item-2 p {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.redi-dps-update-foot {
    margin-top: 14px !important;
    padding-top: 12px !important;
}

.redi-dps-readmore-btn {
    padding: 8px 11px !important;
    font-size: 13px !important;
}

.redi-dps-update-type,
.redi-dps-update-pin {
    padding: 6px 10px !important;
    font-size: 11px !important;
}

.redi-dps-update-media-fallback span {
    width: 62px !important;
    height: 62px !important;
    border-radius: 20px !important;
    font-size: 28px !important;
}

.redi-dps-update-item-1 .redi-dps-update-media-fallback span,
.redi-dps-update-item-2 .redi-dps-update-media-fallback span {
    width: 76px !important;
    height: 76px !important;
    border-radius: 24px !important;
    font-size: 34px !important;
}

@media (max-width: 1180px) {
    .redi-dps-updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .redi-dps-update-card,
    .redi-dps-update-card.is-featured,
    .redi-dps-update-item-1,
    .redi-dps-update-item-2 {
        grid-column: span 1 !important;
    }

    .redi-dps-updates-count-1 .redi-dps-update-card {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 760px) {
    .redi-dps-updates-grid {
        grid-template-columns: 1fr !important;
    }

    .redi-dps-update-card,
    .redi-dps-update-card.is-featured,
    .redi-dps-update-item-1,
    .redi-dps-update-item-2 {
        grid-column: 1 / -1 !important;
    }

    .redi-dps-update-media,
    .redi-dps-update-item-1 .redi-dps-update-media,
    .redi-dps-update-item-2 .redi-dps-update-media {
        height: 180px !important;
        min-height: 180px !important;
    }
}


/* v0.3.1 Activation add-on UI */
.redi-dps-addon-cta {
    margin-top: 18px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #bfdbfe;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .14), transparent 28%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 16px 34px rgba(29, 78, 216, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.redi-dps-addon-cta h3 {
    margin: 10px 0 6px;
    color: var(--redi-text);
    font-size: 22px;
    line-height: 1.3;
}

.redi-dps-addon-cta p {
    margin: 0;
    color: var(--redi-muted);
    line-height: 1.7;
}

.redi-dps-addon-history {
    margin-top: 18px;
}

.redi-dps-addon-history h3 {
    margin: 0 0 12px;
    color: var(--redi-text);
}

@media (max-width: 760px) {
    .redi-dps-addon-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* v0.3.2 Member activation add-on request */
.redi-dps-addon-request-box {
    align-items: stretch !important;
}

.redi-dps-addon-request-info {
    flex: 1;
}

.redi-dps-addon-request-form {
    width: min(360px, 100%);
    background: rgba(255,255,255,.78);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 10px;
}

.redi-dps-addon-request-form label {
    color: var(--redi-text);
    font-weight: 800;
    font-size: 13px;
}

.redi-dps-addon-request-form select {
    width: 100%;
    border: 1px solid var(--redi-border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--redi-text);
    background: #fff;
}

.redi-dps-member-notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.redi-dps-member-notice-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
}

.redi-dps-member-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.redi-dps-warning-note {
    color: #b45309 !important;
    font-weight: 700;
}

@media (max-width: 760px) {
    .redi-dps-addon-request-form {
        width: 100%;
    }
}


/* v0.3.3 refined activation add-on request form */
.redi-dps-addon-request-section {
    margin-top: 22px;
    border: 1px solid #bfdbfe;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .14), transparent 26%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(29, 78, 216, .08);
    padding: 24px;
}

.redi-dps-addon-request-header {
    max-width: 880px;
    margin-bottom: 18px;
}

.redi-dps-addon-request-header h3 {
    margin: 10px 0 7px;
    color: var(--redi-text);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 900;
}

.redi-dps-addon-request-header p {
    margin: 0;
    color: var(--redi-muted);
    line-height: 1.75;
}

.redi-dps-addon-card-form {
    display: grid;
    gap: 18px;
}

.redi-dps-addon-form-row {
    background: rgba(255,255,255,.72);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 8px;
}

.redi-dps-addon-form-row label {
    color: var(--redi-text);
    font-weight: 900;
}

.redi-dps-addon-form-row select {
    width: 100%;
    border: 1px solid var(--redi-border);
    border-radius: 13px;
    padding: 12px 14px;
    color: var(--redi-text);
    background: #fff;
    font-weight: 700;
}

.redi-dps-addon-package-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.redi-dps-addon-package-card {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 160px;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background: #ffffff;
    padding: 18px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.redi-dps-addon-package-card:hover,
.redi-dps-addon-package-card.is-selected {
    transform: translateY(-2px);
    border-color: #60a5fa;
    box-shadow: 0 18px 34px rgba(37, 99, 235, .12);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.redi-dps-addon-package-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.redi-dps-addon-package-card strong {
    color: var(--redi-text);
    font-size: 20px;
    line-height: 1.25;
}

.redi-dps-addon-package-card span:not(.redi-dps-addon-popular) {
    color: #1d4ed8;
    font-size: 17px;
    font-weight: 900;
}

.redi-dps-addon-package-card small {
    color: var(--redi-muted);
    line-height: 1.55;
}

.redi-dps-addon-popular {
    position: absolute;
    top: -11px;
    right: 12px;
    background: #f97316;
    color: #fff;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(249, 115, 22, .2);
}

.redi-dps-addon-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 16px;
}

.redi-dps-addon-submit-row strong {
    display: block;
    color: var(--redi-text);
    margin-bottom: 3px;
}

.redi-dps-addon-submit-row span {
    color: var(--redi-muted);
    font-size: 14px;
}

@media (max-width: 1180px) {
    .redi-dps-addon-package-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .redi-dps-addon-package-grid {
        grid-template-columns: 1fr;
    }

    .redi-dps-addon-submit-row {
        flex-direction: column;
        align-items: stretch;
    }
}


/* v0.3.4 select clipping fix + internal checkout MVP */
.redi-dps-select-wrap {
    position: relative;
    width: 100%;
}

.redi-dps-addon-form-row select,
.redi-dps-select-wrap select {
    min-height: 58px !important;
    height: auto !important;
    line-height: 1.35 !important;
    padding: 15px 16px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    box-sizing: border-box !important;
    appearance: auto !important;
}

.redi-dps-addon-form-row {
    overflow: visible !important;
}

.redi-dps-checkout-summary {
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, .12), transparent 30%),
        linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(4, 120, 87, .08);
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 18px;
    align-items: start;
}

.redi-dps-checkout-main h3 {
    margin: 10px 0 8px;
    color: var(--redi-text);
    font-size: 25px;
    line-height: 1.25;
    font-weight: 900;
}

.redi-dps-checkout-main p {
    margin: 0;
    color: var(--redi-muted);
    line-height: 1.75;
}

.redi-dps-checkout-detail {
    background: rgba(255,255,255,.84);
    border: 1px solid #d1fae5;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 11px;
}

.redi-dps-checkout-detail div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e5f7ed;
    padding-bottom: 9px;
}

.redi-dps-checkout-detail div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.redi-dps-checkout-detail span {
    color: var(--redi-muted);
    font-size: 13px;
    font-weight: 700;
}

.redi-dps-checkout-detail strong {
    color: var(--redi-text);
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .redi-dps-checkout-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .redi-dps-checkout-detail div {
        flex-direction: column;
    }

    .redi-dps-checkout-detail strong {
        text-align: left;
    }
}


/* v0.3.5 Multi-page Member Area */
.redi-dps-multipage-layout .redi-dps-portal-content > .redi-dps-member-shell:first-child {
    margin-top: 0;
}

.redi-dps-multipage-layout .redi-dps-section-head h2 {
    margin-top: 10px;
}

.redi-dps-member-panel-spaced {
    margin-top: 20px;
}

.redi-dps-member-panel h3 {
    margin: 0 0 14px;
    color: var(--redi-text);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 900;
}

.redi-dps-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.redi-dps-account-list {
    gap: 16px;
}

.redi-dps-account-note {
    margin: 18px 0 0;
    color: var(--redi-muted);
    line-height: 1.7;
}

.redi-dps-sidebar-nav .redi-dps-nav-link {
    min-height: 44px;
}

@media (max-width: 860px) {
    .redi-dps-account-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.3.6 Invoice module */
.redi-dps-button-small {
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

#redi-member-invoices .redi-dps-member-table code,
#redi-member-orders .redi-dps-member-table code {
    overflow-wrap: anywhere;
}

/* v0.3.9 Subscription Core */
#redi-member-subscriptions .redi-dps-member-table code {
    overflow-wrap: anywhere;
}


/* v0.3.10 Product Catalog */
.redi-dps-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.redi-dps-catalog-card { background:#fff; border:1px solid var(--redi-border); border-radius:24px; padding:22px; box-shadow:0 18px 42px rgba(15,23,42,.06); display:flex; flex-direction:column; gap:14px; min-height:330px; position:relative; overflow:hidden; }
.redi-dps-catalog-card:before { content:""; position:absolute; inset:0 0 auto 0; height:5px; background:linear-gradient(90deg,#1d4ed8,#22c55e); }
.redi-dps-catalog-card.is-owned:before { background:linear-gradient(90deg,#22c55e,#14b8a6); }
.redi-dps-catalog-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.redi-dps-catalog-icon { width:48px; height:48px; border-radius:16px; background:#174b8f; color:#fff; display:grid; place-items:center; font-weight:900; font-size:20px; }
.redi-dps-owned-badge,.redi-dps-available-badge { border-radius:999px; padding:7px 10px; font-size:12px; font-weight:900; }
.redi-dps-owned-badge { background:#dcfce7; color:#047857; }
.redi-dps-available-badge { background:#dbeafe; color:#1d4ed8; }
.redi-dps-catalog-card h3 { margin:0; color:var(--redi-text); font-size:22px; line-height:1.28; font-weight:900; }
.redi-dps-catalog-slug { margin:-8px 0 0; color:var(--redi-muted); font-size:13px; }
.redi-dps-catalog-badges { display:flex; flex-wrap:wrap; gap:8px; }
.redi-dps-catalog-badges span { background:#f1f5f9; color:#174b8f; border-radius:999px; padding:6px 9px; font-size:12px; font-weight:800; }
.redi-dps-catalog-price,.redi-dps-catalog-meta { display:grid; gap:4px; padding:13px; border:1px solid #e2e8f0; border-radius:16px; background:#f8fafc; }
.redi-dps-catalog-price span,.redi-dps-catalog-meta span { color:var(--redi-muted); font-size:12px; font-weight:800; }
.redi-dps-catalog-price strong,.redi-dps-catalog-meta strong { color:var(--redi-text); line-height:1.55; }
.redi-dps-catalog-actions { margin-top:auto; display:grid; gap:8px; }
.redi-dps-catalog-actions small { color:var(--redi-muted); }
.redi-dps-catalog-actions button[disabled] { opacity:.72; cursor:not-allowed; }
.redi-dps-dashboard-catalog-preview { margin-top:24px; }
.redi-dps-dashboard-product-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:14px; }
.redi-dps-dashboard-product-card { background:#fff; border:1px solid var(--redi-border); border-radius:18px; padding:16px; box-shadow:0 14px 30px rgba(15,23,42,.05); display:grid; gap:6px; }
.redi-dps-dashboard-product-card strong { color:var(--redi-text); }
.redi-dps-dashboard-product-card span { color:#1d4ed8; font-weight:900; font-size:13px; }
.redi-dps-dashboard-product-card small { color:var(--redi-muted); line-height:1.55; }
@media (max-width:1180px){ .redi-dps-catalog-grid,.redi-dps-dashboard-product-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px){ .redi-dps-catalog-grid,.redi-dps-dashboard-product-grid{ grid-template-columns:1fr; } }


/* v0.3.11 Member UX cleanup */
.redi-dps-hero-compact {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr) !important;
    align-items: stretch !important;
}

.redi-dps-hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    position: relative;
    z-index: 1;
}

.redi-dps-mini-stat-card {
    padding: 18px !important;
    min-height: 132px;
}

.redi-dps-mini-stat-card .redi-dps-stat-note {
    display: none;
}

.redi-dps-mini-stat-card .redi-dps-stat-value {
    font-size: 30px;
}

.redi-dps-dashboard-catalog-preview {
    margin-top: 24px;
}

.redi-dps-overview-product-grid .redi-dps-catalog-card {
    min-height: 320px;
}

.redi-dps-version-inline {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 900;
    vertical-align: middle;
}

.redi-dps-muted {
    color: var(--redi-muted);
    font-weight: 700;
}

@media (max-width: 1180px) {
    .redi-dps-hero-compact {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    .redi-dps-hero-stat-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.3.12 sidebar simplification + product detail */
.redi-dps-hero-compact {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px) !important;
}

.redi-dps-hero-stats-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.redi-dps-stat-mini {
    background: rgba(255,255,255,.78);
    border: 1px solid var(--redi-border);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 6px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
}

.redi-dps-stat-mini span {
    color: var(--redi-muted);
    font-size: 13px;
    font-weight: 800;
}

.redi-dps-stat-mini strong {
    color: var(--redi-text);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.redi-dps-catalog-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.redi-dps-catalog-card-compact {
    min-height: auto !important;
    gap: 12px !important;
}

.redi-dps-product-short-desc {
    color: var(--redi-muted);
    line-height: 1.65;
    margin: 0;
    min-height: 52px;
}

.redi-dps-product-detail-hero {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .16), transparent 28%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 42px rgba(29, 78, 216, .08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: start;
}

.redi-dps-product-detail-hero.is-owned {
    border-color: #bbf7d0;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, .14), transparent 28%),
        linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.redi-dps-product-detail-hero h2 {
    color: var(--redi-text);
    font-size: 42px;
    line-height: 1.15;
    margin: 12px 0 10px;
    font-weight: 900;
}

.redi-dps-product-detail-hero p {
    color: var(--redi-muted);
    line-height: 1.75;
    margin: 0 0 16px;
}

.redi-dps-product-detail-price {
    background: rgba(255,255,255,.82);
    border: 1px solid var(--redi-border);
    border-radius: 22px;
    padding: 20px;
    display: grid;
    gap: 12px;
}

.redi-dps-product-detail-price span {
    color: var(--redi-muted);
    font-weight: 800;
}

.redi-dps-product-detail-price strong {
    color: var(--redi-text);
    font-size: 24px;
    line-height: 1.45;
    font-weight: 900;
}

.redi-dps-product-detail-price small {
    color: var(--redi-muted);
}

.redi-dps-product-detail-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.redi-dps-version-list {
    display: grid;
    gap: 12px;
}

.redi-dps-version-item {
    padding: 14px;
    border: 1px solid var(--redi-border);
    border-radius: 16px;
    background: #f8fafc;
    display: grid;
    gap: 5px;
}

.redi-dps-version-item strong {
    color: var(--redi-text);
}

.redi-dps-version-item span,
.redi-dps-product-detail-description {
    color: var(--redi-muted);
    line-height: 1.75;
}

@media (max-width: 1180px) {
    .redi-dps-hero-compact,
    .redi-dps-product-detail-hero {
        grid-template-columns: 1fr !important;
    }

    .redi-dps-catalog-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .redi-dps-hero-stats-panel,
    .redi-dps-catalog-grid-compact,
    .redi-dps-product-detail-grid {
        grid-template-columns: 1fr;
    }

    .redi-dps-product-detail-hero h2 {
        font-size: 32px;
    }
}


/* v0.3.13 Product page/detail fix */
.redi-dps-product-detail-description p {
    margin: 0 0 14px;
    color: var(--redi-muted);
    line-height: 1.8;
}

.redi-dps-member-table .redi-dps-button-small {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}


/* v0.3.15 product UI fixes */
.redi-dps-catalog-icon {
    margin-top: 6px;
    align-self: flex-start;
}

.redi-dps-catalog-card-top {
    align-items: flex-start;
    padding-top: 4px;
}

.redi-dps-catalog-badges span {
    white-space: nowrap;
}

.redi-dps-owned-products-table th:nth-child(1),
.redi-dps-owned-products-table td:nth-child(1) {
    width: 28%;
}

.redi-dps-owned-products-table th:nth-child(2),
.redi-dps-owned-products-table td:nth-child(2) {
    width: 12%;
}

.redi-dps-owned-products-table th:nth-child(3),
.redi-dps-owned-products-table td:nth-child(3) {
    width: 22%;
}

.redi-dps-owned-products-table th:nth-child(4),
.redi-dps-owned-products-table td:nth-child(4) {
    width: 14%;
}

.redi-dps-owned-products-table th:nth-child(5),
.redi-dps-owned-products-table td:nth-child(5) {
    width: 24%;
}

.redi-dps-file-action-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.redi-dps-file-action-cell > div {
    min-width: 0;
}

.redi-dps-file-action-cell strong,
.redi-dps-file-action-cell small {
    display: block;
    overflow-wrap: anywhere;
}

.redi-dps-file-action-cell small {
    color: var(--redi-muted);
    margin-top: 5px;
}

@media (max-width: 900px) {
    .redi-dps-file-action-cell {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* v0.3.16 stable product detail route */
.redi-dps-back-link {
    display: inline-flex;
    margin-bottom: 12px;
    color: #174b8f;
    font-weight: 900;
    text-decoration: none;
}

.redi-dps-back-link:hover {
    text-decoration: underline;
}

/* v0.3.17 UI/UX Stabilization + Affiliate */
.redi-dps-sidebar-stats,.redi-dps-side-summary{display:none!important}.redi-dps-owned-products-table th:nth-child(1),.redi-dps-owned-products-table td:nth-child(1){width:25%}.redi-dps-owned-products-table th:nth-child(2),.redi-dps-owned-products-table td:nth-child(2){width:10%}.redi-dps-owned-products-table th:nth-child(3),.redi-dps-owned-products-table td:nth-child(3){width:18%}.redi-dps-owned-products-table th:nth-child(4),.redi-dps-owned-products-table td:nth-child(4){width:12%}.redi-dps-owned-products-table th:nth-child(5),.redi-dps-owned-products-table td:nth-child(5){width:35%}.redi-dps-download-versions{display:grid;gap:10px;width:100%}.redi-dps-download-version-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.redi-dps-download-version-row strong,.redi-dps-download-version-row small{display:block;overflow-wrap:anywhere}.redi-dps-current-version{display:inline-flex;margin-left:6px;padding:3px 7px;border-radius:999px;background:#dcfce7;color:#047857;font-size:11px;font-weight:900}.redi-dps-button-disabled{opacity:.75;cursor:not-allowed!important;pointer-events:none}.redi-dps-alert-success{background:#dcfce7;border:1px solid #86efac;color:#047857;border-radius:18px;padding:14px 18px;font-weight:800;margin-bottom:18px}.redi-dps-account-grid,.redi-dps-product-detail-grid-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.redi-dps-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.redi-dps-form-grid label{display:grid;gap:8px;color:var(--redi-muted);font-weight:800}.redi-dps-form-grid input,.redi-dps-form-grid textarea,.redi-dps-copy-box input{width:100%;border:1px solid #dbe3ef;border-radius:14px;padding:12px 14px;background:#f8fafc;color:var(--redi-text);font-weight:700}.redi-dps-form-grid input:disabled{opacity:.75}.redi-dps-form-full{grid-column:1/-1}.redi-dps-affiliate-summary{margin-top:18px;padding:16px;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0}.redi-dps-affiliate-summary h4{margin:0 0 10px;color:var(--redi-text)}.redi-dps-affiliate-summary p{margin:6px 0;color:var(--redi-muted)}.redi-dps-copy-box{display:flex;gap:10px;align-items:center}@media(max-width:900px){.redi-dps-account-grid,.redi-dps-form-grid,.redi-dps-product-detail-grid-secondary{grid-template-columns:1fr}.redi-dps-download-version-row,.redi-dps-copy-box{flex-direction:column;align-items:stretch}}


/* v0.3.19 Stabilization */
.redi-dps-sidebar-mini,
.redi-dps-sidebar-stats,
.redi-dps-side-summary,
.redi-dps-member-sidebar .redi-dps-sidebar-mini,
.redi-dps-portal-sidebar .redi-dps-sidebar-mini {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.redi-dps-owned-products-table th:nth-child(1),
.redi-dps-owned-products-table td:nth-child(1) { width: 25%; }

.redi-dps-owned-products-table th:nth-child(2),
.redi-dps-owned-products-table td:nth-child(2) { width: 10%; }

.redi-dps-owned-products-table th:nth-child(3),
.redi-dps-owned-products-table td:nth-child(3) { width: 18%; }

.redi-dps-owned-products-table th:nth-child(4),
.redi-dps-owned-products-table td:nth-child(4) { width: 12%; }

.redi-dps-owned-products-table th:nth-child(5),
.redi-dps-owned-products-table td:nth-child(5) { width: 35%; }

.redi-dps-download-versions {
    display: grid;
    gap: 10px;
    width: 100%;
}

.redi-dps-download-version-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.redi-dps-download-version-row > div {
    min-width: 0;
}

.redi-dps-download-version-row strong,
.redi-dps-download-version-row small {
    display: block;
    overflow-wrap: anywhere;
}

.redi-dps-current-version {
    display: inline-flex;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
}

.redi-dps-product-detail-grid-secondary {
    margin-top: 22px;
}

.redi-dps-back-link {
    display: inline-flex;
    margin-bottom: 12px;
    color: #174b8f;
    font-weight: 900;
    text-decoration: none;
}

.redi-dps-button-disabled {
    opacity: .75;
    cursor: not-allowed !important;
    pointer-events: none;
}

.redi-dps-alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #047857;
    border-radius: 18px;
    padding: 14px 18px;
    font-weight: 800;
    margin-bottom: 18px;
}

.redi-dps-account-grid,
.redi-dps-product-detail-grid-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.redi-dps-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.redi-dps-form-grid label {
    display: grid;
    gap: 8px;
    color: var(--redi-muted);
    font-weight: 800;
}

.redi-dps-form-grid input,
.redi-dps-form-grid textarea,
.redi-dps-copy-box input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    color: var(--redi-text);
    font-weight: 700;
}

.redi-dps-form-full {
    grid-column: 1 / -1;
}

.redi-dps-affiliate-summary {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.redi-dps-copy-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 900px) {
    .redi-dps-account-grid,
    .redi-dps-form-grid,
    .redi-dps-product-detail-grid-secondary {
        grid-template-columns: 1fr;
    }

    .redi-dps-download-version-row,
    .redi-dps-copy-box {
        flex-direction: column;
        align-items: stretch;
    }
}


/* v0.3.20 UI Layout Recovery - member area only */
.redi-dps-portal-layout.redi-dps-multipage-layout,
.redi-dps-portal-layout.redi-dps-member-app-mode {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
    width: min(96vw, 1440px) !important;
    max-width: 1440px !important;
    margin: 36px auto 56px !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
}

.redi-dps-portal-layout *,
.redi-dps-portal-layout *::before,
.redi-dps-portal-layout *::after {
    box-sizing: border-box !important;
}

.redi-dps-portal-sidebar {
    position: sticky !important;
    top: 24px !important;
    align-self: start !important;
    width: 100% !important;
    max-width: 300px !important;
    min-width: 0 !important;
    background: #fff !important;
    border: 1px solid var(--redi-border) !important;
    border-radius: 24px !important;
    box-shadow: var(--redi-shadow) !important;
    padding: 22px !important;
    overflow: hidden !important;
}

.redi-dps-sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--redi-border) !important;
    margin-bottom: 18px !important;
}

.redi-dps-sidebar-user {
    min-width: 0 !important;
}

.redi-dps-sidebar-user strong,
.redi-dps-sidebar-user span {
    display: block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.redi-dps-sidebar-nav {
    display: grid !important;
    gap: 10px !important;
}

.redi-dps-nav-link {
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: var(--redi-text) !important;
    font-weight: 800 !important;
    border: 1px solid transparent !important;
}

.redi-dps-nav-link:hover,
.redi-dps-nav-link.active {
    background: #f7faff !important;
    color: var(--redi-primary) !important;
    border-color: var(--redi-border) !important;
}

.redi-dps-sidebar-mini,
.redi-dps-sidebar-stat,
.redi-dps-side-summary,
.redi-dps-sidebar-stats {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.redi-dps-sidebar-footer {
    margin-top: 22px !important;
    padding-top: 0 !important;
    width: 100% !important;
}

.redi-dps-sidebar-footer .redi-dps-button,
.redi-dps-portal-sidebar > .redi-dps-button-full {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    margin: 0 !important;
}

.redi-dps-portal-content {
    min-width: 0 !important;
    width: 100% !important;
}

.redi-dps-multipage-layout .redi-dps-portal-content > .redi-dps-member-shell:first-child {
    margin-top: 0 !important;
}

.redi-dps-hero {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px) !important;
}

.redi-dps-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.redi-dps-catalog-grid,
.redi-dps-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

@media (max-width: 1100px) {
    .redi-dps-portal-layout.redi-dps-multipage-layout,
    .redi-dps-portal-layout.redi-dps-member-app-mode {
        grid-template-columns: 1fr !important;
        width: min(96vw, 980px) !important;
    }

    .redi-dps-portal-sidebar {
        position: relative !important;
        top: 0 !important;
        max-width: 100% !important;
    }

    .redi-dps-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .redi-dps-hero {
        grid-template-columns: 1fr !important;
    }

    .redi-dps-stat-grid,
    .redi-dps-catalog-grid,
    .redi-dps-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .redi-dps-portal-layout.redi-dps-multipage-layout,
    .redi-dps-portal-layout.redi-dps-member-app-mode {
        width: 100% !important;
        padding: 0 14px !important;
        margin-top: 18px !important;
    }

    .redi-dps-sidebar-nav,
    .redi-dps-stat-grid,
    .redi-dps-catalog-grid,
    .redi-dps-products-grid {
        grid-template-columns: 1fr !important;
    }
}


/* v0.3.21 — Compact Update & Pengumuman on Overview */
.redi-dps-member-updates-compact {
    margin: 22px 0 28px;
    padding: 20px;
    border: 1px solid #dce8f8;
    border-radius: 26px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
}

.redi-dps-compact-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.redi-dps-compact-section-head h2 {
    margin: 8px 0 4px;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.12;
}

.redi-dps-compact-section-head p {
    margin: 0;
    color: var(--redi-muted, #5c6f8f);
    font-size: 14px;
    line-height: 1.55;
}

.redi-dps-update-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.redi-dps-update-mini-card {
    border: 1px solid #e0e8f3;
    border-radius: 18px;
    background: #fff;
    padding: 15px;
    min-height: 135px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .045);
}

.redi-dps-update-mini-card h3 {
    margin: 9px 0 7px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--redi-text, #0f2e52);
}

.redi-dps-update-mini-card p {
    margin: 0;
    color: var(--redi-muted, #5c6f8f);
    font-size: 13.5px;
    line-height: 1.55;
}

.redi-dps-mini-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.redi-dps-mini-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #1554a3;
    font-size: 12px;
    font-weight: 900;
}

.redi-dps-mini-meta small {
    color: var(--redi-muted, #5c6f8f);
    font-weight: 700;
    font-size: 12px;
}

@media (max-width: 980px) {
    .redi-dps-compact-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .redi-dps-update-mini-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.3.22 — Update & Pengumuman Cleanup */
.redi-dps-member-updates-compact {
    margin: 22px 0 28px;
    padding: 20px;
    border: 1px solid #dce8f8;
    border-radius: 26px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
}

.redi-dps-compact-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.redi-dps-compact-section-head h2 {
    margin: 8px 0 4px;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.12;
}

.redi-dps-compact-section-head p {
    margin: 0;
    color: var(--redi-muted, #5c6f8f);
    font-size: 14px;
    line-height: 1.55;
}

.redi-dps-update-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.redi-dps-update-mini-card {
    border: 1px solid #e0e8f3;
    border-radius: 18px;
    background: #fff;
    padding: 15px;
    min-height: 135px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .045);
}

.redi-dps-update-mini-card h3,
.redi-dps-info-card h3 {
    margin: 9px 0 7px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--redi-text, #0f2e52);
}

.redi-dps-update-mini-card p,
.redi-dps-info-card p {
    margin: 0;
    color: var(--redi-muted, #5c6f8f);
    font-size: 13.5px;
    line-height: 1.55;
}

.redi-dps-mini-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.redi-dps-mini-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #1554a3;
    font-size: 12px;
    font-weight: 900;
}

.redi-dps-mini-meta small {
    color: var(--redi-muted, #5c6f8f);
    font-weight: 700;
    font-size: 12px;
}

.redi-dps-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.redi-dps-info-card {
    border: 1px solid #e0e8f3;
    border-radius: 22px;
    background: #fff;
    padding: 18px;
    min-height: 170px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .055);
}

.redi-dps-info-readmore {
    margin-top: 14px;
    border: 1px solid #dbe5f2;
    background: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    color: #174b8f;
    font-weight: 900;
    cursor: pointer;
}

.redi-dps-info-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    font-weight: 800;
}

.redi-dps-info-pagination a {
    border: 1px solid #dbe5f2;
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    color: #174b8f;
}

.redi-dps-info-modal[aria-hidden="true"] {
    display: none;
}

.redi-dps-info-modal[aria-hidden="false"] {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, .42);
    display: grid;
    place-items: center;
    padding: 20px;
}

.redi-dps-info-modal-box {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
    position: relative;
}

.redi-dps-info-modal-box h3 {
    margin: 0 0 12px;
    color: var(--redi-text, #0f2e52);
}

.redi-dps-info-modal-box p {
    color: var(--redi-muted, #5c6f8f);
    line-height: 1.7;
    white-space: pre-line;
}

.redi-dps-info-modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    border: none;
    background: transparent;
    font-size: 30px;
    font-weight: 900;
    cursor: pointer;
    color: #0f2e52;
}

@media (max-width: 980px) {
    .redi-dps-compact-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .redi-dps-update-mini-grid,
    .redi-dps-info-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.3.23 — CPT Member Update Fix */
.redi-dps-member-updates-compact {
    margin: 22px 0 28px;
    padding: 20px;
    border: 1px solid #dce8f8;
    border-radius: 26px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
}

.redi-dps-compact-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.redi-dps-compact-section-head h2 {
    margin: 8px 0 4px;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.12;
}

.redi-dps-compact-section-head p {
    margin: 0;
    color: var(--redi-muted, #5c6f8f);
    font-size: 14px;
    line-height: 1.55;
}

.redi-dps-update-mini-grid,
.redi-dps-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.redi-dps-update-mini-card,
.redi-dps-info-card {
    border: 1px solid #e0e8f3;
    border-radius: 18px;
    background: #fff;
    padding: 15px;
    min-height: 135px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .045);
}

.redi-dps-info-card {
    min-height: 175px;
    padding: 18px;
}

.redi-dps-update-mini-card h3,
.redi-dps-info-card h3 {
    margin: 9px 0 7px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--redi-text, #0f2e52);
}

.redi-dps-update-mini-card p,
.redi-dps-info-card p {
    margin: 0;
    color: var(--redi-muted, #5c6f8f);
    font-size: 13.5px;
    line-height: 1.55;
}

.redi-dps-mini-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.redi-dps-mini-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #1554a3;
    font-size: 12px;
    font-weight: 900;
}

.redi-dps-mini-meta small {
    color: var(--redi-muted, #5c6f8f);
    font-weight: 700;
    font-size: 12px;
}

.redi-dps-info-readmore {
    margin-top: 14px;
    border: 1px solid #dbe5f2;
    background: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    color: #174b8f;
    font-weight: 900;
    cursor: pointer;
}

.redi-dps-info-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    font-weight: 800;
}

.redi-dps-info-pagination a {
    border: 1px solid #dbe5f2;
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    color: #174b8f;
}

.redi-dps-info-modal[aria-hidden="true"] {
    display: none;
}

.redi-dps-info-modal[aria-hidden="false"] {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, .42);
    display: grid;
    place-items: center;
    padding: 20px;
}

.redi-dps-info-modal-box {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
    position: relative;
}

.redi-dps-info-modal-box h3 {
    margin: 0 0 12px;
    color: var(--redi-text, #0f2e52);
}

.redi-dps-info-modal-box p {
    color: var(--redi-muted, #5c6f8f);
    line-height: 1.7;
    white-space: pre-line;
}

.redi-dps-info-modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    border: none;
    background: transparent;
    font-size: 30px;
    font-weight: 900;
    cursor: pointer;
    color: #0f2e52;
}

@media (max-width: 980px) {
    .redi-dps-compact-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .redi-dps-update-mini-grid,
    .redi-dps-info-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.3.24 — Read More Button on Compact Update Cards */
.redi-dps-update-mini-card {
    display: flex;
    flex-direction: column;
}

.redi-dps-update-mini-readmore {
    width: fit-content;
    margin-top: 14px;
    border: 1px solid #dbe5f2;
    background: #fff;
    border-radius: 999px;
    padding: 8px 13px;
    color: #174b8f;
    font-weight: 900;
    font-size: 12.5px;
    cursor: pointer;
    transition: all .2s ease;
}

.redi-dps-update-mini-readmore:hover {
    background: #174b8f;
    color: #fff;
    border-color: #174b8f;
    transform: translateY(-1px);
}

#redi-dps-compact-info-modal[aria-hidden="true"] {
    display: none;
}

#redi-dps-compact-info-modal[aria-hidden="false"] {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, .42);
    display: grid;
    place-items: center;
    padding: 20px;
}


/* v0.3.31 — Member Account Layout Fix */
.redi-dps-member-layout,
.redi-dps-portal-layout,
.redi-dps-member-dashboard-layout {
    align-items: flex-start;
}

.redi-dps-member-content,
.redi-dps-portal-content,
.redi-dps-main-content {
    min-width: 0;
    width: 100%;
    overflow: visible;
}

.redi-dps-account-page {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.redi-dps-account-page .redi-dps-section-head,
.redi-dps-account-page > .redi-dps-chip,
.redi-dps-account-page > h1,
.redi-dps-account-page > h2,
.redi-dps-account-page > p {
    max-width: 100%;
}

.redi-dps-account-page form,
.redi-dps-account-page .redi-dps-form,
.redi-dps-account-page .redi-dps-card,
.redi-dps-account-page .redi-dps-member-panel,
.redi-dps-account-page .redi-dps-account-panel {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.redi-dps-account-page .redi-dps-grid,
.redi-dps-account-page .redi-dps-grid-2,
.redi-dps-account-page .redi-dps-profile-grid,
.redi-dps-account-page .redi-dps-account-grid,
.redi-dps-account-page .redi-dps-member-grid,
.redi-dps-account-page .redi-dps-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.redi-dps-account-page .redi-dps-account-panel,
.redi-dps-account-page .redi-dps-member-panel {
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
    overflow: hidden;
}

.redi-dps-account-page input[type="text"],
.redi-dps-account-page input[type="email"],
.redi-dps-account-page input[type="tel"],
.redi-dps-account-page input[type="number"],
.redi-dps-account-page textarea,
.redi-dps-account-page select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.redi-dps-account-page textarea {
    min-height: 150px;
    resize: vertical;
}

.redi-dps-account-page .redi-dps-field,
.redi-dps-account-page .redi-dps-form-row,
.redi-dps-account-page label {
    min-width: 0;
    max-width: 100%;
}

.redi-dps-account-page .redi-dps-field-value,
.redi-dps-account-page strong,
.redi-dps-account-page b {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.redi-dps-account-page .redi-dps-button,
.redi-dps-account-page button,
.redi-dps-account-page input[type="submit"] {
    max-width: 100%;
    box-sizing: border-box;
}

/* Recovery for themes that constrain the shortcode content too narrowly */
body .redi-dps-member-app,
body .redi-dps-member-wrapper,
body .redi-dps-member-area {
    max-width: min(1680px, calc(100vw - 48px));
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* When viewport is medium/small, account cards stack cleanly */
@media (max-width: 1200px) {
    .redi-dps-account-page .redi-dps-grid,
    .redi-dps-account-page .redi-dps-grid-2,
    .redi-dps-account-page .redi-dps-profile-grid,
    .redi-dps-account-page .redi-dps-account-grid,
    .redi-dps-account-page .redi-dps-member-grid,
    .redi-dps-account-page .redi-dps-form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    body .redi-dps-member-app,
    body .redi-dps-member-wrapper,
    body .redi-dps-member-area {
        max-width: calc(100vw - 24px);
    }

    .redi-dps-account-page .redi-dps-account-panel,
    .redi-dps-account-page .redi-dps-member-panel {
        padding: 20px;
    }
}


/* v0.3.32 — Structural Member Account Fix */
#redi-member-account.redi-dps-account-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
}

#redi-member-account .redi-dps-account-head {
    margin-bottom: 22px;
}

#redi-member-account .redi-dps-account-head h2 {
    margin-top: 10px;
}

#redi-member-account .redi-dps-account-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}

#redi-member-account .redi-dps-account-clean-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    box-sizing: border-box;
    overflow: visible;
}

#redi-member-account .redi-dps-account-clean-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 28px;
    border-radius: 26px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
    overflow: hidden;
}

#redi-member-account .redi-dps-account-clean-card h3 {
    margin: 0 0 20px;
    font-size: 26px;
    line-height: 1.2;
    color: var(--redi-text, #0f2e52);
}

#redi-member-account .redi-dps-account-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#redi-member-account .redi-dps-account-fields label,
#redi-member-account .redi-dps-account-note {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#redi-member-account .redi-dps-account-fields label span {
    display: block;
    margin-bottom: 8px;
    color: var(--redi-muted, #5c6f8f);
    font-weight: 900;
    font-size: 14px;
}

#redi-member-account .redi-dps-account-fields input,
#redi-member-account .redi-dps-account-fields textarea,
#redi-member-account .redi-dps-account-fields select {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #fff;
    padding: 13px 14px;
    color: var(--redi-text, #0f2e52);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#redi-member-account .redi-dps-account-fields input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

#redi-member-account .redi-dps-account-fields textarea {
    min-height: 150px;
    resize: vertical;
}

#redi-member-account .redi-dps-account-field-full {
    grid-column: 1 / -1;
}

#redi-member-account .redi-dps-account-note {
    padding: 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    color: var(--redi-muted, #5c6f8f);
    line-height: 1.6;
    font-weight: 700;
}

#redi-member-account .redi-dps-account-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

#redi-member-account .redi-dps-account-actions .redi-dps-button {
    min-width: 180px;
}

/* Force parent content not to clip account page */
body .redi-dps-member-content,
body .redi-dps-portal-content,
body .redi-dps-main-content,
body .redi-dps-member-shell {
    min-width: 0;
}

@media (max-width: 1280px) {
    #redi-member-account .redi-dps-account-clean-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    #redi-member-account .redi-dps-account-clean-card {
        padding: 20px;
        border-radius: 20px;
    }

    #redi-member-account .redi-dps-account-fields {
        grid-template-columns: 1fr;
    }

    #redi-member-account .redi-dps-account-actions {
        justify-content: stretch;
    }

    #redi-member-account .redi-dps-account-actions .redi-dps-button {
        width: 100%;
    }
}


/* v0.3.35 — Checkout Core UI */
.redi-dps-checkout-box {
    margin-top: 14px;
}

.redi-dps-checkout-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 900;
    color: var(--redi-text, #0f2e52);
}

.redi-dps-checkout-duration-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.redi-dps-duration-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
}

.redi-dps-duration-option:hover {
    border-color: #1d5aa7;
    box-shadow: 0 10px 25px rgba(29, 90, 167, .08);
}

.redi-dps-duration-option input {
    margin: 0;
}

.redi-dps-duration-option span {
    font-weight: 900;
    color: var(--redi-text, #0f2e52);
}

.redi-dps-duration-option strong {
    color: #1d5aa7;
}

.redi-dps-checkout-box small {
    display: block;
    margin-top: 10px;
    color: var(--redi-muted, #5c6f8f);
    line-height: 1.5;
}

.redi-dps-checkout-warning {
    padding: 12px 14px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.redi-dps-alert-success {
    padding: 16px 18px;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #047857;
    margin-bottom: 18px;
    font-weight: 700;
}


/* v0.3.36 — Invoice Core */
.redi-dps-invoice-preview-panel {
    overflow: auto;
}

.redi-dps-invoice-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.redi-invoice-document {
    background: #fff;
    border: 1px solid #dbe5f2;
    border-radius: 22px;
    padding: 34px;
    color: #0f2e52;
}

.redi-invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 3px solid #174b8f;
    padding-bottom: 22px;
    margin-bottom: 26px;
}

.redi-invoice-header h1 {
    margin: 0;
    font-size: 38px;
    color: #0f2e52;
}

.redi-invoice-header p {
    margin: 8px 0 0;
    color: #5c6f8f;
}

.redi-invoice-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #334155;
}

.redi-invoice-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 26px;
}

.redi-invoice-info-grid h3 {
    margin: 0 0 10px;
    color: #0f2e52;
}

.redi-invoice-info-grid p {
    margin: 0;
    line-height: 1.7;
    color: #334155;
}

.redi-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.redi-invoice-table th,
.redi-invoice-table td {
    border: 1px solid #dbe5f2;
    padding: 13px;
    text-align: left;
}

.redi-invoice-table th {
    background: #f1f5f9;
    color: #0f2e52;
}

.redi-invoice-table tfoot td {
    font-weight: 900;
    font-size: 17px;
}

.redi-invoice-instruction {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 18px;
    margin-top: 18px;
}

.redi-invoice-instruction h3 {
    margin: 0 0 8px;
    color: #0f2e52;
}

.redi-invoice-instruction p {
    margin: 0;
    line-height: 1.7;
    color: #334155;
}

.redi-invoice-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 760px) {
    .redi-invoice-header,
    .redi-invoice-info-grid {
        grid-template-columns: 1fr;
        display: grid;
        text-align: left;
    }

    .redi-invoice-meta {
        text-align: left;
    }

    .redi-invoice-document {
        padding: 22px;
    }
}


/* v0.3.37 — Payment Pending / Thank You Flow */
.redi-dps-payment-page {
    width: 100%;
}

.redi-dps-payment-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    gap: 24px;
    align-items: stretch;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid #bfdbfe;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .07);
    margin-bottom: 26px;
}

.redi-dps-payment-hero h2 {
    margin: 12px 0 12px;
    font-size: 42px;
    line-height: 1.1;
    color: var(--redi-text, #0f2e52);
}

.redi-dps-payment-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--redi-muted, #5c6f8f);
    font-size: 18px;
    line-height: 1.7;
}

.redi-dps-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.redi-dps-payment-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #dbe5f2;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .055);
}

.redi-dps-payment-summary-card span {
    color: var(--redi-muted, #5c6f8f);
    font-weight: 900;
    margin-bottom: 10px;
}

.redi-dps-payment-summary-card strong {
    color: var(--redi-text, #0f2e52);
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.redi-dps-payment-summary-card small {
    color: var(--redi-muted, #5c6f8f);
    font-weight: 800;
}

.redi-dps-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.redi-dps-payment-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.redi-dps-payment-detail-list div {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fbff;
    min-width: 0;
}

.redi-dps-payment-detail-list span {
    display: block;
    color: var(--redi-muted, #5c6f8f);
    font-weight: 800;
    margin-bottom: 8px;
}

.redi-dps-payment-detail-list strong {
    display: block;
    color: var(--redi-text, #0f2e52);
    overflow-wrap: anywhere;
}

.redi-dps-payment-instruction {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    line-height: 1.7;
    font-weight: 800;
}

.redi-dps-payment-paid {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #86efac;
    background: #ecfdf5;
    color: #047857;
    line-height: 1.7;
    font-weight: 900;
}

.redi-dps-payment-items {
    overflow: auto;
}

@media (max-width: 1100px) {
    .redi-dps-payment-hero,
    .redi-dps-payment-grid {
        grid-template-columns: 1fr;
    }

    .redi-dps-payment-hero h2 {
        font-size: 34px;
    }
}

@media (max-width: 680px) {
    .redi-dps-payment-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .redi-dps-payment-detail-list {
        grid-template-columns: 1fr;
    }

    .redi-dps-payment-actions .redi-dps-button {
        width: 100%;
    }
}


/* v0.3.38 — Auto Fulfillment Status UI */
.redi-dps-status-badge {
    text-transform: capitalize;
}

.redi-dps-fulfillment-note {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: #0f2e52;
    line-height: 1.6;
}


/* v0.3.39 — Member Affiliate Commission */
.redi-dps-affiliate-history-card {
    grid-column: 1 / -1;
}

.redi-dps-affiliate-history-card .redi-dps-responsive-table {
    overflow-x: auto;
}


/* v0.4.0 — Payment Gateway Core Notice */
.redi-dps-payment-instruction strong {
    display: inline-block;
    margin-bottom: 6px;
}


/* v0.4.1 — Tripay Create Transaction */
.redi-dps-button-pay {
    background: linear-gradient(135deg, #16a34a, #047857) !important;
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(4, 120, 87, .22);
}


/* v0.4.1.1 — Payment button visibility fix */
.redi-dps-payment-box-action {
    margin-top: 18px;
}

.redi-dps-payment-box-action .redi-dps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.redi-dps-payment-pay-action-top {
    order: -10;
}


/* v0.4.2 — Premium Payment Page Polish */
.redi-dps-payment-hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.redi-dps-payment-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.redi-dps-payment-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .01em;
    border: 1px solid transparent;
    line-height: 1;
}

.redi-dps-payment-state.is-pending {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.redi-dps-payment-state.is-paid {
    background: #ecfdf5;
    border-color: #86efac;
    color: #047857;
}

.redi-dps-payment-state.is-expired,
.redi-dps-payment-state.is-failed {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.redi-dps-payment-state.is-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.redi-dps-payment-summary-card {
    gap: 18px;
}

.redi-dps-payment-summary-top {
    display: flex;
    flex-direction: column;
}

.redi-dps-payment-summary-meta {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.redi-dps-payment-summary-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redi-dps-payment-summary-meta span {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.redi-dps-payment-summary-meta strong {
    font-size: 15px;
    margin: 0;
}

.redi-dps-payment-grid > .redi-dps-member-panel {
    padding: 26px;
}

.redi-dps-payment-grid > .redi-dps-member-panel h3,
.redi-dps-payment-items h3 {
    margin-bottom: 18px;
}

.redi-dps-payment-detail-list strong .redi-dps-payment-state {
    font-size: 12px;
}

.redi-dps-payment-paid-premium p {
    margin: 8px 0 0;
    color: inherit;
    font-weight: 700;
}

.redi-dps-payment-flow {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.redi-dps-payment-flow-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(134, 239, 172, .8);
    border-radius: 16px;
}

.redi-dps-payment-flow-item span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a, #047857);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    flex: 0 0 30px;
}

.redi-dps-payment-flow-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redi-dps-payment-flow-item div strong {
    color: #065f46;
}

.redi-dps-payment-flow-item div small {
    font-size: 13px;
    color: #047857;
}

.redi-dps-payment-box-action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.redi-dps-payment-instruction-premium {
    background: linear-gradient(180deg, #fff7ed 0%, #fffaf5 100%);
}

.redi-dps-payment-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.redi-dps-payment-section-head p {
    margin: 6px 0 0;
    color: var(--redi-muted, #5c6f8f);
}

.redi-dps-payment-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
}

.redi-dps-payment-items .redi-dps-member-table th {
    white-space: nowrap;
}

.redi-dps-payment-items .redi-dps-member-table td,
.redi-dps-payment-items .redi-dps-member-table th {
    vertical-align: middle;
}

@media (max-width: 680px) {
    .redi-dps-payment-summary-card {
        padding: 22px;
    }

    .redi-dps-payment-grid > .redi-dps-member-panel {
        padding: 22px;
    }

    .redi-dps-payment-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* v0.4.2.1 — Internal Payment Detail Panel */
.redi-dps-payment-channel-panel {
    grid-column: 1 / -1;
}

.redi-dps-payment-instruction-panel {
    grid-column: 1 / -1;
}

.redi-dps-payment-channel-lead {
    margin: -8px 0 18px;
    color: var(--redi-muted, #5c6f8f);
    line-height: 1.6;
}

.redi-dps-payment-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.redi-dps-payment-channel-grid > div {
    padding: 17px;
    border-radius: 18px;
    border: 1px solid #dbe5f2;
    background: #f8fbff;
    min-width: 0;
}

.redi-dps-payment-channel-grid span {
    display: block;
    color: var(--redi-muted, #5c6f8f);
    font-weight: 900;
    margin-bottom: 8px;
}

.redi-dps-payment-channel-grid strong {
    display: block;
    color: var(--redi-text, #0f2e52);
    overflow-wrap: anywhere;
}

.redi-dps-payment-channel-grid small {
    display: block;
    margin-top: 8px;
    color: var(--redi-muted, #5c6f8f);
    line-height: 1.5;
}

.redi-dps-payment-code-card {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
    border-color: #bfdbfe !important;
}

.redi-dps-payment-code-card strong {
    font-size: 22px;
    letter-spacing: .02em;
}

.redi-dps-payment-method-instructions {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.redi-dps-payment-method-instruction {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(134, 239, 172, .8);
}

.redi-dps-payment-method-instruction > strong {
    color: #065f46;
    display: block;
    margin-bottom: 10px;
}

.redi-dps-payment-method-instruction ol {
    margin: 0 0 0 20px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.redi-dps-payment-method-instruction li {
    font-weight: 700;
    color: #047857;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .redi-dps-payment-channel-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.4.3 — Internal-first Payment Instruction */
.redi-dps-copy-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.redi-dps-copy-wrap .redi-dps-copy-value {
    flex: 1;
    min-width: 180px;
}

.redi-dps-copy-btn {
    appearance: none;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #174b8f;
    font-weight: 900;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    transition: .18s ease;
}

.redi-dps-copy-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.redi-dps-payment-official-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    background: #fff;
    color: #174b8f;
    text-decoration: none;
    font-weight: 900;
}

.redi-dps-payment-official-link:hover {
    background: #eff6ff;
    color: #0f3e7a;
}

.redi-dps-payment-actions .redi-dps-button-pay {
    display: none;
}

.redi-dps-payment-paid-premium {
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fffc 100%);
}


/* v0.4.3.1 — QRIS Display */
.redi-dps-qris-card {
    grid-row: span 2;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    border-color: #86efac !important;
}

.redi-dps-qris-frame {
    width: 220px;
    max-width: 100%;
    margin: 12px auto;
    padding: 14px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid #dbeafe;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.redi-dps-qris-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.redi-dps-qris-card small {
    text-align: center;
}

.redi-dps-copy-btn {
    cursor: pointer;
}


/* v0.4.4 — Member Payment Channel Selection */
.redi-dps-payment-notice {
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 800;
    border: 1px solid transparent;
}

.redi-dps-payment-notice-success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #047857;
}

.redi-dps-payment-notice-error {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.redi-dps-payment-channel-selector {
    grid-column: 1 / -1;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, .12), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.redi-dps-channel-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.redi-dps-channel-choice {
    display: block;
    cursor: pointer;
}

.redi-dps-channel-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.redi-dps-channel-choice-body {
    display: block;
    padding: 18px;
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: #fff;
    transition: .18s ease;
    min-height: 86px;
}

.redi-dps-channel-choice-body strong {
    display: block;
    color: var(--redi-text, #16304f);
    font-size: 17px;
    margin-bottom: 7px;
}

.redi-dps-channel-choice-body small {
    display: block;
    color: var(--redi-muted, #59708e);
    line-height: 1.45;
}

.redi-dps-channel-choice.is-qris .redi-dps-channel-choice-body {
    border-color: #86efac;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.redi-dps-channel-choice input:checked + .redi-dps-channel-choice-body {
    border-color: #1f5aa6;
    box-shadow: 0 16px 38px rgba(31, 90, 166, .14);
    transform: translateY(-1px);
}

.redi-dps-channel-choice input:checked + .redi-dps-channel-choice-body::after {
    content: "Dipilih";
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.redi-dps-channel-choice-submit {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .redi-dps-channel-choice-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.4.4.1 — Neutral Payment Channel Selection */
.redi-dps-channel-choice.is-qris .redi-dps-channel-choice-body {
    border-color: #dbe5f2;
    background: #fff;
}

.redi-dps-channel-choice-grid {
    align-items: stretch;
}

.redi-dps-channel-choice-body {
    height: 100%;
}


/* v0.4.5.1 — Payment Status Sync */
.redi-dps-sync-payment-form {
    display: inline-flex;
    margin: 0;
}

.redi-dps-sync-payment-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
}


/* v0.4.5.2 — Member Order Sync */
.redi-dps-member-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* v0.4.5.4 — Auto Payment Status Refresh */
.redi-dps-auto-payment-watch {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    color: #1e3a8a;
    margin-bottom: 18px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
}

.redi-dps-auto-payment-watch strong {
    display: block;
    font-weight: 900;
    margin-bottom: 4px;
    color: #173b69;
}

.redi-dps-auto-payment-watch p {
    margin: 0;
    color: #59708e;
    line-height: 1.55;
}

.redi-dps-auto-payment-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #2563eb;
    margin-top: 5px;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, .45);
    animation: rediDpsPaymentPulse 1.6s infinite;
    flex: 0 0 13px;
}

.redi-dps-auto-payment-watch.is-paid {
    border-color: #86efac;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    color: #047857;
}

.redi-dps-auto-payment-watch.is-paid .redi-dps-auto-payment-dot {
    background: #16a34a;
    box-shadow: none;
    animation: none;
}

.redi-dps-auto-payment-watch.is-error {
    border-color: #fdba74;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    color: #c2410c;
}

.redi-dps-auto-payment-watch.is-error .redi-dps-auto-payment-dot {
    background: #f97316;
    box-shadow: none;
    animation: none;
}

@keyframes rediDpsPaymentPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .45);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}


/* v0.4.7 Email Verification */
.redi-dps-email-verification-box {
    max-width: 760px;
    margin: 40px auto;
}

.redi-dps-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 14px 0;
    font-weight: 800;
}

.redi-dps-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #86efac;
}

.redi-dps-alert-error {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.redi-dps-button-light {
    background: #fff !important;
    color: #164e8c !important;
    border: 1px solid #dbe5f2 !important;
    box-shadow: none !important;
}


/* v0.4.7.5 Registration & Transactional Email */
.redi-dps-member-auth-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.redi-dps-auth-card {
    width: min(620px, 100%);
}

.redi-dps-auth-card h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    color: #0f2745;
}

.redi-dps-auth-form {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.redi-dps-auth-form label {
    font-weight: 900;
    color: #5c6f89;
}

.redi-dps-auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
    color: #0f2745;
    font-size: 16px;
}

.redi-dps-auth-footer {
    margin-top: 18px;
    color: #5c6f89;
}

.redi-dps-auth-footer a {
    color: #0f4c8f;
    font-weight: 900;
    text-decoration: none;
}


/* v0.4.7.6 Register Fix */
.redi-dps-register-wrap {
    background: #f4f7fb;
}

.redi-dps-auth-card {
    box-shadow: 0 24px 70px rgba(15, 39, 69, .08);
}
