:root {
    --bg: #f5f0e8;
    --panel: #ffffff;
    --panel-alt: #181b1f;
    --panel-soft: #f7f4ef;
    --border: #d9d2c7;
    --text: #17191c;
    --muted: #66707a;
    --accent: #dc7500;
    --accent-dark: #b85f00;
    --warning-bg: #fff4dd;
    --warning-border: #f0cf8b;
    --warning-text: #8a5a00;
    --error-bg: #fff1f1;
    --error-border: #e7b4b4;
    --error-text: #9f1f1f;
    --shadow: 0 24px 60px rgba(35, 28, 16, 0.12);
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: "Lato", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(220, 117, 0, 0.12), transparent 30%),
        linear-gradient(180deg, #faf7f2 0%, #f0ebe3 100%);
}

body.page-login,
body.page-forget,
body.page-reset-password,
body.page-change-password,
body.page-dashboard,
body.page-purchases,
body.page-new-offers,
body.page-courses {
    background-image: var(--main-bg, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: rgba(31, 35, 39, 0.06);
    border-radius: 6px;
    padding: 2px 6px;
}

.login-shell,
.dashboard-shell {
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-login-page .card.card-intro {
    background: var(--intro-card-bg, #ffffff) !important;
    box-shadow: 0px 3px 6px var(--topbar-bshadow, rgba(0, 0, 0, 0.12)) !important;
    border-radius: 10px;
    border: none;
}

.client-login-page .card.card-intro input.form-control {
    box-shadow: inset 0px 0px 7px #00000065 !important;
}

.client-login-brand-panel {
    min-height: 560px;
}

.client-fox-logo-wrap {
    width: 273px;
    max-width: 100%;
}

.client-fox-logo-wrap svg,
.client-fox-logo {
    display: block;
    width: 273px;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

.client-top-brand-wrap {
    width: 290px;
    max-width: 100%;
}

.client-top-brand-wrap svg,
.client-top-brand {
    display: block;
    width: 290px;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

.client-login-alert {
    margin: 0 16px 20px;
}

.client-disabled-link {
    display: inline-block;
    margin-top: 6px;
    opacity: 0.72;
    cursor: not-allowed;
}

.client-login-button {
    min-width: 170px;
}

.client-login-note {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.client-login-footer {
    min-height: 48px;
}

body.page-login .client-login-page .text-center,
body.page-login .client-login-page .form-group span,
body.page-login .client-login-page .client-login-note,
body.page-login .client-login-page .client-auth-secondary-note,
body.page-forget .client-login-page .text-center,
body.page-forget .client-login-page .form-group span,
body.page-forget .client-login-page .client-login-note,
body.page-forget .client-login-page .client-auth-secondary-note,
body.page-reset-password .client-login-page .text-center,
body.page-reset-password .client-login-page .form-group span,
body.page-reset-password .client-login-page .client-login-note,
body.page-reset-password .client-login-page .client-auth-secondary-note,
body.page-change-password .client-login-page .text-center,
body.page-change-password .client-login-page .form-group span,
body.page-change-password .client-login-page .client-login-note,
body.page-change-password .client-login-page .client-auth-secondary-note {
    color: var(--text-color) !important;
}

body.page-login .client-login-page .client-form-link,
body.page-forget .client-login-page .client-form-link,
body.page-reset-password .client-login-page .client-form-link,
body.page-change-password .client-login-page .client-form-link {
    color: var(--text-color) !important;
    opacity: 0.95;
    text-decoration: underline;
}

body.page-login .client-login-page .client-login-button,
body.page-forget .client-login-page .client-login-button,
body.page-reset-password .client-login-page .client-login-button,
body.page-change-password .client-login-page .client-login-button {
    min-width: 120px;
}

body.page-login .client-login-page .client-login-alert,
body.page-forget .client-login-page .client-login-alert,
body.page-reset-password .client-login-page .client-login-alert,
body.page-change-password .client-login-page .client-login-alert {
    box-shadow: none !important;
}

.client-auth-secondary-note {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.client-app-shell {
    min-height: 100vh;
}

.client-app-shell > .row {
    flex-wrap: nowrap;
}

.client-menu-side {
    width: 120px;
    min-height: 100vh;
}

.client-main-shell {
    min-height: 100vh;
    width: calc(100% - 120px);
}

.client-sidebar-logo {
    width: 82px;
    height: 82px;
    margin: 25px auto 0;
}

.client-sidebar-logo svg,
.client-sidebar-logo img {
    display: block;
    width: 82px;
    height: 82px;
}

#main_menu .client-menu-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

#main_menu .client-menu-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

#main_menu .client-menu-icon svg path,
#main_menu .client-menu-icon svg g path {
    fill: var(--text-color) !important;
}

#main_menu li:hover .client-menu-icon svg path,
#main_menu li:hover .client-menu-icon svg g path {
    fill: var(--menu-active) !important;
}

#main_menu li.active .client-menu-icon svg path,
#main_menu li.active .client-menu-icon svg g path {
    fill: var(--menu-active) !important;
}

#main_menu .men_txt {
    display: block;
    line-height: 1.15;
}

.client-topbar-shell {
    padding: 0 26px;
}

.client-topbar-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.client-topbar-branding > .brand {
    margin: 0;
    padding-bottom: 0 !important;
}

.client-topbar-actions {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.client-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
}

.client-mobile-header-logo {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.client-mobile-header-logo svg,
.client-mobile-header-logo img {
    width: 42px;
    height: 42px;
    display: block;
}

.client-mobile-nav {
    display: none;
}

.client-mobile-nav-item {
    color: var(--text-color);
    text-decoration: none;
}

.client-mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-mobile-nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.client-mobile-nav-icon svg path,
.client-mobile-nav-icon svg g path {
    fill: var(--text-color) !important;
}

.client-user-menu {
    position: relative;
    margin: 0;
}

.client-user-menu summary {
    list-style: none;
}

.client-user-menu summary::-webkit-details-marker {
    display: none;
}

.client-theme-switcher {
    margin-right: 4px;
    flex: 0 0 auto;
}

.client-theme-switcher label {
    margin: 0;
}

.client-theme-switcher #slider {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#topbar .actions .client-lang-switch label {
    margin: 0 18px 0 0;
    display: block;
    width: 80px;
    height: 36px;
}

#topbar .actions .client-lang-switch .client-lang-select-wrap {
    width: 80px;
    height: 36px;
    position: relative;
    overflow: visible;
}

#topbar .actions .client-lang-switch .custom-select {
    width: 80px !important;
    height: 36px;
    min-height: 36px;
    line-height: 36px;
    padding: 0 12px;
    border-radius: 24px;
    border: none;
    background-color: var(--topbar-element-bg);
    box-shadow: inset 0px 0px 7px var(--topbar-element-bshadow) !important;
    color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    float: none !important;
    font-size: 16px;
    padding-right: 30px;
}

#topbar .actions .client-lang-switch .client-lang-select-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
    opacity: 0.9;
}

