:root {
    --bg-deep: #081018;
    --bg-deeper: #050b11;
    --panel: rgba(10, 18, 27, 0.88);
    --panel-soft: rgba(18, 28, 39, 0.82);
    --line: rgba(210, 171, 91, 0.22);
    --gold: #d2ab5b;
    --gold-strong: #e3bb6a;
    --gold-dark: #8f6930;
    --text-main: #ebe3d6;
    --text-soft: #b8ad9d;
    --danger: #9f4b42;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--text-main);
    background:
            radial-gradient(circle at 30% 20%, rgba(216, 169, 92, 0.16), transparent 28%),
            radial-gradient(circle at 70% 15%, rgba(255, 210, 120, 0.07), transparent 20%),
            linear-gradient(180deg, rgba(3, 8, 12, 0.65), rgba(4, 8, 13, 0.92)),
            linear-gradient(135deg, #0a121a 0%, #0b1721 40%, #081018 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
            linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
            repeating-linear-gradient(
                    90deg,
                    rgba(255,255,255,0.015) 0,
                    rgba(255,255,255,0.015) 1px,
                    transparent 1px,
                    transparent 90px
            );
    opacity: 0.35;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--gold-strong);
}

.morgantis-brand {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-size: 0.9rem;
}

.brand-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
    color: #f4ecdf;
}

.brand-subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.panel-card {
    background:
            linear-gradient(180deg, rgba(18, 28, 39, 0.92), rgba(8, 15, 23, 0.95));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.panel-card-soft {
    background: var(--panel-soft);
    border: 1px solid rgba(210, 171, 91, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold-strong), var(--gold-dark));
    border: 1px solid rgba(255, 226, 165, 0.16);
    color: #1b1208;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 12px;
    padding: 0.8rem 1.15rem;
}

