﻿/**
 * EG Bank - Accounts Page Styles
 * Production-ready responsive CSS
 */

/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
    /* Colors */
    --color-primary: #003B70;
    --color-secondary: #00C4B3;
    --color-dark: #002E5F;
    --color-light: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-bg-page: #FFFFFF;
    --color-text-primary: #003B70;
    --color-text-secondary: #6A7282;
    --color-border: #E8E8E8;
    --color-border-light: #EBEBEB;
    --color-overlay: rgba(0, 59, 112, 0.16);
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 24px;
    --spacing-lg: 30px;
    --spacing-xl: 30px;
    --spacing-2xl: 64px;
    /* Typography */
    --font-family-primary: 'Co Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 24px;
    --font-size-xlg: 32px;
    --font-size-xl: 48px;
    --line-height-tight: 1;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Border Radius */
    --radius-sm: 9px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-sm: 0px 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0px 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0px 12px 24px rgba(0, 0, 0, 0.15);
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    /* Breakpoints (Mobile First) */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-page);
    overflow-x: hidden;
}

main {
    display: block;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-xl);
}

h2 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Button Styles
   ============================================ */
.accounts-btn {
   
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    text-align: center;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    outline: none;
    position: relative;
}

    .accounts-btn:hover {
        transform: translateY(-2px);
    }

    .accounts-btn:active {
        transform: translateY(0);
    }

    .accounts-btn:focus-visible {
        outline: 2px solid var(--color-secondary);
        outline-offset: 2px;
    }

.accounts-btn--primary {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

    .accounts-btn--primary:hover {
        background-color: #00b8a8;
        box-shadow: var(--shadow-md);
    }

.accounts-btn--secondary {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

    .accounts-btn--secondary:hover {
        background-color: #00b8a8;
        box-shadow: var(--shadow-md);
    }

/* Fund cards use the green CTA from the EG Fund / Tharaa design */
.accounts-btn--green {
    background-color: #8BDC64;
    color: #F7FAFA;
}

    .accounts-btn--green:hover {
        background-color: #7ACF52;
        color: #F7FAFA;
        box-shadow: var(--shadow-md);
    }

.accounts-btn--lg {
    padding: 10px 30px;
    font-size: var(--font-size-base);
}

/*.accounts-btn--block {
    width: 100%;
}*/

.cards-hero-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    gap: 16px;

    width: auto;
    min-width: 160px;
    height: 48px;

    background: #09c8ba;
    border-radius: 9999px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Co Headline', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.6px;
    text-align: center;
    text-transform: uppercase;
    margin-top: 22px;
}

    .cards-hero-cta:hover {
        background: #08b5a8;
        color: #FFFFFF;
    }

[dir="rtl"] .Hero_Section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 59, 112, 0) 0%, rgba(0, 59, 112, 0.98) 100%);
}

[dir="ltr"] .Hero_Section::after,
html:not([dir]) .Hero_Section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 59, 112, 0.98) 0%, rgba(0, 59, 112, 0) 100%);
}
.Hero_Content {
    padding-bottom: 0px !important;
}
@media (max-width: 768px) {
    .Hero_Title {
        font-size: 24px;
        line-height: 1.05;
        margin: 0 0 18px;
        color: #FFFFFF;
        max-width: 620px;
        font-weight: 400;
    }

/*    .Hero_Title_Accent {
        color: #11d1c2;
        display: flex !important;
        font-family: Co Headline;
        font-weight: 400;
        font-size: 24px;
        line-height: 120%;
        letter-spacing: 0px;
        text-align: right;
        margin-top: 5px;
    }*/

    .Hero_Desc {
        font-family: Co Headline;
        font-weight: 300;
        font-size: 16px;
        line-height: 120%;
        letter-spacing: 0px;
        text-align: right;
        color: rgba(255, 255, 255, 0.88);
    }

    [dir="rtl"] .Hero_Desc {
        text-align: right;
    }

    [dir="ltr"] .Hero_Desc,
    html:not([dir="rtl"]) .Hero_Desc {
        text-align: left;
    }
   
    .Hero_Content .cards-hero-cta {
        font-family: Co Headline;
        font-weight: 400;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0%;
        text-transform: uppercase;
    }

    [dir="rtl"] .Hero_Content .cards-hero-cta {
        align-self: flex-end;
        margin-left: auto;
        margin-right: 0;
    }

    [dir="ltr"] .Hero_Content .cards-hero-cta,
    html:not([dir="rtl"]) .Hero_Content .cards-hero-cta {
        align-self: flex-start;
        margin-left: 0;
        margin-right: auto;
    }
}