.client-user-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.client-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(220, 117, 0, 0.95) 0%, rgba(181, 88, 0, 0.95) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.04em;
    border: 3px solid var(--topbar-avatar-bColor);
}

.client-user-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.8;
}

.client-user-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    padding: 14px;
    border-radius: 14px;
    background: var(--topbar-bg-transp);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.client-user-menu:not([open]) .client-user-menu-dropdown {
    display: none;
}

.client-user-menu-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.client-user-menu-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.client-user-menu-email {
    font-size: 12px;
    opacity: 0.72;
    color: var(--text-color);
    word-break: break-word;
}

.client-user-menu-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.client-user-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.client-topbar-logout-form {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.client-user-menu-logout {
    margin-top: 12px;
    justify-content: stretch;
}

.client-shell-logout-button,
.client-shell-primary-button {
    min-width: 140px;
    border-radius: 8px;
    border: none;
    padding: 10px 18px;
    text-transform: uppercase;
    background-color: var(--bs-orange);
    color: #fff;
    box-shadow: var(--all-offer-view-button-bs) !important;
}

.client-shell-logout-button {
    min-width: 100%;
    padding: 8px 16px;
}

.client-shell-primary-button {
    display: inline-block;
    margin-top: 12px;
}

.client-inline-alert {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 700;
}

.client-inline-alert-error {
    background: rgba(190, 30, 45, 0.14);
    color: #ffb6be;
    border: 1px solid rgba(190, 30, 45, 0.3);
}

.client-inline-alert-success {
    background: rgba(59, 148, 59, 0.14);
    color: #b7efb7;
    border: 1px solid rgba(59, 148, 59, 0.3);
}

.client-stats-row {
    margin: 0 -12px 20px;
    row-gap: 16px;
}

.client-stat-card {
    height: 100%;
    padding: 20px;
    border-radius: 10px;
    background: transparent var(--section-content-bg) 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px var(--all-offer-licked-bs) !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.client-stat-card strong {
    font-size: 28px;
    line-height: 1.2;
}

.client-dashboard-content,
.client-purchases-content {
    padding: 20px;
}

.client-account-content {
    padding: 20px;
}

.client-account-card {
    height: 100%;
    padding: 24px;
    border-radius: 10px;
    background: var(--info-box-bg);
    box-shadow: 0px 3px 6px var(--info-box-bs) !important;
}

.client-account-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.client-account-form .form-group {
    margin-bottom: 16px;
}

.client-account-form label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 700;
}

.client-account-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
    margin: 0;
}

