﻿:root {
    --navy: #101c3d;
    --navy-soft: #1b2c54;
    --blue: #4666e5;
    --purple: #7555dd;
    --ink: #17213c;
    --muted: #727b91;
    --surface: #f6f7fb;
    --white: #fff;
    --border: #e8eaf1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(16, 28, 61, 0.07);
    backdrop-filter: blur(14px);
}

.header-inner {
    position: relative;
    display: flex;
    height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* لوگوی بردیا */

.site-header .brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    text-decoration: none;
}

.site-header .brand-mark {
    display: flex;
    width: 40px;
    height: 60px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.site-header .brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.site-header .brand-logo-green {
    fill: #00a66c;
}

.site-header .brand-logo-navy {
    fill: #00545a;
}

.site-header .brand-logo-inner {
    fill: none;
    stroke: #00a66c;
    stroke-width: 14px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header .brand-name {
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #596078;
    font-size: 0.91rem;
    font-weight: 500;
}

.main-nav a {
    position: relative;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav .active {
    color: var(--blue);
}

.main-nav .active::after {
    position: absolute;
    height: 2px;
    inset: auto 18% -12px;
    background: var(--blue);
    border-radius: 5px;
    content: "";
}

.header-action {
    padding: 9px 20px;
    color: var(--blue);
    border: 1px solid #dce2fb;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    transition: 0.2s;
}

.header-action:hover {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #596078;
    font-size: 0.82rem;
}

.account-nav a:hover {
    color: var(--blue);
}

.account-nav form {
    margin: 0;
}

.account-nav button {
    padding: 7px 13px;
    color: #b33a4a;
    background: transparent;
    border: 1px solid #f0d7dc;
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
}

.welcome-text {
    color: var(--navy);
    font-weight: 700;
}

.account-page {
    display: grid;
    min-height: calc(100vh - 150px);
    padding: 55px 20px;
    place-items: center;
}

.account-card {
    width: min(100%, 480px);
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(27, 39, 77, 0.08);
}

.account-card h1 {
    margin: 0 0 6px;
    color: var(--navy);
}

.account-card > p {
    margin: 0 0 25px;
    color: var(--muted);
}

.form-field {
    margin-bottom: 17px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d8dce8;
    border-radius: 10px;
    font: inherit;
}

.account-card form > button {
    width: 100%;
    padding: 11px;
    color: white;
    background: var(--blue);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.errorlist {
    margin: 5px 0;
    padding: 0;
    color: #b4233b;
    list-style: none;
    font-size: 0.82rem;
}

.form-message {
    padding: 9px 12px;
    color: #176b42 !important;
    background: #eaf8f1;
    border-radius: 9px;
}

.back-link {
    display: block;
    margin-top: 18px;
    color: var(--blue);
    text-align: center;
}

.hero {
    position: relative;
    display: grid;
    min-height: 430px;
    overflow: hidden;
    color: white;
    background: var(--navy);
    isolation: isolate;
    place-items: center;
    text-align: center;
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.15;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        );
    background-size: 64px 64px;
    content: "";
    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

.hero-glow {
    position: absolute;
    z-index: -1;
    width: 430px;
    height: 430px;
    opacity: 0.25;
    border-radius: 50%;
    filter: blur(90px);
}

.hero-glow-one {
    top: -210px;
    right: -80px;
    background: #526bea;
}

.hero-glow-two {
    bottom: -300px;
    left: 4%;
    background: #9f4fdd;
}

.hero-content {
    padding-block: 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 13px;
    color: #ccd5ff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 30px;
    font-size: 0.78rem;
}

.eyebrow i {
    width: 7px;
    height: 7px;
    background: #8ba0ff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(139, 160, 255, 0.1);
}

.hero h1 {
    margin: 19px 0 15px;
    font-size: clamp(2.35rem, 5.5vw, 4.35rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.35;
}

.hero h1 strong {
    color: #92a8ff;
    font-weight: 800;
}

.hero p {
    max-width: 670px;
    margin: 0 auto 27px;
    color: #bdc5da;
    font-size: 1.05rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 11px 23px;
    background: linear-gradient(
        135deg,
        #5573ef,
        #7655dc
    );
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(69, 84, 213, 0.3);
    font-size: 0.88rem;
    font-weight: 700;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.hero-button:hover {
    box-shadow: 0 15px 32px rgba(69, 84, 213, 0.45);
    transform: translateY(-2px);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-secondary {
    padding: 10px 22px;
    color: #e6eaff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.36);
}

.videos-section {
    padding: 82px 0 94px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 34px;
}

.section-label {
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.section-heading h2 {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.4;
}

.section-heading p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.video-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 35px rgba(27, 39, 77, 0.055);
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}

.video-card:hover {
    box-shadow: 0 18px 42px rgba(27, 39, 77, 0.12);
    transform: translateY(-6px);
}

.video-frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #19264a,
        #384b83
    );
    aspect-ratio: 16 / 9;
}

.video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 20, 44, 0.28),
        transparent 55%
    );
    content: "";
    pointer-events: none;
}

.missing-file {
    display: grid;
    height: 100%;
    color: #d9dff3;
    justify-items: center;
    place-content: center;
}

.missing-file span {
    font-size: 2.3rem;
    line-height: 1;
}

.missing-file p {
    margin: 8px 0 0;
    font-size: 0.8rem;
}

.card-content {
    padding: 21px 22px 19px;
}

.card-content time {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #9198aa;
    font-size: 0.73rem;
}

.card-content time span {
    color: #738bf0;
    font-size: 0.5rem;
}

.card-content h3 {
    min-height: 59px;
    margin: 8px 0 5px;
    color: var(--navy);
    font-size: 1.08rem;
    line-height: 1.7;
}

.card-content h3 a:hover {
    color: var(--blue);
}

.card-content > p {
    min-height: 52px;
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.9;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #eff0f5;
}

.details-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.file-link {
    color: #969cac;
    font-size: 0.72rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.all-videos-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 0.88rem;
    font-weight: 700;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 68px 24px;
    background: white;
    border: 1px dashed #cfd5e7;
    border-radius: 22px;
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 78px;
    height: 78px;
    margin: 0 auto 19px;
    color: white;
    background: linear-gradient(
        145deg,
        #6079e8,
        #8462dd
    );
    border-radius: 25px;
    box-shadow: 0 13px 30px rgba(90, 91, 216, 0.22);
    place-items: center;
}

.empty-icon span {
    transform: translateX(-2px);
}

.empty-state h3 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

.empty-state a {
    display: inline-block;
    padding: 8px 20px;
    color: var(--blue);
    border: 1px solid #dce2fb;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.page-hero {
    padding: 70px 0 64px;
    color: white;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(117, 85, 221, 0.28),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-soft)
        );
    text-align: center;
}

