/* ================================
   MODERN DASHBOARD SECTION
================================ */

.dashboard-section {
    position: relative;
    width: 100%;
    padding: 110px 24px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 14%, rgba(0, 217, 255, 0.18), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(105, 231, 111, 0.12), transparent 32%),
        linear-gradient(135deg, #020910 0%, #061a27 46%, #031018 100%);
}

.dashboard-section *,
.dashboard-section *::before,
.dashboard-section *::after {
    box-sizing: border-box;
}

.dashboard-section .dashboard-container {
    position: relative;
    z-index: 5;
    max-width: 1240px;
    margin: 0 auto;
}

/* ================================
   LIVE BACKGROUND
================================ */

.dashboard-section .dashboard-live-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.dashboard-section .dashboard-live-bg span {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.2), transparent 66%);
    border: 1px solid rgba(0, 217, 255, 0.12);
    animation: dashboardFloat 13s ease-in-out infinite;
}

.dashboard-section .dashboard-live-bg span:nth-child(1) {
    top: 8%;
    left: 8%;
}

.dashboard-section .dashboard-live-bg span:nth-child(2) {
    top: 60%;
    left: 18%;
    width: 240px;
    height: 240px;
    animation-duration: 18s;
}

.dashboard-section .dashboard-live-bg span:nth-child(3) {
    top: 15%;
    right: 12%;
    width: 120px;
    height: 120px;
    animation-duration: 11s;
}

.dashboard-section .dashboard-live-bg span:nth-child(4) {
    right: 24%;
    bottom: 8%;
    width: 220px;
    height: 220px;
    animation-duration: 17s;
}

@keyframes dashboardFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translate3d(38px, -52px, 0) scale(1.15);
        opacity: 0.82;
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.35;
    }
}

/* ================================
   HEADER
================================ */

.dashboard-section .dashboard-header {
    max-width: 820px;
    margin: 0 auto 58px;
    text-align: center;
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.85s ease,
        transform 0.85s ease;
}

.dashboard-section.in-view .dashboard-header {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-section .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #76f3ff;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.dashboard-section .eyebrow::before,
.dashboard-section .eyebrow::after {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00d9ff, #69e76f);
}

.dashboard-section h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.dashboard-section .dashboard-header > p:not(.eyebrow) {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(224, 244, 250, 0.74);
    font-size: 17px;
    line-height: 1.8;
}

/* ================================
   SHELL
================================ */

.dashboard-section .dashboard-shell {
    position: relative;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 270px;
    gap: 18px;
    padding: 18px;
    border-radius: 38px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    box-shadow:
        0 44px 120px rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    opacity: 0;
    transform: translateY(42px) scale(0.98);
    transition:
        opacity 0.9s ease 0.15s,
        transform 0.9s ease 0.15s;
}

.dashboard-section.in-view .dashboard-shell {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ================================
   SIDEBAR
================================ */

.dashboard-section .dash-sidebar,
.dashboard-section .dash-main,
.dashboard-section .dash-right {
    border-radius: 28px;
    background: rgba(2, 18, 27, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
}

.dashboard-section .dash-sidebar {
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 660px;
}

.dashboard-section .dash-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.dashboard-section .dash-brand > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #03131d;
    background: linear-gradient(135deg, #76f3ff, #69e76f);
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(0, 217, 255, 0.22);
}

.dashboard-section .dash-brand strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.dashboard-section .dash-brand small {
    color: rgba(224, 244, 250, 0.55);
}

.dashboard-section .dash-nav {
    display: grid;
    gap: 8px;
}

.dashboard-section .dash-nav a {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    color: rgba(224, 244, 250, 0.68);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    overflow: hidden;
    cursor: pointer;
    transition:
        color 0.28s ease,
        background 0.28s ease,
        transform 0.28s ease;
}

.dashboard-section .dash-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(118, 243, 255, 0.14), rgba(105, 231, 111, 0.1));
    transform: translateX(-105%);
    transition: transform 0.35s ease;
}

.dashboard-section .dash-nav a span,
.dashboard-section .dash-nav a i {
    position: relative;
    z-index: 2;
}

.dashboard-section .dash-nav a i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.28s ease, box-shadow 0.28s ease;
}

