/* =========================================================
   PureTrend Customer Dashboard
   Commercial UI — v1.1.0
   ========================================================= */

.pt-customer-dashboard {
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 20px 50px;
    font-family: inherit;
    box-sizing: border-box;
}

.pt-customer-dashboard *,
.pt-customer-dashboard *::before,
.pt-customer-dashboard *::after {
    box-sizing: border-box;
}


/* =========================================================
   Dashboard Header
   ========================================================= */

.pt-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
    padding: 8px 2px;
}

.pt-dashboard-brand {
    min-width: 0;
}

.pt-dashboard-brand-name {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.65;
}

.pt-dashboard-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pt-dashboard-welcome {
    margin-top: 8px;
    font-size: 15px;
    opacity: 0.65;
}

.pt-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.pt-dashboard-language {
    display: flex;
    align-items: center;
}

.pt-dashboard-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pt-dashboard-logout:hover {
    text-decoration: none !important;
    transform: translateY(-1px);
}


/* =========================================================
   Language Switcher
   ========================================================= */

.pt-dashboard-language .pt-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pt-dashboard-language .pt-language-switcher a,
.pt-dashboard-language .pt-language-current {
    text-decoration: none !important;
    white-space: nowrap;
}

.pt-dashboard-language .pt-language-current {
    font-weight: 700;
}

.pt-dashboard-language .pt-language-switcher a:hover {
    text-decoration: underline !important;
}


/* =========================================================
   Generic Dashboard Card
   ========================================================= */

.pt-dashboard-card {
    position: relative;
    margin-bottom: 20px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.pt-dashboard-card-label {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.55;
}

.pt-dashboard-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.pt-dashboard-card-note {
    margin: 20px 0 0;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.6;
}


/* =========================================================
   License Overview
   ========================================================= */

.pt-dashboard-license {
    padding: 32px;
    overflow: hidden;
}

.pt-dashboard-license::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.8;
}

.pt-dashboard-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.pt-dashboard-license-status {
    margin-top: 12px;
}

.pt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.pt-status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.pt-status-active {
    background: rgba(46, 160, 67, 0.10);
    color: #238636;
}

.pt-status-trial {
    background: rgba(9, 105, 218, 0.10);
    color: #0969da;
}

.pt-status-expired,
.pt-status-suspended {
    background: rgba(207, 34, 46, 0.10);
    color: #cf222e;
}

.pt-status-revoked {
    background: rgba(130, 80, 223, 0.10);
    color: #8250df;
}

.pt-dashboard-days {
    min-width: 150px;
    text-align: right;
}

.pt-dashboard-days-number {
    display: block;
    font-size: 38px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -1px;
}

.pt-dashboard-days-label {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.55;
}


/* =========================================================
   License Key
   ========================================================= */

.pt-dashboard-license-key {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
}

.pt-license-key-value {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 17px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.025);
    overflow: hidden;
}

.pt-license-key-value span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 0.5px;
}

#pt-copy-license {
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #1f2937;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#pt-copy-license:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

#pt-copy-license:active {
    transform: translateY(0);
}


/* =========================================================
   License Meta
   ========================================================= */

.pt-dashboard-license-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.pt-license-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 48px;
    padding: 0 15px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.025);
}

.pt-license-meta-label {
    font-size: 12px;
    opacity: 0.55;
}

.pt-license-meta-item strong {
    font-size: 13px;
    text-align: right;
}


/* =========================================================
   Main Dashboard Grid
   ========================================================= */

.pt-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pt-dashboard-grid .pt-dashboard-card {
    margin-bottom: 0;
}


/* =========================================================
   MT5 Account
   ========================================================= */

.pt-dashboard-mt5,
.pt-dashboard-subscription {
    min-height: 270px;
}

.pt-dashboard-data-list {
    margin-top: 22px;
}

.pt-dashboard-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.pt-dashboard-data-row:last-child {
    border-bottom: 0;
}

.pt-dashboard-data-row span {
    font-size: 13px;
    opacity: 0.55;
}

.pt-dashboard-data-row strong {
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    text-align: right;
}


/* =========================================================
   Subscription
   ========================================================= */

.pt-dashboard-price {
    margin-top: 24px;
    font-size: 34px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.pt-dashboard-price span {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.55;
    letter-spacing: 0;
}

.pt-dashboard-subscription-status {
    display: inline-flex;
    margin-top: 18px;
    padding: 6px 11px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

/* ---------------------------------------------------------
   Subscription Actions
   --------------------------------------------------------- */

.pt-dashboard-renew-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-height: 44px;
    margin-top: 10px;
    padding: 10px 20px;

    border: 1px solid #0969da;
    border-radius: 9px;

    background: #0969da;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.14);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.pt-dashboard-renew-button:hover:not(:disabled) {
    background: #0757b8;
    border-color: #0757b8;
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 6px 16px rgba(9, 105, 218, 0.20);
}

.pt-dashboard-renew-button:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(9, 105, 218, 0.12),
        0 4px 12px rgba(9, 105, 218, 0.14);
}

.pt-dashboard-renew-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;

    box-shadow: none;
}

.pt-dashboard-subscription-trial {
    display: flex;
    align-items: center;
    width: fit-content;

    margin-top: 14px;
    padding: 7px 11px;

    border: 1px solid rgba(9, 105, 218, 0.14);
    border-radius: 7px;

    background: rgba(9, 105, 218, 0.06);
    color: #0969da;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.pt-dashboard-subscription .pt-dashboard-card-note {
    margin-top: 14px;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   Download
   ========================================================= */

.pt-dashboard-download {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 25px;
}

.pt-dashboard-download .pt-dashboard-card-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.pt-dashboard-download h3 {
    flex-shrink: 0;
}

.pt-dashboard-file-name {
    margin-left: auto;
    padding: 9px 13px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.04);
    font-family: monospace;
    font-size: 12px;
}

/* ---------------------------------------------------------
   Download Button
   --------------------------------------------------------- */

.pt-dashboard-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 9px 18px;

    border: 1px solid #1f2937;
    border-radius: 9px;

    background: #1f2937;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pt-dashboard-download-button:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.16);
}

.pt-dashboard-download-button:focus {
    outline: none;
    color: #ffffff;
    text-decoration: none;

    box-shadow:
        0 0 0 3px rgba(31, 41, 55, 0.12);
}

.pt-dashboard-download-button:active {
    transform: translateY(0);
}

html[dir="rtl"] .pt-dashboard-download-button {
    direction: rtl;
}

.pt-dashboard-download .pt-dashboard-card-note {
    margin: 0 0 0 auto;
    max-width: 300px;
}


/* =========================================================
   Account Information
   ========================================================= */

.pt-dashboard-account {
    padding: 28px;
}

.pt-dashboard-account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 24px;
}

.pt-dashboard-account-item {
    min-width: 0;
    padding: 17px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.025);
}

.pt-dashboard-account-item span {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0.5;
}

.pt-dashboard-account-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

/* =========================================================
   Account Actions
   ========================================================= */

.pt-dashboard-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.pt-dashboard-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 9px 16px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #ffffff;
    color: #1f2937;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pt-dashboard-account-button:hover {
    background: #f8fafc;
    border-color: #9ca3af;
    color: #111827;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pt-dashboard-account-button:focus {
    outline: none;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.10);
}

.pt-dashboard-account-button:active {
    transform: translateY(0);
}

html[dir="rtl"] .pt-dashboard-account-actions {
    direction: rtl;
}


/* =========================================================
   No License
   ========================================================= */

.pt-dashboard-no-license {
    padding: 35px;
}

.pt-dashboard-no-license h3 {
    margin-top: 5px;
}

.pt-dashboard-no-license p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.65;
}

/* =========================================================
   Customer Forms
   ========================================================= */

.pt-customer-auth {
    width: 100%;
    max-width: 620px;

    margin: 40px auto;
    padding: 34px 36px;

    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(15, 23, 42, 0.06);

    box-sizing: border-box;
}

