/* =========================================================
   DS TRADER COPILOT
   Brand Consistent CSS for ShambhuPMP.com
   ========================================================= */

.ds-trading-wrapper {
    width: 100%;
    background: #F7FCFF;
    color: #102A43;
    font-family: Arial, Helvetica, sans-serif;
}

.ds-trading-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO */

.ds-trading-hero {
    padding: 90px 0 80px;
    background: linear-gradient(135deg, #071E55 0%, #0B3A8D 55%, #0057D9 100%);
    color: #ffffff;
    text-align: center;
}

.ds-trading-badge,
.ds-trading-dashboard-badge-light {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.ds-trading-badge {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    margin-bottom: 18px;
}

.ds-trading-hero h1 {
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.1;
    color: #ffffff;
    font-weight: 900;
}

.ds-trading-hero p {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.7;
    color: #EAF4FF;
}

/* BUTTONS */

.ds-trading-actions,
.ds-trading-dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ds-trading-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.ds-trading-btn-primary {
    background: #22CFF3;
    color: #071E55;
    border: 1px solid #22CFF3;
}

.ds-trading-btn-primary:hover {
    background: #ffffff;
    color: #0057D9;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.ds-trading-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.55);
}

.ds-trading-btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border-color: #22CFF3;
    transform: translateY(-2px);
}

/* LANDING FEATURE CARDS */

.ds-trading-features {
    padding: 70px 0;
    background: #ffffff;
}

.ds-trading-features h2 {
    text-align: center;
    margin: 0 0 36px;
    font-size: 34px;
    color: #102A43;
    font-weight: 900;
}

.ds-trading-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
}

.ds-trading-card {
    position: relative;
    width: 260px;
    min-height: 210px;
    background: #ffffff;
    border: 1px solid #D9EAF7;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 16px 40px rgba(7,30,85,0.08);
    transition: all 0.25s ease;
}

.ds-trading-card:hover {
    transform: translateY(-6px);
    border-color: #22CFF3;
    box-shadow: 0 22px 50px rgba(7,30,85,0.14);
}

.ds-trading-card h3 {
    margin: 0 0 12px;
    padding-right: 58px;
    color: #0057D9;
    font-size: 22px;
    font-weight: 900;
}

.ds-trading-card p {
    margin: 0;
    color: #526D82;
    font-size: 15px;
    line-height: 1.6;
}

.ds-trading-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #EAF4FF 0%, #D9F7FF 100%);
    border: 1px solid #D9EAF7;
    color: #0057D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 25px rgba(7,30,85,0.08);
}

/* AUTH */

.ds-trading-access-section {
    display: none;
    padding: 70px 0;
    background: #F7FCFF;
}

.ds-trading-access-section.is-open {
    display: block;
}

.ds-trading-access-card {
    max-width: 620px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #D9EAF7;
    border-radius: 22px;
    padding: 36px;
    text-align: center;
    box-shadow: 0 22px 55px rgba(7,30,85,0.12);
}

.ds-trading-access-card h2 {
    margin: 14px 0;
    font-size: 32px;
    color: #102A43;
    font-weight: 900;
}

.ds-trading-access-card p {
    color: #526D82;
    font-size: 16px;
    line-height: 1.7;
}

.ds-trading-badge-dark {
    background: #EAF4FF;
    color: #0057D9;
    border: 1px solid #D9EAF7;
}