.dashboard-section .dash-nav a.active,
.dashboard-section .dash-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.dashboard-section .dash-nav a.active::before,
.dashboard-section .dash-nav a:hover::before {
    transform: translateX(0);
}

.dashboard-section .dash-nav a.active i,
.dashboard-section .dash-nav a:hover i {
    background: #76f3ff;
    box-shadow: 0 0 16px rgba(118, 243, 255, 0.9);
}

.dashboard-section .dash-side-card {
    margin-top: auto;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 20%, rgba(118, 243, 255, 0.22), transparent 32%),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-section .dash-side-card small {
    display: block;
    color: rgba(224, 244, 250, 0.62);
    margin-bottom: 10px;
}

.dashboard-section .dash-side-card strong {
    display: block;
    font-size: 32px;
    line-height: 1;
}

.dashboard-section .side-progress {
    height: 8px;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.dashboard-section .side-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #76f3ff, #69e76f);
    transition: width 1.2s ease 0.8s;
}

.dashboard-section.in-view .side-progress span {
    width: 98%;
}

/* ================================
   MAIN
================================ */

.dashboard-section .dash-main {
    padding: 22px;
    min-width: 0;
}

.dashboard-section .dash-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.dashboard-section .dash-top small,
.dashboard-section .analytics-head small {
    display: block;
    color: #76f3ff;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 7px;
}

.dashboard-section .dash-top h3,
.dashboard-section .analytics-head h4 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    letter-spacing: -0.035em;
}

.dashboard-section .dash-plan {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #06131d;
    background: linear-gradient(135deg, #76f3ff, #69e76f);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.dashboard-section .dash-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
    perspective: 1200px;
}

.dashboard-section .dash-card {
    position: relative;
    min-height: 190px;
    padding: 20px;
    border-radius: 26px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.32s ease,
        border-color 0.32s ease,
        background 0.32s ease,
        box-shadow 0.32s ease;
}

.dashboard-section .dash-card::before {
    content: "";
    position: absolute;
    inset: auto -35% -45% 20%;
    height: 150px;
    background: radial-gradient(circle, rgba(118, 243, 255, 0.24), transparent 64%);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.dashboard-section .dash-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.085), transparent);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.dashboard-section .dash-card:hover {
    border-color: rgba(118, 243, 255, 0.42);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    box-shadow: 0 30px 90px rgba(0, 217, 255, 0.13);
}

.dashboard-section .dash-card:hover::before {
    transform: scale(1.25);
}

.dashboard-section .dash-card:hover::after {
    transform: translateX(120%);
}

.dashboard-section .dash-card.primary {
    background:
        radial-gradient(circle at 20% 20%, rgba(118, 243, 255, 0.26), transparent 36%),
        linear-gradient(145deg, rgba(118, 243, 255, 0.2), rgba(255, 255, 255, 0.055));
}

.dashboard-section .dash-card.cyan {
    background:
        radial-gradient(circle at 20% 20%, rgba(105, 231, 111, 0.19), transparent 36%),
        linear-gradient(145deg, rgba(0, 217, 255, 0.14), rgba(255, 255, 255, 0.055));
}

.dashboard-section .dash-card-icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: #06131d;
    background: linear-gradient(135deg, #76f3ff, #69e76f);
    font-weight: 950;
}

.dashboard-section .dash-card small {
    position: relative;
    z-index: 2;
    display: block;
    color: rgba(224, 244, 250, 0.64);
    margin-bottom: 8px;
}

.dashboard-section .dash-card strong {
    position: relative;
    z-index: 2;
    display: block;
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.dashboard-section .dash-card em {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 12px;
    color: rgba(224, 244, 250, 0.62);
    font-style: normal;
    font-size: 13px;
}

/* Analytics */

.dashboard-section .dash-analytics {
    padding: 22px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.095);
    margin-bottom: 16px;
}