.pt-customer-auth h2 {
    margin: 0 0 10px;

    color: #0f2747;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -0.3px;
}

.pt-customer-auth > p {
    margin: 0 0 22px;

    color: #64748b;

    font-size: 13px;
    line-height: 1.7;
}

.pt-customer-form {
    margin: 0;
}

.pt-customer-form p {
    margin: 0 0 18px;
}

.pt-customer-form label {
    display: block;

    margin-bottom: 7px;

    color: #475569;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.pt-customer-form input {
    display: block;

    width: 100%;
    min-height: 46px;

    padding: 10px 13px;

    border: 1px solid #d8dee8;
    border-radius: 9px;

    background: #ffffff;
    color: #0f2747;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.pt-customer-form input:hover {
    border-color: #b8c2d0;
}

.pt-customer-form input:focus {
    outline: none;

    border-color: #0969da;

    box-shadow:
        0 0 0 3px rgba(9, 105, 218, 0.10);
}

.pt-customer-form input:disabled,
.pt-customer-form input[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.pt-customer-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 20px;

    border: 1px solid #0969da;
    border-radius: 9px;

    background: #0969da;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(9, 105, 218, 0.14);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.pt-customer-form button:hover {
    background: #0757b8;
    border-color: #0757b8;

    transform: translateY(-1px);

    box-shadow:
        0 6px 16px rgba(9, 105, 218, 0.20);
}

.pt-customer-form button:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(9, 105, 218, 0.12),
        0 4px 12px rgba(9, 105, 218, 0.14);
}

.pt-customer-auth small {
    display: block;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 11px;
    line-height: 1.5;
}

.pt-customer-auth > p:last-child {
    margin-top: 22px;
    margin-bottom: 0;
}

.pt-customer-auth > p:last-child a {
    color: #0969da;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.pt-customer-auth > p:last-child a:hover {
    color: #0757b8;
    text-decoration: underline;
}

.pt-customer-account-item {
    margin: 0 0 24px;
    padding: 14px 16px;

    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 10px;

    background: #f8fafc;
}