.page-hero .section-label {
    color: #aebcff;
}

.page-hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.45;
}

.page-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: #bec6dc;
    font-size: 0.95rem;
}

.list-section {
    padding-top: 62px;
}

.about-strip {
    padding: 48px 0;
    color: white;
    background: linear-gradient(
        120deg,
        #263963,
        #151f40
    );
}

/* =========================
   About section
========================= */

.about-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.about-inner div {
    display: flex;
    flex-direction: column;
}

.about-inner strong {
    font-size: 1.25rem;
}

.about-inner span {
    color: #afb9d3;
    font-size: 0.82rem;
}

.about-inner > a {
    padding: 10px 20px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;

    font-size: 0.82rem;
}


/* =========================
   Site footer
========================= */

.site-footer {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    margin-top: 72px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 100% 10%,
            rgba(98, 76, 255, 0.65),
            transparent 30%
        ),
        radial-gradient(
            circle at 0 100%,
            rgba(87, 68, 255, 0.35),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #101d3c,
            #142449 55%,
            #101b39
        );

    border-radius: 34px 34px 0 0;
}

.footer-glow {
    position: absolute;
    z-index: -1;

    width: 330px;
    height: 330px;

    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 50%;

    pointer-events: none;
}

.footer-glow--right {
    top: -190px;
    right: -190px;
}