.btn-gold:hover {
    color: #120d07;
    transform: translateY(-1px);
    background: linear-gradient(180deg, #e8c274, #9f7434);
}

.btn-outline-gold {
    border: 1px solid rgba(210, 171, 91, 0.35);
    color: var(--gold);
    background: rgba(210, 171, 91, 0.06);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.btn-outline-gold:hover {
    color: #1a1309;
    background: var(--gold);
    border-color: var(--gold);
}

.btn-danger-soft {
    background: rgba(159, 75, 66, 0.16);
    border: 1px solid rgba(159, 75, 66, 0.32);
    color: #f0c2bb;
    border-radius: 12px;
}

.btn-danger-soft:hover {
    background: rgba(159, 75, 66, 0.3);
    color: #fff;
}

.form-label {
    color: #ddcfbd;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    background: rgba(8, 15, 23, 0.72);
    border: 1px solid rgba(210, 171, 91, 0.14);
    color: var(--text-main);
    border-radius: 12px;
    min-height: 48px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(8, 15, 23, 0.88);
    color: var(--text-main);
    border-color: rgba(210, 171, 91, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(210, 171, 91, 0.12);
}

.form-control::placeholder {
    color: #8c8276;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-side {
    padding: 2.5rem;
}

.auth-box {
    padding: 2rem;
}

.quote-box {
    border-left: 3px solid rgba(210, 171, 91, 0.35);
    padding-left: 1rem;
    color: var(--text-soft);
    font-style: italic;
    line-height: 1.8;
}

.topbar {
    background: rgba(6, 10, 15, 0.72);
    border: 1px solid rgba(210, 171, 91, 0.12);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.topbar-title {
    font-size: 1.35rem;
    margin: 0;
    color: #f2e7d7;
}

.topbar-subtitle {
    color: var(--text-soft);
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
}

.hero-banner {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.hero-banner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.hero-banner p {
    color: var(--text-soft);
    max-width: 720px;
    line-height: 1.8;
    margin-bottom: 0;
}

.stat-card {
    padding: 1.35rem;
    height: 100%;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f7efe2;
    margin-top: 0.5rem;
}

.filter-card,
.story-card,
.table-card {
    padding: 1.4rem;
}

.section-title {
    color: #f1e4d0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.story-card {
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.story-card:hover {
    transform: translateY(-3px);
    border-color: rgba(210, 171, 91, 0.28);
}

.story-badge {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(210, 171, 91, 0.1);
    color: var(--gold);
    border: 1px solid rgba(210, 171, 91, 0.16);
    margin-bottom: 1rem;
}

.story-title {
    color: #f7ede0;
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.story-meta {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.7;
}

.story-description {
    color: #d3c8b8;
    line-height: 1.75;
    margin-top: 0.9rem;
}

.table {
    color: var(--text-main);
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 1px solid rgba(210, 171, 91, 0.18);
    color: #ddcfbd;
    font-weight: 600;
    background: rgba(255,255,255,0.02);
}

.table tbody td {
    border-color: rgba(210, 171, 91, 0.08);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.small-muted {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.alert-morgantis {
    background: rgba(210, 171, 91, 0.08);
    border: 1px solid rgba(210, 171, 91, 0.2);
    color: #ebdcc2;
    border-radius: 14px;
}

@media (max-width: 991.98px) {
    .auth-side {
        padding: 1.5rem;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .hero-banner,
    .filter-card,
    .story-card,
    .table-card {
        padding: 1.2rem;
    }
}

/* =========================================================
   LOGIN PAGE — Morgantis
   ========================================================= */

:root {
    --morgantis-ink-950: #05090d;
    --morgantis-ink-900: #081018;
    --morgantis-gold-500: #d8ad5f;
    --morgantis-gold-600: #b9893d;
    --morgantis-gold-700: #7d5b29;
    --morgantis-white: #ffffff;
    --morgantis-muted: rgba(255, 255, 255, 0.62);
    --morgantis-muted-soft: rgba(255, 255, 255, 0.36);
    --morgantis-danger: #d66f5f;
    --morgantis-success: #d8ad5f;
}

.login-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--morgantis-ink-950);
    color: var(--morgantis-white);
    font-family: Georgia, "Times New Roman", serif;
}

/* Background artwork */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: -4;
    background-image: url("../images/background/background-login.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Atmospheric overlays */
.login-overlays {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.login-vignette,
.login-dark-veil,
.login-grain {
    position: absolute;
    inset: 0;
}

.login-vignette {
    background:
            radial-gradient(
                    circle at 36% 38%,
                    rgba(255, 200, 115, 0.08) 0%,
                    rgba(0, 0, 0, 0.08) 28%,
                    rgba(0, 0, 0, 0.62) 100%
            ),
            linear-gradient(
                    to bottom,
                    rgba(0, 0, 0, 0.18),
                    rgba(0, 0, 0, 0.68)
            );
}

.login-dark-veil {
    background:
            linear-gradient(
                    to right,
                    rgba(0, 0, 0, 0.08) 0%,
                    rgba(0, 0, 0, 0.28) 44%,
                    rgba(5, 9, 13, 0.78) 68%,
                    rgba(5, 9, 13, 0.94) 100%
            );
}

.login-grain {
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.35'/></svg>");
    background-size: 180px 180px;
}

/* Layout */
.login-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 48px 72px;
}

.login-panel {
    width: 100%;
    max-width: 560px;
    padding: 24px 0;
}

.login-heading {
    margin-bottom: 48px;
}

.login-kicker {
    margin: 0 0 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(216, 173, 95, 0.72);
}

.login-heading h1 {
    margin: 0;
    font-size: clamp(4rem, 7vw, 6.6rem);
    line-height: 0.92;
    letter-spacing: 0.045em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 12px 45px rgba(0, 0, 0, 0.55);
}

.login-separator {
    width: 116px;
    height: 1px;
    margin-top: 26px;
    background: linear-gradient(
            to right,
            rgba(216, 173, 95, 0.76),
            rgba(216, 173, 95, 0)
    );
}

.login-heading p:not(.login-kicker) {
    margin: 28px 0 0;
    max-width: 420px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--morgantis-muted);
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.login-field {
    display: block;
}

.login-field span {
    display: block;
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.58);
}

.login-field input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(216, 173, 95, 0.34);
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    outline: none;
    padding: 0 0 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.08rem;
    transition:
            border-color 180ms ease,
            box-shadow 180ms ease,
            color 180ms ease;
}

.login-field input:focus {
    border-bottom-color: rgba(216, 173, 95, 0.82);
    box-shadow: 0 12px 28px -26px rgba(216, 173, 95, 0.9);
}

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
}

.login-button {
    width: 100%;
    margin-top: 8px;
    border: 1px solid rgba(216, 173, 95, 0.36);
    border-radius: 3px;
    background:
            linear-gradient(
                    180deg,
                    rgba(216, 173, 95, 0.58),
                    rgba(139, 99, 42, 0.58)
            );
    color: rgba(255, 255, 255, 0.92);
    padding: 18px 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    letter-spacing: 0.045em;
    box-shadow:
            0 16px 38px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
            transform 160ms ease,
            background 160ms ease,
            border-color 160ms ease,
            box-shadow 160ms ease;
}

.login-button:hover {
    background:
            linear-gradient(
                    180deg,
                    rgba(216, 173, 95, 0.72),
                    rgba(139, 99, 42, 0.68)
            );
    border-color: rgba(216, 173, 95, 0.56);
    box-shadow:
            0 20px 48px rgba(0, 0, 0, 0.36),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.login-button:active {
    transform: translateY(1px);
}

/* Alerts */
.login-alert {
    margin-bottom: 28px;
    padding: 14px 16px;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.96rem;
    line-height: 1.5;
    backdrop-filter: blur(8px);
}

.login-alert-error {
    border: 1px solid rgba(214, 111, 95, 0.36);
    background: rgba(90, 25, 20, 0.36);
    color: rgba(255, 218, 212, 0.92);
}

.login-alert-success {
    border: 1px solid rgba(216, 173, 95, 0.32);
    background: rgba(95, 68, 25, 0.32);
    color: rgba(255, 237, 202, 0.94);
}

/* Footer */
.login-footer {
    padding-top: 54px;
    text-align: center;
}

.login-footer-title {
    margin: 0;
    font-size: 1.28rem;
    color: rgba(255, 255, 255, 0.34);
}

.login-footer p:last-child {
    margin: 10px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.28);
}

/* Responsive */
@media (max-width: 991.98px) {
    .login-shell {
        justify-content: center;
        padding: 40px 28px;
    }

    .login-dark-veil {
        background:
                linear-gradient(
                        to bottom,
                        rgba(0, 0, 0, 0.34),
                        rgba(5, 9, 13, 0.84)
                );
    }

    .login-panel {
        max-width: 620px;
        padding-top: 44vh;
    }
}

@media (max-width: 575.98px) {
    .login-shell {
        padding: 32px 22px;
        align-items: flex-start;
    }

    .login-panel {
        padding-top: 34vh;
    }

    .login-heading {
        margin-bottom: 38px;
    }

    .login-heading h1 {
        font-size: clamp(3.2rem, 17vw, 4.8rem);
    }

    .login-button {
        font-size: 1.35rem;
        padding: 16px 18px;
    }

    .login-footer {
        padding-top: 40px;
    }
}

/* =========================================================
   DASHBOARD — Morgantis
   ========================================================= */

.dashboard-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--morgantis-ink-950);
    color: var(--morgantis-white);
    font-family: Georgia, "Times New Roman", serif;
}

/* Background artwork */
.dashboard-bg {
    position: fixed;
    inset: 0;
    z-index: -4;
    background-image: url("../images/background/background-login.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Atmospheric overlays */
.dashboard-overlays {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.dashboard-vignette,
.dashboard-dark-veil,
.dashboard-grain {
    position: absolute;
    inset: 0;
}

.dashboard-vignette {
    background:
            radial-gradient(
                    circle at 34% 36%,
                    rgba(255, 200, 115, 0.08) 0%,
                    rgba(0, 0, 0, 0.18) 30%,
                    rgba(0, 0, 0, 0.72) 100%
            ),
            linear-gradient(
                    to bottom,
                    rgba(0, 0, 0, 0.22),
                    rgba(0, 0, 0, 0.76)
            );
}

.dashboard-dark-veil {
    background:
            linear-gradient(
                    to right,
                    rgba(5, 9, 13, 0.92) 0%,
                    rgba(5, 9, 13, 0.78) 26%,
                    rgba(5, 9, 13, 0.54) 54%,
                    rgba(5, 9, 13, 0.88) 100%
            );
}

.dashboard-grain {
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.35'/></svg>");
    background-size: 180px 180px;
}

/* Layout */
.dashboard-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 48px;
    padding: 42px 56px;
}

.dashboard-sidebar {
    position: sticky;
    top: 42px;
    height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 0;
}

.dashboard-kicker {
    margin: 0 0 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(216, 173, 95, 0.72);
}

.dashboard-logo {
    margin: 0;
    font-size: 4rem;
    line-height: 0.95;
    letter-spacing: 0.045em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 12px 45px rgba(0, 0, 0, 0.55);
}

.dashboard-separator {
    width: 116px;
    height: 1px;
    background: linear-gradient(
            to right,
            rgba(216, 173, 95, 0.76),
            rgba(216, 173, 95, 0)
    );
}

.dashboard-sidebar-text {
    max-width: 260px;
    margin: 28px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 5px;
}

.dashboard-nav-link {
    display: block;
    width: fit-content;
    padding: 10px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.48);
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
    color: rgba(255, 255, 255, 0.88);
    transform: translateX(4px);
}

.dashboard-nav-link.active::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    margin-right: 12px;
    vertical-align: middle;
    background: rgba(216, 173, 95, 0.75);
}

.dashboard-user-box {
    max-width: 260px;
    border-top: 1px solid rgba(216, 173, 95, 0.22);
    padding-top: 22px;
    font-family: Arial, Helvetica, sans-serif;
}

.dashboard-user-box span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.34);
}

.dashboard-user-box strong {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
}

.dashboard-user-box a {
    color: rgba(216, 173, 95, 0.78);
    text-decoration: none;
}

.dashboard-user-box a:hover {
    color: rgba(216, 173, 95, 1);
}

/* Content */
.dashboard-content {
    min-width: 0;
    padding: 16px 0 56px;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 38px;
}

.dashboard-header h2 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0.035em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.96);
}