.client-account-form .form-check .form-check-input {
    float: none;
    margin: 2px 0 0 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--text-orange);
    border-radius: 5px;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.client-account-form .form-check .form-check-input:checked {
    border-color: var(--text-orange);
    background-color: var(--text-orange) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2 7.5l3 3L12 3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
}

.client-account-form .form-check .form-check-label {
    margin: 0;
    line-height: 1.45;
    color: var(--text-color);
}

.client-account-submit {
    display: block;
    width: 250px;
    margin: 12px auto 0 !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    white-space: nowrap;
    background-color: var(--bs-orange) !important;
    color: var(--text-inside-bgColored) !important;
    text-transform: uppercase;
    box-shadow: var(--all-offer-view-button-bs) !important;
}

.client-account-submit:hover,
.client-account-submit:focus {
    background-color: #c66800 !important;
    color: var(--text-inside-bgColored) !important;
}

.client-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 20px;
}

.client-dashboard-card {
    padding: 24px;
    border-radius: 10px;
    background: var(--info-box-bg);
    box-shadow: 0px 3px 6px var(--info-box-bs) !important;
}

.client-dashboard-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.client-dashboard-welcome-title {
    color: var(--text-color);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.client-dashboard-card p {
    margin: 0;
    opacity: 0.82;
}

.client-dashboard-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.client-dashboard-shortcuts .client-shell-primary-button {
    margin-top: 0;
    min-width: 155px;
    text-align: center;
}

.client-section-title-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.client-section-title-with-action p {
    margin: 0;
}

.client-dashboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.client-dashboard-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.client-dashboard-list li span {
    opacity: 0.72;
}

.client-empty-state {
    padding: 30px 18px;
    text-align: center;
}

.client-empty-state h3 {
    margin: 0 0 10px;
}

.client-empty-state p {
    margin: 0;
    opacity: 0.75;
}

.client-purchases-table {
    border-collapse: collapse;
    width: 100%;
}

.client-purchases-table th,
.client-purchases-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.client-cancel-cell {
    min-width: 280px;
}

.client-cancel-form {
    margin-top: 10px;
    width: min(320px, 100%);
}

.client-cancel-form label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.client-cancel-reason {
    display: block;
    width: 100%;
    min-height: 92px;
    margin-bottom: 10px;
    padding: 10px 12px;
    resize: vertical;
    border: var(--inputs-border);
    border-radius: 8px;
    background: var(--inputs-bg);
    color: var(--text-color);
    box-shadow: var(--inputs-bs) !important;
}

.client-cancel-reason:focus {
    outline: none;
    background: var(--inputs-bg-focus);
}

.client-cancel-note {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
}

.client-cancel-resend-form {
    margin-top: 10px;
}

.client-modal[hidden] {
    display: none;
}

.client-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.client-modal-open {
    overflow: hidden;
}

.client-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
}

.client-modal-dialog {
    position: relative;
    width: min(440px, 100%);
    padding: 24px;
    border: 1px solid rgba(220, 117, 0, 0.32);
    border-radius: 10px;
    background: var(--info-box-bg);
    color: var(--text-color);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.client-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(220, 117, 0, 0.25);
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.client-modal-close:hover,
.client-modal-close:focus {
    border-color: var(--bs-orange);
    color: var(--bs-orange);
    outline: none;
}

.client-modal-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(220, 117, 0, 0.16);
    color: var(--bs-orange);
    font-size: 24px;
    font-weight: 800;
}

.client-modal-dialog h3 {
    margin: 0 36px 10px 0;
    font-size: 22px;
    line-height: 1.25;
}

.client-modal-dialog p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.82;
    line-height: 1.55;
}

.client-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.client-courses-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
    gap: 20px;
}

.client-course-videos-list {
    border-radius: 10px;
    background: var(--info-box-bg);
    box-shadow: 0px 3px 6px var(--info-box-bs) !important;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 320px;
}