.ds-trading-auth-form {
    max-width: 520px;
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ds-trading-form-group {
    width: 100%;
}

.ds-trading-email-input {
    width: 100%;
    height: 54px;
    border: 1px solid #D9EAF7;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 16px;
    color: #102A43;
    background: #ffffff;
    outline: none;
}

.ds-trading-email-input:focus {
    border-color: #22CFF3;
    box-shadow: 0 0 0 4px rgba(34,207,243,0.22);
}

.ds-trading-auth-form input[type="text"] {
    text-align: center;
    letter-spacing: 4px;
    font-weight: 800;
}

.ds-trading-auth-message {
    max-width: 520px;
    margin: 18px auto 0;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
}

.ds-trading-auth-message.success {
    background: #E6FFFA;
    color: #047857;
    border: 1px solid #99F6E4;
}

.ds-trading-auth-message.error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.ds-trading-remember-device {
    display: block;
    margin: 14px auto 18px;
    color: #526D82;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.ds-trading-remember-device input {
    margin-right: 8px;
}

/* DISCLAIMER */

.ds-trading-disclaimer {
    position: relative;
    max-width: 920px;
    margin: 40px auto 0;
    padding: 20px 24px 20px 72px;
    background: #FFF8E6;
    border: 1px solid #F5C542;
    border-left: 6px solid #F59E0B;
    border-radius: 16px;
    color: #5F4300;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    box-shadow: 0 14px 34px rgba(245,158,11,0.14);
}

.ds-trading-disclaimer::before {
    content: "!";
    position: absolute;
    top: 22px;
    left: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F59E0B;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 34px;
    text-align: center;
}

/* DASHBOARD LIGHT */

.ds-trading-dashboard-hero-light {
    position: relative;
    overflow: hidden;
    padding: 70px 0 76px;
    background:
        radial-gradient(circle at 18% 55%, rgba(34,207,243,0.18) 0%, rgba(34,207,243,0) 34%),
        radial-gradient(circle at 82% 45%, rgba(0,87,217,0.14) 0%, rgba(0,87,217,0) 38%),
        linear-gradient(135deg, #FFFFFF 0%, #F7FCFF 46%, #EEF7FF 100%);
    color: #071E55;
    border-top: 1px solid #D9EAF7;
    border-bottom: 1px solid #D9EAF7;
}

.ds-trading-dashboard-bg-lines {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
    background-image:
        linear-gradient(115deg, transparent 0%, transparent 45%, rgba(0,87,217,0.07) 45.5%, transparent 46%),
        linear-gradient(65deg, transparent 0%, transparent 50%, rgba(34,207,243,0.08) 50.5%, transparent 51%);
    background-size: 90px 90px, 120px 120px;
}

.ds-trading-dashboard-hero-light::before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: 45px;
    width: 520px;
    height: 180px;
    opacity: 0.18;
    border-radius: 50%;
    border-top: 2px solid #22CFF3;
    transform: rotate(-10deg);
}

.ds-trading-dashboard-hero-light::after {
    content: "";
    position: absolute;
    right: -60px;
    top: 90px;
    width: 360px;
    height: 260px;
    opacity: 0.08;
    background:
        linear-gradient(90deg, rgba(0,87,217,0.45) 8px, transparent 8px) 0 0 / 36px 100%,
        linear-gradient(0deg, rgba(0,87,217,0.20) 1px, transparent 1px) 0 0 / 100% 34px;
    clip-path: polygon(0 90%, 12% 82%, 22% 84%, 36% 62%, 48% 68%, 64% 38%, 78% 44%, 100% 8%, 100% 100%, 0 100%);
}

.ds-trading-dashboard-hero-light .ds-trading-container {
    position: relative;
    z-index: 2;
}

.ds-trading-dashboard-badge-light {
    background: #EAF4FF;
    border: 1px solid #D9EAF7;
    color: #0057D9;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(7,30,85,0.06);
}

.ds-trading-dashboard-hero-light h1 {
    margin: 0 0 14px;
    color: #071E55;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 900;
}

.ds-trading-dashboard-hero-light p {
    max-width: 760px;
    margin: 0 auto;
    color: #102A43;
    font-size: 18px;
    line-height: 1.7;
}

/* Dashboard Cards */

.ds-trading-dashboard-preview.light {
    max-width: 100%;
    margin: 34px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    align-items: stretch;
}

.ds-trading-dashboard-card.light {
    width: 220px;
    min-height: 170px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #D9EAF7;
    border-radius: 18px;
    padding: 24px 18px;
    text-align: center;
    color: #102A43;
    box-shadow: 0 18px 45px rgba(7,30,85,0.10);
    transition: all 0.25s ease;
}

.ds-trading-dashboard-card.light:hover {
    transform: translateY(-6px);
    border-color: #22CFF3;
    box-shadow: 0 24px 55px rgba(7,30,85,0.16);
}

.ds-trading-account-card {
    position: relative;
    width: 360px !important;
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px 28px !important;
}

.ds-trading-account-card .ds-trading-dashboard-icon {
    margin: 0;
    width: 72px;
    height: 72px;
    font-size: 34px;
    flex: 0 0 auto;
}

.ds-trading-account-card strong {
    margin-bottom: 8px !important;
}

.ds-trading-account-card span.ds-trading-account-title {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: #0057D9;
}

.ds-trading-dashboard-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EAF4FF 0%, #D9F7FF 100%);
    color: #0057D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: inset 0 0 0 1px #D9EAF7;
}