.dashboard-header p:not(.dashboard-kicker) {
    max-width: 680px;
    margin: 22px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.56);
}

.dashboard-header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Buttons */
.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    letter-spacing: 0.035em;
    text-decoration: none;
    transition:
            transform 160ms ease,
            background 160ms ease,
            border-color 160ms ease,
            color 160ms ease;
}

.dashboard-button-gold {
    border: 1px solid rgba(216, 173, 95, 0.36);
    background:
            linear-gradient(
                    180deg,
                    rgba(216, 173, 95, 0.58),
                    rgba(139, 99, 42, 0.58)
            );
    color: rgba(255, 255, 255, 0.92);
    box-shadow:
            0 16px 38px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dashboard-button-gold:hover {
    color: rgba(255, 255, 255, 0.98);
    background:
            linear-gradient(
                    180deg,
                    rgba(216, 173, 95, 0.74),
                    rgba(139, 99, 42, 0.7)
            );
}

.dashboard-story-description.muted {
    color: rgba(255, 255, 255, 0.32);
    font-style: italic;
}

.dashboard-button-ghost {
    border: 1px solid rgba(216, 173, 95, 0.22);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-button-ghost:hover {
    border-color: rgba(216, 173, 95, 0.42);
    color: rgba(255, 255, 255, 0.92);
    background: rgba(216, 173, 95, 0.08);
}

.dashboard-button:active {
    transform: translateY(1px);
}

/* Stats */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.dashboard-stat-card {
    min-height: 140px;
    padding: 22px;
    border: 1px solid rgba(216, 173, 95, 0.18);
    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.055),
                    rgba(255, 255, 255, 0.025)
            );
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.dashboard-stat-card span {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.dashboard-stat-card strong {
    display: block;
    margin-top: 28px;
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);
}

.dashboard-stat-card .dashboard-stat-date {
    font-size: 1.35rem;
    line-height: 1.2;
}

/* Panels */
.dashboard-panel {
    margin-bottom: 28px;
    padding: 26px;
    border: 1px solid rgba(216, 173, 95, 0.16);
    background:
            linear-gradient(
                    180deg,
                    rgba(5, 9, 13, 0.62),
                    rgba(5, 9, 13, 0.42)
            );
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.dashboard-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-panel h3,
.dashboard-section-title h3 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
}

/* Filters */
.dashboard-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.dashboard-filter-form label {
    display: block;
}

.dashboard-filter-form span {
    display: block;
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.dashboard-filter-form input,
.dashboard-filter-form select {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid rgba(216, 173, 95, 0.3);
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    outline: none;
    padding: 0 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
}

.dashboard-filter-form select option {
    color: #111;
}

.dashboard-filter-form input:focus,
.dashboard-filter-form select:focus {
    border-bottom-color: rgba(216, 173, 95, 0.82);
}

.dashboard-filter-form input::placeholder {
    color: rgba(255, 255, 255, 0.26);
}

.dashboard-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

/* Story section */
.dashboard-stories-section {
    margin-bottom: 28px;
}

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

.dashboard-link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    color: rgba(216, 173, 95, 0.78);
    text-decoration: none;
}

.dashboard-link:hover {
    color: rgba(216, 173, 95, 1);
}

.dashboard-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-story-card {
    min-height: 310px;
    padding: 24px;
    border: 1px solid rgba(216, 173, 95, 0.15);
    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.06),
                    rgba(255, 255, 255, 0.025)
            );
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    transition:
            transform 180ms ease,
            border-color 180ms ease,
            background 180ms ease;
}

.dashboard-story-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 173, 95, 0.34);
    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.075),
                    rgba(255, 255, 255, 0.03)
            );
}

.dashboard-story-top {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 12px;
    margin-bottom: 26px;
}

.dashboard-story-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(216, 173, 95, 0.24);
    background: rgba(216, 173, 95, 0.08);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(216, 173, 95, 0.9);
}

.dashboard-story-date {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.36);
}

.dashboard-story-card h4 {
    margin: 0;
    min-height: 58px;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);
}

.dashboard-story-author {
    margin: 12px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.48);
}

.dashboard-story-description {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.dashboard-story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.dashboard-mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(216, 173, 95, 0.22);
    background: rgba(255, 255, 255, 0.035);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition:
            border-color 160ms ease,
            color 160ms ease,
            background 160ms ease;
}

.dashboard-mini-button:hover {
    border-color: rgba(216, 173, 95, 0.48);
    background: rgba(216, 173, 95, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.dashboard-mini-button.danger {
    border-color: rgba(214, 111, 95, 0.22);
    color: rgba(255, 190, 180, 0.68);
}

.dashboard-mini-button.danger:hover {
    border-color: rgba(214, 111, 95, 0.52);
    background: rgba(214, 111, 95, 0.1);
    color: rgba(255, 220, 214, 0.95);
}

/* Table */
.dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    color: rgba(255, 255, 255, 0.76);
}

.dashboard-table th {
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(216, 173, 95, 0.22);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.42);
}

.dashboard-table td {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(216, 173, 95, 0.08);
    font-size: 0.94rem;
}

.dashboard-table tbody tr {
    transition: background 160ms ease;
}

.dashboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

/* Responsive */
@media (max-width: 1199.98px) {
    .dashboard-shell {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 34px;
        padding: 34px;
    }

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

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

@media (max-width: 991.98px) {
    .dashboard-shell {
        display: block;
        padding: 28px;
    }

    .dashboard-sidebar {
        position: relative;
        top: auto;
        height: auto;
        display: block;
        padding: 18px 0 34px;
    }

    .dashboard-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 5px;
    }

    .dashboard-user-box {
        margin-top: 28px;
    }

    .dashboard-header {
        display: block;
    }

    .dashboard-header-actions {
        margin-top: 24px;
    }

    .dashboard-dark-veil {
        background:
                linear-gradient(
                        to bottom,
                        rgba(5, 9, 13, 0.8),
                        rgba(5, 9, 13, 0.9)
                );
    }
}