.footer-glow--left {
    bottom: -240px;
    left: -160px;
}

.footer-container {
    width: min(1180px, 88%);
    margin: 0 auto;
}

.footer-content {
    display: grid;

    grid-template-columns:
        minmax(210px, 0.8fr)
        minmax(350px, 1.5fr)
        minmax(180px, 0.7fr);

    gap: 50px;

    padding: 64px 0 48px;
}

.footer-brand,
.footer-contact {
    padding-left: 42px;

    border-left:
        1px solid
        rgba(255, 255, 255, 0.12);
}

.footer-brand-link {
    display: inline-flex;

    align-items: center;

    gap: 16px;

    color: #ffffff;

    text-decoration: none;
}

.footer-brand-link:hover {
    text-decoration: none;
}

.footer-logo {
    display: block;

    width: 58px;
    height: 92px;

    flex-shrink: 0;
}

.footer-brand-name {
    color: #ffffff;

    font-size: 35px;
    font-weight: 800;
}

.footer-brand-description {
    margin: 14px 0 0;

    color: #b9c3e3;

    font-size: 16px;
    line-height: 1.9;
}

.footer-title {
    position: relative;

    margin: 0 0 30px;
    padding-bottom: 14px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}

.footer-title::after {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 48px;
    height: 3px;

    background: #746cff;

    border-radius: 999px;

    content: "";
}

.footer-contact-list,
.footer-links ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-contact-list {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.footer-contact-list li {
    display: flex;

    align-items: center;

    gap: 13px;

    color: #d9def1;

    font-size: 14px;
    line-height: 2;
}

.footer-contact-list a {
    color: #d9def1;

    text-decoration: none;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

.footer-contact-icon {
    display: inline-flex;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    align-items: center;
    justify-content: center;

    color: #958fff;

    background: rgba(112, 104, 255, 0.12);

    border:
        1px solid
        rgba(145, 138, 255, 0.14);

    border-radius: 12px;
}

.footer-contact-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-links ul {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.footer-links a {
    position: relative;

    display: inline-flex;

    align-items: center;

    padding-right: 18px;

    color: #d9def1;

    text-decoration: none;

    font-size: 14px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a::before {
    position: absolute;

    right: 0;

    color: #8d87ff;

    font-size: 20px;

    content: "‹";
}

.footer-links a:hover {
    color: #ffffff;

    transform: translateX(-4px);
}

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 22px 0;

    color: #aeb8d8;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.12);

    font-size: 13px;
}

.footer-bottom small {
    color: inherit;

    font-size: inherit;
}


/* =========================
   Responsive footer
========================= */

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;

        padding-left: 0;
        padding-bottom: 32px;

        border-left: 0;
        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 650px) {
    .site-footer {
        margin-top: 48px;

        border-radius: 24px 24px 0 0;
    }

    .footer-container {
        width: min(100% - 36px, 520px);
    }

    .footer-content {
        grid-template-columns: 1fr;

        gap: 36px;

        padding-top: 45px;
    }

    .footer-brand,
    .footer-contact {
        padding-left: 0;
        padding-bottom: 30px;

        border-left: 0;
        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.12);
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }
}
.notification-button {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #263454;
    background: #ffffff;
    border: 1px solid #dfe4ef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.35rem;
    place-items: center;
}

.notification-button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 7px;
    height: 7px;
    background: #5368e7;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.account-menu {
    position: relative;
}

.account-menu > summary {
    list-style: none;
}

.account-menu > summary::-webkit-details-marker {
    display: none;
}