.ds-trading-dashboard-card.light strong {
    display: block;
    font-size: 14px;
    color: #102A43;
    margin-bottom: 10px;
    font-weight: 900;
}

.ds-trading-dashboard-card.light span {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: #0057D9;
}

/* Approved Pill Inside Account Card */

.ds-trading-status-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.ds-trading-status-pill.approved {
    background: #ECFDF3;
    color: #15803D;
    border: 1px solid #BBF7D0;
    box-shadow: 0 0 18px rgba(34,197,94,0.18);
}

.ds-trading-status-pill .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 10px #22C55E, 0 0 18px #22C55E;
}

/* Quick Overview */

.ds-trading-quick-overview {
    margin: 34px auto 0;
    background: rgba(255,255,255,0.92);
    border: 1px solid #D9EAF7;
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: 0 18px 45px rgba(7,30,85,0.08);
}

.ds-trading-quick-overview h3 {
    margin: 0 0 24px;
    color: #102A43;
    font-size: 22px;
    font-weight: 900;
}

.ds-trading-overview-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ds-trading-overview-item {
    width: 25%;
    min-width: 220px;
    padding: 12px 24px;
    border-right: 1px solid #D9EAF7;
    display: flex;
    align-items: center;
    gap: 18px;
}

.ds-trading-overview-item:last-child {
    border-right: none;
}

.ds-trading-overview-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #EAF4FF;
    color: #0057D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ds-trading-overview-item strong {
    display: block;
    color: #102A43;
    font-size: 16px;
    margin-bottom: 6px;
}

.ds-trading-overview-item span {
    display: block;
    color: #0057D9;
    font-size: 20px;
    font-weight: 900;
}

.ds-trading-overview-item small {
    display: block;
    color: #526D82;
    margin-top: 6px;
}

/* Dashboard Buttons */

.ds-trading-dashboard-actions {
    margin-top: 38px;
}

.ds-trading-dashboard-actions .ds-trading-btn-secondary {
    background: #EEF6FF !important;
    border: 1px solid #C8E0FF !important;
    color: #0B3A8D !important;
    font-weight: 900;
    box-shadow: none;
    min-width: 180px;
}

.ds-trading-dashboard-actions .ds-trading-btn-secondary:hover {
    background: #0B3A8D !important;
    color: #ffffff !important;
}

.ds-trading-btn-forget {
    background: #FFF8E6 !important;
    border: 1px solid #F5C542 !important;
    color: #92400E !important;
    font-weight: 900;
}

.ds-trading-btn-forget:hover {
    background: #F5C542 !important;
    color: #ffffff !important;
}

/* Toasts */

.ds-trading-toast {
    max-width: 920px;
    margin: 22px auto 0;
    padding: 14px 46px 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 12px 30px rgba(7,30,85,0.08);
}

.ds-trading-toast.success {
    background: #EAF7EE;
    border: 1px solid #A6D8B7;
    color: #1E6B39;
}

.ds-trading-toast.warning {
    background: #FFF8E6;
    border: 1px solid #F5C542;
    color: #7C2D12;
}

.ds-trading-toast-close {
    position: absolute;
    top: 9px;
    right: 12px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
    color: inherit;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
    font-weight: 900;
}

/* Pending / Blocked */

.ds-trading-status-card {
    max-width: 420px;
    margin: 34px auto 0;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(7,30,85,0.10);
}

.ds-trading-status-card strong {
    display: block;
    font-size: 14px;
    color: #526D82;
    margin-bottom: 10px;
}