.pt-customer-account-item strong {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pt-customer-account-item span {
    display: block;

    color: #0f2747;

    font-size: 13px;
    font-weight: 700;

    word-break: break-word;
}

html[dir="rtl"] .pt-customer-auth {
    direction: rtl;
}

html[dir="rtl"] .pt-customer-form input {
    text-align: right;
}

html[dir="rtl"] .pt-customer-form button {
    direction: rtl;
}

/* =========================================================
   Not Logged In
   ========================================================= */

.pt-customer-notice {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.pt-customer-notice a {
    font-weight: 700;
}


/* =========================================================
   RTL
   ========================================================= */

html[dir="rtl"] .pt-dashboard-header {
    direction: rtl;
}

html[dir="rtl"] .pt-dashboard-actions {
    direction: rtl;
}

html[dir="rtl"] .pt-dashboard-card,
html[dir="rtl"] .pt-dashboard-license {
    direction: rtl;
}

html[dir="rtl"] .pt-dashboard-days {
    text-align: left;
}

html[dir="rtl"] .pt-license-meta-item strong {
    text-align: left;
}

html[dir="rtl"] .pt-dashboard-data-row strong {
    text-align: left;
}

html[dir="rtl"] .pt-dashboard-download .pt-dashboard-file-name {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .pt-dashboard-download .pt-dashboard-card-note {
    margin-left: 0;
    margin-right: auto;
}


/* =========================================================
   Responsive — Tablet
   ========================================================= */

@media (max-width: 800px) {

    .pt-customer-dashboard {
        margin-top: 25px;
        padding: 0 15px 35px;
    }

    .pt-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .pt-dashboard-actions {
        width: 100%;
        justify-content: space-between;
    }

    .pt-dashboard-title {
        font-size: 29px;
    }

    .pt-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pt-dashboard-account-grid {
        grid-template-columns: 1fr;
    }

    .pt-dashboard-download {
        flex-wrap: wrap;
    }

    .pt-dashboard-download .pt-dashboard-card-note {
        width: 100%;
        max-width: none;
        margin: 0;
    }

}


/* =========================================================
   Responsive — Mobile
   ========================================================= */

@media (max-width: 560px) {
    
        .pt-customer-auth {
        margin: 25px auto;
        padding: 26px 20px;
        border-radius: 13px;
    }

    .pt-customer-auth h2 {
        font-size: 21px;
    }

    .pt-customer-form button {
        width: 100%;
    }
    
    .pt-dashboard-account-actions {
        flex-direction: column;
    }

    .pt-dashboard-account-button {
        width: 100%;
    }

    .pt-customer-dashboard {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pt-dashboard-title {
        font-size: 26px;
    }

    .pt-dashboard-card,
    .pt-dashboard-license,
    .pt-dashboard-account {
        padding: 21px;
        border-radius: 13px;
    }

    .pt-dashboard-card-top {
        flex-direction: column;
        gap: 22px;
    }

    .pt-dashboard-days {
        width: 100%;
        text-align: left;
    }

    .pt-dashboard-days-number {
        font-size: 32px;
    }

    .pt-dashboard-license-key {
        flex-direction: column;
    }

    .pt-license-key-value {
        min-height: 50px;
    }

    #pt-copy-license {
        width: 100%;
        min-height: 48px;
    }

    .pt-dashboard-license-meta {
        grid-template-columns: 1fr;
    }

    .pt-license-meta-item {
        min-height: 45px;
    }

    .pt-dashboard-data-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .pt-dashboard-data-row strong {
        max-width: 100%;
        text-align: left;
    }

    .pt-dashboard-download {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    
        .pt-dashboard-download-button {
        width: 100%;
    }

    .pt-dashboard-file-name {
        margin: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pt-dashboard-account-grid {
        gap: 10px;
    }

    html[dir="rtl"] .pt-dashboard-days {
        text-align: right;
    }

    html[dir="rtl"] .pt-dashboard-data-row strong {
        text-align: right;
    }

    html[dir="rtl"] .pt-dashboard-download .pt-dashboard-file-name {
        margin: 0;
    }

}

/* =========================================================
   Account Change Request
   ========================================================= */

.pt-account-change-status {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.pt-account-change-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.pt-account-change-available {
    background: rgba(46, 160, 67, 0.10);
    color: #238636;
}

.pt-account-change-waiting {
    background: rgba(154, 103, 0, 0.10);
    color: #9a6700;
}

.pt-account-change-request-button {
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
    padding: 9px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 9px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.pt-account-change-request-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.04);
}

.pt-account-change-request-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}


/* RTL */

html[dir="rtl"] .pt-account-change-status {
    direction: rtl;
}

/* =========================================================
   Account Change Request Modal
   ========================================================= */

.pt-account-change-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.pt-account-change-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-account-change-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.pt-account-change-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(92%, 480px);
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.pt-account-change-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.pt-account-change-modal-close:hover {
    color: #111827;
}

.pt-account-change-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
}

.pt-account-change-current span {
    font-size: 12px;
    color: #64748b;
}

.pt-account-change-current strong {
    font-size: 14px;
    color: #111827;
}

.pt-account-change-input-group {
    margin-top: 18px;
}

.pt-account-change-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.pt-account-change-input-group input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
}

.pt-account-change-input-group input:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.pt-account-change-modal-note {
    margin: 15px 0 0;
    font-size: 11px;
    line-height: 1.6;
    color: #64748b;
}

.pt-account-change-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.pt-account-change-cancel,
.pt-account-change-submit {
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.pt-account-change-cancel {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.pt-account-change-submit {
    border: 1px solid #1f2937;
    background: #1f2937;
    color: #ffffff;
}

.pt-account-change-cancel:hover {
    background: #f8fafc;
}

.pt-account-change-submit:hover {
    background: #111827;
}

.pt-dashboard-notice-success {
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(35, 134, 54, 0.20);
    border-radius: 10px;
    background: rgba(46, 160, 67, 0.08);
    color: #238636;
}

.pt-dashboard-notice-success strong {
    display: block;
    font-size: 13px;
}

.pt-dashboard-notice-success p {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.6;
}


/* RTL */

html[dir="rtl"] .pt-account-change-modal-close {
    right: auto;
    left: 16px;
}

html[dir="rtl"] .pt-account-change-modal-actions {
    justify-content: flex-start;
}


/* Mobile */

@media (max-width: 600px) {

    .pt-account-change-modal-dialog {
        width: calc(100% - 30px);
        padding: 22px;
    }

    .pt-account-change-modal-actions {
        flex-direction: column-reverse;
    }

    .pt-account-change-cancel,
    .pt-account-change-submit {
        width: 100%;
    }

}

/* =========================================================
   Account Change Decision Notifications
   ========================================================= */

.pt-dashboard-account-notification {
    display: block !important;
    position: relative !important;

    width: 100% !important;
    max-width: 1155px !important;
    box-sizing: border-box !important;

    margin: 0 auto 28px !important;
    padding: 22px 58px 20px 22px !important;

    border: 1px solid rgba(31, 41, 55, 0.10) !important;
    border-radius: 14px !important;

    background: #ffffff !important;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.06) !important;

    text-align: left !important;

    animation: ptAccountNotificationIn 0.25s ease-out;
}


/* ---------------------------------------------------------
   Notification Title
   --------------------------------------------------------- */

.pt-dashboard-account-notification > strong {
    display: block !important;

    margin: 0 0 8px !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;

    text-align: left !important;
}


/* ---------------------------------------------------------
   Notification Text
   --------------------------------------------------------- */

.pt-dashboard-account-notification p {
    display: block !important;

    margin: 6px 0 0 !important;
    padding: 0 !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;

    text-align: left !important;

    list-style: none !important;
}


/* Prevent existing theme bullets / pseudo elements */

.pt-dashboard-account-notification p::before,
.pt-dashboard-account-notification p::after {
    content: none !important;
}

/* ---------------------------------------------------------
   EMAIL CHANGE PENDING
   --------------------------------------------------------- */

.pt-dashboard-notice-email-change-pending {
    background: rgba(154, 103, 0, 0.045) !important;

    border-color: rgba(154, 103, 0, 0.18) !important;

    border-left: 4px solid #d29922 !important;
}

.pt-dashboard-notice-email-change-pending > strong {
    color: #9a6700 !important;
}

/* ---------------------------------------------------------
   APPROVED
   --------------------------------------------------------- */

.pt-dashboard-notice-account-approved {
    background: rgba(46, 160, 67, 0.055) !important;

    border-color: rgba(46, 160, 67, 0.20) !important;

    border-left: 4px solid #2ea043 !important;
}

.pt-dashboard-notice-account-approved > strong {
    color: #238636 !important;
}


/* ---------------------------------------------------------
   REJECTED
   --------------------------------------------------------- */

.pt-dashboard-notice-account-rejected {
    background: rgba(207, 34, 46, 0.045) !important;

    border-color: rgba(207, 34, 46, 0.18) !important;

    border-left: 4px solid #cf222e !important;
}

.pt-dashboard-notice-account-rejected > strong {
    color: #cf222e !important;
}


/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.pt-dashboard-account-notification .pt-dashboard-notice-close {
    position: absolute !important;

    top: 14px !important;
    right: 14px !important;

    width: 30px !important;
    min-width: 30px !important;

    height: 30px !important;
    min-height: 30px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: transparent !important;
    background-color: transparent !important;

    color: #6b7280 !important;

    box-shadow: none !important;

    font-family: Arial, sans-serif !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    text-align: center !important;

    cursor: pointer !important;

    opacity: 0.65 !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease !important;
}


/* Close button hover */

.pt-dashboard-account-notification
.pt-dashboard-notice-close:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    background-color: rgba(0, 0, 0, 0.05) !important;

    color: #111827 !important;

    opacity: 1 !important;

    transform: scale(1.05) !important;
}


/* Remove Elementor/theme pseudo elements */

.pt-dashboard-account-notification
.pt-dashboard-notice-close::before,

.pt-dashboard-account-notification
.pt-dashboard-notice-close::after {
    content: none !important;
}


/* Focus */

.pt-dashboard-account-notification
.pt-dashboard-notice-close:focus {
    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(31, 41, 55, 0.10) !important;
}


/* ---------------------------------------------------------
   RTL
   --------------------------------------------------------- */

html[dir="rtl"] .pt-dashboard-account-notification {
    padding-right: 22px !important;
    padding-left: 58px !important;

    text-align: right !important;

    border-left: 1px solid rgba(31, 41, 55, 0.10) !important;
    border-right: 4px solid transparent !important;
}

html[dir="rtl"]
.pt-dashboard-notice-account-approved {
    border-right-color: #2ea043 !important;
}

html[dir="rtl"]
.pt-dashboard-notice-account-rejected {
    border-right-color: #cf222e !important;
}

html[dir="rtl"]
.pt-dashboard-account-notification > strong {
    text-align: right !important;
}

html[dir="rtl"]
.pt-dashboard-account-notification p {
    text-align: right !important;
}

html[dir="rtl"]
.pt-dashboard-account-notification .pt-dashboard-notice-close {
    right: auto !important;
    left: 14px !important;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .pt-dashboard-account-notification {
        margin-bottom: 20px !important;

        padding: 18px 48px 18px 17px !important;

        border-radius: 12px !important;
    }

    html[dir="rtl"] .pt-dashboard-account-notification {
        padding-right: 17px !important;
        padding-left: 48px !important;
    }

    .pt-dashboard-account-notification > strong {
        font-size: 13px !important;
    }

    .pt-dashboard-account-notification p {
        font-size: 12px !important;
        line-height: 1.65 !important;
    }

    .pt-dashboard-account-notification
    .pt-dashboard-notice-close {
        top: 11px !important;
        right: 11px !important;
    }

    html[dir="rtl"]
    .pt-dashboard-account-notification
    .pt-dashboard-notice-close {
        right: auto !important;
        left: 11px !important;
    }
}


/* ---------------------------------------------------------
   Animation
   --------------------------------------------------------- */

@keyframes ptAccountNotificationIn {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   MT5 Connection Status
   ========================================================= */

.pt-dashboard-connection-row {
    align-items: center;
}

.pt-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.pt-connection-dot {
    display: inline-block;

    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;
}


/* Connected */

.pt-connection-connected {
    color: #238636;
}

.pt-connection-connected .pt-connection-dot {
    background: #2ea043;
    box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.10);
}


/* Awaiting */

.pt-connection-awaiting {
    color: #9a6700;
}

.pt-connection-awaiting .pt-connection-dot {
    background: #d29922;
    box-shadow: 0 0 0 3px rgba(210, 153, 34, 0.10);
}


/* RTL */

html[dir="rtl"] .pt-connection-status {
    direction: rtl;
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Phase 1A — Dark Trading SaaS Foundation
   ========================================================= */

.pt-customer-dashboard {

    /* -----------------------------------------------------
       Colors
       ----------------------------------------------------- */

    --pt-bg: #08111f;
    --pt-surface: #0f1b2d;
    --pt-surface-2: #13233a;
    --pt-surface-3: #172a45;

    --pt-border: rgba(148, 163, 184, 0.14);
    --pt-border-strong: rgba(148, 163, 184, 0.22);

    --pt-primary: #3b82f6;
    --pt-primary-hover: #2563eb;
    --pt-primary-soft: rgba(59, 130, 246, 0.12);

    --pt-purple: #8b5cf6;
    --pt-purple-soft: rgba(139, 92, 246, 0.12);

    --pt-success: #22c55e;
    --pt-success-soft: rgba(34, 197, 94, 0.12);

    --pt-warning: #f59e0b;
    --pt-warning-soft: rgba(245, 158, 11, 0.12);

    --pt-danger: #f43f5e;
    --pt-danger-soft: rgba(244, 63, 94, 0.12);

    --pt-text: #f8fafc;
    --pt-text-secondary: #cbd5e1;
    --pt-text-muted: #94a3b8;
    --pt-text-faint: #64748b;

    /* -----------------------------------------------------
       Radius
       ----------------------------------------------------- */

    --pt-radius-sm: 8px;
    --pt-radius-md: 12px;
    --pt-radius-lg: 16px;
    --pt-radius-xl: 20px;

    /* -----------------------------------------------------
       Shadows
       ----------------------------------------------------- */

    --pt-shadow-card:
        0 12px 35px rgba(0, 0, 0, 0.22);

    --pt-shadow-hover:
        0 18px 45px rgba(0, 0, 0, 0.30);

    /* -----------------------------------------------------
       Typography
       ----------------------------------------------------- */

    --pt-font:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--pt-text);
    font-family: var(--pt-font);
}


/* =========================================================
   Page Shell
   ========================================================= */

body:has(.pt-customer-dashboard) {

    background:
        radial-gradient(
            circle at top right,
            rgba(59, 130, 246, 0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at top left,
            rgba(139, 92, 246, 0.05),
            transparent 30%
        ),
        var(--pt-bg);

    color: var(--pt-text);
}


body:has(.pt-customer-dashboard) .site,
body:has(.pt-customer-dashboard) .site-content,
body:has(.pt-customer-dashboard) main {

    background: transparent;
}


/* =========================================================
   Main Container
   ========================================================= */

.pt-customer-dashboard {

    max-width: 1180px;
    margin: 0 auto;

    padding:
        42px
        24px
        80px;
}


/* =========================================================
   Header
   ========================================================= */

.pt-dashboard-header {

    align-items: center;
    margin-bottom: 34px;
    padding: 0;
}


.pt-dashboard-brand-name {

    margin-bottom: 8px;

    color: var(--pt-primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}


.pt-dashboard-title {

    margin: 0;

    color: var(--pt-text);

    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;

    letter-spacing: -0.8px;
}


.pt-dashboard-welcome {

    margin-top: 8px;

    color: var(--pt-text-muted);

    font-size: 14px;
    line-height: 1.5;

    opacity: 1;
}


/* =========================================================
   Header Actions
   ========================================================= */

.pt-dashboard-actions {

    gap: 10px;
}


.pt-dashboard-logout {

    min-height: 42px;

    padding:
        9px
        16px;

    border:
        1px solid
        var(--pt-border-strong);

    border-radius:
        var(--pt-radius-sm);

    background:
        rgba(255,255,255,0.03);

    color:
        var(--pt-text-secondary);

    font-size: 12px;
    font-weight: 700;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.pt-dashboard-logout:hover {

    background:
        rgba(59,130,246,0.10);

    border-color:
        rgba(59,130,246,0.35);

    color:
        #ffffff;

    transform:
        translateY(-1px);
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Phase 1B — Cards
   ========================================================= */

.pt-dashboard-card {

    position: relative;

    margin-bottom: 20px;
    padding: 28px;

    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(19, 35, 58, 0.98),
            rgba(15, 27, 45, 0.98)
        );

    box-shadow: var(--pt-shadow-card);

    color: var(--pt-text);

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}


/* Card Hover */

.pt-dashboard-card:hover {

    border-color:
        rgba(96, 165, 250, 0.22);

    box-shadow:
        var(--pt-shadow-hover);

    transform:
        translateY(-1px);
}


/* Card Label */

.pt-dashboard-card-label {

    margin-bottom: 9px;

    color: var(--pt-text-muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.7px;
    line-height: 1.4;

    text-transform: uppercase;

    opacity: 1;
}


/* Card Heading */

.pt-dashboard-card h3 {

    margin: 0;

    color: var(--pt-text);

    font-size: 19px;
    line-height: 1.3;

    font-weight: 750;

    letter-spacing: -0.25px;
}


/* Card Note */

.pt-dashboard-card-note {

    margin-top: 18px;

    color: var(--pt-text-muted);

    font-size: 12px;
    line-height: 1.65;

    opacity: 1;
}


/* =========================================================
   Dashboard Grid
   ========================================================= */

.pt-dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.pt-dashboard-grid .pt-dashboard-card {

    margin-bottom: 0;
}


/* =========================================================
   Secondary Surface
   ========================================================= */

.pt-dashboard-data-row {

    border-bottom:
        1px solid var(--pt-border);

}


.pt-dashboard-data-row span {

    color:
        var(--pt-text-muted);

    opacity: 1;
}


.pt-dashboard-data-row strong {

    color:
        var(--pt-text-secondary);
}


/* =========================================================
   Account Items
   ========================================================= */

.pt-dashboard-account-item {

    border:
        1px solid var(--pt-border);

    border-radius:
        var(--pt-radius-md);

    background:
        rgba(255,255,255,0.025);
}


.pt-dashboard-account-item span {

    color:
        var(--pt-text-faint);

    opacity: 1;
}


.pt-dashboard-account-item strong {

    color:
        var(--pt-text-secondary);
}


/* =========================================================
   Card Divider
   ========================================================= */

.pt-dashboard-account-actions {

    border-top:
        1px solid var(--pt-border);
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Phase 1C — License Hero
   ========================================================= */

.pt-dashboard-license {

    position: relative;

    padding: 32px;

    overflow: hidden;

    border-color:
        rgba(59, 130, 246, 0.28);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.16),
            transparent 38%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(139, 92, 246, 0.08),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #12243c,
            #0e1a2c
        );

    box-shadow:
        0 16px 45px rgba(0, 0, 0, 0.28);
}


/* Top accent */

.pt-dashboard-license::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--pt-primary),
            var(--pt-purple)
        );

    opacity: 1;
}


/* License label */

.pt-dashboard-license .pt-dashboard-card-label {

    color:
        #60a5fa;

    letter-spacing:
        2px;
}


/* License title */

.pt-dashboard-license h3 {

    color:
        #ffffff;

    font-size:
        21px;
}


/* =========================================================
   License Status
   ========================================================= */

.pt-dashboard-license-status {

    margin-top: 12px;
}


.pt-status-badge {

    min-height: 30px;

    padding:
        5px 12px;

    border:
        1px solid transparent;

    border-radius:
        999px;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        0.8px;

    text-transform:
        uppercase;
}


/* Active */

.pt-status-active {

    background:
        var(--pt-success-soft);

    border-color:
        rgba(34, 197, 94, 0.28);

    color:
        #4ade80;
}


/* Trial */

.pt-status-trial {

    background:
        var(--pt-primary-soft);

    border-color:
        rgba(59, 130, 246, 0.28);

    color:
        #60a5fa;
}


/* Expired / Suspended */

.pt-status-expired,
.pt-status-suspended {

    background:
        var(--pt-danger-soft);

    border-color:
        rgba(244, 63, 94, 0.28);

    color:
        #fb7185;
}


/* Revoked */

.pt-status-revoked {

    background:
        var(--pt-purple-soft);

    border-color:
        rgba(139, 92, 246, 0.28);

    color:
        #a78bfa;
}


/* =========================================================
   Days Remaining
   ========================================================= */

.pt-dashboard-days {

    min-width:
        135px;

    text-align:
        right;
}


.pt-dashboard-days-number {

    color:
        #ffffff;

    font-size:
        46px;

    line-height:
        1;

    font-weight:
        800;

    letter-spacing:
        -1.8px;

    text-shadow:
        0 4px 20px rgba(59, 130, 246, 0.18);
}


.pt-dashboard-days-label {

    margin-top:
        8px;

    color:
        var(--pt-text-muted);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        1px;

    text-transform:
        uppercase;

    opacity:
        1;
}


/* =========================================================
   License Key
   ========================================================= */

.pt-dashboard-license-key {

    margin-top:
        28px;

    gap:
        10px;
}


.pt-license-key-value {

    min-height:
        54px;

    padding:
        0 17px;

    border:
        1px solid
        rgba(148, 163, 184, 0.16);

    border-radius:
        var(--pt-radius-md);

    background:
        rgba(3, 10, 20, 0.38);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.025);
}


.pt-license-key-value span {

    color:
        #dbeafe;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size:
        13px;

    letter-spacing:
        0.7px;
}


/* Copy button */

#pt-copy-license {

    min-width:
        92px;

    min-height:
        54px;

    padding:
        0 18px;

    border:
        1px solid
        rgba(59, 130, 246, 0.45);

    border-radius:
        var(--pt-radius-md);

    background:
        var(--pt-primary);

    color:
        #ffffff;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.4px;

    box-shadow:
        0 8px 20px rgba(59, 130, 246, 0.20);
}


#pt-copy-license:hover {

    background:
        var(--pt-primary-hover);

    border-color:
        rgba(96, 165, 250, 0.65);

    opacity:
        1;

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 25px rgba(59, 130, 246, 0.28);
}