@media (max-width: 767.98px) {
    .dashboard-shell {
        padding: 22px;
    }

    .dashboard-logo {
        font-size: 3.3rem;
    }

    .dashboard-stats-grid,
    .dashboard-stories-grid,
    .dashboard-filter-form {
        grid-template-columns: 1fr;
    }

    .dashboard-header-actions,
    .dashboard-filter-actions {
        flex-direction: column;
    }

    .dashboard-button {
        width: 100%;
    }

    .dashboard-panel,
    .dashboard-story-card,
    .dashboard-stat-card {
        padding: 20px;
    }
}
/* =========================================================
   STORY CREATE — Morgantis
   ========================================================= */

.story-create-panel {
    max-width: 1120px;
}

.story-create-form {
    margin-top: 12px;
}

.story-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
}

.story-field,
.story-file-field {
    display: block;
}

.story-field-wide {
    grid-column: 1 / -1;
}

.story-field span,
.story-file-field span {
    display: block;
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.58);
}

.story-field input,
.story-field select,
.story-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(216, 173, 95, 0.3);
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    outline: none;
    padding: 0 0 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.02rem;
    transition:
            border-color 180ms ease,
            box-shadow 180ms ease;
}

.story-field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.7;
}

.story-field select option {
    color: #111;
}

.story-field input:focus,
.story-field select:focus,
.story-field textarea:focus {
    border-bottom-color: rgba(216, 173, 95, 0.82);
    box-shadow: 0 12px 28px -26px rgba(216, 173, 95, 0.9);
}

.story-field input::placeholder,
.story-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.story-file-field {
    padding: 22px;
    border: 1px dashed rgba(216, 173, 95, 0.28);
    background: rgba(255, 255, 255, 0.035);
    transition:
            border-color 160ms ease,
            background 160ms ease;
}

.story-file-field:hover {
    border-color: rgba(216, 173, 95, 0.48);
    background: rgba(216, 173, 95, 0.06);
}

.story-file-field input[type="file"] {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.68);
}

.story-file-field input[type="file"]::file-selector-button {
    margin-right: 16px;
    border: 1px solid rgba(216, 173, 95, 0.28);
    background: rgba(216, 173, 95, 0.12);
    color: rgba(255, 255, 255, 0.86);
    padding: 10px 14px;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition:
            background 160ms ease,
            border-color 160ms ease;
}

.story-file-field input[type="file"]::file-selector-button:hover {
    border-color: rgba(216, 173, 95, 0.48);
    background: rgba(216, 173, 95, 0.2);
}

.story-file-field small {
    display: block;
    margin-top: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.36);
}

.story-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 36px;
}

.story-form-alert {
    max-width: 1120px;
    margin-bottom: 26px;
    padding: 18px 20px;
    border-radius: 3px;
    font-family: Arial, Helvetica, sans-serif;
    backdrop-filter: blur(10px);
}

.story-form-alert strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.story-form-alert ul {
    margin: 0;
    padding-left: 20px;
}

.story-form-alert li {
    margin: 4px 0;
}

.story-form-alert-error {
    border: 1px solid rgba(214, 111, 95, 0.36);
    background: rgba(90, 25, 20, 0.36);
    color: rgba(255, 218, 212, 0.92);
}

@media (max-width: 767.98px) {
    .story-form-grid {
        grid-template-columns: 1fr;
    }

    .story-form-actions {
        flex-direction: column;
    }

    .story-file-field {
        padding: 18px;
    }
}
/* =========================================================
   DELETE MODAL — Morgantis
   ========================================================= */

.morgantis-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 24px;
}

.morgantis-modal.is-visible {
    display: grid;
}

.morgantis-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 50% 35%, rgba(216, 173, 95, 0.08), transparent 34%),
            rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.morgantis-modal-dialog {
    position: relative;
    width: min(100%, 560px);
    padding: 34px;
    border: 1px solid rgba(216, 173, 95, 0.22);
    background:
            linear-gradient(
                    180deg,
                    rgba(12, 17, 24, 0.96),
                    rgba(5, 9, 13, 0.96)
            );
    box-shadow:
            0 28px 90px rgba(0, 0, 0, 0.65),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.morgantis-modal-dialog h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.morgantis-modal-text {
    margin: 22px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.58);
}

.morgantis-modal-text strong {
    color: rgba(255, 235, 200, 0.94);
    font-weight: 500;
}

.morgantis-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 34px;
}

.dashboard-button-danger {
    border: 1px solid rgba(214, 111, 95, 0.38);
    background:
            linear-gradient(
                    180deg,
                    rgba(150, 55, 45, 0.72),
                    rgba(86, 25, 22, 0.76)
            );
    color: rgba(255, 235, 232, 0.94);
}

.dashboard-button-danger:hover {
    border-color: rgba(214, 111, 95, 0.62);
    background:
            linear-gradient(
                    180deg,
                    rgba(176, 68, 56, 0.82),
                    rgba(104, 30, 26, 0.86)
            );
    color: #fff;
}

button.dashboard-mini-button {
    cursor: pointer;
    border-radius: 0;
}

@media (max-width: 575.98px) {
    .morgantis-modal-dialog {
        padding: 26px;
    }

    .morgantis-modal-actions {
        flex-direction: column;
    }

    .morgantis-modal-actions .dashboard-button {
        width: 100%;
    }
}
/* =========================================================
   STORY COVER PREVIEW — Morgantis
   ========================================================= */
.story-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.story-cover-preview-panel {
    position: sticky;
    top: 42px;
    padding: 22px;
    border: 1px solid rgba(216, 173, 95, 0.16);
    background:
            linear-gradient(
                    180deg,
                    rgba(5, 9, 13, 0.66),
                    rgba(5, 9, 13, 0.42)
            );
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.story-cover-frame {
    position: relative;
    margin-top: 22px;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border: 1px solid rgba(216, 173, 95, 0.22);
    background:
            radial-gradient(circle at 50% 24%, rgba(216, 173, 95, 0.2), transparent 42%),
            linear-gradient(180deg, rgba(5, 9, 13, 0.55), rgba(5, 9, 13, 0.95));
    box-shadow:
            0 18px 46px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.story-cover-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(1.05);
}

.story-cover-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
}

.story-cover-placeholder span {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(216, 173, 95, 0.34);
    text-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
}

.story-cover-placeholder p {
    margin: 14px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.38);
}

.story-cover-meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(216, 173, 95, 0.14);
    font-family: Arial, Helvetica, sans-serif;
}

.story-cover-meta span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.34);
}