.ds-trading-status-card span {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.ds-trading-status-card.pending {
    border: 1px solid #F5C542;
    background: #FFF8E6;
}

.ds-trading-status-card.pending span {
    color: #92400E;
}

.ds-trading-status-card.blocked {
    border: 1px solid #FCA5A5;
    background: #FEF2F2;
}

.ds-trading-status-card.blocked span {
    color: #991B1B;
}

/* Theme Cleanup */

body.page-id-41 .entry-header,
body.page-id-41 .page-header,
body.page-id-41 .page-title,
body.page-id-41 .entry-title,
body.page-id-41 .post-title,
body.page-id-41 h1:first-child {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-41 .site-main,
body.page-id-41 .content-area,
body.page-id-41 main {
    padding-top: 0 !important;
}

/* Responsive */

@media (max-width: 900px) {
    .ds-trading-account-card,
    .ds-trading-dashboard-card.light {
        width: 100% !important;
        max-width: 420px;
    }

    .ds-trading-overview-item {
        width: 50%;
        border-right: none;
    }
}

@media (max-width: 768px) {
    .ds-trading-container {
        padding: 0 18px;
    }

    .ds-trading-hero h1,
    .ds-trading-dashboard-hero-light h1 {
        font-size: 34px;
    }

    .ds-trading-hero p,
    .ds-trading-dashboard-hero-light p {
        font-size: 16px;
    }

    .ds-trading-card,
    .ds-trading-overview-item {
        width: 100%;
    }

    .ds-trading-account-card {
        text-align: center !important;
        justify-content: center;
        padding-top: 72px !important;
    }

    .ds-trading-status-pill {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* Approved Dashboard Header Fix */

.ds-trading-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 34px;
    text-align: left;
}

.ds-trading-dashboard-header h1 {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #071E55 !important;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 900;
}

.ds-trading-dashboard-header p {
    margin: 0;
    color: #102A43;
    font-size: 18px;
    line-height: 1.6;
}

.ds-trading-dashboard-date {
    margin-top: 12px;
    color: #526D82;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .ds-trading-dashboard-header {
        display: block;
        text-align: center;
    }

    .ds-trading-dashboard-date {
        margin-top: 14px;
        white-space: normal;
    }
}

/* Dashboard Custom Title - avoids global h1 theme conflict */

.ds-trading-dashboard-main-title {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #071E55 !important;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 900;
}

.ds-trading-dashboard-subtitle {
    margin: 0;
    color: #102A43;
    font-size: 18px;
    line-height: 1.6;
}

.ds-trading-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 34px;
    text-align: left;
}

.ds-trading-dashboard-date {
    margin-top: 12px;
    color: #526D82;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .ds-trading-dashboard-header {
        display: block;
        text-align: center;
    }

    .ds-trading-dashboard-main-title {
        font-size: 34px;
    }

    .ds-trading-dashboard-date {
        margin-top: 14px;
        white-space: normal;
    }
}
/* =========================================================
   DASHBOARD HEADER
   ========================================================= */

.ds-trading-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D9EAF7;
}

.ds-trading-dashboard-header-left {
    flex: 1;
}

.ds-trading-dashboard-main-title {
    font-size: 34px;
    font-weight: 800;
    color: #071E55;
    line-height: 1.2;
    margin-bottom: 6px;
}

.ds-trading-dashboard-subtitle {
    font-size: 15px;
    color: #526D82;
}

.ds-trading-dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ds-trading-dashboard-time {
    background: #ffffff;
    border: 1px solid #D9EAF7;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #102A43;
}

/* Approval Badge */

.ds-trading-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.ds-trading-status-pill.approved {
    background: #EAF7EE;
    border: 1px solid #A6D8B7;
    color: #1E6B39;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow:
        0 0 0 4px rgba(34,197,94,.15),
        0 0 12px rgba(34,197,94,.55);
}

/* Mobile */

@media (max-width: 768px) {

    .ds-trading-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-trading-dashboard-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .ds-trading-dashboard-main-title {
        font-size: 26px;
    }
}

/* =========================================================
   DS TRADER WORKSTATION SHELL
   ========================================================= */