/* =========================================================
   License Meta
   ========================================================= */

.pt-dashboard-license-meta {

    gap:
        10px;

    margin-top:
        12px;
}


.pt-license-meta-item {

    min-height:
        46px;

    padding:
        0 14px;

    border:
        1px solid
        rgba(148, 163, 184, 0.10);

    border-radius:
        var(--pt-radius-sm);

    background:
        rgba(255,255,255,0.025);
}


.pt-license-meta-label {

    color:
        var(--pt-text-faint);

    opacity:
        1;

    font-size:
        11px;
}


.pt-license-meta-item strong {

    color:
        var(--pt-text-secondary);

    font-size:
        12px;
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Phase 1D — MT5 + Subscription
   ========================================================= */

/* ---------- MT5 ACCOUNT ---------- */

.pt-dashboard-mt5 {
    background:
        linear-gradient(145deg, rgba(19,35,58,.98), rgba(15,27,45,.98));
}

.pt-dashboard-mt5 .pt-dashboard-card-label {
    color: #60a5fa;
}

.pt-dashboard-data-list {
    margin-top: 22px;
}

.pt-dashboard-data-row {
    min-height: 48px;
    border-bottom-color: var(--pt-border);
}

.pt-dashboard-data-row:last-child {
    border-bottom: 0;
}

.pt-dashboard-data-row span {
    color: var(--pt-text-muted);
    font-size: 12px;
}

.pt-dashboard-data-row strong {
    color: var(--pt-text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.pt-dashboard-connection-row {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    background: rgba(255,255,255,.025);
}

.pt-connection-status {
    font-size: 11px;
    font-weight: 800;
}

.pt-connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,.025);
}

.pt-connection-connected .pt-connection-dot {
    background: var(--pt-success);
    box-shadow: 0 0 0 4px var(--pt-success-soft);
}

.pt-connection-connected .pt-connection-status {
    color: #4ade80;
}

.pt-connection-awaiting .pt-connection-dot {
    background: var(--pt-warning);
    box-shadow: 0 0 0 4px var(--pt-warning-soft);
}

.pt-connection-awaiting .pt-connection-status {
    color: #fbbf24;
}


/* ---------- SUBSCRIPTION ---------- */

.pt-dashboard-subscription {
    background:
        radial-gradient(circle at 100% 0%, rgba(139,92,246,.12), transparent 38%),
        linear-gradient(145deg, rgba(19,35,58,.98), rgba(15,27,45,.98));
}

.pt-dashboard-subscription .pt-dashboard-card-label {
    color: #a78bfa;
}

.pt-dashboard-price {
    margin-top: 18px;
}

.pt-dashboard-price-regular {
    color: var(--pt-text-faint);
    font-size: 15px;
    font-weight: 600;
    text-decoration: line-through;
}

.pt-dashboard-price-sale {
    color: #fff;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.pt-dashboard-subscription-status {
    margin-top: 14px;
}

.pt-dashboard-subscription-details {
    margin-top: 22px;
}

.pt-dashboard-subscription-details > div {
    border-bottom-color: var(--pt-border);
}

.pt-dashboard-subscription-details > div:last-child {
    border-bottom: 0;
}

.pt-dashboard-subscription-details span {
    color: var(--pt-text-muted);
    font-size: 11px;
}

.pt-dashboard-subscription-details strong {
    color: var(--pt-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.pt-dashboard-subscription-billing {
    color: var(--pt-text-muted);
}

.pt-dashboard-subscription-trial {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(59,130,246,.18);
    border-radius: var(--pt-radius-md);
    background: var(--pt-primary-soft);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
}

.pt-dashboard-renew-button {
    margin-top: 20px;
    min-height: 44px;
    border: 1px solid rgba(139,92,246,.35);
    border-radius: var(--pt-radius-md);
    background: linear-gradient(
        135deg,
        var(--pt-primary),
        var(--pt-purple)
    );
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 8px 22px rgba(59,130,246,.18);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.pt-dashboard-renew-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(59,130,246,.25);
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Phase 1E — Download + Account
   ========================================================= */

/* ---------- EA DOWNLOAD ---------- */

.pt-dashboard-download {
    background:
        radial-gradient(circle at 100% 0%, rgba(59,130,246,.10), transparent 35%),
        linear-gradient(145deg, rgba(19,35,58,.98), rgba(15,27,45,.98));
}

.pt-dashboard-download .pt-dashboard-card-label {
    color: #60a5fa;
}

.pt-dashboard-file-name {
    margin-top: 16px;
    padding: 15px 16px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    background: rgba(3,10,20,.30);
    color: #dbeafe;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 600;
}

.pt-dashboard-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 18px;
    padding: 0 20px;
    border: 1px solid rgba(59,130,246,.40);
    border-radius: var(--pt-radius-md);
    background: var(--pt-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .35px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(59,130,246,.18);
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.pt-dashboard-download-button:hover {
    background: var(--pt-primary-hover);
    border-color: rgba(96,165,250,.65);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(59,130,246,.28);
}

.pt-dashboard-download-button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}


/* ---------- ACCOUNT INFORMATION ---------- */

.pt-dashboard-account {
    background:
        linear-gradient(145deg, rgba(19,35,58,.98), rgba(15,27,45,.98));
}

.pt-dashboard-account .pt-dashboard-card-label {
    color: #a78bfa;
}

.pt-dashboard-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.pt-dashboard-account-item {
    min-height: 72px;
    padding: 15px 16px;
    border-color: var(--pt-border);
    border-radius: var(--pt-radius-md);
    background: rgba(255,255,255,.025);
    transition:
        border-color .2s ease,
        background .2s ease;
}

.pt-dashboard-account-item:hover {
    border-color: rgba(96,165,250,.20);
    background: rgba(255,255,255,.035);
}

.pt-dashboard-account-item span {
    display: block;
    margin-bottom: 7px;
    color: var(--pt-text-faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.pt-dashboard-account-item strong {
    display: block;
    color: var(--pt-text-secondary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.pt-dashboard-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top-color: var(--pt-border);
}

.pt-dashboard-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--pt-border-strong);
    border-radius: var(--pt-radius-md);
    background: rgba(255,255,255,.035);
    color: var(--pt-text-secondary);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.pt-dashboard-account-button:hover {
    background: var(--pt-primary-soft);
    border-color: rgba(59,130,246,.35);
    color: #fff;
    transform: translateY(-1px);
}

.pt-dashboard-account-button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Phase 1F — Buttons + Status Badges + Notices
   ========================================================= */

/* ---------- BUTTON SYSTEM ---------- */

.pt-customer-dashboard button,
.pt-customer-dashboard input[type="submit"],
.pt-customer-dashboard input[type="button"] {
    font-family: var(--pt-font);
}

.pt-customer-dashboard button,
.pt-customer-dashboard input[type="submit"],
.pt-customer-dashboard input[type="button"],
.pt-dashboard-account-button,
.pt-dashboard-download-button,
.pt-dashboard-renew-button {
    cursor: pointer;
}

.pt-customer-dashboard button:focus-visible,
.pt-customer-dashboard input[type="submit"]:focus-visible,
.pt-customer-dashboard input[type="button"]:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

/* ---------- SUCCESS / WARNING / DANGER NOTICES ---------- */

.pt-dashboard-notice-success,
.pt-dashboard-account-notification {
    border: 1px solid rgba(34,197,94,.22);
    border-radius: var(--pt-radius-md);
    background: var(--pt-success-soft);
    color: #86efac;
}

.pt-dashboard-notice-email-change-pending {
    border: 1px solid rgba(59,130,246,.22);
    border-radius: var(--pt-radius-md);
    background: var(--pt-primary-soft);
    color: #93c5fd;
}

.pt-dashboard-notice-account-approved {
    border: 1px solid rgba(34,197,94,.22);
    border-radius: var(--pt-radius-md);
    background: var(--pt-success-soft);
    color: #86efac;
}

.pt-dashboard-notice-account-rejected {
    border: 1px solid rgba(244,63,94,.22);
    border-radius: var(--pt-radius-md);
    background: var(--pt-danger-soft);
    color: #fda4af;
}

/* ---------- NOTICE TEXT ---------- */

.pt-dashboard-notice-success p,
.pt-dashboard-account-notification p,
.pt-dashboard-notice-email-change-pending p,
.pt-dashboard-notice-account-approved p,
.pt-dashboard-notice-account-rejected p {
    color: inherit;
}

.pt-dashboard-notice-success a,
.pt-dashboard-account-notification a,
.pt-dashboard-notice-email-change-pending a,
.pt-dashboard-notice-account-approved a,
.pt-dashboard-notice-account-rejected a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- NOTICE CLOSE ---------- */

.pt-dashboard-notice-close {
    border: 0;
    background: transparent;
    color: currentColor;
    opacity: .70;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.pt-dashboard-notice-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ---------- ACCOUNT / ACTION STATES ---------- */

.pt-dashboard-account-button[disabled],
.pt-dashboard-download-button[disabled],
.pt-dashboard-renew-button[disabled],
.pt-customer-dashboard button[disabled],
.pt-customer-dashboard input[disabled] {
    cursor: not-allowed;
    opacity: .45;
    transform: none !important;
    box-shadow: none !important;
}

/* ---------- LINKS ---------- */

.pt-customer-dashboard a {
    transition:
        color .2s ease,
        opacity .2s ease;
}

.pt-customer-dashboard a:hover {
    color: #93c5fd;
}

/* ---------- STATUS DOT ---------- */

.pt-customer-dashboard .pt-connection-dot {
    flex: 0 0 auto;
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Phase 1G — Customer Forms
   Premium Dark Account UI
   ========================================================= */

/* =========================================================
   PAGE BACKGROUND
   ========================================================= */

body:has(.pt-customer-auth) {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(59, 130, 246, 0.10),
            transparent 38%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(139, 92, 246, 0.06),
            transparent 32%
        ),
        #08111f !important;
}

body:has(.pt-customer-auth) .site,
body:has(.pt-customer-auth) .site-content,
body:has(.pt-customer-auth) main,
body:has(.pt-customer-auth) .content-area,
body:has(.pt-customer-auth) article,
body:has(.pt-customer-auth) .entry-content {
    background: transparent !important;
}


/* =========================================================
   MAIN ACCOUNT CONTAINER
   ========================================================= */

.pt-customer-auth {
    width: min(760px, calc(100% - 32px));
    margin: 70px auto 90px;
    padding: 42px;
    box-sizing: border-box;

    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.10),
            transparent 36%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(139, 92, 246, 0.06),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #12243c 0%,
            #0d1a2d 55%,
            #0b1728 100%
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    color: var(--pt-text);

    position: relative;
    overflow: hidden;
}


/* top blue accent */

.pt-customer-auth::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            #3b82f6 20%,
            #60a5fa 50%,
            #8b5cf6 80%,
            transparent 100%
        );
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.pt-customer-auth > h1,
.pt-customer-auth > h2,
.pt-customer-auth .pt-customer-auth-title {
    margin: 0 0 24px;

    color: #f8fafc !important;

    font-family: var(--pt-font);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.6px;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

.pt-customer-login > h2 {
    text-align: center;
    margin-bottom: 28px;
}

.pt-customer-login > .pt-customer-form {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.pt-customer-login > p {
    text-align: center;
    color: var(--pt-text-muted);
    font-size: 12px;
    line-height: 1.6;
    margin: 16px 0 0;
}

.pt-customer-login > p a {
    color: var(--pt-primary);
    font-weight: 700;
    text-decoration: none;
}

.pt-customer-login > p a:hover {
    color: var(--pt-primary-hover);
    text-decoration: underline;
}

.pt-customer-login > p:last-child {
    margin-top: 10px;
}

/* =========================================================
   FORM PANEL
   ========================================================= */

.pt-customer-form {
    margin: 0;
    padding: 30px;

    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 24, 42, 0.96),
            rgba(8, 19, 34, 0.98)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 12px 35px rgba(0, 0, 0, 0.16);

    color: var(--pt-text);
}


/* =========================================================
   FORM LABELS
   ========================================================= */

.pt-customer-form label {
    display: block;

    margin: 0 0 8px;

    color: #cbd5e1 !important;

    font-family: var(--pt-font);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   INPUTS
   ========================================================= */

.pt-customer-form input[type="text"],
.pt-customer-form input[type="email"],
.pt-customer-form input[type="password"],
.pt-customer-form input[type="tel"],
.pt-customer-form input[type="number"],
.pt-customer-form select,
.pt-customer-form textarea {

    width: 100%;
    min-height: 48px;

    margin: 0 0 22px;
    padding: 0 15px;

    box-sizing: border-box;

    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(17, 34, 57, 0.95),
            rgba(13, 28, 48, 0.98)
        ) !important;

    color: #f8fafc !important;

    font-family: var(--pt-font);
    font-size: 13px;
    font-weight: 500;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* actual entered text */

.pt-customer-form input[type="text"]::first-line,
.pt-customer-form input[type="email"]::first-line,
.pt-customer-form input[type="password"]::first-line,
.pt-customer-form input[type="tel"]::first-line {
    color: #f8fafc;
}


/* placeholder */

.pt-customer-form input::placeholder,
.pt-customer-form textarea::placeholder {
    color: #64748b !important;
    opacity: 1;
}


/* hover */

.pt-customer-form input[type="text"]:hover,
.pt-customer-form input[type="email"]:hover,
.pt-customer-form input[type="password"]:hover,
.pt-customer-form input[type="tel"]:hover,
.pt-customer-form input[type="number"]:hover,
.pt-customer-form select:hover,
.pt-customer-form textarea:hover {
    border-color: rgba(96, 165, 250, 0.40) !important;
}


/* focus */

.pt-customer-form input[type="text"]:focus,
.pt-customer-form input[type="email"]:focus,
.pt-customer-form input[type="password"]:focus,
.pt-customer-form input[type="tel"]:focus,
.pt-customer-form input[type="number"]:focus,
.pt-customer-form select:focus,
.pt-customer-form textarea:focus {

    outline: none !important;

    border-color: #3b82f6 !important;

    background:
        linear-gradient(
            180deg,
            rgba(18, 39, 67, 0.98),
            rgba(13, 29, 50, 1)
        ) !important;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


/* readonly email */

.pt-customer-form input[readonly] {

    color: #94a3b8 !important;

    background:
        linear-gradient(
            180deg,
            rgba(22, 40, 65, 0.82),
            rgba(18, 34, 56, 0.88)
        ) !important;

    border-color: rgba(96, 165, 250, 0.14) !important;

    cursor: not-allowed;
}

/* =========================================================
   CHROME AUTOFILL FIX
   ========================================================= */

.pt-customer-form input:-webkit-autofill,
.pt-customer-form input:-webkit-autofill:hover,
.pt-customer-form input:-webkit-autofill:focus,
.pt-customer-form input:-webkit-autofill:active {

    -webkit-text-fill-color: var(--pt-text) !important;

    -webkit-box-shadow:
        0 0 0 1000px #12243c inset !important;

    box-shadow:
        0 0 0 1000px #12243c inset !important;

    caret-color: var(--pt-text) !important;

    transition:
        background-color 9999s ease-out 0s;
}

/* =========================================================
   FORM HELPER / INFORMATION TEXT
   ========================================================= */

.pt-customer-form small,
.pt-customer-form .description,
.pt-customer-form .form-description {

    color: #94a3b8 !important;

    font-size: 11px;
    line-height: 1.6;
}


.pt-customer-form .pt-form-note,
.pt-customer-form .pt-customer-note {

    color: #94a3b8 !important;
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.pt-customer-form button,
.pt-customer-form input[type="submit"] {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    margin-top: 2px;
    padding: 0 22px;

    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #3b82f6 0%,
            #2563eb 55%,
            #4f46e5 100%
        ) !important;

    color: #ffffff !important;

    font-family: var(--pt-font);
    font-size: 12px;
    font-weight: 800;

    letter-spacing: .2px;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(59, 130, 246, 0.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.pt-customer-form button:hover,
.pt-customer-form input[type="submit"]:hover {

    color: #ffffff !important;

    transform: translateY(-1px);

    filter: brightness(1.06);

    box-shadow:
        0 12px 28px rgba(59, 130, 246, 0.30);
}


.pt-customer-form button:focus-visible,
.pt-customer-form input[type="submit"]:focus-visible {

    outline: 2px solid #60a5fa !important;
    outline-offset: 3px;
}


/* =========================================================
   BACK TO ACCOUNT
   ========================================================= */

.pt-customer-auth > a:last-child {

    display: inline-flex;
    align-items: center;

    margin-top: 26px;

    color: #60a5fa !important;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


.pt-customer-auth > a:last-child::before {
    content: "←";

    margin-right: 9px;

    font-size: 20px;
    line-height: 1;
}


.pt-customer-auth > a:last-child:hover {
    color: #93c5fd !important;
    transform: translateX(-2px);
}


/* =========================================================
   FORM SPACING
   ========================================================= */

.pt-customer-form p {
    margin-top: 0;
    margin-bottom: 18px;
}

.pt-customer-form p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .pt-customer-auth {
        width: calc(100% - 24px);

        margin: 30px auto 50px;

        padding: 26px 18px;

        border-radius: 16px;
    }

    .pt-customer-auth > h1,
    .pt-customer-auth > h2,
    .pt-customer-auth .pt-customer-auth-title {
        font-size: 24px;
    }

    .pt-customer-form {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .pt-customer-form input[type="text"],
    .pt-customer-form input[type="email"],
    .pt-customer-form input[type="password"],
    .pt-customer-form input[type="tel"],
    .pt-customer-form input[type="number"],
    .pt-customer-form select,
    .pt-customer-form textarea {
        min-height: 46px;
    }

    .pt-customer-form button,
    .pt-customer-form input[type="submit"] {
        width: 100%;
    }
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Phase 1H — Mobile + RTL
   ========================================================= */


/* =========================================================
   RTL FOUNDATION
   ========================================================= */

.pt-customer-auth[dir="rtl"],
.pt-customer-auth.rtl {
    direction: rtl;
    text-align: start;
}


/* WordPress / Elementor RTL containers */

body.rtl .pt-customer-auth,
html[dir="rtl"] .pt-customer-auth {
    direction: rtl;
    text-align: start;
}


/* Keep email and password data naturally readable */

.pt-customer-form input[type="email"],
.pt-customer-form input[type="password"] {
    direction: ltr;
    text-align: left;
}


/* =========================================================
   RTL FORM LABELS
   ========================================================= */

html[dir="rtl"] .pt-customer-form label,
body.rtl .pt-customer-form label {
    text-align: right;
}


/* =========================================================
   RTL FORM BUTTON
   ========================================================= */

html[dir="rtl"] .pt-customer-form button,
body.rtl .pt-customer-form button {
    direction: rtl;
}


/* =========================================================
   RTL LINKS
   ========================================================= */

html[dir="rtl"] .pt-customer-auth > a:last-child,
body.rtl .pt-customer-auth > a:last-child {
    flex-direction: row-reverse;
}


/* =========================================================
   DASHBOARD RTL
   ========================================================= */

html[dir="rtl"] .pt-customer-dashboard,
body.rtl .pt-customer-dashboard {
    direction: rtl;
    text-align: start;
}


/* =========================================================
   MOBILE — GENERAL
   ========================================================= */

@media (max-width: 900px) {

    .pt-customer-dashboard {
        width: 100%;
        max-width: none;

        padding-inline: 18px;
    }

    .pt-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pt-dashboard-card {
        padding: 24px;
    }

    .pt-dashboard-license {
        padding: 26px;
    }

    .pt-dashboard-account-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   MOBILE — TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 700px) {

    .pt-customer-dashboard {
        padding-inline: 14px;
        padding-block-start: 28px;
        padding-block-end: 60px;
    }

    .pt-dashboard-header {
        margin-bottom: 24px;
    }

    .pt-dashboard-title {
        font-size: 27px;
    }

    .pt-dashboard-card {
        padding: 22px;
        border-radius: var(--pt-radius-md);
    }

    .pt-dashboard-card h3 {
        font-size: 18px;
    }


    /* License */

    .pt-dashboard-license {
        padding: 24px;
    }

    .pt-dashboard-card-top {
        flex-wrap: wrap;
        gap: 20px;
    }

    .pt-dashboard-days {
        min-width: 0;
        width: 100%;
        text-align: start;
    }

    .pt-dashboard-days-number {
        font-size: 40px;
    }

    .pt-dashboard-license-key {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-license-key-value {
        width: 100%;
        box-sizing: border-box;
    }

    #pt-copy-license {
        width: 100%;
    }


    /* License metadata */

    .pt-dashboard-license-meta {
        grid-template-columns: 1fr;
    }

    .pt-license-meta-item {
        width: 100%;
        box-sizing: border-box;
    }


    /* Account */

    .pt-dashboard-account-grid {
        grid-template-columns: 1fr;
    }

    .pt-dashboard-account-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-dashboard-account-button {
        width: 100%;
        box-sizing: border-box;
    }


    /* Download */

    .pt-dashboard-download-button {
        width: 100%;
        box-sizing: border-box;
    }


    /* Subscription */

    .pt-dashboard-price-sale {
        font-size: 30px;
    }

    .pt-dashboard-renew-button {
        width: 100%;
    }


    /* Data rows */

    .pt-dashboard-data-row {
        gap: 12px;
    }
}


/* =========================================================
   MOBILE — PHONE
   ========================================================= */

@media (max-width: 480px) {

    .pt-customer-auth {
        width: calc(100% - 20px);

        margin-block: 24px 40px;
        padding: 20px 14px;

        border-radius: 16px;
    }

    .pt-customer-auth > h1,
    .pt-customer-auth > h2,
    .pt-customer-auth .pt-customer-auth-title {
        font-size: 23px;
        letter-spacing: -0.4px;
    }

    .pt-customer-form {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .pt-customer-form input[type="text"],
    .pt-customer-form input[type="email"],
    .pt-customer-form input[type="password"],
    .pt-customer-form input[type="tel"],
    .pt-customer-form input[type="number"],
    .pt-customer-form select,
    .pt-customer-form textarea {
        min-height: 46px;
        font-size: 13px;
    }

    .pt-customer-form button,
    .pt-customer-form input[type="submit"] {
        width: 100%;
    }


    .pt-dashboard-card {
        padding: 18px;
    }

    .pt-dashboard-license {
        padding: 20px;
    }

    .pt-dashboard-title {
        font-size: 24px;
    }

    .pt-dashboard-welcome {
        font-size: 13px;
    }

    .pt-dashboard-card-label {
        font-size: 9px;
    }

    .pt-dashboard-card h3 {
        font-size: 17px;
    }

    .pt-dashboard-days-number {
        font-size: 36px;
    }

    .pt-license-key-value span {
        font-size: 11px;
        letter-spacing: .4px;
        word-break: break-all;
    }

    .pt-dashboard-data-row {
        min-height: 44px;
    }

    .pt-dashboard-data-row span,
    .pt-dashboard-data-row strong {
        font-size: 11px;
    }

    .pt-dashboard-account-item {
        min-height: 64px;
        padding: 13px 14px;
    }
}


/* =========================================================
   MOBILE — VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .pt-customer-auth {
        width: calc(100% - 12px);
        padding: 16px 10px;
    }

    .pt-customer-form {
        padding: 16px 12px;
    }

    .pt-dashboard-card,
    .pt-dashboard-license {
        padding: 16px;
    }

    .pt-dashboard-title {
        font-size: 22px;
    }

    .pt-dashboard-days-number {
        font-size: 32px;
    }
}

/* =========================================================
   PURETREND DESIGN SYSTEM
   Dashboard Welcome Card
   ========================================================= */

.pt-dashboard-welcome-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 24px;
    padding: 20px 22px;

    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: var(--pt-radius-lg);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(139, 92, 246, 0.07),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #12243c 0%,
            #0e1b2e 55%,
            #0b1728 100%
        );

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    color: var(--pt-text);

    overflow: hidden;
}


/* Top accent */

.pt-dashboard-welcome-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--pt-primary),
            var(--pt-purple)
        );
}


/* =========================================================
   AVATAR
   ========================================================= */

.pt-dashboard-welcome-avatar {
    flex: 0 0 56px;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--pt-primary),
            var(--pt-purple)
        );

    color: #ffffff;

    font-size: 23px;
    font-weight: 800;

    text-transform: uppercase;

    box-shadow:
        0 8px 22px rgba(59, 130, 246, 0.25);

    user-select: none;
}


/* =========================================================
   CONTENT
   ========================================================= */

.pt-dashboard-welcome-content {
    min-width: 0;
    flex: 1;
}


.pt-dashboard-welcome-greeting {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 4px;

    color: var(--pt-text-muted);

    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}


.pt-dashboard-welcome-greeting-icon {
    font-size: 15px;
    line-height: 1;
}


.pt-dashboard-welcome-name {
    color: #ffffff;

    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;

    letter-spacing: -0.35px;
}


.pt-dashboard-welcome-wave {
    display: inline-block;

    margin-left: 5px;

    font-size: 18px;

    transform-origin: 70% 70%;
}


.pt-dashboard-welcome-product {
    margin-top: 5px;

    color: var(--pt-text-faint);

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.pt-dashboard-welcome-actions {
    flex: 0 0 auto;
}


.pt-dashboard-welcome-actions .pt-dashboard-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 15px;

    border: 1px solid var(--pt-border-strong);
    border-radius: var(--pt-radius-sm);

    background: rgba(255, 255, 255, 0.03);

    color: var(--pt-text-secondary);

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.pt-dashboard-welcome-actions .pt-dashboard-logout:hover {
    background: rgba(244, 63, 94, 0.10);

    border-color: rgba(244, 63, 94, 0.30);

    color: #fb7185;

    transform: translateY(-1px);
}


/* =========================================================
   RTL
   ========================================================= */

html[dir="rtl"] .pt-dashboard-welcome-card,
body.rtl .pt-dashboard-welcome-card {
    direction: rtl;
    text-align: right;
}


html[dir="rtl"] .pt-dashboard-welcome-greeting,
body.rtl .pt-dashboard-welcome-greeting {
    justify-content: flex-start;
}


html[dir="rtl"] .pt-dashboard-welcome-wave,
body.rtl .pt-dashboard-welcome-wave {
    margin-left: 0;
    margin-right: 5px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .pt-dashboard-welcome-card {
        gap: 13px;

        padding: 17px 16px;

        border-radius: var(--pt-radius-md);
    }

    .pt-dashboard-welcome-avatar {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 20px;
    }

    .pt-dashboard-welcome-name {
        font-size: 18px;
    }

    .pt-dashboard-welcome-product {
        font-size: 10px;
    }

    .pt-dashboard-welcome-actions .pt-dashboard-logout {
        min-height: 38px;
        padding: 0 12px;
    }
}


@media (max-width: 480px) {

    .pt-dashboard-welcome-card {
        align-items: flex-start;

        padding: 16px;
    }

    .pt-dashboard-welcome-avatar {
        flex-basis: 44px;

        width: 44px;
        height: 44px;

        font-size: 18px;
    }

    .pt-dashboard-welcome-greeting {
        font-size: 11px;
    }

    .pt-dashboard-welcome-name {
        font-size: 17px;
    }

    .pt-dashboard-welcome-product {
        display: none;
    }

    .pt-dashboard-welcome-actions .pt-dashboard-logout {
        min-height: 36px;

        padding: 0 10px;

        font-size: 10px;
    }
}

/* =========================================================
   REGISTER — TERMS & CONDITIONS
   ========================================================= */

.pt-register-terms-row {
    margin: 4px 0 24px;
}

.pt-register-terms {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;

    margin: 0 !important;

    color: var(--pt-text-secondary) !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    cursor: pointer;
}

.pt-register-terms input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;

    flex: 0 0 18px;

    margin: 1px 0 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 5px !important;

    background: rgba(17, 34, 57, 0.95) !important;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.pt-register-terms input[type="checkbox"]:checked {
    border-color: #3b82f6 !important;

    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #6366f1
        ) !important;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.10);
}

.pt-register-terms input[type="checkbox"]:checked::after {
    content: "✓";

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.pt-register-terms span {
    flex: 1;
}

.pt-register-terms .pt-terms-link {
    color: #60a5fa !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.pt-register-terms .pt-terms-link:hover {
    color: #93c5fd !important;
    text-decoration: underline !important;
}

/* =========================================================
   TERMS & CONDITIONS MODAL
   ========================================================= */

.pt-terms-modal {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    box-sizing: border-box;
}

.pt-terms-modal.is-open {
    display: flex;
}

.pt-terms-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(2, 8, 23, 0.82);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    cursor: pointer;
}

.pt-terms-modal-dialog {
    position: relative;

    width: min(900px, 100%);
    height: min(720px, calc(100vh - 48px));

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #12243c 0%,
            #0d1a2d 55%,
            #0b1728 100%
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    overflow: hidden;
}

.pt-terms-modal-dialog::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #3b82f6 25%,
            #60a5fa 50%,
            #8b5cf6 75%,
            transparent
        );
}

.pt-terms-modal-header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 64px;

    padding: 0 20px 0 24px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.12);

    background: rgba(8, 17, 31, 0.45);
}

.pt-terms-modal-header h3 {
    margin: 0;

    color: #f8fafc !important;

    font-family: var(--pt-font);

    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.pt-terms-modal-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    padding: 0;

    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.04);

    color: #94a3b8;

    font-size: 23px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.pt-terms-modal-close:hover {
    border-color: rgba(244, 63, 94, 0.35);

    background: rgba(244, 63, 94, 0.10);

    color: #fb7185;

    transform: translateY(-1px);
}

.pt-terms-modal-content {
    flex: 1;

    min-height: 0;

    background: #08111f;
}

.pt-terms-modal-content iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #08111f;
}

/* Prevent page scrolling while modal is open */

body.pt-terms-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {

    .pt-terms-modal {
        padding: 12px;
    }

    .pt-terms-modal-dialog {
        height: calc(100vh - 24px);

        border-radius: 14px;
    }

    .pt-terms-modal-header {
        min-height: 58px;

        padding: 0 14px 0 18px;
    }

    .pt-terms-modal-header h3 {
        font-size: 15px;
    }

    .pt-terms-modal-close {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

}