.story-cover-meta strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.92rem;
    font-weight: 400;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1199.98px) {
    .story-create-layout {
        grid-template-columns: 1fr;
    }

    .story-cover-preview-panel {
        position: relative;
        top: auto;
        max-width: 420px;
    }
}

@media (max-width: 575.98px) {
    .story-cover-preview-panel {
        padding: 20px;
    }
}
.stories-consultation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.consultation-story-card {
    display: flex;
    flex-direction: column;
    min-height: auto;
    border: 1px solid rgba(216, 173, 95, 0.15);
    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.06),
                    rgba(255, 255, 255, 0.025)
            );
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition:
            transform 180ms ease,
            border-color 180ms ease,
            background 180ms ease;
}

.consultation-cover {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(216, 173, 95, 0.16);
    background:
            radial-gradient(circle at 50% 24%, rgba(216, 173, 95, 0.2), transparent 42%),
            linear-gradient(180deg, rgba(5, 9, 13, 0.55), rgba(5, 9, 13, 0.95));
}

.consultation-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(1.05);
}

.consultation-story-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 18px;
}

.consultation-story-content .dashboard-story-top {
    margin-bottom: 14px;
}

.consultation-story-content h4 {
    margin: 0;
    min-height: auto;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.consultation-story-content .dashboard-story-author {
    margin-top: 10px;
}

.consultation-story-content .dashboard-story-description {
    margin-top: 14px;
    min-height: auto;
    font-size: 0.88rem;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.consultation-file-info {
    margin-top: 16px;
    padding-top: 14px;
}

.consultation-story-content .dashboard-story-actions {
    margin-top: 16px;
}
/* =========================================================
   GENRES PAGE — Morgantis
   ========================================================= */

.genres-layout {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.genres-form-panel,
.genres-list-panel {
    min-height: 260px;
}

.genres-form {
    margin-top: 12px;
}

.genres-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.genre-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(216, 173, 95, 0.14);
    background: rgba(255, 255, 255, 0.035);
    transition:
            border-color 160ms ease,
            background 160ms ease,
            transform 160ms ease;
}

.genre-item:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 173, 95, 0.32);
    background: rgba(216, 173, 95, 0.06);
}

.genre-item strong {
    display: block;
    margin-bottom: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
}

.genre-item span {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.42);
}

.genres-empty p {
    margin: 0;
    max-width: 520px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 991.98px) {
    .genres-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .genre-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   MORGANTIS MASCOT
   ========================================================= */

.morgantis-mascot {
    position: fixed;
    left: -120px;
    bottom: 18px;
    z-index: 40;
    width: 86px;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.88;
    filter:
            drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55))
            saturate(0.92)
            contrast(1.05);
    animation: mascotWalkWithPause 46s linear infinite;
}

.morgantis-mascot img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.morgantis-mascot:hover {
    opacity: 1;
    filter:
            drop-shadow(0 14px 28px rgba(0, 0, 0, 0.62))
            saturate(1)
            contrast(1.08);
}

.morgantis-mascot:active {
    transform: scale(0.96);
}