.ds-trading-workstation {
    position: relative;
    overflow: hidden;
    min-height: 78vh;
    padding: 34px 0 50px;
    background:
        radial-gradient(circle at 16% 40%, rgba(34, 207, 243, 0.16) 0%, rgba(34, 207, 243, 0) 34%),
        radial-gradient(circle at 85% 30%, rgba(0, 87, 217, 0.12) 0%, rgba(0, 87, 217, 0) 38%),
        linear-gradient(135deg, #FFFFFF 0%, #F7FCFF 46%, #EEF7FF 100%);
    border-top: 1px solid #D9EAF7;
    border-bottom: 1px solid #D9EAF7;
}

.ds-dashboard-shell {
    display: flex;
    align-items: stretch;
    gap: 22px;
    width: 100%;
}

/* Sidebar */

.ds-dashboard-sidebar {
    width: 220px;
    flex: 0 0 220px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #D9EAF7;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 45px rgba(7, 30, 85, 0.08);
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.ds-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #102A43;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: all 0.22s ease;
}

.ds-nav-item:hover {
    background: #F7FCFF;
    border-color: #D9EAF7;
    color: #0057D9;
}

.ds-nav-item.active {
    background: linear-gradient(135deg, #071E55 0%, #0057D9 100%);
    color: #ffffff;
    border-color: #0057D9;
    box-shadow: 0 10px 24px rgba(0, 87, 217, 0.22);
}

.ds-nav-icon {
    width: 24px;
    text-align: center;
    font-size: 17px;
}

.ds-nav-label {
    flex: 1;
}

.ds-sidebar-divider {
    height: 1px;
    background: #D9EAF7;
    margin: 14px 0;
}

.ds-sidebar-link {
    display: block;
    padding: 11px 13px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: #EEF6FF;
    color: #0B3A8D;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    transition: all 0.22s ease;
}

.ds-sidebar-link:hover {
    background: #0B3A8D;
    color: #ffffff;
}

.ds-sidebar-link.danger {
    background: #FFF8E6;
    color: #92400E;
    border: 1px solid #F5C542;
}

.ds-sidebar-link.danger:hover {
    background: #F5C542;
    color: #ffffff;
}

/* Workspace */

.ds-dashboard-workspace {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #D9EAF7;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(7, 30, 85, 0.08);
}

.ds-panel {
    display: none;
}

.ds-panel.active {
    display: block;
}

/* Mobile */

@media (max-width: 900px) {
    .ds-dashboard-shell {
        display: block;
    }

    .ds-dashboard-sidebar {
        width: 100%;
        flex: none;
        position: relative;
        top: auto;
        margin-bottom: 18px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        padding: 12px;
    }

    .ds-nav-item {
        flex: 0 0 auto;
        width: auto;
        margin-bottom: 0;
        padding: 11px 14px;
    }

    .ds-sidebar-divider,
    .ds-sidebar-link {
        display: none;
    }

    .ds-dashboard-workspace {
        padding: 18px;
    }
}

/* =========================================================
   DASHBOARD PANELS + OVERVIEW
   ========================================================= */

.ds-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #D9EAF7;
}

.ds-panel-header h2 {
    margin: 0 0 6px;
    color: #071E55;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
}

.ds-panel-header p {
    margin: 0;
    color: #526D82;
    font-size: 15px;
    line-height: 1.5;
}

.ds-panel-status-badge {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 999px;
    background: #EAF4FF;
    border: 1px solid #D9EAF7;
    color: #0057D9;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.ds-trading-dashboard-preview.light {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
    align-items: stretch;
}

.ds-trading-dashboard-card.light {
    width: 190px;
    min-height: 158px;
    background: #ffffff;
    border: 1px solid #D9EAF7;
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    color: #102A43;
    box-shadow: 0 14px 34px rgba(7, 30, 85, 0.08);
    transition: all 0.25s ease;
}

.ds-trading-dashboard-card.light:hover {
    transform: translateY(-4px);
    border-color: #22CFF3;
    box-shadow: 0 20px 42px rgba(7, 30, 85, 0.13);
}

.ds-trading-account-card {
    position: relative;
    width: 320px !important;
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px !important;
}

.ds-trading-account-card .ds-trading-dashboard-icon {
    margin: 0;
    width: 66px;
    height: 66px;
    font-size: 30px;
    flex: 0 0 auto;
}

.ds-trading-account-card strong {
    margin-bottom: 7px !important;
}

.ds-trading-account-title {
    display: block;
    font-size: 28px !important;
    font-weight: 900;
    color: #0057D9 !important;
}

.ds-trading-dashboard-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EAF4FF 0%, #D9F7FF 100%);
    color: #0057D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px #D9EAF7;
}