.account-trigger {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: #ffffff;
    border: 1px solid #dfe4ef;
    border-radius: 15px;
    cursor: pointer;
    user-select: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.account-trigger:hover {
    border-color: #c6cff6;
    box-shadow: 0 9px 25px rgba(36, 50, 91, 0.08);
    transform: translateY(-1px);
}

.account-menu[open] .account-trigger {
    border-color: #bcc7f7;
    box-shadow: 0 0 0 4px rgba(70, 102, 229, 0.08);
}

.account-trigger-avatar,
.account-dropdown-avatar {
    display: grid;
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #4964e4,
        #7656df
    );
    border-radius: 50%;
    font-weight: 900;
    place-items: center;
}

.account-trigger-avatar {
    width: 39px;
    height: 39px;
    font-size: 0.9rem;
}

.account-trigger-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.5;
}

.account-trigger-info strong {
    overflow: hidden;
    color: #17213c;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-trigger-info small {
    color: #727b91;
    font-size: 0.66rem;
}

.account-chevron {
    color: #7c8599;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.account-menu[open] .account-chevron {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 13px);
    left: 0;
    width: 310px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe4ef;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(25, 38, 77, 0.16);
    animation: account-menu-in 0.18s ease;
}

.account-dropdown::before {
    position: absolute;
    top: -6px;
    left: 34px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid #dfe4ef;
    border-left: 1px solid #dfe4ef;
    content: "";
    transform: rotate(45deg);
}

.account-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 21px 19px;
    border-bottom: 1px solid #e9ecf3;
}

.account-dropdown-avatar {
    width: 53px;
    height: 53px;
    font-size: 1.05rem;
}

.account-dropdown-profile div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.65;
}

.account-dropdown-profile strong {
    overflow: hidden;
    color: #17213c;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown-profile span {
    color: #5368e7;
    font-size: 0.72rem;
    font-weight: 800;
}

.account-dropdown-profile small {
    color: #8991a4;
    direction: ltr;
    font-size: 0.67rem;
    text-align: right;
}

.account-menu-links {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.account-menu-links a,
.account-menu-disabled {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    color: #34405c;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.78rem;
    text-align: right;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.account-menu-links a:hover {
    color: #4666e5;
    background: #f3f5ff;
}

.account-link-icon {
    display: grid;
    width: 30px;
    height: 30px;
    color: #5267df;
    background: #f0f2ff;
    border-radius: 8px;
    font-size: 0.9rem;
    place-items: center;
}

.account-menu-disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.account-menu-disabled small {
    margin-right: auto;
    padding: 2px 7px;
    color: #7c8497;
    background: #eef0f5;
    border-radius: 999px;
    font-size: 0.6rem;
}

.account-logout-form {
    margin: 0;
    padding: 10px;
    border-top: 1px solid #e9ecf3;
}

.account-logout-form button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    color: #c5364d;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.account-logout-form button:hover {
    background: #fff1f3;
}

.header-register {
    color: #596078;
    font-size: 0.8rem;
    font-weight: 700;
}

.header-register:hover {
    color: #4666e5;
}

.mobile-menu {
    position: relative;
    display: none;
}

.mobile-menu > summary {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #dfe4ef;
    border-radius: 11px;
    cursor: pointer;
    list-style: none;
}

.mobile-menu > summary::-webkit-details-marker {
    display: none;
}

.mobile-menu > summary span {
    width: 17px;
    height: 2px;
    background: #293653;
    border-radius: 5px;
}

.mobile-menu nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: flex;
    width: 220px;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dfe4ef;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(25, 38, 77, 0.14);
}

.mobile-menu nav a {
    padding: 9px 11px;
    color: #46516b;
    border-radius: 8px;
    font-size: 0.78rem;
}

.mobile-menu nav a:hover {
    color: #4666e5;
    background: #f3f5ff;
}

@keyframes account-menu-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-profile-image {
    display: block;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    border: 2px solid #e6e9f5;
    border-radius: 50%;
}