@keyframes mascotWalkWithPause {
    0% {
        transform: translateX(-140px);
        opacity: 0;
    }

    6% {
        opacity: 0.88;
    }

    68% {
        transform: translateX(calc(100vw + 160px));
        opacity: 0.88;
    }

    72% {
        opacity: 0;
    }

    100% {
        transform: translateX(calc(100vw + 160px));
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .morgantis-mascot {
        display: none;
    }
}

.morgantis-mascot.is-clicked {
    animation-play-state: paused;
}

.morgantis-mascot.is-clicked img {
    animation: mascotBounce 450ms ease;
}

@keyframes mascotBounce {
    0% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: translateY(-10px) scale(1.06);
    }

    70% {
        transform: translateY(2px) scale(0.98);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

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

.viewer-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
    .viewer-stats-grid,
    .viewer-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .viewer-stats-grid,
    .viewer-filter-form {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   USERS VISIBILITY PAGE — Morgantis
   ========================================================= */

.users-visibility-panel {
    max-width: 1180px;
}

.users-table-search input {
    width: 260px;
    border: 0;
    border-bottom: 1px solid rgba(216, 173, 95, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    outline: none;
    padding: 0 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
}

.users-table-search input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.users-table-search input:focus {
    border-bottom-color: rgba(216, 173, 95, 0.82);
}

.visibility-modal-dialog {
    width: min(100%, 1180px);
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.visibility-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.visibility-modal-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(216, 173, 95, 0.22);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.visibility-modal-close:hover {
    border-color: rgba(216, 173, 95, 0.42);
    color: rgba(255, 255, 255, 0.94);
}

.visibility-books-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 8px;
}

.visibility-book-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(216, 173, 95, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.visibility-book-cover {
    position: relative;
    width: 92px;
    height: 124px;
    overflow: hidden;
    border: 1px solid rgba(216, 173, 95, 0.18);
    background:
            radial-gradient(circle at 50% 24%, rgba(216, 173, 95, 0.2), transparent 42%),
            linear-gradient(180deg, rgba(5, 9, 13, 0.55), rgba(5, 9, 13, 0.95));
}

.visibility-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(1.05);
}

.visibility-book-info h4 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);
}

.visibility-book-info .dashboard-story-description {
    margin-top: 10px;
    min-height: auto;
    font-size: 0.88rem;
    line-height: 1.55;
}

.visibility-book-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visibility-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(216, 173, 95, 0.16);
    background: rgba(255, 255, 255, 0.035);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.visibility-radio:hover {
    border-color: rgba(216, 173, 95, 0.38);
    background: rgba(216, 173, 95, 0.06);
}

.visibility-radio input {
    accent-color: #d8ad5f;
}

.visibility-radio:has(input:checked) {
    border-color: rgba(216, 173, 95, 0.56);
    color: rgba(255, 255, 255, 0.94);
    background: rgba(216, 173, 95, 0.1);
}

@media (max-width: 991.98px) {
    .visibility-book-row {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .visibility-book-options {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .visibility-radio {
        flex: 1;
    }
}

@media (max-width: 575.98px) {
    .dashboard-panel-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .users-table-search input {
        width: 100%;
    }

    .visibility-modal-dialog {
        padding: 24px;
    }

    .visibility-book-row {
        grid-template-columns: 1fr;
    }

    .visibility-book-cover {
        width: 100%;
        height: 180px;
    }

    .visibility-book-options {
        flex-direction: column;
    }
}

/* =========================================================
   VIEWER SIDEBAR IMAGE
   ========================================================= */

.viewer-sidebar-image {
    width: 100%;
    max-width: 280px;
    margin-bottom: 28px;
    margin-top: 5px;
    border: 1px solid rgba(216, 173, 95, 0.18);
    background:
            radial-gradient(circle at 50% 24%, rgba(216, 173, 95, 0.16), transparent 42%),
            linear-gradient(180deg, rgba(5, 9, 13, 0.42), rgba(5, 9, 13, 0.86));
    box-shadow:
            0 22px 54px rgba(0, 0, 0, 0.36),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.viewer-sidebar-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter:
            saturate(0.94)
            contrast(1.05);
}

@media (max-width: 991.98px) {
    .viewer-sidebar-image {
        max-width: 180px;
        margin-bottom: 22px;
    }
}

/* =========================================================
   HISTORICAL TIMELINE — Morgantis
   ========================================================= */

.timeline-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 36px;
    padding: 38px;
    border: 1px solid rgba(216, 173, 95, 0.14);
    background:
            linear-gradient(
                    to right,
                    rgba(5, 9, 13, 0.92),
                    rgba(5, 9, 13, 0.54),
                    rgba(5, 9, 13, 0.84)
            ),
            radial-gradient(circle at 70% 32%, rgba(216, 173, 95, 0.18), transparent 28%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.timeline-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/background/background-login.png");
    background-size: cover;
    background-position: center 38%;
    opacity: 0.34;
    filter: saturate(0.85) contrast(1.05);
    z-index: -1;
}

.timeline-hero h2 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: 0.035em;
    color: rgba(255, 245, 228, 0.96);
}

.timeline-hero-separator {
    width: 180px;
    height: 1px;
    margin: 24px 0 18px;
    background:
            linear-gradient(
                    to right,
                    rgba(216, 173, 95, 0.78),
                    rgba(216, 173, 95, 0)
            );
}

.timeline-hero p:not(.dashboard-kicker) {
    max-width: 760px;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.64);
}

.timeline-section {
    position: relative;
    margin-top: 28px;
}

.timeline-viewport {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 62px 0 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(216, 173, 95, 0.62) rgba(216, 173, 95, 0.12);
}

.timeline-viewport::-webkit-scrollbar {
    height: 8px;
}

.timeline-viewport::-webkit-scrollbar-track {
    background: rgba(216, 173, 95, 0.12);
}

.timeline-viewport::-webkit-scrollbar-thumb {
    background: linear-gradient(
            to right,
            rgba(216, 173, 95, 0.38),
            rgba(216, 173, 95, 0.82)
    );
}

.timeline-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 42px;
    min-width: 100%;
    height: 1px;
    background:
            linear-gradient(
                    to right,
                    rgba(216, 173, 95, 0.1),
                    rgba(216, 173, 95, 0.86),
                    rgba(216, 173, 95, 0.1)
            );
    pointer-events: none;
}

.timeline-track {
    display: flex;
    gap: 34px;
    min-width: max-content;
    padding: 0 10px;
}

.timeline-card {
    position: relative;
    width: 250px;
    flex: 0 0 250px;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: -62px;
    z-index: 2;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(216, 173, 95, 0.56);
    border-radius: 999px;
    background:
            radial-gradient(circle at 40% 30%, rgba(216, 173, 95, 0.24), transparent 44%),
            rgba(5, 9, 13, 0.92);
    color: rgba(216, 173, 95, 0.9);
    box-shadow:
            0 14px 36px rgba(0, 0, 0, 0.38),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.timeline-node::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 20px;
    transform: translateX(-50%);
    background: rgba(216, 173, 95, 0.48);
}

.timeline-node span {
    font-size: 1.15rem;
    line-height: 1;
}

.timeline-card-inner {
    min-height: 460px;
    padding: 18px;
    border: 1px solid rgba(216, 173, 95, 0.22);
    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.06),
                    rgba(255, 255, 255, 0.024)
            );
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    transition:
            transform 180ms ease,
            border-color 180ms ease,
            background 180ms ease;
}

.timeline-card-inner:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 173, 95, 0.46);
    background:
            linear-gradient(
                    180deg,
                    rgba(216, 173, 95, 0.08),
                    rgba(255, 255, 255, 0.028)
            );
}

.timeline-card time {
    display: block;
    margin-bottom: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    color: rgba(255, 226, 170, 0.72);
}

.timeline-cover {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border: 1px solid rgba(216, 173, 95, 0.16);
    background:
            radial-gradient(circle at 50% 24%, rgba(216, 173, 95, 0.18), transparent 42%),
            linear-gradient(180deg, rgba(5, 9, 13, 0.55), rgba(5, 9, 13, 0.96));
}

.timeline-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.06);
}

.timeline-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    to bottom,
                    rgba(0, 0, 0, 0),
                    rgba(0, 0, 0, 0.38)
            );
    pointer-events: none;
}

.timeline-cover-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.timeline-cover-placeholder span {
    font-size: 4.5rem;
    color: rgba(216, 173, 95, 0.32);
    text-shadow: 0 14px 42px rgba(0, 0, 0, 0.62);
}

.timeline-card-body {
    padding-top: 18px;
}

.timeline-genre {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(216, 173, 95, 0.22);
    background: rgba(216, 173, 95, 0.08);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(216, 173, 95, 0.88);
}

.timeline-card h3 {
    margin: 16px 0 0;
    min-height: 70px;
    font-size: 1.55rem;
    line-height: 1.08;
    font-weight: 400;
    color: rgba(255, 245, 228, 0.96);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-author {
    margin: 12px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    color: rgba(216, 173, 95, 0.68);
}

.timeline-description {
    margin: 16px 0 0;
    min-height: 68px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(216, 173, 95, 0.42);
    border-radius: 999px;
    background:
            radial-gradient(circle at 40% 30%, rgba(216, 173, 95, 0.18), transparent 42%),
            rgba(5, 9, 13, 0.76);
    color: rgba(255, 230, 184, 0.9);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition:
            border-color 160ms ease,
            background 160ms ease,
            transform 160ms ease;
}

.timeline-arrow:hover {
    border-color: rgba(216, 173, 95, 0.72);
    background: rgba(216, 173, 95, 0.14);
}

.timeline-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.timeline-arrow-left {
    left: -22px;
}

.timeline-arrow-right {
    right: -22px;
}

.timeline-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 18px 0 30px;
    color: rgba(255, 255, 255, 0.42);
}

.timeline-scroll-hint span {
    width: 64px;
    height: 1px;
    background:
            linear-gradient(
                    to right,
                    rgba(216, 173, 95, 0),
                    rgba(216, 173, 95, 0.42),
                    rgba(216, 173, 95, 0)
            );
}

.timeline-scroll-hint p {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
}