@media (min-width: 769px) {
    .Hero_Content .Hero_Title {
        max-width: 620px;
        margin: 0;
        font-size: 28px;
        line-height: 1.1;
        font-weight: 400;
        color: #ffffff;
    }

    .Hero_Content .Hero_Title .Hero_Title_Accent {
        color: #11d1c2;
    }

    .Hero_Content .Hero_Desc {
        max-width: 520px;
        margin: 14px 0 0;
        font-size: 24px;
        font-weight:300;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.88);
    }

    .Hero_Content .cards-hero-cta {
        /*margin-top: 22px;
        padding: 12px 28px;
        min-width: 160px;
        height: 48px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.6px;
        border-radius: 999px;
        background: #09c8ba;*/
        width: 220px;
        margin-top: 22px;
        padding: 15px 20px;
        /* min-width: 160px; */
        height: 48px;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0.6px;
        border-radius: 999px;
        background: #09c8ba;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .Hero_Content .Hero_Title {
        font-size: 36px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .Hero_Content .Hero_Title {
        font-size: 30px;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.accounts-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center top;
    z-index: 1;
}

    .accounts-hero__background::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(0, 43, 82, 0.95) 0%, rgba(0, 43, 82, 0.85) 35%, rgba(0, 43, 82, 0.4) 65%, rgba(0, 43, 82, 0.0) 100%);
    }

/* Generic Hero_Section overlay to match Business page style */
/* Hero overlay was removed per user request */

.accounts-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background-color: rgba(255, 255, 255, 0.16);
    padding: 10px 15px;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
}

.accounts-hero__dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-light);
    border-radius: 50%;
}

.accounts-hero__badge-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
}


/* ============================================
   Accounts Container
   ============================================ */
.accounts-container {
    width: 100%;
  /*  margin-top:30px !important;*/
   /* max-width: 1280px;*/
    margin: 0 auto;
    padding: 0;
}
.pt-40{
    padding-top:40px;
}
/* ===== PAGE TABS =====
   Mirrors the .channels-tabs bar from Channels.css. Duplicated here rather than
   linking Channels.css, which is that whole page's stylesheet; accounts.css is
   loaded only by Accounts.cshtml, so the two definitions never meet.

   Two deliberate differences from Channels:
   1. All items carry the same padding. Channels gives padding:16px only to the
      active item and 4px to the rest, which is fine there because its tabs are
      scroll-spy markers — here they actually switch, and uneven padding would
      make the bar jump height on every click.
   2. Below 768px the bar collapses into a dropdown. That behaviour is shared by
      every page nav and lives in GeneralStyle.css under nav.mobile-tabs, which
      the bar opts into with a second class — nothing about it is restated here.
      Channels swaps in an accordion instead.

   Row height, font size and weight also live in GeneralStyle.css now — under
   "TAB BAR ROW" — shared with .loans-tabs, .segment-tabs and .fi-tabs so none
   of these bars can drift apart again. */
.channels-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 32px;
    background: #FFFFFF;
    position: sticky;
    top: 62px;
    z-index: 50;
    border-bottom: 1px solid #EBEBEB;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .channels-tabs::-webkit-scrollbar {
        display: none;
    }

.channels-tabs__item {
    text-transform: capitalize;
    color: #003B70;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

    .channels-tabs__item:hover {
        color: #00C4B3;
    }

.channels-tabs__item--active {
    color: #00C4B3;
    border-bottom-color: #00C4B3;
}

/* Panel switching — unchanged, still driven by accounts.js */
.accounts-tab-content {
    display: none;
}

.accounts-tab-content--active {
    display: block;
}

@media (max-width: 768px) {
    .channels-tabs {
        top: 56px;
    }
}

.accounts-section {
    /*padding: var(--spacing-lg);*/
    /*padding: 24px 30px 24px 30px !important*/
}

.accounts-section--special {
    background-color: var(--color-bg-light);
}

/* ============================================
   Section Subtitle
   ============================================ */
.accounts-section-subtitle {
    text-align: center;
    font-size: clamp(20px, 4vw, var(--font-size-xlg));
    font-weight: var(--font-weight-normal);
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--color-text-primary);
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .accounts-section-subtitle{
        max-width:100%
    }
    .accounts-section {
        padding: 30px 15px !important;
    }
}

