.dashboard-page {
    --dashboard-ink: #172b42;
    --dashboard-navy: #153b60;
    --dashboard-deep: #11100d;
    --dashboard-gold: #c08a2f;
    --dashboard-gold-dark: #8c5a15;
    --dashboard-cream: #fbf8ef;
    --dashboard-line: #dfd3ba;
    --dashboard-muted: #687786;
    display: grid;
    gap: 22px;
    padding-bottom: 34px;
}

.dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
    gap: 34px;
    overflow: hidden;
    padding: clamp(34px, 5vw, 62px);
    border: 1px solid #2d281f;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 88% 42%,
            rgba(200, 148, 49, 0.22),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #090909 0%,
            #17140f 48%,
            #30250f 100%
        );
    color: #fff;
    box-shadow: 0 18px 46px rgba(36, 29, 18, 0.19);
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 58%,
            rgba(255, 255, 255, 0.025) 100%
        );
}

.dashboard-hero-copy,
.dashboard-hero-symbol {
    position: relative;
    z-index: 1;
}

.dashboard-hero-copy {
    max-width: 820px;
}

.dashboard-eyebrow,
.dashboard-section-eyebrow,
.dashboard-card-label {
    margin: 0;
    color: var(--dashboard-gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    max-width: 850px;
    margin: 10px 0 18px;
    color: #fff;
    font-size: clamp(2.65rem, 6vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.dashboard-hero-intro {
    max-width: 720px;
    margin: 0;
    color: #ddd6c9;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.55;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 27px;
}

.dashboard-primary-action,
.dashboard-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 19px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.dashboard-primary-action {
    border: 1px solid #d1a64d;
    background: linear-gradient(180deg, #c99435, #a86c17);
    color: #fff;
    box-shadow: 0 8px 18px rgba(143, 92, 16, 0.28);
}

.dashboard-secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dashboard-primary-action:hover,
.dashboard-secondary-action:hover {
    transform: translateY(-2px);
}

.dashboard-primary-action:hover {
    box-shadow: 0 11px 22px rgba(143, 92, 16, 0.35);
}

.dashboard-secondary-action:hover {
    background: rgba(255, 255, 255, 0.14);
}

.dashboard-hero-symbol {
    display: grid;
    flex: 0 0 190px;
    width: 190px;
    height: 190px;
    place-items: center;
    border: 1px solid rgba(230, 187, 92, 0.31);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(190, 135, 37, 0.23),
            rgba(190, 135, 37, 0.045) 65%,
            transparent 67%
        );
    color: #e0b44f;
    font-size: clamp(2.7rem, 6vw, 4.3rem);
    box-shadow:
        inset 0 0 36px rgba(189, 130, 34, 0.13),
        0 0 45px rgba(189, 130, 34, 0.08);
}

.dashboard-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: -44px 28px 0;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid #dce4e9;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 26px rgba(24, 49, 72, 0.11);
}

.dashboard-stat-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: #f5ecd9;
    font-size: 1.35rem;
}

.dashboard-stat-card div {
    min-width: 0;
}

.dashboard-stat-card strong,
.dashboard-stat-card span {
    display: block;
}

.dashboard-stat-card strong {
    color: var(--dashboard-navy);
    font-size: 1.65rem;
    line-height: 1;
}

.dashboard-stat-card span {
    margin-top: 5px;
    color: var(--dashboard-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.dashboard-search-panel,
.dashboard-section {
    border: 1px solid var(--dashboard-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(61, 48, 27, 0.065);
}

.dashboard-search-panel {
    padding: 22px;
}

.dashboard-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
    gap: 24px;
    align-items: center;
}

.dashboard-search-form h2,
.dashboard-section-header h2 {
    margin: 5px 0 0;
    color: var(--dashboard-ink);
}

.dashboard-search-form h2 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.dashboard-search-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 15px;
    border: 1px solid #cfd9e1;
    border-radius: 999px;
    background: #f9fbfc;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.dashboard-search-control:focus-within {
    border-color: #b78431;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(183, 123, 34, 0.10);
}

.dashboard-search-icon {
    font-size: 1.2rem;
}

.dashboard-search-control input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dashboard-ink);
    font: inherit;
    font-size: 1rem;
}

.dashboard-search-control button {
    min-height: 42px;
    padding: 0 23px;
    border: 1px solid #a96d19;
    border-radius: 999px;
    background: #ae721e;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.dashboard-section {
    padding: clamp(22px, 3vw, 32px);
}

.dashboard-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-section-header h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.dashboard-section-header p:not(.dashboard-section-eyebrow) {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--dashboard-muted);
    line-height: 1.5;
}

.dashboard-grid {
    display: grid;
    gap: 14px;
}

.dashboard-public-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 15px;
    row-gap: 14px;
    min-height: 188px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #dce4e9;
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            #fff,
            #fcfdfd
        );
    color: var(--dashboard-ink);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(28, 48, 65, 0.045);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    border-radius: 0 0 0 100%;
    background: rgba(189, 135, 39, 0.045);
    pointer-events: none;
}