.timeline-info-panel {
    position: relative;
    display: flex;
    gap: 18px;
    max-width: 1180px;
    padding: 24px;
    border: 1px solid rgba(216, 173, 95, 0.18);
    background:
            linear-gradient(
                    180deg,
                    rgba(5, 9, 13, 0.62),
                    rgba(5, 9, 13, 0.38)
            );
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.timeline-info-panel::after {
    content: "☸";
    position: absolute;
    right: 30px;
    bottom: -44px;
    font-size: 9rem;
    line-height: 1;
    color: rgba(216, 173, 95, 0.05);
    pointer-events: none;
}

.timeline-info-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(216, 173, 95, 0.46);
    border-radius: 999px;
    color: rgba(216, 173, 95, 0.9);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

.timeline-info-panel h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 400;
    color: rgba(255, 245, 228, 0.92);
}

.timeline-info-panel p {
    margin: 10px 0 0;
    max-width: 860px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.96rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 991.98px) {
    .timeline-hero {
        min-height: 220px;
        padding: 28px;
    }

    .timeline-arrow {
        display: none;
    }

    .timeline-card {
        width: 230px;
        flex-basis: 230px;
    }

    .timeline-card-inner {
        min-height: 440px;
    }
}

@media (max-width: 575.98px) {
    .timeline-hero {
        padding: 24px;
    }

    .timeline-card {
        width: 220px;
        flex-basis: 220px;
    }

    .timeline-cover {
        height: 130px;
    }

    .timeline-scroll-hint {
        align-items: center;
        text-align: center;
    }

    .timeline-scroll-hint span {
        display: none;
    }

    .timeline-info-panel {
        flex-direction: column;
    }
}

.timeline-card-actions {
    margin-top: 18px;
}
/* =========================================================
   EDIT STORY MODAL — Morgantis
   ========================================================= */

.edit-story-modal-dialog {
    width: min(100%, 1080px);
    max-height: 90vh;
    overflow-y: auto;
}

.edit-story-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.edit-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.edit-story-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 22px;
}

.edit-story-fields .story-field:nth-child(4),
.edit-story-fields .edit-cover-field {
    grid-column: 1 / -1;
}

.edit-story-preview {
    padding: 20px;
    border: 1px solid rgba(216, 173, 95, 0.16);
    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.045),
                    rgba(255, 255, 255, 0.018)
            );
}

.edit-story-cover-frame {
    position: relative;
    width: 100%;
    height: 220px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid rgba(216, 173, 95, 0.22);
    background:
            radial-gradient(circle at 50% 24%, rgba(216, 173, 95, 0.2), transparent 42%),
            linear-gradient(180deg, rgba(5, 9, 13, 0.55), rgba(5, 9, 13, 0.95));
}

.edit-story-cover-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-story-cover-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.edit-story-cover-placeholder span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    color: rgba(216, 173, 95, 0.34);
    text-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
}

button.dashboard-mini-button {
    cursor: pointer;
    border-radius: 0;
}

@media (max-width: 991.98px) {
    .edit-story-layout {
        grid-template-columns: 1fr;
    }

    .edit-story-preview {
        max-width: 420px;
    }
}

@media (max-width: 767.98px) {
    .edit-story-fields {
        grid-template-columns: 1fr;
    }

    .morgantis-modal-actions {
        flex-direction: column;
    }

    .morgantis-modal-actions .dashboard-button {
        width: 100%;
    }
}

/* =========================================================
   MEMORY GALLERY — Morgantis
   ========================================================= */

.memory-gallery-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #05090d;
    color: rgba(255, 255, 255, 0.92);
    font-family: Georgia, "Times New Roman", serif;
}

.memory-gallery-bg {
    position: fixed;
    inset: 0;
    z-index: -4;
    background-image: url("/assets/images/gallery/background-gallery.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.memory-gallery-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 48% 34%, rgba(216, 173, 95, 0.12), transparent 34%),
            linear-gradient(180deg, rgba(5, 9, 13, 0.58), rgba(5, 9, 13, 0.88));
}

.memory-gallery-overlays {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.memory-gallery-vignette,
.memory-gallery-grain {
    position: absolute;
    inset: 0;
}

.memory-gallery-vignette {
    background:
            radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.68) 100%),
            linear-gradient(to right, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.38));
}

.memory-gallery-grain {
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.35'/></svg>");
    background-size: 180px 180px;
}

.memory-gallery-shell {
    position: relative;
    min-height: 100vh;
    padding: 40px 56px 64px;
}

.memory-gallery-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.memory-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(216, 173, 95, 0.26);
    background: rgba(5, 9, 13, 0.52);
    color: rgba(255, 235, 202, 0.84);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.94rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition:
            border-color 160ms ease,
            background 160ms ease,
            color 160ms ease,
            transform 160ms ease;
}

.memory-back-button:hover {
    border-color: rgba(216, 173, 95, 0.52);
    background: rgba(216, 173, 95, 0.1);
    color: rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
}

.memory-gallery-title-block {
    width: min(100%, 680px);
    text-align: right;
}

.memory-gallery-title-block h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.94;
    font-weight: 400;
    letter-spacing: 0.035em;
    color: rgba(255, 245, 228, 0.96);
    text-shadow: 0 16px 50px rgba(0, 0, 0, 0.52);
}

.memory-gallery-separator {
    width: 180px;
    height: 1px;
    margin: 24px 0 18px auto;
    background:
            linear-gradient(
                    to left,
                    rgba(216, 173, 95, 0.78),
                    rgba(216, 173, 95, 0)
            );
}

.memory-gallery-title-block p:not(.dashboard-kicker) {
    margin: 0 0 0 auto;
    max-width: 540px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.62);
}

/* Board */
.memory-photo-board {
    position: relative;
    min-height: 760px;
    margin-top: 42px;
}

.memory-photo {
    position: absolute;
    width: 270px;
    padding: 14px 14px 42px;
    background: #f3f0e8;
    box-shadow:
            0 26px 60px rgba(0, 0, 0, 0.38),
            0 1px 0 rgba(255, 255, 255, 0.6) inset;
    border: 1px solid rgba(40, 34, 24, 0.2);
    transition:
            transform 200ms ease,
            box-shadow 200ms ease,
            z-index 200ms ease;
}

.memory-photo:hover {
    z-index: 20;
    box-shadow:
            0 34px 80px rgba(0, 0, 0, 0.5),
            0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.memory-photo-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    border: 1px solid rgba(30, 24, 18, 0.26);
    background:
            linear-gradient(180deg, rgba(215, 240, 250, 0.85), rgba(185, 224, 239, 0.92));
}

.memory-photo-inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
   Posizionamento ispirato alla reference:
   fotografie sparse, ruotate, sovrapposte con aria.
*/

.photo-item-1 {
    left: 4%;
    top: 260px;
    transform: rotate(-24deg);
}