/* ============================================
   Grid Layout
   ============================================ */
.accounts-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.accounts-carousel {
    position: relative;
}

.accounts-carousel__controls {
    display: none;
}

.accounts-carousel__nav {
    border: 0;
    background: transparent;
    color: var(--color-text-primary);
    border-radius: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

    .accounts-carousel__nav svg {
        display: block;
        width: 24px;
        height: 24px;
    }

    [dir="rtl"] .accounts-carousel__nav svg {
        transform: scaleX(-1);
        transform-origin: center;
    }

    .accounts-carousel__nav .accounts-carousel__nav-bg {
        fill: rgba(0, 59, 112, 1);
    }

    .accounts-carousel__nav:disabled {
        cursor: not-allowed;
    }

    .accounts-carousel__nav:disabled .accounts-carousel__nav-bg {
        fill: rgba(221, 221, 221, 1);
    }

.accounts-grid--two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .accounts-grid--two-col {
        grid-template-columns: 1fr;
    }

    .accounts-carousel .accounts-grid--two-col[data-accounts-carousel-track] {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        grid-template-columns: none;
        gap: var(--spacing-sm);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

        .accounts-carousel .accounts-grid--two-col[data-accounts-carousel-track]::-webkit-scrollbar {
            display: none;
        }

        .accounts-carousel .accounts-grid--two-col[data-accounts-carousel-track] .accounts-card {
            scroll-snap-align: start;
        }

    .accounts-carousel__controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 16px;
    }
}

@media (min-width: 1280px) {
    .accounts-grid--two-col {
        gap: 16px;
    }
}

/* ============================================
   Account Card
   ============================================ */
.accounts-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-light);
    border: 1px solid #CBCBCB;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
}
    .accounts-card:last-child:nth-child(odd) {
        max-width: calc((100% - 20px) / 2);
        width: 100%;
        justify-self: center;
        grid-column: 1 / -1;
    }
    .accounts-card:hover {
       /* box-shadow: var(--shadow-lg);*/
        transform: none !important;
    }

.liRow {
    flex-direction: row;
    display: flex;
    gap: 5px;
}

.accounts-card__badge {
    margin: 10px auto !important;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background-color: rgba(0, 196, 179, 0.1);
    padding: 8px 12px;
    border-radius: var(--radius-full);
    margin: var(--spacing-md);
    width: fit-content;
}

.accounts-badge__dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: none !important;
}

.accounts-badge__text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-secondary);
}
/* accounts-hero__image styles are defined above with correct media query */
.accounts-card__image {
    position: relative;
    width: 100%;
    height: 320px; /* fixed height matching Figma */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.accounts-card__image--top {
    background-position: top center;
}

/* If an inner img is used, ensure it fits and is positioned */
.accounts-card__image img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}



.accounts-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    margin-top: 10px;
}

.accounts-card__header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.accounts-card__title {
    font-size: 22px;
    font-weight: var(--font-weight-normal);
    color: var(--color-text-primary);
    margin: 0;
}




/* ============================================
   Account Card Details & Expandable Section
   ============================================ */
.accounts-card__details {
    display: flex;
    flex-direction: column;
    gap:8px;
}

.accounts-card__toggle {
    border-radius: 11px;
    background: #F0F0F0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: background-color var(--transition-base);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-primary);
    text-align: left;
}

    .accounts-card__toggle:last-of-type {
        border-bottom: none;
    }

    .accounts-card__toggle:hover {
        background-color: var(--color-bg-light);
    }

    .accounts-card__toggle:focus-visible {
        outline: 2px solid var(--color-secondary);
        outline-offset: -2px;
    }

.accounts-card__toggle-label {
    /* Advantages Of the Account */
    height: 24px;
    font-family: 'Co Headline';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px; /* identical to box height, or 150% */
    text-align: center;
    letter-spacing: 0px;
    /* primary color */
    color: #003B70;
    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

.accounts-card__toggle-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.accounts-card__toggle[aria-expanded="true"] .accounts-card__toggle-icon {
    transform: rotate(180deg);
}

.accounts-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-md);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    /*transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;*/
}

    .accounts-card__list.accounts-is-expanded {
        max-height: 1000px;
        opacity: 1;
        /* padding: var(--spacing-sm) var(--spacing-md);*/
        padding: 10px;
    }
        .accounts-card__list.accounts-is-expanded span {
            font-family: Co Headline;
            font-weight: 300;
            font-size: 14px;
            line-height: 20px;
            letter-spacing: 0px;
            color: #6A7282;
        }