.dashboard-section .analytics-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-section .analytics-head span {
    color: #69e76f;
    font-weight: 950;
}

.dashboard-section .bar-widget {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 190px;
    padding-top: 20px;
}

.dashboard-section .bar-widget span {
    flex: 1;
    min-width: 14px;
    border-radius: 999px 999px 8px 8px;
    background:
        linear-gradient(180deg, #76f3ff, rgba(0, 217, 255, 0.18));
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.22);
    transform-origin: bottom;
    transform: scaleY(0);
    animation: none;
}

.dashboard-section.in-view .bar-widget span {
    animation: barRise 1s ease forwards;
}

.dashboard-section.in-view .bar-widget span:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-section.in-view .bar-widget span:nth-child(2) {
    animation-delay: 0.18s;
}

.dashboard-section.in-view .bar-widget span:nth-child(3) {
    animation-delay: 0.26s;
}

.dashboard-section.in-view .bar-widget span:nth-child(4) {
    animation-delay: 0.34s;
}

.dashboard-section.in-view .bar-widget span:nth-child(5) {
    animation-delay: 0.42s;
}

.dashboard-section.in-view .bar-widget span:nth-child(6) {
    animation-delay: 0.5s;
}

.dashboard-section.in-view .bar-widget span:nth-child(7) {
    animation-delay: 0.58s;
}

.dashboard-section.in-view .bar-widget span:nth-child(8) {
    animation-delay: 0.66s;
}

.dashboard-section.in-view .bar-widget span:nth-child(9) {
    animation-delay: 0.74s;
}

@keyframes barRise {
    to {
        transform: scaleY(1);
    }
}

/* Pipeline */

.dashboard-section .pipeline-row {
    display: grid;
    gap: 12px;
}

.dashboard-section .pipeline-row article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.075);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.dashboard-section .pipeline-row article:hover {
    transform: translateX(6px);
    border-color: rgba(118, 243, 255, 0.34);
    background: rgba(255, 255, 255, 0.085);
}

.dashboard-section .pipeline-row article > span {
    width: 12px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(180deg, #76f3ff, #69e76f);
    box-shadow: 0 0 18px rgba(118, 243, 255, 0.5);
}

.dashboard-section .pipeline-row strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.dashboard-section .pipeline-row small {
    color: rgba(224, 244, 250, 0.58);
}

.dashboard-section .pipeline-row em {
    color: #76f3ff;
    font-style: normal;
    font-weight: 950;
}

/* ================================
   RIGHT PANEL
================================ */

.dashboard-section .dash-right {
    padding: 18px;
    min-height: 660px;
}

.dashboard-section .dash-profile-card {
    position: relative;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(118, 243, 255, 0.22), transparent 35%),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
    margin-bottom: 16px;
}

.dashboard-section .profile-orb {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #ffffff, #76f3ff 35%, #06131d 70%);
    box-shadow: 0 0 34px rgba(118, 243, 255, 0.48);
    animation: profilePulse 2.8s ease-in-out infinite;
}

@keyframes profilePulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 34px rgba(118, 243, 255, 0.48);
    }

    50% {
        transform: scale(1.07);
        box-shadow: 0 0 52px rgba(118, 243, 255, 0.68);
    }
}

.dashboard-section .dash-profile-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.dashboard-section .dash-profile-card span {
    color: rgba(224, 244, 250, 0.62);
    font-size: 14px;
}

/* Calendar */

.dashboard-section .mini-calendar {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.085);
    margin-bottom: 16px;
}

.dashboard-section .calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dashboard-section .calendar-head b {
    color: #ffffff;
}