.ds-trading-dashboard-card.light strong {
    display: block;
    font-size: 14px;
    color: #102A43;
    margin-bottom: 8px;
    font-weight: 900;
}

.ds-trading-dashboard-card.light span {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #0057D9;
}

.ds-trading-dashboard-card.light small {
    display: block;
    margin-top: 6px;
    color: #526D82;
    font-size: 12px;
    font-weight: 700;
}

/* Approved Pill */

.ds-trading-status-pill {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.ds-trading-status-pill.approved {
    background: #ECFDF3;
    color: #15803D;
    border: 1px solid #BBF7D0;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.18);
}

.ds-trading-status-pill .status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 10px #22C55E, 0 0 18px #22C55E;
}

/* Quick Overview */

.ds-trading-quick-overview {
    margin: 24px 0 0;
    background: #ffffff;
    border: 1px solid #D9EAF7;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(7, 30, 85, 0.06);
}

.ds-trading-quick-overview h3 {
    margin: 0 0 20px;
    color: #102A43;
    font-size: 21px;
    font-weight: 900;
}

.ds-trading-overview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.ds-trading-overview-item {
    width: 25%;
    min-width: 190px;
    padding: 12px 20px;
    border-right: 1px solid #D9EAF7;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ds-trading-overview-item:last-child {
    border-right: none;
}

.ds-trading-overview-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #EAF4FF;
    color: #0057D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ds-trading-overview-item strong {
    display: block;
    color: #102A43;
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 900;
}

.ds-trading-overview-item span {
    display: block;
    color: #0057D9;
    font-size: 20px;
    font-weight: 900;
}

.ds-trading-overview-item small {
    display: block;
    color: #526D82;
    margin-top: 5px;
    font-size: 12px;
}

/* Responsive */

@media (max-width: 900px) {
    .ds-panel-header {
        display: block;
    }

    .ds-panel-status-badge {
        margin-top: 12px;
    }

    .ds-trading-account-card,
    .ds-trading-dashboard-card.light {
        width: 100% !important;
        max-width: 420px;
    }

    .ds-trading-overview-item {
        width: 50%;
        border-right: none;
        border-bottom: 1px solid #D9EAF7;
    }
}

@media (max-width: 600px) {
    .ds-trading-overview-item {
        width: 100%;
    }

    .ds-trading-account-card {
        text-align: center !important;
        justify-content: center;
        padding-top: 66px !important;
    }

    .ds-trading-status-pill {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* =========================================================
   EMPTY DASHBOARD MODULE PANELS
   ========================================================= */

.ds-empty-workspace {
    min-height: 420px;
    border: 1px dashed #C8E0FF;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 20%, rgba(34, 207, 243, 0.12) 0%, rgba(34, 207, 243, 0) 36%),
        #F7FCFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 28px;
    text-align: center;
}

.ds-empty-icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: linear-gradient(135deg, #EAF4FF 0%, #D9F7FF 100%);
    border: 1px solid #D9EAF7;
    color: #0057D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 22px;
    box-shadow: 0 16px 34px rgba(7, 30, 85, 0.08);
}

.ds-empty-workspace h3 {
    margin: 0 0 12px;
    color: #071E55;
    font-size: 28px;
    font-weight: 900;
}

.ds-empty-workspace p {
    max-width: 620px;
    margin: 0 auto 18px;
    color: #526D82;
    font-size: 16px;
    line-height: 1.7;
}

.ds-empty-phase-note {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #D9EAF7;
    color: #0057D9;
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 768px) {
    .ds-empty-workspace {
        min-height: 320px;
        padding: 34px 20px;
    }

    .ds-empty-workspace h3 {
        font-size: 24px;
    }
}
.ds-profile-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.ds-profile-card,
.ds-profile-edit-card {
    background: #ffffff;
    border: 1px solid #E1ECF5;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 34px rgba(15, 45, 90, 0.08);
}

.ds-profile-card {
    width: 280px;
    text-align: center;
}

.ds-profile-edit-card {
    flex: 1;
}

.ds-profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #EAF6FF;
    color: #0057D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.ds-profile-card h3 {
    margin: 10px 0 6px;
    font-size: 22px;
    color: #071E55;
}

.ds-profile-card p {
    margin: 0 0 16px;
    color: #526D82;
    font-size: 14px;
}

.ds-profile-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.ds-profile-form label {
    width: calc(50% - 9px);
    font-weight: 700;
    color: #102A43;
    font-size: 14px;
}

.ds-profile-form input {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #D9EAF7;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    background: #F7FCFF;
}

.ds-profile-form small {
    display: block;
    margin-top: 6px;
    color: #6B7C93;
    font-size: 12px;
}

.ds-profile-save-button {
    margin-top: 22px;
    background: #0057D9;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 800;
    cursor: pointer;
}

.ds-profile-success {
    background: #EAF7EE;
    border: 1px solid #A6D8B7;
    color: #1E6B39;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .ds-profile-layout {
        flex-direction: column;
    }

    .ds-profile-card,
    .ds-profile-edit-card {
        width: 100%;
    }

    .ds-profile-form label {
        width: 100%;
    }
}

