/* ========================================
   PEDAGOGIA MINHA CONTA — STYLES PRINCIPAIS
   ======================================== */

.pi-myaccount-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.pi-card {
    background: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pi-title {
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.4;
}

.pi-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    display: block;
    margin-top: 5px;
}

.woocommerce input.input-text {
    border-radius: 8px !important;
    border: 1px solid #ccc !important;
    padding: 10px 12px !important;
}

/* ===== HEADER PREMIUM ===== */
.custom-my-account-header {
    text-align: center;
    padding: 28px 15px 10px;
    font-family: "Poppins", sans-serif;
}

.pi-hello {
    font-size: 20px;
    margin-bottom: 10px;
}

.pi-account-info p {
    margin: 2px 0;
    font-size: 14px;
    color: #444;
}

.logout-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #7ab730;
    text-decoration: none;
    font-weight: 600;
}

/* ===== GRID INICIAL (DASHBOARD) ===== */
.custom-account-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 25px auto 45px;
    max-width: 560px;
    padding: 0 12px;
}

.custom-account-nav-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 22px 18px;
    border: 1px solid #e7e7e7;
    text-decoration: none;
    transition: 0.2s;
}

.custom-account-nav-grid a:hover {
    border-color: #7ab730;
    transform: translateY(-3px);
}

/* ===== TÍTULO DE SEÇÃO INTERNA ===== */
.custom-account-header-slim {
    margin: 40px auto;
    max-width: 500px;
    width: calc(100% - 40px);
    text-align: center;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 28px 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

@media (min-width: 600px) {
    .custom-account-header-slim {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        max-width: 600px !important;
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .custom-account-header-slim {
        width: calc(100% - 30px);
        padding: 24px 18px;
        border-radius: 14px;
    }
}

.account-section-title {
    font-size: 22px;
    color: #2c3e50;
}

#account-nav-select select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* Ajustes consolidados do antigo CSS inline do `00-header.php` */
.custom-account-nav-grid svg {
    width: 40px;
    height: 40px;
    fill: #7ab730;
}

.custom-account-header-slim {
    background: #f1eddd;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 10px 20px;
    margin: 10px 10px 35px 10px;
    max-width: 760px;
}

/* ===== DASHBOARD INTELIGENTE ===== */
.pdi-dashboard-container {
    max-width: 980px;
    margin: 35px auto 45px;
    padding: 0 12px;
}

.pdi-dashboard-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 28px;
    font-family: "Poppins", sans-serif;
}

.pdi-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.pdi-dashboard-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}

.pdi-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #7ab730;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.pdi-dashboard-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px;
}

.pdi-dashboard-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.4;
}

.profile-progress {
    width: 100%;
    margin-bottom: 12px;
}

.progress-bar {
    height: 6px;
    background: #e5e5e5;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7ab730, #5f9226);
    transition: width 0.4s ease;
}

.card-btn {
    display: inline-block;
    background: #7ab730;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(122,183,48,0.25);
}

.card-btn:hover {
    background: #5f9226;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(122,183,48,0.35);
}

.card-btn.whats {
    background: #7ab730;
    box-shadow: 0 4px 12px rgba(122,183,48,0.25);
}

.card-btn.whats:hover {
    background: #5f9226;
}

.pdi-dashboard-card.pending::before,
.pdi-dashboard-card.downloads::before,
.pdi-dashboard-card.profile::before,
.pdi-dashboard-card.quick-help::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

.pdi-dashboard-card.pending::before {
    background: #ff9800;
}

.pdi-dashboard-card.downloads::before {
    background: #2196f3;
}

.pdi-dashboard-card.profile::before {
    background: #7ab730;
}

.pdi-dashboard-card.quick-help::before {
    background: #9c27b0;
}

/* ===== FORMULÁRIOS DA CONTA / ENDEREÇO ===== */
.account-header-premium {
    text-align: center;
    padding: 25px 10px 15px;
    font-family: "Poppins", sans-serif;
}

.account-header-premium h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 8px;
}

.account-header-premium p {
    color: #666;
    font-size: 14px;
}