.client-course-video-link {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    color: var(--text-color);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.client-course-video-link:hover {
    border-color: rgba(220, 117, 0, 0.45);
    background: rgba(220, 117, 0, 0.12);
}

.client-course-video-link.is-active {
    border-color: var(--text-orange);
    background: rgba(220, 117, 0, 0.2);
}

.client-course-video-index {
    font-weight: 800;
    opacity: 0.86;
    min-width: 26px;
}

.client-course-video-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.client-course-video-meta strong {
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
}

.client-course-video-meta small {
    opacity: 0.72;
    font-size: 12px;
}

.client-course-player-panel {
    border-radius: 10px;
    background: var(--info-box-bg);
    box-shadow: 0px 3px 6px var(--info-box-bs) !important;
    padding: 20px;
}

.client-course-player-panel h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.client-course-player {
    width: 100%;
    border-radius: 10px;
    background: #000;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.35);
}

.client-course-player-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 13px;
    opacity: 0.85;
}

.client-download-button {
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    background-color: var(--bs-orange) !important;
    color: var(--text-inside-bgColored) !important;
    text-transform: uppercase;
    box-shadow: var(--all-offer-view-button-bs) !important;
}

.client-download-button:hover,
.client-download-button:focus {
    background-color: #c66800 !important;
    color: var(--text-inside-bgColored) !important;
}

.client-secondary-action-button {
    border: 1px solid rgba(220, 117, 0, 0.45);
    border-radius: 8px;
    padding: 6px 14px;
    background: transparent !important;
    color: var(--text-color) !important;
    text-transform: uppercase;
}

.client-secondary-action-button:hover,
.client-secondary-action-button:focus {
    border-color: var(--bs-orange);
    color: var(--bs-orange) !important;
}

.client-offer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.client-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 102px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.client-status-paid {
    background: rgba(59, 148, 59, 0.18);
    color: #549d54;
}

.client-status-pending {
    background: rgba(220, 117, 0, 0.18);
    color: #c9904d;
}

.client-status-failed,
.client-status-cancelled {
    background: rgba(190, 30, 45, 0.18);
    color: #ffb6be;
}

.client-status-refunded,
.client-status-cancel_requested,
.client-status-cancel_email_confirmation_pending {
    background: rgba(46, 166, 221, 0.18);
    color: #9ddfff;
}

@media (max-width: 991px) {
    .client-app-shell > .row {
        flex-wrap: wrap;
    }

    .client-main-shell {
        width: 100%;
    }

    .client-menu-side {
        display: none;
    }

    #content.client-shell-content {
        padding: 0 0 96px;
    }

    .client-section-title-with-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-offer-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-topbar-shell {
        height: auto;
        min-height: 74px;
        padding: 10px 12px;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .client-topbar-branding {
        flex: 1 1 auto;
    }

    .client-topbar-branding .brand {
        align-items: flex-start !important;
    }

    .client-topbar-branding .brandTopbar svg,
    .client-topbar-branding .brandTopbar img {
        width: 150px;
        height: auto;
    }

    .client-topbar-actions {
        width: 100% !important;
        flex: 1 0 100%;
        margin-left: 0;
    }

    .client-topbar-right {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .client-mobile-header-logo {
        display: inline-flex;
        margin-right: auto;
    }

    .client-theme-switcher {
        display: block !important;
        margin-right: 0;
    }

    .client-lang-switch {
        display: block !important;
        position: relative;
        z-index: 25;
    }

    #topbar .actions .client-lang-switch label {
        display: block !important;
        margin-right: 0;
        width: 86px;
        height: 34px;
    }

    #topbar .actions .client-lang-switch .client-lang-select-wrap,
    #topbar .actions .client-lang-switch .custom-select {
        width: 86px !important;
        height: 34px;
        min-height: 34px;
        line-height: 34px;
    }

    #topbar .actions .client-lang-switch .custom-select {
        font-size: 16px;
        padding-left: 10px;
        padding-right: 26px;
        appearance: auto;
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        text-align: left;
        float: none !important;
        border-radius: 24px;
    }

    #topbar .actions .client-lang-switch .client-lang-select-wrap::after {
        display: none;
    }

    #topbar .actions .theme-switcher .switcher-wrapper {
        width: 72px;
        height: 34px;
        margin: 0;
    }

    #topbar .actions .theme-switcher #slider:checked ~ .switcher-wrapper .switcher {
        transform: translate(38px, -50%);
    }

    .client-user-avatar {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .client-user-menu-dropdown {
        width: min(260px, calc(100vw - 24px));
        right: 0;
    }

    .client-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: flex;
        gap: 4px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: var(--topbar-bg-transp);
        border-top: 1px solid var(--separator-color);
        backdrop-filter: blur(8px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .client-mobile-nav-item {
        min-width: 72px;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 4px;
        border-radius: 8px;
        text-align: center;
    }

    .client-mobile-nav-label {
        font-size: 10px;
        line-height: 1.2;
        word-break: break-word;
    }

    .client-mobile-nav-item.is-active {
        background: rgba(220, 117, 0, 0.16);
        color: var(--menu-active);
    }

    .client-mobile-nav-item.is-active .client-mobile-nav-icon svg path,
    .client-mobile-nav-item.is-active .client-mobile-nav-icon svg g path {
        fill: var(--menu-active) !important;
    }

    .client-purchases-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .client-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .client-dashboard-card {
        padding: 18px;
    }

    .client-dashboard-welcome-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .client-purchases-table {
        min-width: 640px;
    }

    .client-courses-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #topbar .theme-switcher.client-theme-switcher,
    #topbar .lang-switch.client-lang-switch {
        display: block !important;
    }
}