.ds-panel-intro {
    margin-bottom: 18px;
    color: #526D82;
    font-size: 15px;
}

.ds-profile-photo-button {
    margin: 10px auto 4px;
    display: inline-block;
    background: #F7FCFF;
    border: 1px solid #D9EAF7;
    color: #0057D9;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.ds-profile-photo-note {
    display: block;
    color: #6B7C93;
    font-size: 11px;
    margin-bottom: 10px;
}

.ds-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ds-profile-avatar-image {
    padding: 0;
    overflow: hidden;
}

.ds-account-section {
    background: #ffffff;
    border: 1px solid #E1ECF5;
    border-radius: 22px;
    padding: 28px;
}

.ds-account-section h3 {
    margin: 0 0 18px;
    color: #071E55;
    font-size: 22px;
}

.ds-account-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: #102A43;
    font-weight: 700;
}

.ds-account-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0057D9;
}

.ds-profile-card p strong {
    color: #071E55;
}

.ds-profile-card p {
    margin-bottom: 18px;
    line-height: 1.6;
}

.ds-profile-edit-card .ds-account-form {
    width: 100%;
}

/* =========================================
   SETTINGS TABS
   ========================================= */

.ds-settings-tabs-wrap {
    width: 100%;
}

.ds-settings-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ds-settings-tab {
    border: 1px solid #D9EAF7;
    background: #ffffff;
    color: #102A43;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: all .2s ease;
}

.ds-settings-tab:hover {
    border-color: #0057D9;
}

.ds-settings-tab.active {
    background: #0057D9;
    color: #ffffff;
    border-color: #0057D9;
}

.ds-settings-tab-content {
    display: none;
}

.ds-settings-tab-content.active {
    display: block;
}

/* Remove nested panel spacing */
.ds-settings-tab-content .ds-panel {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* =========================================
   SETTINGS PANEL CLEANUP
   ========================================= */

.ds-settings-tabs-wrap {
    width: 100%;
    padding-top: 0;
}

.ds-settings-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0 22px 0;
    padding: 0;
}

.ds-settings-tab {
    border: 1px solid #D9EAF7;
    background: #ffffff;
    color: #102A43;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
}

.ds-settings-tab.active {
    background: #0057D9;
    color: #ffffff;
    border-color: #0057D9;
}

.ds-settings-tab-content {
    display: none;
}

.ds-settings-tab-content.active {
    display: block;
}

.ds-settings-section {
    margin: 0;
    padding: 0;
}

.ds-settings-section .ds-panel-intro {
    margin: 0 0 18px 0;
}

/* Account summary cards */

.ds-account-summary-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ds-account-summary-card {
    background: #ffffff;
    border: 1px solid #E1ECF5;
    border-radius: 18px;
    padding: 20px;
    width: calc(33.333% - 11px);
    min-width: 180px;
}