.woocommerce form.edit-account,
.woocommerce-MyAccount-content form[method="post"]:has(input[name="save_address"]),
.woocommerce-MyAccount-content form:has(.woocommerce-address-fields) {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 25px 25px 40px;
    max-width: 700px;
    margin: 30px auto 50px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    font-family: "Poppins", sans-serif;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.woocommerce form.edit-account:hover,
.woocommerce-MyAccount-content form[method="post"]:has(input[name="save_address"]):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
}

.woocommerce form h2,
.woocommerce form h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.woocommerce form label {
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form .select2-selection {
    background: #fafafa !important;
    border: 1.5px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 14.5px !important;
    color: #333 !important;
    min-height: 44px;
    transition: all 0.25s ease;
}

.woocommerce form .input-text:focus,
.woocommerce form select:focus,
.woocommerce form .select2-selection:focus {
    border-color: #7ab730 !important;
    box-shadow: 0 0 0 3px rgba(122,183,48,0.2) !important;
    background: #fff !important;
    outline: none;
}

.woocommerce form button.button,
.woocommerce form input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7ab730;
    color: #fff !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(122,183,48,0.25);
}

.woocommerce form button.button:hover,
.woocommerce form input.button:hover {
    background: #5f9226;
    transform: translateY(-2px);
}

/* Ajustes específicos da tela “Editar Conta” */
.woocommerce form.edit-account {
    border: 1px solid #e7e7e7;
    padding: 30px 25px 40px;
    max-width: 640px;
    margin: 25px auto 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.woocommerce form.edit-account label {
    font-size: 14px;
}

.woocommerce form.edit-account .input-text {
    background: #fafafa;
    border: 1px solid #dcdcdc;
    padding: 12px 14px;
    height: 44px;
    font-size: 15px;
    transition: 0.2s;
}

.woocommerce form.edit-account .input-text:focus {
    background: #fff;
    border-color: #7ab730;
    box-shadow: 0 0 0 2px rgba(122,183,48,0.15);
    outline: none;
}

.woocommerce form.edit-account button.button {
    width: auto;
    padding: 12px 22px;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(122,183,48,0.15);
}

.woocommerce form.edit-account button.button:hover {
    background: #679e2d;
    transform: translateY(-1px);
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    margin: 20px;
    line-height: 1.4;
}

.woocommerce-message {
    background: #f4fdf5;
    border-left: 5px solid #7ab730;
    color: #2e5722;
}

.woocommerce-error {
    background: #fff0f0;
    border-left: 5px solid #e74c3c;
    color: #8b0000;
}

.woocommerce-info {
    background: #f9f9f9;
    border-left: 5px solid #f1c40f;
    color: #5a4b00;
}

/* ===== DIVISORES E UTILITÁRIOS ===== */
.pi-divider {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 18px 0 25px;
}

.pi-edit-title-small {
    font-size: 17px;
    font-weight: 600;
    margin: 10px 0 12px;
    padding-left: 6px;
    border-left: 3px solid #7ab730;
    color: #2c3e50;
}

/* ===== ALTERNANCIA (DARK/LIGHT) ===== */
@media (max-width: 768px) {
    .pdi-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pdi-dashboard-card {
        padding: 22px 20px;
    }

    .card-icon {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .woocommerce form.edit-account,
    .woocommerce-MyAccount-content form[method="post"]:has(input[name="save_address"]) {
        margin: 20px 12px;
        padding: 22px 18px 30px;
    }

    .woocommerce form .input-text,
    .woocommerce form select {
        font-size: 15.5px;
        height: 50px;
    }
}

/* ===== ALTERNANCIA (DARK/LIGHT) ===== */
@media (prefers-color-scheme: dark) {
    .custom-my-account-header,
    .custom-account-nav-grid,
    .custom-account-header-slim {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .pi-account-info p {
        color: #bbb;
    }

    .custom-account-nav-grid a {
        background: #2a2a2a;
        border-color: #444;
    }

    .logout-link {
        color: #8bd34f;
    }
}

/* ========================================
   PREMIUM REFRESH — MINHA CONTA
   ======================================== */
body.woocommerce-account {
    background: linear-gradient(180deg, #fafbf8 0%, #ffffff 40%, #f8fafc 100%);
}

.woocommerce-account .woocommerce {
    display: block;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px 24px;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

.custom-my-account-header {
    max-width: 980px;
    margin: 14px auto 12px;
    padding: 14px;
    border: 1px solid #e8ede1;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fcfdfb 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    text-align: left;
}

.pi-account-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pi-account-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.pi-account-hero-copy {
    min-width: 0;
}

.pi-account-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7ab730 0%, #6aa12c 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(122, 183, 48, 0.16);
}

.pi-account-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f2f6ea;
    color: #61724a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pi-hello {
    margin: 0;
    font-size: clamp(17px, 2vw, 20px);
    color: #22301a;
    line-height: 1.2;
}

.pi-hello-subtitle {
    margin: 3px 0 0;
    color: #7a8470;
    font-size: 12px;
    line-height: 1.4;
}

.pi-account-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
}

.pi-account-chip {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fafbf9;
    border: 1px solid #edf0e8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.pi-account-chip strong {
    font-size: 9px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #8a9381;
}

.pi-account-chip small {
    font-size: 11.5px;
    color: #37412f;
    line-height: 1.35;
    word-break: break-word;
}

.pi-account-chip.is-muted {
    background: #fafbf7;
}

.pi-account-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2e9;
}

.pi-account-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid #e3e8d8;
    background: #fff;
    color: #5c694d;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.03);
}