.header-profile-fallback {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #4964e4,
        #7656df
    );
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 900;
    place-items: center;
}

.site-messages {
    position: fixed;
    z-index: 200;
    top: 90px;
    left: 50%;
    display: grid;
    width: min(560px, calc(100% - 32px));
    gap: 10px;
    transform: translateX(-50%);
}

.site-message {
    padding: 12px 16px;
    color: #253252;
    background: #fff;
    border: 1px solid #dce2fb;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(24, 37, 75, 0.14);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.site-message-success {
    color: #176b42;
    background: #eefaf4;
    border-color: #cfe8dc;
}

.site-message-error {
    color: #a92e45;
    background: #fff3f5;
    border-color: #f0cfd5;
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        height: auto;
        min-height: 70px;
        flex-wrap: nowrap;
        padding-block: 8px;
    }

    .header-action {
        padding: 7px 13px;
        font-size: 0.75rem;
    }

    .site-header .brand {
        gap: 7px;
    }

    .site-header .brand-mark {
        width: 32px;
        height: 48px;
        flex-basis: 32px;
    }

    .site-header .brand-name {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 470px;
    }

    .hero-content {
        padding-block: 57px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 0.88rem;
        line-height: 2;
    }

    .hero-button {
        padding: 10px 19px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-button,
    .hero-secondary {
        width: min(100%, 245px);
        justify-content: center;
    }

    .videos-section {
        padding: 58px 0 65px;
    }

    .section-heading {
        display: block;
        margin-bottom: 25px;
    }

    .section-heading p {
        margin-top: 9px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .card-content h3,
    .card-content > p {
        min-height: auto;
    }

    .about-inner {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .about-inner > a {
        align-self: center;
    }



    .account-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .welcome-text {
        width: 100%;
        text-align: center;
    }

    .account-card {
        padding: 25px 20px;
    }

    .all-videos-link {
        margin-top: 12px;
    }

    .page-hero {
        padding: 52px 0 48px;
    }

    .account-trigger {
        min-width: auto;
        padding: 5px;
    }

    .account-trigger-info,
    .account-chevron {
        display: none;
    }

    .account-trigger-avatar {
        width: 38px;
        height: 38px;
    }

    .notification-button {
        display: none;
    }

    .account-dropdown {
        position: fixed;
        top: 78px;
        right: 14px;
        left: 14px;
        width: auto;
    }

    .account-dropdown::before {
        display: none;
    }

    .header-register {
        display: none;
    }

    .site-messages {
        top: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

    .account-dropdown {
        animation: none;
    }
}
body > .site-messages {
    position: static !important;
    z-index: auto;
    display: block;
    width: min(700px, calc(100% - 32px));
    margin: 18px auto 26px !important;
    transform: none !important;
}
body > .site-messages + main {
    margin-top: 0 !important;
}
.site-message {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid #cce9d8;
    border-radius: 14px;
    color: #197143;
    background: #ebfaf2;
    box-shadow: 0 10px 30px rgba(28, 70, 49, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.site-message + .site-message {
    margin-top: 10px;
}

.site-message--error {
    border-color: #f0c6cc;
    color: #b52f45;
    background: #fff1f3;
}

.site-message--warning {
    border-color: #f2dfab;
    color: #8b6500;
    background: #fff9e8;
}

.site-message--info {
    border-color: #c9dcf4;
    color: #295f9d;
    background: #eef6ff;
}

.site-message__text {
    flex: 1;
    line-height: 1.8;
}

.site-message__close {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: currentColor;
    background: transparent;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.site-message__close:hover {
    background: rgba(0, 0, 0, 0.07);
    opacity: 1;
}

.site-message__close:focus-visible {
    outline: 3px solid rgba(83, 97, 238, 0.22);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .site-messages {
        width: calc(100% - 24px);
    }

    .site-message {
        padding: 12px 14px;
        font-size: 13px;
    }
}