.accounts-card__list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-light);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Details list item text styling (from design spec) */
.accounts-details-lits {
    /*width: 520px;*/
    font-family: 'Co Headline';
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 20px; /* identical to box height */

    color: #6A7282; /* Grey for font */
}

.accounts-list-item__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .accounts-list-item__icon::after {
        content: '';
        position: absolute;
        margin-left: 2px;
        width: 8px;
        height: 5px;
        border: solid var(--color-light);
        border-width: 0 0 1px 1px;
        transform: rotate(-45deg);
        top: 5px;
        left: 3px;
    }

/* ============================================
   Account Fund Card (label / value rows)
   Shares .accounts-card shell: same border, radius and image height.
   ============================================ */
.accounts-fund-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.accounts-fund-card__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.accounts-fund-card__label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    font-family: 'Co Headline';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-text-primary);
}

    .accounts-fund-card__label img {
        width: 18px;
        height: 18px;
        min-width: 18px;
        object-fit: contain;
    }

.accounts-fund-card__value {
    flex: 0 1 auto;
    font-family: 'Co Headline';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-text-primary);
    text-align: end;
    overflow-wrap: break-word;
}

/* ============================================
   Responsive Design - Tablet & Up
   ============================================ */

    @media (min-width: 768px) {
        .accounts-card__image {
            height: 280px;
        }

        .accounts-card__content {
            padding: var(--spacing-sm);
        }

        .cards-hero-cta {
            font-size: 14px;
        }
    }

    @media (min-width: 1024px) {
        .accounts-card__image {
            border-top-right-radius: 23px !important;
            border-top-left-radius: 23px !important;
            height: 227px;
            border-bottom: none !important;
           /* border: 1px solid #CBCBCB;*/
        }
    }

    /* ============================================
   Accessibility & Focus States
   ============================================ */
    button:focus-visible {
        outline: 2px solid var(--color-secondary);
        outline-offset: 2px;
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

    /* ============================================
   Dark Theme Support (Optional)
   ============================================ */

    /* ============================================
   Print Styles
   ============================================ */
    @media print {
        .accounts-btn {
            display: none;
        }

        .accounts-card__list {
            display: flex !important;
        }
    }

    /* ============================================
   Performance Optimizations
   ============================================ */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Optimize for large viewports */
    @media (min-width: 1920px) {
        .accounts-container {
            padding: 0 var(--spacing-xl);
        }

        .accounts-section {
            padding: var(--spacing-2xl);
        }
    }


    .acc-Btn {
        margin-bottom: 20px !important;
        margin: auto;
     /*   width: 40% !important;*/
    }

 /*   .accounts-card__metrics-overlay, .accounts-card__description {
        display: none !important;
    }*/
@media (min-width: 768px) {

    
    .accounts-card__toggle-icon {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    }
@media (max-width: 768px) {
    .accounts-fund-card__value{
        font-weight:300;
    }
    .accounts-fund-card__row {
        flex-direction: column;
        gap: 5px;
    }
   /* .acc-Btn {

        width: 90% !important;
    }*/
    .accounts-carousel__nav {
        width: 35px !important;
        height: 35px !important;
    }
    .accounts-card__list.accounts-is-expanded {
        padding: 5px;
    }
    .accounts-details-lits {
        font-size: 14px;
        padding-left: 6px;
    }

        .accounts-carousel__nav svg {
            width: 100%;
            height: 100%;
        }

        /*.accounts-card__content {
            padding: 15px !important;
        }*/

        .accounts-card__toggle-label {
            height: auto;
            min-height: 24px;
            line-height: 1.4;
            flex: 1;
            text-align: start;
            white-space: normal;
            word-break: break-word;
            padding-inline-end: 10px;
        }

        .accounts-card__toggle-icon {
            display: flex;
            width: 20px;
            height: 20px;
            color: var(--color-text-primary);
            transition: transform var(--transition-base);
            flex-shrink: 0;
            justify-content: center;
            align-items: center;
        }
    }
/* ── Deep-link targets ──
   Any section with an id can be reached as /accounts#<id> from the Personal page
   cards. The offset clears the 70px fixed header plus the sticky tab bar, so the
   section heading is not hidden underneath them on arrival. */
.accounts-section[id] {
    scroll-margin-top: 130px;
}