.pi-account-tab:hover {
    background: #f5f9ee;
    border-color: #c7d7ae;
}

.pi-account-tab.is-active {
    background: #7ab730;
    border-color: #7ab730;
    color: #fff;
    box-shadow: 0 10px 18px rgba(122,183,48,.18);
}

.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e3e8d8;
    background: #fff;
    color: #6a7759;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all .2s ease;
}

.logout-link:hover {
    background: #f7f9f4;
    border-color: #cfdab9;
    transform: translateY(-1px);
}

.custom-account-nav-grid {
    max-width: 980px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 18px auto 34px;
    padding: 0;
    display: none;
}

.custom-account-nav-grid a,
.pi-account-shortcut {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 150px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #e7eddc;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.custom-account-nav-grid a:hover,
.pi-account-shortcut:hover {
    transform: translateY(-3px);
    border-color: #b8d787;
    box-shadow: 0 18px 32px rgba(122,183,48,.12);
}

.pi-shortcut-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eff7e1;
}

.pi-shortcut-icon svg {
    width: 24px;
    height: 24px;
    fill: #6ea92d;
}

.pi-shortcut-text {
    font-size: 16px;
    font-weight: 700;
    color: #24311b;
}

.pi-shortcut-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #66745b;
}

.custom-account-header-slim {
    max-width: 980px;
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px auto 28px !important;
    padding: 16px 16px;
    border: 1px solid #ecefe7;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fafcf7 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    text-align: left !important;
}

.account-section-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #22301a;
}

.pi-section-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef7df;
}

.pi-section-icon svg {
    width: 22px;
    height: 22px;
    fill: #6ea92d;
}

#account-nav-select select {
    min-width: 220px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #dce6cc;
    border-radius: 12px;
    background: #fff;
    color: #2d3a24;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.pdi-dashboard-container {
    max-width: 980px;
    margin: 18px auto 40px;
    padding: 0;
}

.pdi-dashboard-title {
    text-align: left;
    font-size: 26px;
    color: #22301a;
    margin-bottom: 18px;
}

.pdi-dashboard-card {
    align-items: flex-start;
    text-align: left;
    border-radius: 20px;
    border: 1px solid #e7eddc;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.pdi-dashboard-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    font-size: 28px;
    border-radius: 16px;
    background: #f6f9ef;
}

.pdi-dashboard-card p {
    font-size: 13px;
    line-height: 1.55;
}