.photo-item-1:hover {
    transform: rotate(-20deg) scale(1.05);
}

.photo-item-2 {
    left: 20%;
    top: 18px;
    width: 300px;
    transform: rotate(36deg);
}

.photo-item-2:hover {
    transform: rotate(32deg) scale(1.05);
}

.photo-item-3 {
    left: 42%;
    top: 36px;
    width: 300px;
    transform: rotate(-18deg);
}

.photo-item-3:hover {
    transform: rotate(-14deg) scale(1.05);
}

.photo-item-4 {
    right: 7%;
    top: 54px;
    width: 290px;
    transform: rotate(-13deg);
}

.photo-item-4:hover {
    transform: rotate(-9deg) scale(1.05);
}

.photo-item-5 {
    left: 29%;
    top: 440px;
    width: 270px;
    transform: rotate(8deg);
}

.photo-item-5:hover {
    transform: rotate(4deg) scale(1.05);
}

.photo-item-6 {
    left: 52%;
    top: 430px;
    width: 265px;
    transform: rotate(-9deg);
}

.photo-item-6:hover {
    transform: rotate(-5deg) scale(1.05);
}

.photo-item-7 {
    right: 10%;
    top: 380px;
    width: 285px;
    transform: rotate(42deg);
}

.photo-item-7:hover {
    transform: rotate(38deg) scale(1.05);
}

@media (max-width: 1199.98px) {
    .memory-photo-board {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        margin-top: 44px;
    }

    .memory-photo {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .photo-item-1,
    .photo-item-2,
    .photo-item-3,
    .photo-item-4,
    .photo-item-5,
    .photo-item-6,
    .photo-item-7 {
        transform: rotate(0deg);
    }

    .photo-item-1:hover,
    .photo-item-2:hover,
    .photo-item-3:hover,
    .photo-item-4:hover,
    .photo-item-5:hover,
    .photo-item-6:hover,
    .photo-item-7:hover {
        transform: scale(1.04);
    }
}

@media (max-width: 767.98px) {
    .memory-gallery-shell {
        padding: 28px 22px 48px;
    }

    .memory-gallery-header {
        flex-direction: column;
    }

    .memory-gallery-title-block {
        text-align: left;
    }

    .memory-gallery-separator {
        margin-left: 0;
        margin-right: 0;
    }

    .memory-gallery-title-block p:not(.dashboard-kicker) {
        margin-left: 0;
    }

    .memory-photo-board {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   MEMORY GALLERY LIGHTBOX — Morgantis
   ========================================================= */

.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
            opacity 220ms ease,
            visibility 220ms ease;
}

.gallery-lightbox.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: zoom-out;
    background:
            radial-gradient(circle at 50% 42%, rgba(216, 173, 95, 0.12), transparent 36%),
            rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    max-height: 88vh;
    transform: translateY(14px) scale(0.96);
    transition: transform 220ms ease;
}

.gallery-lightbox.is-visible .gallery-lightbox-dialog {
    transform: translateY(0) scale(1);
}

.gallery-lightbox-frame {
    position: relative;
    padding: 18px 18px 58px;
    background: #f3f0e8;
    border: 1px solid rgba(40, 34, 24, 0.28);
    box-shadow:
            0 34px 100px rgba(0, 0, 0, 0.72),
            0 1px 0 rgba(255, 255, 255, 0.72) inset;
    transform: rotate(-1.2deg);
}

.gallery-lightbox-frame img {
    display: block;
    width: 100%;
    max-height: calc(88vh - 100px);
    object-fit: contain;
    background: #111;
    border: 1px solid rgba(30, 24, 18, 0.26);
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(216, 173, 95, 0.42);
    border-radius: 999px;
    background:
            radial-gradient(circle at 40% 30%, rgba(216, 173, 95, 0.18), transparent 42%),
            rgba(5, 9, 13, 0.92);
    color: rgba(255, 245, 228, 0.95);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    transition:
            transform 160ms ease,
            border-color 160ms ease,
            background 160ms ease;
}

.gallery-lightbox-close:hover {
    transform: scale(1.04);
    border-color: rgba(216, 173, 95, 0.72);
    background: rgba(216, 173, 95, 0.16);
}

@media (max-width: 767.98px) {
    .gallery-lightbox {
        padding: 18px;
    }

    .gallery-lightbox-frame {
        padding: 12px 12px 42px;
        transform: rotate(0deg);
    }

    .gallery-lightbox-close {
        top: -12px;
        right: -12px;
        width: 42px;
        height: 42px;
    }
}
/* =========================================================
   PRIVACY PAGE — Morgantis
   ========================================================= */

.privacy-shell {
    position: relative;
    min-height: 100vh;
    padding: 48px 24px;
}

.privacy-panel {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid rgba(216, 173, 95, 0.18);
    background:
            linear-gradient(
                    180deg,
                    rgba(5, 9, 13, 0.78),
                    rgba(5, 9, 13, 0.56)
            );
    backdrop-filter: blur(14px);
    box-shadow:
            0 28px 90px rgba(0, 0, 0, 0.44),
            inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.privacy-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 38px;
}

.privacy-title-block {
    max-width: 680px;
    text-align: right;
}

.privacy-title-block h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: 0.035em;
    color: rgba(255, 245, 228, 0.96);
}

.privacy-title-block .dashboard-separator {
    margin-left: auto;
}

.privacy-title-block p:not(.dashboard-kicker) {
    margin: 18px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.62);
}

.privacy-content {
    font-family: Arial, Helvetica, sans-serif;
    color: rgba(255, 255, 255, 0.68);
}

.privacy-content section {
    padding: 26px 0;
    border-top: 1px solid rgba(216, 173, 95, 0.12);
}

.privacy-content h2 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 400;
    color: rgba(255, 245, 228, 0.92);
}

.privacy-content p {
    margin: 0 0 14px;
    font-size: 0.98rem;
    line-height: 1.85;
}

.privacy-content ul {
    margin: 12px 0 18px;
    padding-left: 22px;
}

.privacy-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.privacy-updated {
    margin-bottom: 22px;
    color: rgba(216, 173, 95, 0.78);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.privacy-link {
    color: rgba(216, 173, 95, 0.9);
    text-decoration: none;
}

.privacy-link:hover {
    color: rgba(255, 245, 228, 0.96);
}

.privacy-note {
    color: rgba(255, 206, 128, 0.72);
    font-style: italic;
}

@media (max-width: 767.98px) {
    .privacy-shell {
        padding: 28px 16px;
    }

    .privacy-panel {
        padding: 24px;
    }

    .privacy-header {
        flex-direction: column;
    }

    .privacy-title-block {
        text-align: left;
    }

    .privacy-title-block .dashboard-separator {
        margin-left: 0;
    }
}