.ds-account-summary-card span {
    display: block;
    color: #526D82;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ds-account-summary-card strong {
    display: block;
    color: #071E55;
    font-size: 22px;
    line-height: 1.25;
}

.ds-account-usage-card,
.ds-account-billing-card {
    background: #ffffff;
    border: 1px solid #E1ECF5;
    border-radius: 22px;
    padding: 24px;
    margin-top: 18px;
}

.ds-account-usage-card h3,
.ds-account-billing-card h3 {
    margin: 0 0 16px 0;
    color: #071E55;
    font-size: 22px;
}

.ds-account-usage-list {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ds-account-usage-list div {
    background: #F7FCFF;
    border: 1px solid #D9EAF7;
    border-radius: 16px;
    padding: 16px;
    width: calc(25% - 11px);
    min-width: 150px;
}

.ds-account-usage-list span {
    display: block;
    color: #526D82;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ds-account-usage-list strong {
    color: #0057D9;
    font-size: 24px;
}

.ds-account-billing-card p {
    color: #526D82;
    line-height: 1.7;
    margin: 0 0 18px;
}

@media (max-width: 900px) {
    .ds-account-summary-card,
    .ds-account-usage-list div {
        width: 100%;
    }
}

.ds-profile-success {
    animation: dsFadeOutNotice 1s ease forwards;
    animation-delay: 15s;
}

@keyframes dsFadeOutNotice {
    to {
        opacity: 0;
        visibility: hidden;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

.ds-security-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.ds-security-card {
    background: #ffffff;
    border: 1px solid #E1ECF5;
    border-radius: 20px;
    padding: 24px;
    width: calc(50% - 9px);
}

.ds-security-card h3 {
    margin: 0 0 10px;
    color: #071E55;
    font-size: 20px;
}

.ds-security-card p {
    color: #526D82;
    line-height: 1.7;
    margin: 0 0 14px;
}

.ds-security-card span {
    display: inline-block;
    background: #F7FCFF;
    border: 1px solid #D9EAF7;
    color: #0057D9;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .ds-security-card {
        width: 100%;
    }
}
.ds-profile-error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

.ds-security-card input[type="password"] {
    width: 100%;
    border: 1px solid #D9EAF7;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #F7FCFF;
}

.ds-security-card button {
    background: #0057D9;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
}

.ds-security-meta {
    background: #F7FCFF;
    border: 1px solid #D9EAF7;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 12px 0 14px;
    color: #102A43;
    font-weight: 700;
}

.ds-security-meta strong {
    color: #0057D9;
}

.ds-security-form {
    margin-top: 14px;
}

.ds-security-danger-form button {
    background: #FFF8E6;
    color: #92400E;
    border: 1px solid #F5C542;
}
.ds-password-match-message {
    display: block;
    margin: -4px 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.ds-password-match-message.error {
    color: #991B1B;
}

.ds-password-match-message.success {
    color: #166534;
}
.ds-password-strength-message,
.ds-password-match-message {
    display: block;
    margin: -4px 0 10px;
    font-size: 12px;
    font-weight: 800;
}

.ds-password-strength-message.weak,
.ds-password-match-message.error {
    color: #991B1B;
}

.ds-password-strength-message.medium {
    color: #92400E;
}

.ds-password-strength-message.strong,
.ds-password-strength-message.very-strong,
.ds-password-match-message.success {
    color: #166534;
}
.ds-security-session-list {
    background: #F7FCFF;
    border: 1px solid #D9EAF7;
    border-radius: 16px;
    padding: 14px;
    margin: 12px 0 14px;
}

.ds-security-session-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #E1ECF5;
    padding: 9px 0;
}

.ds-security-session-list div:last-child {
    border-bottom: none;
}

.ds-security-session-list span {
    color: #526D82;
    font-size: 13px;
    font-weight: 700;
}

.ds-security-session-list strong {
    color: #071E55;
    font-size: 13px;
    text-align: right;
}
html {
    scroll-behavior: smooth;
}

#ds-pricing {
    scroll-margin-top: 120px;
}