.card-btn {
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        padding: 0 10px 22px;
    }

    .custom-my-account-header {
        padding: 14px 12px;
        border-radius: 18px;
    }

    .custom-account-header-slim {
        width: 100%;
        padding: 14px;
        border-radius: 16px;
    }

    .pdi-dashboard-title {
        text-align: left;
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .pi-account-topline {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 10px;
    }

    .logout-link {
        width: auto;
        min-height: 30px;
        padding: 0 10px;
        border-radius: 999px;
        background: transparent;
        border-color: #dfe5d3;
        box-shadow: none;
        font-size: 11px;
    }

    .pi-account-chips {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 10px;
    }

    .pi-account-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .orders-header-premium,
    .custom-downloads-wrapper > .downloads-title,
    .orders-filter-dropdown-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .custom-my-account-header {
        margin: 10px auto 10px;
        padding: 10px 10px 11px;
        border-radius: 16px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    }

    .pi-address-intro {
        margin: 4px auto 12px !important;
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 12px;
    }

    .woocommerce-Address,
    .woocommerce-Address.pi-address-card {
        padding: 12px;
        border-radius: 14px;
    }

    .woocommerce-Address-title.title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .woocommerce-Address-title.title h2 {
        font-size: 18px;
    }

    .woocommerce-Address-title.title .edit {
        min-height: 32px;
        font-size: 11.5px;
    }

    .pi-account-hero {
        gap: 8px;
        align-items: center;
    }

    .pi-account-avatar {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 12px;
    }

    .pi-account-badge {
        padding: 3px 7px;
        font-size: 9px;
        margin-bottom: 3px;
    }

    .pi-hello {
        font-size: 15px;
    }

    .pi-hello-subtitle {
        font-size: 11px;
        line-height: 1.3;
    }

    .pi-account-chip {
        padding: 6px 8px;
        border-radius: 10px;
    }

    .pi-account-chip strong {
        font-size: 8.5px;
    }

    .pi-account-chip small {
        font-size: 11px;
        line-height: 1.25;
    }

    .pi-account-tab {
        min-height: 42px;
        padding: 0 8px;
        border-radius: 12px;
        font-size: 11.5px;
        line-height: 1.2;
        text-align: center;
        align-items: center;
    }

    .pi-account-tab.is-active {
        box-shadow: 0 8px 14px rgba(122,183,48,.16);
    }

    .orders-header-premium,
    .account-header-premium,
    .custom-downloads-wrapper > .downloads-title {
        margin: 4px auto 12px !important;
        padding: 12px 12px 10px !important;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    }

    .orders-header-premium h2,
    .account-header-premium h2,
    .custom-downloads-wrapper > .downloads-title {
        font-size: 19px !important;
        margin-bottom: 2px !important;
    }

    .orders-header-premium p,
    .account-header-premium p {
        font-size: 12px !important;
        line-height: 1.4;
    }

    .orders-filter-dropdown-wrapper {
        margin: 0 auto 12px !important;
    }

    .dropdown-filter {
        display: block;
        width: 100%;
    }

    #dropdownBtn {
        width: 100%;
        min-height: 42px;
        justify-content: space-between;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 13px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04) !important;
    }

    .dropdown-content {
        top: 48px;
        width: 100% !important;
        border-radius: 12px !important;
    }

    .dropdown-content a {
        padding: 10px 12px;
        font-size: 13px !important;
    }

    .account-section-title {
        font-size: 18px;
    }

    #account-nav-select,
    #account-nav-select select {
        width: 100%;
    }
}

/* ========================================
   PREMIUM POLISH — TELAS INTERNAS
   ======================================== */
.account-header-premium {
    max-width: 760px;
    margin: 4px auto 18px;
    padding: 18px 18px 14px;
    border: 1px solid #e6ecd9;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbef 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    text-align: left;
}

.account-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    margin-bottom: 6px;
    border-radius: 999px;
    border: 1px solid #e4ead8;
    background: #f7f9f2;
    color: #63734d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.account-header-premium h2 {
    margin: 0 0 4px;
    font-size: 24px;
    color: #22301a;
}

.account-header-premium p {
    margin: 0;
    color: #66745b;
    font-size: 14px;
    line-height: 1.5;
}

.downloads-header-premium {
    max-width: 980px;
}

.pi-address-page-header,
.pi-address-intro {
    max-width: 760px;
}

.pi-address-intro {
    margin: 4px auto 14px !important;
    padding: 12px 14px;
    border: 1px solid #e6ecd9;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%);
    color: #67755d;
    font-size: 13px;
    line-height: 1.55;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.woocommerce-Addresses {
    max-width: 760px;
    margin: 0 auto 20px;
}

.woocommerce-Address,
.woocommerce-Address.pi-address-card {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e6ecd9;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.woocommerce-Address-title.title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2e8;
}

.woocommerce-Address-title.title h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: #22301a;
}