.dashboard-card:hover {
    border-color: #c6a35e;
    box-shadow: 0 12px 28px rgba(28, 48, 65, 0.115);
    transform: translateY(-3px);
}

.dashboard-card-featured {
    grid-column: span 2;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(226, 184, 89, 0.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #133b61,
            #1e527f
        );
    color: #fff;
    border-color: #245a86;
}

.dashboard-card-featured .dashboard-card-label,
.dashboard-card-featured h3,
.dashboard-card-featured p,
.dashboard-card-featured .dashboard-card-arrow {
    color: #fff;
}

.dashboard-card-featured .dashboard-card-icon {
    background: rgba(255, 255, 255, 0.13);
}

.dashboard-card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 13px;
    background: #f5ecd9;
    font-size: 1.55rem;
}

.dashboard-card-copy {
    min-width: 0;
}

.dashboard-card h3 {
    margin: 5px 0 7px;
    color: var(--dashboard-navy);
    font-size: 1.14rem;
    line-height: 1.25;
}

.dashboard-card p {
    margin: 0;
    color: var(--dashboard-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.dashboard-card-arrow {
    grid-column: 1 / -1;
    align-self: end;
    padding-top: 11px;
    border-top: 1px solid rgba(125, 144, 160, 0.18);
    color: var(--dashboard-gold-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.dashboard-card-featured .dashboard-card-arrow {
    border-top-color: rgba(255, 255, 255, 0.18);
}

.dashboard-icon {
    display: block;
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.dashboard-private-section {
    border-color: #d5c59f;
    background:
        radial-gradient(
            circle at 95% 5%,
            rgba(183, 123, 34, 0.08),
            transparent 28%
        ),
        #fffdf8;
}

.dashboard-private-header {
    align-items: center;
}

.dashboard-private-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #d1c19a;
    border-radius: 999px;
    background: #f7efdc;
    color: #79571d;
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-private-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-private-card {
    min-height: 165px;
    border-color: #ded2b8;
}

@media (max-width: 1050px) {
    .dashboard-public-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-card-featured {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .dashboard-hero {
        min-height: 0;
    }

    .dashboard-hero-symbol {
        position: absolute;
        right: 30px;
        width: 130px;
        height: 130px;
        opacity: 0.22;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        margin: -30px 16px 0;
    }

    .dashboard-search-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 650px) {
    .dashboard-page {
        gap: 16px;
    }

    .dashboard-hero {
        padding: 27px 22px;
        border-radius: 17px;
    }

    .dashboard-hero h1 {
        padding-right: 25px;
        font-size: clamp(2.35rem, 13vw, 3.5rem);
    }

    .dashboard-hero-symbol {
        display: none;
    }

    .dashboard-hero-actions {
        display: grid;
    }

    .dashboard-primary-action,
    .dashboard-secondary-action {
        width: 100%;
        box-sizing: border-box;
    }

    .dashboard-search-control {
        grid-template-columns: auto minmax(0, 1fr);
        border-radius: 13px;
    }

    .dashboard-search-control button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dashboard-public-grid,
    .dashboard-private-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card-featured {
        grid-column: auto;
    }

    .dashboard-card {
        min-height: 0;
    }

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


/* ==========================================================================
   Buy us a Coffee dashboard card
   ========================================================================== */

.dashboard-support-card {
    border-color: #e2c66d;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(225, 176, 55, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fff9e9,
            #fff1c9
        );
}

.dashboard-support-card::after {
    background: rgba(211, 154, 31, 0.08);
}

.dashboard-support-card .dashboard-card-icon {
    border: 1px solid #ead287;
    background: #fff7db;
    color: #8d5b00;
    font-size: 1.7rem;
}

.dashboard-support-card h3 {
    color: #815300;
}

.dashboard-support-card p {
    color: #725f3a;
}

.dashboard-support-card .dashboard-card-label,
.dashboard-support-card .dashboard-card-arrow {
    color: #8d5b00;
}

.dashboard-support-card:hover {
    border-color: #cfaa3d;
    box-shadow: 0 14px 30px rgba(132, 92, 17, 0.16);
}

.dashboard-support-card .dashboard-card-arrow {
    border-top-color: rgba(146, 104, 22, 0.18);
}


/* ==========================================================================
   Rotating Hebrew word carousel
   ========================================================================== */

.dashboard-hebrew-carousel {
    position: relative;
    overflow: visible;
    isolation: isolate;

    animation:
        dashboard-symbol-float 12s ease-in-out infinite;
}

.dashboard-hebrew-carousel::before,
.dashboard-hebrew-carousel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-hebrew-carousel::before {
    inset: -16px;
    z-index: -2;
    border: 1px solid rgba(224, 180, 79, 0.25);
    background:
        radial-gradient(
            circle,
            rgba(217, 161, 45, 0.17),
            rgba(136, 88, 10, 0.045) 58%,
            transparent 70%
        );
    box-shadow:
        0 0 26px rgba(217, 161, 45, 0.12),
        inset 0 0 22px rgba(217, 161, 45, 0.07);
    animation: dashboard-hebrew-glow 6s ease-in-out infinite;
}

.dashboard-hebrew-carousel::after {
    inset: 12px;
    z-index: -1;
    border: 1px solid rgba(224, 180, 79, 0.18);
}

.dashboard-hebrew-word {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0 14px;
    color: #e4b950;
    font-family:
        "Noto Serif Hebrew",
        "Times New Roman",
        "Arial Hebrew",
        serif;
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    text-shadow:
        0 0 8px rgba(229, 184, 73, 0.35),
        0 0 22px rgba(209, 144, 30, 0.24);
    opacity: 0;
    transform: scale(0.86) translateY(5px);
    filter: blur(5px);
    transition:
        opacity 1.2s ease,
        transform 1.2s ease,
        filter 1.2s ease;
    pointer-events: none;
}

.dashboard-hebrew-word.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

.dashboard-hebrew-word.leaving {
    opacity: 0;
    transform: scale(1.08) translateY(-4px);
    filter: blur(5px);
}

@keyframes dashboard-hebrew-glow {
    0% {
        opacity: 0.82;
        transform:
            scale(0.985)
            rotate(-1deg)
            translateY(0);
    }

    20% {
        opacity: 0.92;
        transform:
            scale(1.01)
            rotate(0.6deg)
            translateY(-2px);
    }

    40% {
        opacity: 1;
        transform:
            scale(1.03)
            rotate(1deg)
            translateY(-3px);
    }

    60% {
        opacity: 0.96;
        transform:
            scale(1.02)
            rotate(-0.7deg)
            translateY(-2px);
    }

    80% {
        opacity: 0.90;
        transform:
            scale(1.005)
            rotate(0.4deg)
            translateY(-1px);
    }

    100% {
        opacity: 0.82;
        transform:
            scale(0.985)
            rotate(-1deg)
            translateY(0);
    }
}

@keyframes dashboard-symbol-float {
    0% {
        transform:
            translateY(0)
            rotate(0);
    }

    15% {
        transform:
            translateY(-1px)
            rotate(0.25deg);
    }

    35% {
        transform:
            translateY(-4px)
            rotate(-0.6deg);
    }

    55% {
        transform:
            translateY(-2px)
            rotate(0.45deg);
    }

    75% {
        transform:
            translateY(-3px)
            rotate(-0.35deg);
    }

    100% {
        transform:
            translateY(0)
            rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-hebrew-carousel,
    .dashboard-hebrew-carousel::before {
        animation: none;
    }

    .dashboard-hebrew-word {
        transition: none;
    }
}


/* ==========================================================================
   v29.8 - Dashboard statistic definition tooltips
   ========================================================================== */

.dashboard-stat-help {
    position: relative;
    cursor: help;
    outline: none;
}

.dashboard-stat-help:focus-visible {
    border-color: #c08a2f;
    box-shadow:
        0 10px 26px rgba(24, 49, 72, 0.11),
        0 0 0 3px rgba(192, 138, 47, 0.20);
}

.dashboard-stat-tooltip {
    position: absolute;
    left: 18px;
    bottom: calc(100% + 10px);
    z-index: 50;
    width: min(330px, calc(100vw - 48px));
    padding: 12px 14px;
    border: 1px solid #4e4639;
    border-radius: 9px;
    background: rgba(31, 29, 25, 0.96);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: 0 10px 24px rgba(15, 20, 25, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition:
        opacity 0.14s ease,
        transform 0.14s ease,
        visibility 0.14s ease;
    pointer-events: none;
}

.dashboard-stat-tooltip::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 100%;
    border: 7px solid transparent;
    border-top-color: rgba(31, 29, 25, 0.96);
}

.dashboard-stat-help:hover .dashboard-stat-tooltip,
.dashboard-stat-help:focus .dashboard-stat-tooltip,
.dashboard-stat-help:focus-within .dashboard-stat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 820px) {
    .dashboard-stat-tooltip {
        left: 12px;
        right: 12px;
        width: auto;
    }
}

@media (hover: none) {
    .dashboard-stat-help {
        cursor: pointer;
    }
}


/* ==========================================================================
   v32 - Topic Builder Dashboard entry points
   ========================================================================== */

.dashboard-topic-builder-action {
    border-color: #d2b46f;
    background: rgba(255, 248, 225, 0.12);
    color: #fff4d1;
}

.dashboard-topic-builder-action:hover {
    border-color: #f0d691;
    background: rgba(255, 248, 225, 0.22);
    color: #ffffff;
}

.dashboard-topic-builder-card {
    border-color: #d7bd7f;
    background: linear-gradient(
        145deg,
        #fffdf7 0%,
        #fff8e8 100%
    );
}

.dashboard-topic-builder-card .dashboard-card-icon {
    background: #f7e8bd;
}

.dashboard-topic-builder-card:hover {
    border-color: #b98224;
    box-shadow: 0 13px 30px rgba(117, 79, 20, 0.14);
}
