/* ============================================
   THEME OVERRIDES — Page ID 1228
   ============================================ */
.page-id-1228 [data-vertical-spacing*="bottom"] { padding-bottom: 0px !important; }
.page-id-1228 .hero-section[data-type="type-1"]  { display: none !important; }
.page-id-1228 [data-vertical-spacing*="top"]     { padding-top: 0px !important; }
body.page-id-1228                                { background-color: #F5F3EF !important; }

/* ============================================
   DASHBOARD CONTAINER
   ============================================ */


.dg-dashboard {
    font-family: 'Inter', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 0 60px;
    color: #1a1a1a;
}

/* ============================================
   GRID
   ============================================ */
.dg-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* ============================================
   CARDS
   ============================================ */
.dg-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.dg-card h3,
.dg-card-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-family: 'Playfair Display', serif;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 10px;
    color: #1a1a1a;
}

/* Order table card overrides */
.dg-order-table-wrap {
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
}

/* ============================================
   EDIT HEADER & TOP NAV
   ============================================ */
.dg-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.dg-edit-header__title {
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.dg-dashboard-top-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.dg-main-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    font-family: serif;
    letter-spacing: -0.5px;
}

/* ============================================
   POINTS BANNER
   ============================================ */
.dg-points-banner {
    background: linear-gradient(135deg, rgb(208, 166, 88) 0%, rgb(162, 200, 210) 100%);
    border-radius: 20px;
    padding: 18px 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    gap: 30px;
}