.woocommerce-Address-title.title .edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dce6cc;
    border-radius: 10px;
    background: #f7faf3;
    color: #556546;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.woocommerce-Address-title.title .edit:hover {
    background: #eef5e3;
    border-color: #cbdbb2;
}

.woocommerce-Addresses address {
    margin: 0;
    color: #6e7b63;
    font-style: normal;
    line-height: 1.6;
}

.woocommerce form.edit-account,
.woocommerce-MyAccount-content form[method="post"]:has(input[name="save_address"]),
.woocommerce-MyAccount-content form:has(.woocommerce-address-fields) {
    border: 1px solid #e6ecd9 !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05) !important;
    padding: 18px 18px 24px !important;
}

.woocommerce form.edit-account .form-row-first,
.woocommerce form.edit-account .form-row-last {
    width: calc(50% - 8px);
}

.pi-edit-title-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f5f9ee;
    border-left: 0;
}

.pi-account-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.pi-account-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e3e8d8;
    background: #fff;
    color: #556546;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.pi-account-quick-link:hover {
    background: #f7faf3;
    border-color: #cbdbb2;
}

.pi-password-helper {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #e6ecd9;
    border-radius: 14px;
    background: #fbfcf8;
}

.pi-password-helper strong {
    display: block;
    margin-bottom: 4px;
    color: #24311b;
    font-size: 14px;
}

.pi-password-helper p,
.pi-account-inline-note {
    margin: 0;
    color: #697660;
    font-size: 12.5px;
    line-height: 1.5;
}

.pi-account-inline-note {
    margin: 0 0 12px;
}

.pi-form-section {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #edf0e8;
    border-radius: 14px;
    background: #fff;
}

.pi-form-section-head {
    margin-bottom: 10px;
}

.pi-form-section-head h3 {
    margin: 0 0 4px;
    font-size: 15px !important;
    color: #24311b !important;
}

.pi-form-section-head p {
    margin: 0;
    color: #76826b;
    font-size: 12px;
    line-height: 1.45;
}

.pi-form-section-body .form-row {
    margin-bottom: 12px !important;
}

.pi-form-section.is-social .nsl-container,
.pi-form-section.is-social .nsl-linked-accounts,
.pi-form-section.is-social .woo-slg-social-container {
    width: 100%;
}

.pi-form-section.is-social .nsl-account-link,
.pi-form-section.is-social .nsl-button,
.pi-form-section.is-social a[href*="unlink"],
.pi-form-section.is-social .button {
    border-radius: 12px !important;
}

.pi-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dce5ce;
    border-radius: 10px;
    background: #f7faf3;
    color: #556546;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pi-password-toggle.is-open {
    background: #eef5e3;
    border-color: #c8d7ae;
}

.woocommerce form.edit-account fieldset.pi-password-collapsed {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
}

.woocommerce form.edit-account fieldset.pi-password-collapsed:not(.is-open) .woocommerce-form-row {
    display: none;
}

.woocommerce form.edit-account fieldset.pi-password-collapsed.is-open .woocommerce-form-row {
    display: block;
}

.woocommerce form.edit-account fieldset.pi-password-collapsed legend {
    display: none;
}

.pi-save-account-row {
    margin-top: 16px !important;
}

.woocommerce form.edit-account .pi-save-account-row .button,
.woocommerce form.edit-account button.button,
.woocommerce form.edit-account input.button,
.woocommerce-MyAccount-content form[method="post"] .pi-save-account-row .button,
.woocommerce-MyAccount-content form[method="post"] button[name="save_address"],
.woocommerce-MyAccount-content form[method="post"] input[name="save_address"] {
    width: 100% !important;
    min-height: 46px;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 24px rgba(122,183,48,.2);
}

.orders-header-premium,
.custom-downloads-wrapper > .downloads-title {
    max-width: 980px;
    margin: 4px auto 18px !important;
    padding: 18px 18px 14px;
    border: 1px solid #e6ecd9;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbef 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    text-align: left !important;
}

.orders-header-premium h2,
.custom-downloads-wrapper > .downloads-title {
    margin: 0 0 4px !important;
    font-size: 24px !important;
    color: #22301a !important;
}

.orders-header-premium p {
    margin: 0 !important;
    color: #66745b !important;
}