.dashboard-section .calendar-head span {
    color: #76f3ff;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-section .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.dashboard-section .calendar-grid span {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 10px;
    color: rgba(224, 244, 250, 0.68);
    background: rgba(255, 255, 255, 0.055);
    font-size: 12px;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.dashboard-section .calendar-grid span:hover,
.dashboard-section .calendar-grid span.marked {
    transform: translateY(-3px);
    color: #06131d;
    background: linear-gradient(135deg, #76f3ff, #69e76f);
}

.dashboard-section .upcoming-list {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.085);
}

.dashboard-section .upcoming-list h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.dashboard-section .upcoming-list p {
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-section .upcoming-list p:first-of-type {
    border-top: 0;
}

.dashboard-section .upcoming-list b {
    display: block;
    color: #ffffff;
    margin-bottom: 5px;
}

.dashboard-section .upcoming-list span {
    color: rgba(224, 244, 250, 0.62);
    font-size: 14px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1180px) {
    .dashboard-section {
        padding: 94px 22px;
    }

    .dashboard-section .dashboard-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .dashboard-section .dash-right {
        grid-column: 1 / -1;
        min-height: auto;
        display: grid;
        grid-template-columns: 0.8fr 1.1fr 1fr;
        gap: 16px;
    }

    .dashboard-section .dash-profile-card,
    .dashboard-section .mini-calendar,
    .dashboard-section .upcoming-list {
        margin-bottom: 0;
    }

    .dashboard-section .dash-sidebar {
        min-height: auto;
    }
}

@media (max-width: 920px) {
    .dashboard-section .dashboard-shell {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 30px;
    }

    .dashboard-section .dash-sidebar {
        min-height: auto;
    }

    .dashboard-section .dash-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .dashboard-section .dash-nav::-webkit-scrollbar {
        display: none;
    }

    .dashboard-section .dash-nav a {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .dashboard-section .dash-side-card {
        display: none;
    }

    .dashboard-section .dash-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-section .dash-right {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .dashboard-section {
        padding: 76px 16px;
    }

    .dashboard-section .dashboard-header {
        margin-bottom: 36px;
    }

    .dashboard-section .eyebrow {
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    .dashboard-section .eyebrow::before,
    .dashboard-section .eyebrow::after {
        width: 22px;
    }

    .dashboard-section h2 {
        font-size: 34px;
        line-height: 1.05;
    }

    .dashboard-section .dashboard-header > p:not(.eyebrow) {
        font-size: 15px;
        line-height: 1.7;
    }

    .dashboard-section .dash-main,
    .dashboard-section .dash-sidebar,
    .dashboard-section .dash-right {
        border-radius: 24px;
    }

    .dashboard-section .dash-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-section .dash-plan {
        width: 100%;
        justify-content: center;
    }

    .dashboard-section .dash-card {
        min-height: 170px;
    }

    .dashboard-section .dash-card strong {
        font-size: 36px;
    }

    .dashboard-section .bar-widget {
        height: 150px;
        gap: 8px;
    }

    .dashboard-section .pipeline-row article {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-section .pipeline-row em {
        grid-column: 2;
    }
}

@media (max-width: 420px) {
    .dashboard-section {
        padding: 64px 12px;
    }

    .dashboard-section h2 {
        font-size: 30px;
    }

    .dashboard-section .dashboard-shell {
        padding: 10px;
        border-radius: 26px;
    }

    .dashboard-section .dash-main,
    .dashboard-section .dash-sidebar,
    .dashboard-section .dash-right {
        padding: 14px;
    }

    .dashboard-section .dash-brand strong {
        font-size: 13px;
    }

    .dashboard-section .dash-top h3,
    .dashboard-section .analytics-head h4 {
        font-size: 22px;
    }

    .dashboard-section .dash-card {
        padding: 18px;
        border-radius: 22px;
    }

    .dashboard-section .calendar-grid {
        gap: 5px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dashboard-section *,
    .dashboard-section *::before,
    .dashboard-section *::after {
        animation: none !important;
        transition: none !important;
    }

    .dashboard-section .dashboard-header,
    .dashboard-section .dashboard-shell {
        opacity: 1;
        transform: none;
    }

    .dashboard-section .bar-widget span {
        transform: scaleY(1);
    }

    .dashboard-section .side-progress span {
        width: 98%;
    }
}