.dg-banner-left {
    flex: 1;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.dg-banner-status {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.dg-banner-tier {
    color: #1B4332;
}

.dg-banner-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: #2d2d2d;
    line-height: 1.5;
}

.dg-progress-track {
    width: 100%;
    max-width: 520px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
    overflow: hidden;
}

.dg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1B4332, #2D6A4F);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.dg-banner-right {
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.dg-banner-points-label {
    font-size: 12px;
    color: #000;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.dg-banner-points-value {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 800;
    color: #000;
    line-height: 1;
    margin-bottom: 16px;
}

.dg-benefits-btn {
    display: inline-block;
    border: 2px solid #1B4332;
    color: #1B4332;
    background: transparent;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.dg-benefits-btn:hover {
    background: #1B4332;
    color: #fff;
}

/* ============================================
   ACCOUNT DETAIL ROWS
   ============================================ */
.dg-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.dg-detail-row.no-border { border: none; }
.dg-detail-label  { font-weight: 700; font-family: 'Playfair Display', serif; font-size: 14px; }
.dg-detail-val    { font-size: 14px; color: #6b7280; margin-top: 4px; line-height: 1.5; }
.dg-edit-link     { font-size: 12px; color: #5D9FB1; text-decoration: none; font-weight: 500; }
.dg-edit-link:hover { color: #000 !important; text-decoration: underline; }

/* ============================================
   ORDER HISTORY SCROLL
   ============================================ */
.dg-order-history-scroll {
    max-height: 210px;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-gutter: stable;
}

.dg-order-history-scroll::-webkit-scrollbar       { width: 6px; }
.dg-order-history-scroll::-webkit-scrollbar-thumb { background: #1B4332; border-radius: 10px; }
.dg-order-history-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }

.dg-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.dg-order-number  { font-weight: 700; font-size: 14px; }
.dg-order-status  { font-size: 13px; color: #666; }
.dg-order-date    { font-size: 12px; color: #999; }
.dg-order-total   { font-weight: 700; font-size: 14px; margin-bottom: 2px; }

/* ============================================
   ORDER VIEW PAGE
   ============================================ */
.dg-order-view-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dg-order-view-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0;
}

.dg-order-view-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dg-order-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dg-order-table thead tr { background: #fafafa; }

.dg-order-table th {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.dg-order-product-cell  { padding: 20px; border-bottom: 1px solid #f9f9f9; }
.dg-order-line-total    { padding: 20px; border-bottom: 1px solid #f9f9f9; font-size: 15px; font-weight: 700; color: #262626; }

.dg-order-product-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dg-order-product-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.dg-order-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #262626;
}

.dg-order-product-qty  { font-weight: 400; color: #999; }
.dg-order-product-sku  { font-size: 11px; color: #999; margin-top: 4px; }

.dg-tfoot-label    { padding: 15px 20px; font-size: 14px; color: #999; text-align: right; }
.dg-tfoot-val      { padding: 15px 20px; font-size: 15px; font-weight: 700; color: #262626; text-align: right; }
.dg-tfoot-discount { color: #e53e3e; }
.dg-tfoot-total    { padding: 15px 20px; font-size: 20px; font-weight: 700; color: #1B4332; text-align: right; }

.text-right { text-align: right; }

/* ============================================
   SUBSCRIPTIONS
   ============================================ */
.sub-item {
    border: 1px solid #E5E7EB;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.dg-sub-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.dg-sub-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.6;
}

.dg-sub-skipped {
    color: #f59e0b;
    font-weight: 600;
}

.subscription-btns {
    display: flex;
    gap: 10px;
    width: 70%;
}

/* ============================================
   COUPONS
   ============================================ */
.dg-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dg-coupon-card {
    background: #F5F3EF;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dg-coupon-code   { font-family: monospace; font-size: 14px; font-weight: 700; color: #2E5738; }
.dg-coupon-expiry { font-size: 12px; color: #6B7280; margin-top: 2px; }

.dg-coupon-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

.dg-coupon-badge--active  { color: #157F3C; background: rgba(21,127,60,0.1); }
.dg-coupon-badge--expired { color: #9CA3AF; background: #F3F4F6; }

/* ============================================
   BUTTONS
   ============================================ */
.dg-logout-btn {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    background: rgba(27, 67, 50, 0.1);
    color: #1B4332;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(27, 67, 50, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.dg-logout-btn::before {
    content: "\f2f5";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
}

.dg-logout-btn:hover {
    background: #1B4332 !important;
    color: #ffffff !important;
    border-color: #1B4332 !important;
    box-shadow: 0 0 15px rgba(27,67,50,0.4), 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.dg-sub-btn {
    flex: 1;
    border: 1px solid rgb(47, 88, 57);
    background: transparent !important;
    color: rgb(47, 88, 57) !important;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.dg-sub-btn:hover {
    border-color: #1B4332;
    background: rgb(47, 88, 57) !important;
    color: #fff !important;
}

.dg-sub-btn--dark {
    flex: none;
    padding: 10px 20px;
    background: #1B4332 !important;
    color: #fff !important;
    border-color: #1B4332;
    border-radius: 8px;
    text-decoration: none;
}

.dg-sub-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.dg-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #475569;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.dg-back-btn:hover {
    background: #e2e8f0;
    color: #1b4332;
}

.dg-cancel-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

/* ============================================
   MODALS — SHARED
   ============================================ */
.dg-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    padding: 20px;
    box-sizing: border-box;
}

/* Cancel Modal */
.dg-modal-box {
    background: white;
    padding: 35px;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
}

.dg-modal-title {
    margin-top: 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

.dg-modal-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.dg-modal-select {
    width: 100%;
    padding: 12px;
    margin-bottom: 25px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
}

.dg-modal-actions {
    display: flex;
    gap: 12px;
}

.dg-modal-confirm {
    flex: 1;
    background: #ef4444;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.dg-modal-confirm::hover{background:#000 !important;color:#fff !important;}

.dg-modal-back {
    flex: 1;
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

/* ============================================
   BENEFITS MODAL
   ============================================ */
.dg-benefits-modal-overlay {
    z-index: 99999;
}

.dg-benefits-modal-box {
    background: white;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.dg-benefits-header {
    background: linear-gradient(135deg, #C9A84C 0%, #D4B896 35%, #8BA89A 70%, #5F8A7E 100%);
    padding: 30px 35px 25px;
    flex-shrink: 0;
    position: relative;
}

.dg-benefits-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.35);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
}

.dg-benefits-close:hover { background: rgba(255,255,255,0.55); }

.dg-benefits-tier-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1B4332;
    margin-bottom: 8px;
}

.dg-benefits-title {
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #1a1a1a;
    padding-right: 40px;
}

.dg-benefits-subtitle {
    margin: 0;
    font-size: 13px;
    color: #2d2d2d;
    opacity: 0.85;
    line-height: 1.5;
}

.dg-benefits-body {
    overflow-y: auto;
    padding: 28px 35px 35px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #1B4332 #f1f1f1;
}

.dg-benefits-body::-webkit-scrollbar       { width: 6px; }
.dg-benefits-body::-webkit-scrollbar-thumb { background: #1B4332; border-radius: 10px; }
.dg-benefits-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }

.dg-benefits-section { margin-bottom: 24px; }

.dg-benefits-section--standard-included {
    border-top: 2px solid #f3f3f3;
    padding-top: 20px;
}

.dg-benefits-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.dg-benefits-section-label--gold   { color: #C9A84C; }
.dg-benefits-section-label--green  { color: #2D6A4F; }
.dg-benefits-section-label--muted  { color: #9ca3af; }
.dg-benefits-section-label--locked { color: #C9A84C; }

/* Benefit rows */
.dg-benefit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
}

.dg-benefit-row--bordered      { border-bottom: 1px solid #f3f3f3; }
.dg-benefit-row--bordered-gold { border-bottom: 1px solid #f0e8d0; }
.dg-benefit-row--dimmed        { opacity: 0.65; }
.dg-benefit-row--locked        { opacity: 0.55; padding: 10px 0; }

.dg-benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.dg-benefit-icon--gold   { background: linear-gradient(135deg, #C9A84C, #D4B896); }
.dg-benefit-icon--green  { background: linear-gradient(135deg, #2D6A4F, #1B4332); }
.dg-benefit-icon--muted  { background: #f3f4f6; width: 38px; height: 38px; font-size: 17px; }
.dg-benefit-icon--locked { background: #f3f4f6; width: 36px; height: 36px; font-size: 16px; border-radius: 9px; filter: grayscale(1); }

.dg-benefit-text  { flex: 1; }
.dg-benefit-title { font-weight: 700; font-size: 14px; color: #1a1a1a; margin-bottom: 2px; }
.dg-benefit-desc  { font-size: 12px; color: #6b7280; }

.dg-benefit-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.dg-benefit-badge--active { background: rgba(21,127,60,0.1); color: #157F3C; }
.dg-benefit-badge--locked { background: #f3f4f6; color: #9ca3af; }

/* Locked box */
.dg-benefits-locked-box {
    background: #fffbeb;
    border: 1.5px dashed #C9A84C;
    border-radius: 16px;
    padding: 20px 22px;
}

.dg-unlock-cta {
    display: block;
    margin-top: 20px;
    text-align: center;
    background: linear-gradient(135deg, #C9A84C, #D4AF37);
    color: #fff;
    padding: 14px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.dg-unlock-cta:hover { opacity: 0.9; color: #fff; }

/* ============================================
   WOO FORM FIXES
   ============================================ */
.woocommerce-address-fields input,
.woocommerce-EditAccountForm input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.dg-empty-msg {
    color: #999;
    font-style: italic;
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 900px) {
    /* Banner stacks vertically on tablet */
    .dg-points-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 28px;
        gap: 24px;
    }

    .dg-banner-right {
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .dg-banner-points-value {
        font-size: 40px;
        margin-bottom: 0;
    }

   

    .dg-progress-track {
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .dg-dashboard__grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .dg-main-title   { font-size: 28px; }
    .dg-card         { padding: 20px; }

    /* Banner mobile */
    .dg-points-banner {
        padding: 24px 20px;
        border-radius: 16px;
        gap: 20px;
    }

    .dg-banner-status {
        font-size: 16px;
    }

    .dg-banner-points-value {
        font-size: 36px;
    }

    .dg-benefits-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .dg-banner-right {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Order view */
    .dg-order-view-header  { flex-direction: column; align-items: flex-start; }
    .dg-order-view-actions { width: 100%; }
    .dg-sub-btn--dark      { flex: 1; text-align: center; }

    /* Order table */
    .dg-order-table th,
    .dg-order-product-cell,
    .dg-order-line-total,
    .dg-tfoot-label,
    .dg-tfoot-val,
    .dg-tfoot-total { padding: 12px; }

    .dg-order-product-img { width: 50px; height: 50px; }

    /* Subs */
    .subscription-btns { width: 100%; max-width: 100% !important; }
    .dg-sub-btn        { font-size: 12px !important; padding: 4px 6px !important; }
    .dg-cancel-btn     { font-size: 12px !important; }

    /* Benefits modal */
    .dg-benefits-modal-box  { border-radius: 16px; max-height: 95vh; }
    .dg-benefits-header     { padding: 24px 20px 20px; }
    .dg-benefits-body       { padding: 20px; }
    .dg-benefits-title      { font-size: 20px; }

    /* Cancel modal */
    .dg-modal-box    { padding: 24px 20px; }
    .dg-modal-actions { flex-direction: column; }
}

@media screen and (max-width: 480px) {
    .dg-points-banner   { padding: 20px 16px; }
    .dg-banner-status   { font-size: 15px; }
    .dg-banner-subtitle { font-size: 13px; }
    .dg-banner-points-value { font-size: 32px; }
}