.orders-filter-dropdown-wrapper {
    text-align: left !important;
    max-width: 980px;
    margin: 0 auto 18px !important;
}

#dropdownBtn {
    min-height: 46px;
    border: 1px solid #dce6cc !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
    font-weight: 700 !important;
}

.dropdown-content {
    width: 220px !important;
    border: 1px solid #e4ead7 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12) !important;
}

.dropdown-content a {
    font-weight: 600 !important;
    border-radius: 10px;
    margin: 2px 6px;
}

.orders-list-premium {
    gap: 16px !important;
    max-width: 980px !important;
    padding: 0 0 30px !important;
}

.order-card {
    border: 1px solid #e6ecd9 !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06) !important;
    padding: 18px !important;
}

.order-number {
    font-size: 16px;
    color: #22301a;
}

.order-date {
    color: #6d7962 !important;
    font-size: 12.5px !important;
}

.order-card-info {
    align-items: center;
    gap: 10px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef7df;
    color: #58722f;
    font-size: 12px;
    font-weight: 700;
}

.order-total {
    font-weight: 700;
    color: #24311b !important;
}

.order-payment-method {
    margin-top: 14px !important;
    padding-top: 12px;
    border-top: 1px dashed #e5ebd9 !important;
}

.order-button-view {
    min-height: 44px;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 22px rgba(122,183,48,.22);
}

.orders-pagination,
.downloads-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 34px !important;
}

.orders-pagination a,
.downloads-pagination a,
.downloads-pagination .dots {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
}

.custom-downloads-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

.download-order-block {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e6ecd9;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.download-order-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2e7;
}

.download-order-header h3 {
    margin: 0;
    font-size: 18px;
    color: #22301a;
}

.download-order-meta {
    color: #6d7962;
    font-size: 12.5px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.download-card {
    border: 1px solid #ebf0e3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.download-thumb-wrapper {
    background: #f6f9ef;
    padding: 12px;
}

.download-thumb-large {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
}

.download-info {
    padding: 14px;
}

.download-name {
    min-height: 42px;
    font-size: 14px;
    font-weight: 700;
    color: #26331d;
    line-height: 1.45;
    margin-bottom: 12px;
}

.download-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    background: linear-gradient(180deg, #7ab730 0%, #5f9226 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(122,183,48,.22);
}

.review-toggle,
.send-review,
.edit-review-btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.review-box,
.review-done-mini {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e8eedf;
    border-radius: 14px;
    background: #fbfcf8;
}

.downloads-page-meta {
    text-align: center;
    color: #6d7962;
    font-size: 13px;
    margin: 10px 0 6px;
}

.pmv-modal {
    backdrop-filter: blur(4px);
}

.pmv-box {
    max-width: 680px !important;
    border-radius: 22px !important;
    border: 1px solid #e6ecd9;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}

.pmv-modal-content {
    padding: 22px !important;
}

.pmv-header {
    text-align: left !important;
}

.pmv-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #22301a;
}

.pmv-sub {
    color: #6d7962;
}

.pmv-status {
    background: #eef7df !important;
    color: #58722f !important;
    font-weight: 700 !important;
}

.pmv-block {
    border: 1px solid #e7eddc !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%) !important;
}

.pmv-block h3 {
    margin-top: 0;
    color: #26331d;
}

.pmv-item {
    gap: 12px !important;
    padding: 10px 0 !important;
}

.pmv-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 10px !important;
    border: 1px solid #e4ead7 !important;
}

.pmv-download-btn,
.pmv-copy-btn {
    border-radius: 10px !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .orders-list-premium,
    .custom-downloads-wrapper {
        padding: 0 2px 24px;
    }

    .orders-header-premium,
    .account-header-premium,
    .custom-downloads-wrapper > .downloads-title {
        margin: 4px 2px 12px !important;
        padding: 13px 13px 11px !important;
        border-radius: 16px !important;
    }

    .download-order-block,
    .order-card,
    .account-header-premium {
        border-radius: 16px;
    }

    .download-order-header,
    .order-card-top,
    .order-card-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .woocommerce form.edit-account .form-row-first,
    .woocommerce form.edit-account .form-row-last {
        width: 100%;
    }
}