.login-container {
    width: 100%;
    max-width: 1140px;
}

.login-card,
.dashboard-card {
    width: 100%;
    background: var(--panel);
    border: 1px solid rgba(18, 18, 18, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.login-card {
    overflow: hidden;
    margin: 16px 0 22px;
}

.login-card-row {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.login-brand-column {
    background: linear-gradient(180deg, #1f2327 0%, #151617 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.34);
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 34px;
}

.login-brand-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 34px;
    text-align: center;
    color: #f6f2eb;
}

.login-brand-mark {
    width: 118px;
    height: 118px;
    border-radius: 32px;
    background: linear-gradient(180deg, #f09a37 0%, #dc7500 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.2);
}

.login-brand-mark span {
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.login-brand-wordmark {
    display: grid;
    gap: 10px;
}

.login-brand-overline,
.dashboard-eyebrow {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d7c8b2;
}

.login-brand-wordmark strong {
    font-size: 28px;
    line-height: 1.2;
    color: #ffffff;
}

.login-form-column {
    padding: 54px 54px 48px;
    background: #ffffff;
}

.login-heading {
    margin: 0 0 38px;
    text-align: center;
    font-size: 31px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.login-form {
    max-width: 420px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 22px;
}

.form-group-password {
    margin-bottom: 40px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-input {
    width: 100%;
    border: 1px solid #d8d1c7;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(220, 117, 0, 0.65);
    box-shadow: 0 0 0 4px rgba(220, 117, 0, 0.14);
    transform: translateY(-1px);
}

.forget-password-link {
    font-size: 13px;
    color: var(--accent);
}

.forget-password-link.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    justify-content: center;
}

.primary-button,
.secondary-button {
    appearance: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    border: 0;
    min-width: 180px;
    background: linear-gradient(180deg, #ec8820 0%, #dc7500 100%);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(220, 117, 0, 0.22);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.primary-button:hover {
    background: linear-gradient(180deg, #f09231 0%, #c96b00 100%);
}

.secondary-button {
    border: 1px solid var(--border);
    background: #f3ece1;
    color: var(--text);
}

.login-helper-text {
    max-width: 460px;
    margin: 26px auto 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.login-footer-note {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 26px;
}

.alert-box {
    max-width: 420px;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 auto 22px;
    border: 1px solid transparent;
    line-height: 1.55;
}

.alert-error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-text);
}

.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-text);
}

.dashboard-shell {
    align-items: flex-start;
}

.dashboard-card {
    max-width: 1100px;
    padding: 30px;
}

.dashboard-topbar {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-topbar h1,
.placeholder-card h2 {
    margin: 0;
    line-height: 1.1;
}

.dashboard-topbar h1 {
    font-size: 36px;
}

.dashboard-logout-form {
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}

.info-card,
.placeholder-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--panel-soft);
    padding: 22px;
}

.info-card {
    display: grid;
    gap: 8px;
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.info-card strong {
    font-size: 18px;
    line-height: 1.4;
}

.placeholder-card p {
    margin: 12px 0 0;
    line-height: 1.7;
    color: var(--muted);
}

@media (max-width: 900px) {
    .client-login-brand-panel {
        min-height: auto;
    }

    .client-fox-logo-wrap {
        width: 180px;
    }

    .client-fox-logo-wrap svg,
    .client-fox-logo {
        width: 180px;
    }

    .client-top-brand-wrap {
        width: 220px;
    }

    .client-top-brand-wrap svg,
    .client-top-brand {
        width: 220px;
    }

    .login-card-row {
        grid-template-columns: 1fr;
    }

    .login-brand-column {
        min-height: auto;
        padding: 34px 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    }

    .login-form-column {
        padding: 38px 28px 34px;
    }

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

@media (max-width: 640px) {
    .login-shell,
    .dashboard-shell {
        padding: 18px;
    }

    .dashboard-card {
        padding: 22px;
    }

    .login-heading,
    .dashboard-topbar h1 {
        font-size: 28px;
    }

    .dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
    }

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