:root {
    --ink: #f6f2eb;
    --muted: #ddd1c4;
    --bg: #110e0d;
    --bg-alt: #181311;
    --border: rgba(255, 243, 230, 0.09);

    --primary: #1048db;
    --primary-2: #f8f4ee;
    --primary-hi: #2c6dff;
    --accent: #8f684e;
    --accent-2: #4f382c;
    --danger: #dc2626;
    --success: #16a34a;
    --primary-rgb: 16, 72, 219;
    --primary-hi-rgb: 44, 109, 255;
    --accent-rgb: 143, 104, 78;
    --accent2-rgb: 79, 56, 44;
    --field-bg: linear-gradient(180deg, rgba(32, 25, 22, 0.98), rgba(18, 15, 13, 0.98));
    --field-border: rgba(255, 243, 230, 0.14);
    --field-text: #f6f2eb;
    --field-placeholder: #bca99a;

    --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-head: 'Newsreader', ui-serif, Georgia, serif;

    --radius: 20px;
    --shadow: 0 22px 54px rgba(2, 6, 23, 0.10);
    --max: 1140px;
    --header-h: 82px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.018) 1px, transparent 0),
        radial-gradient(1050px 680px at 18% -10%, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0) 58%),
        radial-gradient(780px 460px at 88% 10%, rgba(var(--accent2-rgb), 0.20) 0%, rgba(var(--accent2-rgb), 0) 62%),
        radial-gradient(820px 560px at 72% 108%, rgba(var(--primary-rgb), 0.14) 0%, rgba(var(--primary-rgb), 0) 58%),
        linear-gradient(180deg, #110e0d 0%, #171311 56%, #120f0e 100%);
    background-size: 28px 28px, auto, auto, auto, auto;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.site-theme-luxury {
    --muted: #e0d0c1;
    --bg: #140f0d;
    --bg-alt: #1c1412;
    --border: rgba(255, 243, 230, 0.11);
    --accent: #a5795a;
    --accent-2: #674636;
    --accent-rgb: 165, 121, 90;
    --accent2-rgb: 103, 70, 54;
    --field-bg: linear-gradient(180deg, rgba(37, 28, 24, 0.98), rgba(20, 15, 14, 0.98));
    --field-border: rgba(255, 243, 230, 0.16);
    --field-text: #f7efe6;
    --field-placeholder: #c8b09e;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.022) 1px, transparent 0),
        radial-gradient(1200px 760px at 18% -12%, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0) 58%),
        radial-gradient(820px 500px at 88% 10%, rgba(var(--accent2-rgb), 0.28) 0%, rgba(var(--accent2-rgb), 0) 62%),
        radial-gradient(820px 560px at 72% 108%, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--primary-rgb), 0) 58%),
        linear-gradient(180deg, #140f0d 0%, #1c1412 56%, #120f0e 100%);
}

body.site-theme-luxury .site-header {
    background: rgba(22, 16, 14, 0.88);
}

body.site-theme-luxury .brand-mark {
    background: linear-gradient(180deg, rgba(46, 33, 27, 0.97), rgba(22, 17, 15, 0.97));
}

body.site-theme-luxury .brand-mark::before {
    opacity: 0.30;
}

body.site-theme-luxury .nav {
    background: rgba(40, 29, 24, 0.80);
}

body.site-theme-luxury .nav-menu,
body.site-theme-luxury .mobile-toggle {
    background: rgba(30, 22, 19, 0.96);
}

body.site-theme-luxury .hero-card {
    background: linear-gradient(180deg, rgba(43, 31, 26, 0.95) 0%, rgba(20, 15, 14, 0.94) 100%);
}

body.site-theme-luxury .hero-card::before {
    background:
        radial-gradient(620px 260px at 8% 8%, rgba(var(--accent-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0) 60%),
        radial-gradient(500px 220px at 96% 20%, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--primary-rgb), 0) 60%);
    opacity: 0.78;
}

body.site-theme-luxury .card {
    background: linear-gradient(180deg, rgba(42, 31, 26, 0.92) 0%, rgba(19, 15, 14, 0.90) 100%);
}

body.site-theme-luxury .promo-course-card {
    background: linear-gradient(165deg, rgba(52, 37, 30, 0.96) 0%, rgba(20, 15, 14, 0.92) 100%);
}

body.site-theme-luxury .subnav {
    background: rgba(38, 28, 24, 0.84);
}

body.site-theme-luxury .site-footer {
    background: rgba(16, 12, 11, 0.94);
}

body.site-theme-corporate {
    --ink: #20314a;
    --muted: #5e6f86;
    --bg: #dde4ef;
    --bg-alt: #e8eef7;
    --border: rgba(23, 43, 76, 0.14);
    --primary: #2c4e80;
    --primary-hi: #3f628f;
    --primary-rgb: 44, 78, 128;
    --primary-hi-rgb: 63, 98, 143;
    --primary-2: #1847b0;
    --accent: #9a7a61;
    --accent-2: #6e5342;
    --accent-rgb: 154, 122, 97;
    --accent2-rgb: 110, 83, 66;
    --field-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 253, 0.98));
    --field-border: rgba(114, 138, 179, 0.34);
    --field-text: #21324a;
    --field-placeholder: #7c8da8;
    color-scheme: light;
    background:
        radial-gradient(circle at 1px 1px, rgba(18, 33, 58, 0.02) 1px, transparent 0),
        radial-gradient(1050px 680px at 16% -12%, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0) 58%),
        radial-gradient(760px 460px at 90% 8%, rgba(120, 148, 201, 0.19) 0%, rgba(120, 148, 201, 0) 62%),
        radial-gradient(840px 560px at 76% 108%, rgba(var(--primary-rgb), 0.14) 0%, rgba(var(--primary-rgb), 0) 58%),
        linear-gradient(180deg, #dbe2ee 0%, #e3e9f4 56%, #d8e0eb 100%);
    background-size: 30px 30px, auto, auto, auto, auto;
    animation: cga-corporate-dance 24s ease-in-out infinite alternate;
}

body.site-theme-corporate .site-header {
    background: rgba(236, 242, 250, 0.90);
    position: sticky;
    overflow: visible;
}

body.site-theme-corporate .site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(var(--primary-rgb), 0.86),
        rgba(var(--accent-rgb), 0.88),
        rgba(205, 95, 90, 0.84),
        rgba(var(--primary-rgb), 0.86));
    background-size: 220% 100%;
    animation: cga-ribbon 9s linear infinite;
    pointer-events: none;
}

body.site-theme-corporate .brand-mark {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 253, 0.96));
}

body.site-theme-corporate .brand-mark::before {
    opacity: 0.18;
}

body.site-theme-corporate .brand-text strong {
    color: #1c2f48;
}

body.site-theme-corporate .brand-text span {
    color: #667993;
}

body.site-theme-corporate .nav {
    background: rgba(223, 232, 245, 0.90);
}

body.site-theme-corporate .nav a,
body.site-theme-corporate .nav summary {
    color: #344a6a;
}

body.site-theme-corporate .nav a.active,
body.site-theme-corporate .nav-drop.is-active > summary {
    color: #ffffff;
    background: linear-gradient(100deg, rgba(44, 78, 128, 0.96), rgba(63, 98, 143, 0.94), rgba(160, 112, 74, 0.90));
    border: 1px solid rgba(78, 115, 164, 0.34);
    box-shadow: 0 10px 20px rgba(44, 78, 128, 0.22);
}

body.site-theme-corporate .nav a:hover,
body.site-theme-corporate .nav summary:hover {
    color: #153f93;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.14), rgba(var(--primary-rgb), 0.08));
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.16);
}

body.site-theme-corporate .nav-menu,
body.site-theme-corporate .mobile-toggle {
    background: rgba(236, 243, 251, 0.97);
    color: #28456d;
}

body.site-theme-corporate .hero-card {
    background:
        linear-gradient(180deg, rgba(244, 248, 253, 0.97) 0%, rgba(230, 238, 249, 0.96) 100%),
        linear-gradient(120deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.06));
}

body.site-theme-corporate .hero-card::before {
    background:
        radial-gradient(620px 260px at 8% 8%, rgba(var(--accent-rgb), 0.10) 0%, rgba(var(--accent-rgb), 0) 60%),
        radial-gradient(500px 220px at 96% 20%, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--primary-rgb), 0) 60%);
    opacity: 0.72;
}

body.site-theme-corporate .hero-card h1 {
    color: #1b2f4a;
    text-decoration-color: rgba(var(--primary-rgb), 0.26);
}

body.site-theme-corporate .badge {
    color: #244475;
    border-color: rgba(var(--primary-rgb), 0.24);
    background: rgba(var(--primary-rgb), 0.10);
}

body.site-theme-corporate .card {
    background:
        linear-gradient(180deg, rgba(246, 250, 254, 0.96) 0%, rgba(226, 235, 246, 0.94) 100%),
        linear-gradient(120deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.06));
    border-color: rgba(52, 83, 126, 0.20);
}

body.site-theme-corporate .card:hover {
    border-color: rgba(154, 122, 97, 0.34);
    box-shadow: 0 22px 38px rgba(41, 62, 95, 0.16);
}

body.site-theme-corporate .promo-course-card {
    background: linear-gradient(165deg, rgba(241, 247, 254, 0.97) 0%, rgba(223, 233, 246, 0.95) 100%);
}

body.site-theme-corporate .subnav {
    background: rgba(224, 233, 246, 0.92);
}

body.site-theme-corporate .site-footer {
    background: rgba(212, 223, 238, 0.94);
}

body.site-theme-corporate .section-head {
    color: #213553;
}

body.site-theme-corporate .btn-outline {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(var(--primary-rgb), 0.24);
    color: #1b4295;
}

body.site-theme-corporate .btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.10);
    border-color: rgba(var(--primary-rgb), 0.34);
    color: #123981;
}

body.site-theme-corporate .btn-primary,
body.site-theme-corporate .header-cta {
    background: linear-gradient(105deg, #2c4e80 0%, #406da8 46%, #b67644 100%);
    background-size: 200% 200%;
    animation: cga-cta-shift 8s ease infinite;
    box-shadow: 0 14px 30px rgba(44, 78, 128, 0.26);
}

body.site-theme-corporate .btn-primary:hover,
body.site-theme-corporate .header-cta:hover {
    box-shadow: 0 18px 36px rgba(44, 78, 128, 0.32);
}

body.site-theme-corporate .gogas-fab {
    border-color: rgba(90, 119, 156, 0.34);
    background: linear-gradient(135deg, rgba(105, 136, 173, 0.96), rgba(134, 161, 195, 0.94));
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(57, 84, 122, 0.26);
}

body.site-theme-corporate .gogas-fab:hover {
    box-shadow: 0 22px 40px rgba(57, 84, 122, 0.32);
}

body.site-theme-corporate .gogas-fab-icon,
body.site-theme-corporate .gogas-avatar {
    background: rgba(255, 255, 255, 0.30);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body.site-theme-corporate .gogas-nudge {
    border-color: rgba(90, 119, 156, 0.24);
    background: rgba(248, 251, 255, 0.97);
    color: #2a3c56;
    box-shadow: 0 18px 34px rgba(51, 74, 107, 0.16);
}

body.site-theme-corporate .gogas-nudge-badge {
    background: rgba(82, 113, 153, 0.12);
    color: #2b4a76;
}

body.site-theme-corporate .gogas-panel {
    border-color: rgba(91, 120, 156, 0.24);
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.98) 0%, rgba(241, 247, 253, 0.98) 100%);
    box-shadow: 0 24px 46px rgba(45, 67, 100, 0.20);
}

body.site-theme-corporate .gogas-panel-head {
    border-bottom-color: rgba(91, 120, 156, 0.16);
    background:
        radial-gradient(180px 96px at 8% 0%, rgba(114, 147, 189, 0.24) 0%, rgba(114, 147, 189, 0) 100%),
        linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(236, 244, 252, 0.98));
}

body.site-theme-corporate .gogas-panel-brand strong {
    color: #1f3452;
}

body.site-theme-corporate .gogas-panel-brand span:last-child {
    color: #6b7f9a;
}

body.site-theme-corporate .gogas-close {
    border-color: rgba(91, 120, 156, 0.20);
    background: rgba(255, 255, 255, 0.88);
    color: #2f4f79;
}

body.site-theme-corporate .gogas-message-bot {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(91, 120, 156, 0.18);
    color: #2a3e5c;
    box-shadow: 0 10px 22px rgba(52, 76, 112, 0.12);
}

body.site-theme-corporate .gogas-message-user {
    background: linear-gradient(135deg, rgba(129, 154, 186, 0.96), rgba(162, 181, 206, 0.94));
    color: #16314f;
    box-shadow: 0 10px 22px rgba(52, 76, 112, 0.18);
}

body.site-theme-corporate .gogas-link,
body.site-theme-corporate .gogas-chip {
    border-color: rgba(91, 120, 156, 0.22);
    background: rgba(255, 255, 255, 0.80);
    color: #2f4d77;
}

body.site-theme-corporate .gogas-link:hover,
body.site-theme-corporate .gogas-chip:hover {
    background: rgba(110, 142, 179, 0.14);
    color: #23436f;
}

body.site-theme-corporate .gogas-form textarea {
    border-color: rgba(91, 120, 156, 0.24);
    background: rgba(255, 255, 255, 0.98);
    color: #223650;
}

body.site-theme-corporate .gogas-form textarea::placeholder {
    color: #7b8ea9;
}

body.site-theme-corporate .gogas-send.btn-primary {
    background: linear-gradient(100deg, #6f90b8 0%, #8ca7c6 60%, #b48a61 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(68, 96, 136, 0.22);
}

body.site-theme-corporate .gogas-send.btn-primary:hover {
    box-shadow: 0 15px 28px rgba(68, 96, 136, 0.28);
}

@keyframes cga-corporate-dance {
    0% {
        background-position: 0 0, 16% -12%, 90% 8%, 76% 108%, 0 0;
    }
    50% {
        background-position: 14px 14px, 20% -8%, 84% 14%, 70% 102%, 0 0;
    }
    100% {
        background-position: 26px 26px, 24% -10%, 88% 6%, 74% 106%, 0 0;
    }
}

@keyframes cga-ribbon {
    from { background-position: 0% 0; }
    to { background-position: 220% 0; }
}

@keyframes cga-cta-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    body.site-theme-corporate {
        animation: none;
    }

    body.site-theme-corporate .site-header::after,
    body.site-theme-corporate .btn-primary,
    body.site-theme-corporate .header-cta {
        animation: none;
    }
}

::selection {
    background: rgba(var(--accent-rgb), 0.22);
}

@media (prefers-reduced-motion: no-preference) {
    .site-header { animation: cga-fade 520ms ease both; }
    .hero-card { animation: cga-rise 720ms cubic-bezier(0.16, 1, 0.30, 1) both; }
    .hero-grid > .hero-card:nth-child(2) { animation-delay: 90ms; }
}

@keyframes cga-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cga-rise {
    from { opacity: 0; transform: translateY(10px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
a:hover { color: var(--primary-2); }

.brand,
.btn,
.nav a,
.subnav a,
.pill,
.tag,
.lms-lesson-link {
    text-decoration: none;
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.45);
    outline-offset: 2px;
}

form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]),
form select,
form textarea {
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--field-text);
    caret-color: var(--field-text);
}

form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):focus,
form select:focus,
form textarea:focus {
    border-color: rgba(var(--primary-rgb), 0.55);
    box-shadow: 0 0 0 4px rgba(var(--primary-hi-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"])::placeholder,
form textarea::placeholder {
    color: var(--field-placeholder);
    opacity: 1;
}

form input[type="file"] {
    color: var(--field-placeholder);
}

form input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.24);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.98), rgba(var(--primary-hi-rgb), 0.96));
    color: #ffffff;
    border-radius: 12px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
}

form input[type="file"]::file-selector-button:hover {
    filter: brightness(1.08);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.12em 0.38em;
    border-radius: 10px;
}

pre.codeblock code {
    background: transparent;
    border: 0;
    padding: 0;
}

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(17, 14, 13, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -60px;
    z-index: 100;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.10);
    font-weight: 900;
}

.skip-link:focus { top: 12px; }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(33, 25, 22, 0.96), rgba(18, 15, 13, 0.96));
    border: 1px solid rgba(255, 243, 230, 0.08);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    display: grid;
    place-items: center;
    padding: 6px;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 210deg, rgba(var(--primary-rgb), 0.84), rgba(var(--accent-rgb), 0.72), rgba(var(--primary-hi-rgb), 0.74), rgba(var(--accent2-rgb), 0.64), rgba(var(--primary-rgb), 0.84));
    opacity: 0.22;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
}

.brand-text {
    display: grid;
    gap: 4px;
    min-width: 0;
    text-align: left;
}

.brand-text strong {
    font-family: var(--font-head);
    letter-spacing: -0.015em;
    font-size: 1.12rem;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text span {
    font-size: 0.78rem;
    color: rgba(240, 229, 218, 0.72);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 243, 230, 0.08);
    background: rgba(30, 24, 21, 0.78);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.nav a,
.nav summary {
    color: rgba(247, 240, 232, 0.82);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    cursor: pointer;
}

.nav summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.nav summary::-webkit-details-marker { display: none; }

.nav a:hover,
.nav summary:hover {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.10));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.18);
}

.nav a.active,
.nav-drop.is-active > summary {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.95), rgba(var(--primary-hi-rgb), 0.92));
    border: 1px solid rgba(114, 160, 255, 0.34);
    box-shadow: 0 12px 24px rgba(16, 72, 219, 0.24);
}

.nav-drop {
    position: relative;
}

.nav-drop > summary::after {
    content: '▾';
    margin-left: 8px;
    font-size: 0.82rem;
    color: rgba(240, 229, 218, 0.78);
    transition: transform 150ms ease;
    display: inline-block;
}

.nav-drop[open] > summary::after { transform: rotate(-180deg); }

.nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 243, 230, 0.10);
    background: rgba(24, 19, 17, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 6px;
}

.nav-drop-right .nav-menu {
    left: auto;
    right: 0;
}

.nav-menu a {
    padding: 10px 12px;
    border-radius: 12px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    background: linear-gradient(135deg, #0d46d9 0%, #1d63ff 100%);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(13, 70, 217, 0.28);
}

.header-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(13, 70, 217, 0.36);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(24, 19, 17, 0.94);
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    grid-template-rows: repeat(3, 2px);
    gap: 5px;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
    text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(90deg, #0d46d9 0%, #1d63ff 100%);
    background-size: 140% 100%;
    background-position: 0% 0%;
    color: #fff;
    box-shadow: 0 18px 40px rgba(13, 70, 217, 0.34);
}

.btn-primary:hover { box-shadow: 0 22px 52px rgba(13, 70, 217, 0.42); background-position: 100% 0%; }

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(114, 160, 255, 0.26);
    color: #f9f6f1;
}

.btn-outline:hover {
    border-color: rgba(114, 160, 255, 0.40);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    background: rgba(var(--primary-rgb), 0.12);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.28);
    color: #991b1b;
}

.btn-sm {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.page {
    padding: 36px 0 64px 0;
}

.hero {
    padding: 44px 0 24px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 22px;
    align-items: start;
}

.hero-main-card {
    padding: 24px;
}

.hero-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(250px, 0.78fr);
    gap: 24px;
    align-items: stretch;
}

.hero-main-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-main-copy .lead {
    max-width: 34ch;
}

.hero-main-visual {
    position: relative;
    min-height: 390px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(16, 22, 40, 0.12)),
        radial-gradient(circle at top, rgba(var(--primary-rgb), 0.20), rgba(var(--primary-rgb), 0) 56%),
        rgba(14, 16, 24, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 48px rgba(2, 6, 23, 0.24);
}

.hero-main-visual::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 26%;
    background: linear-gradient(180deg, rgba(12, 16, 28, 0), rgba(12, 16, 28, 0.48));
    pointer-events: none;
}

.hero-main-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(1.02) contrast(1.04);
}

.hero-main-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
}

.hero-main-placeholder img {
    justify-self: center;
    filter: drop-shadow(0 16px 22px rgba(13, 70, 217, 0.22));
}

.hero-main-placeholder strong {
    font-family: var(--font-head);
    font-size: 1.2rem;
}

.hero-main-placeholder span {
    max-width: 22ch;
    line-height: 1.6;
    color: rgba(245, 247, 255, 0.74);
}

.hero-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(34, 27, 24, 0.95) 0%, rgba(17, 14, 13, 0.94) 100%);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
    padding: 22px;
    overflow: hidden;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 260px at 8% 8%, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0) 60%),
        radial-gradient(500px 220px at 96% 20%, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--primary-rgb), 0) 60%);
    opacity: 0.72;
    pointer-events: none;
}

.hero-card > * { position: relative; }

.hero-card h1 {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(var(--primary-rgb), 0.34);
    text-decoration-thickness: 0.18em;
    text-underline-offset: 0.17em;
    text-decoration-skip-ink: none;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-optical-sizing: auto;
    margin: 0;
    line-height: 1.34;
    letter-spacing: 0.002em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

h1 { font-size: clamp(1.45rem, 2.35vw, 2.18rem); font-weight: 760; text-wrap: balance; }
h2 { font-size: clamp(1.06rem, 1.75vw, 1.55rem); font-weight: 740; text-wrap: balance; }
h3 { font-size: 1.02rem; font-weight: 720; }

.lead {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 65ch;
    margin-top: 10px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prose {
    max-width: 78ch;
    font-size: 1.02rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prose p { margin: 0 0 1em 0; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 1.1em 0 0.55em 0; }
.prose h3 { margin: 1.0em 0 0.5em 0; }
.prose ul { margin: 0 0 1em 1.1em; padding: 0; color: var(--ink); }
.prose li { margin: 0.35em 0; overflow-wrap: anywhere; word-break: break-word; }

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hero-meta {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.26);
    background: rgba(var(--primary-rgb), 0.16);
    color: #f5f9ff;
    font-weight: 800;
    font-size: 0.84rem;
}

.badge + h1,
.badge + h2 {
    margin-top: 10px;
}

.grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

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

.admin-course-grid {
    grid-template-columns: 1fr;
}

/* Admin > Configurações: give the plans table more room than the "Novo plano" card. */
.grid.grid-portal-plans {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
}

.admin-course-modules table th:nth-child(1),
.admin-course-modules table td:nth-child(1) {
    width: 70px;
    white-space: nowrap;
}

.admin-course-modules table th:nth-child(3),
.admin-course-modules table td:nth-child(3) {
    width: 88px;
    white-space: nowrap;
}

.admin-course-modules table th:nth-child(4),
.admin-course-modules table td:nth-child(4) {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.partners-section .hint { max-width: 90ch; margin-top: 4px; }

.partners-track {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px 2px;
    scroll-snap-type: x mandatory;
}

.partners-track .partner-badge { display: none; }

.partners-track.is-marquee {
    display: block;
    overflow: hidden;
    scroll-snap-type: none;
}

.partners-track.is-marquee .partners-track-inner {
    display: flex;
    gap: 12px;
    width: max-content;
    will-change: transform;
    animation: partners-marquee var(--marquee-duration, 32s) linear infinite;
}

.partners-track.is-marquee:hover .partners-track-inner,
.partners-track.is-marquee:focus-within .partners-track-inner {
    animation-play-state: paused;
}

@keyframes partners-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--marquee-cycle, 600px))); }
}

.partner-item {
    flex: 0 0 200px;
    scroll-snap-align: start;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.07);
    padding: 14px 14px;
    min-height: 86px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.partner-item img {
    width: 100%;
    height: 44px;
    object-fit: contain;
}

.partner-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    background: rgba(var(--accent-rgb), 0.12);
    color: #7a2f0a;
    font-weight: 900;
    font-size: 0.72rem;
}

.partner-fallback {
    font-family: var(--font-head);
    font-weight: 900;
    color: var(--primary-2);
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.partner-hover {
    position: absolute;
    inset: 0;
    padding: 12px;
    display: grid;
    align-content: end;
    gap: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.94) 72%),
        radial-gradient(600px 260px at 10% 10%, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0) 60%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.partner-name {
    margin: 0;
    font-weight: 900;
    color: var(--primary-2);
    font-size: 0.92rem;
}

.partner-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.partner-item:hover,
.partner-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(2, 6, 23, 0.10);
    border-color: rgba(7, 42, 64, 0.18);
}

.partner-item:hover .partner-hover,
.partner-item:focus-visible .partner-hover {
    opacity: 1;
    transform: translateY(0);
}

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

.partner-card { padding: 18px; }

.partner-card-top {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.partner-logo {
    width: 110px;
    height: 84px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 12px 22px rgba(2, 6, 23, 0.06);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 9px;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-card h3 { margin-top: 2px; }
.partner-card .tags { margin-top: 8px; }
.partner-card .hero-actions { margin-top: 14px; }

.partner-timeline {
    display: grid;
    gap: 12px;
}

.partner-year {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.06);
}

.partner-year-label {
    font-family: var(--font-head);
    font-weight: 900;
    color: var(--primary-2);
    letter-spacing: -0.01em;
    font-size: 1.06rem;
}

.partner-year-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.partner-cta .lead { margin-top: 10px; }

.partners-mini {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 8px 0 0 0;
}

.partners-mini.partners-mini-lg { gap: 10px; }

.partners-mini.partners-mini-lg .partner-mini {
    width: 96px;
    height: 56px;
    border-radius: 16px;
}

.partners-mini.partners-mini-lg .partner-mini img {
    padding: 8px;
}

.partner-mini {
    width: 44px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.90);
    display: grid;
    place-items: center;
    overflow: hidden;
    text-decoration: none;
    color: var(--primary-2);
    font-weight: 900;
}

.partner-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.stack {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

.publication-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.publication-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.meta-pills .pill { margin: 0; }

.publication-title h3 { margin: 0; }
.publication-title p { margin: 8px 0 0 0; }

.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(35, 28, 24, 0.92) 0%, rgba(16, 13, 12, 0.90) 100%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    padding: 18px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card p { margin: 10px 0 0 0; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.card-inset {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 243, 230, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}
.card-inset:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(15, 23, 42, 0.10);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
    border-color: rgba(114, 160, 255, 0.20);
}

.service-card {
    display: grid;
    gap: 16px;
}

.service-visual {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 243, 230, 0.10);
    background:
        radial-gradient(260px 160px at 10% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.0) 68%),
        linear-gradient(135deg, rgba(19, 31, 61, 0.96), rgba(12, 16, 29, 0.96));
    overflow: hidden;
}

.service-visual-blue {
    background:
        radial-gradient(260px 160px at 10% 10%, rgba(133, 178, 255, 0.20) 0%, rgba(133, 178, 255, 0.0) 68%),
        linear-gradient(135deg, rgba(16, 72, 219, 0.32), rgba(15, 20, 35, 0.98));
}

.service-visual-indigo {
    background:
        radial-gradient(260px 160px at 10% 10%, rgba(148, 163, 255, 0.18) 0%, rgba(148, 163, 255, 0.0) 68%),
        linear-gradient(135deg, rgba(56, 48, 163, 0.34), rgba(17, 16, 31, 0.98));
}

.service-visual-teal {
    background:
        radial-gradient(260px 160px at 10% 10%, rgba(94, 234, 212, 0.18) 0%, rgba(94, 234, 212, 0.0) 68%),
        linear-gradient(135deg, rgba(13, 148, 136, 0.30), rgba(13, 20, 20, 0.98));
}

.service-visual-amber {
    background:
        radial-gradient(260px 160px at 10% 10%, rgba(253, 230, 138, 0.18) 0%, rgba(253, 230, 138, 0.0) 68%),
        linear-gradient(135deg, rgba(180, 83, 9, 0.32), rgba(28, 18, 12, 0.98));
}

.service-visual-violet {
    background:
        radial-gradient(260px 160px at 10% 10%, rgba(196, 181, 253, 0.18) 0%, rgba(196, 181, 253, 0.0) 68%),
        linear-gradient(135deg, rgba(109, 40, 217, 0.32), rgba(21, 15, 31, 0.98));
}

.service-visual-slate {
    background:
        radial-gradient(260px 160px at 10% 10%, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.0) 68%),
        linear-gradient(135deg, rgba(51, 65, 85, 0.34), rgba(14, 18, 24, 0.98));
}

.service-visual-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-visual-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.service-visual-kicker {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.service-visual-copy strong {
    font-size: 1.08rem;
    line-height: 1.2;
    color: #ffffff;
}

.service-visual-copy span:last-child {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    line-height: 1.45;
}

.service-card-head {
    gap: 12px;
}

.service-plan-grid {
    display: grid;
    gap: 18px;
}

.service-plan-card {
    display: grid;
    gap: 14px;
}

.service-plan-card.is-featured {
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 24px 54px rgba(7, 22, 62, 0.24);
}

.service-plan-price {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.service-plan-note {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 243, 230, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.service-plan-note p {
    margin: 8px 0 0;
    color: var(--muted);
}

.service-detail-grid {
    align-items: stretch;
}

.service-detail-copy,
.service-detail-side {
    display: grid;
    gap: 18px;
}

.service-back-link {
    color: rgba(209, 221, 255, 0.92);
    text-decoration: none;
    font-weight: 800;
}

.service-back-link:hover {
    color: #ffffff;
}

.service-step-list {
    display: grid;
    gap: 12px;
}

.service-step-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.service-step-item strong {
    color: var(--text);
}

.service-detail-sections {
    align-items: stretch;
}

/* Course cards: subtle background illustration per course (lightweight SVG). */
.course-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.promo-course-card {
    border-color: rgba(var(--primary-rgb), 0.22);
    background:
        linear-gradient(165deg, rgba(40, 31, 26, 0.96) 0%, rgba(17, 14, 13, 0.92) 100%);
}

.promo-course-card:hover {
    border-color: rgba(var(--primary-rgb), 0.40);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.course-card::before {
    content: '';
    position: absolute;
    inset: -10px;
    background-image: var(--course-bg, none);
    background-repeat: no-repeat;
    background-size: 320px 320px;
    background-position: right -70px bottom -90px;
    opacity: 0.12;
    transform: rotate(-6deg);
    filter: saturate(0.95) contrast(1.05);
    pointer-events: none;
    z-index: 0;
}

.course-card > * { position: relative; z-index: 1; }

/* Course hero cards (course detail + inside LMS) */
.hero-card.course-hero {
    overflow: hidden;
    isolation: isolate;
}

.hero-card.course-hero::after {
    content: '';
    position: absolute;
    inset: -14px;
    background-image: var(--course-bg, none);
    background-repeat: no-repeat;
    background-size: 560px 560px;
    background-position: right -170px bottom -200px;
    opacity: 0.10;
    transform: rotate(-7deg);
    filter: saturate(0.95) contrast(1.05);
    pointer-events: none;
    z-index: 0;
}

.hero-card.course-hero > * { position: relative; z-index: 1; }

.section {
    margin-top: 24px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: #ffffff;
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(114, 160, 255, 0.22);
    color: #f5f9ff;
    background: rgba(var(--primary-rgb), 0.14);
    font-weight: 800;
    font-size: 0.84rem;
}

.pill-active {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0.14) 100%);
    border-color: rgba(var(--primary-rgb), 0.26);
}

.journal-subnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.journal-subnav .pill { text-decoration: none; }

.journal-logo-wrap {
    display: grid;
    place-items: center;
    padding: 10px 0 6px 0;
}

.journal-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.10);
    padding: 10px;
}

.subnav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(28, 22, 20, 0.84);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
    margin-top: 10px;
}

.subnav a {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: rgba(247, 240, 232, 0.82);
    font-weight: 900;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.04);
}

.subnav a:hover {
    border-color: rgba(var(--primary-rgb), 0.24);
    color: #ffffff;
    background: rgba(var(--primary-rgb), 0.10);
}

.subnav a.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.95), rgba(var(--primary-hi-rgb), 0.92));
    border-color: rgba(114, 160, 255, 0.28);
}

.nav-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.settings-mini-preview {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-favicon-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 20px rgba(2, 6, 23, 0.07);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.settings-favicon-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.settings-hero-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 23, 42, 0.10));
}

.settings-hero-preview img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.inline-form { margin: 0; }

.inline-fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-fields input,
.inline-fields select {
    width: auto;
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    padding: 10px 12px;
    font-family: var(--font);
    font-size: 0.96rem;
    color: var(--field-text);
}

.inline-fields input:focus,
.inline-fields select:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.55);
    box-shadow: 0 0 0 4px rgba(var(--primary-hi-rgb), 0.20);
}

pre.codeblock {
    margin: 12px 0 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92rem;
}

ul.list {
    margin: 10px 0 0 18px;
    padding: 0;
    color: var(--muted);
}

ul.list li { margin: 6px 0; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--primary-2);
    font-weight: 900;
    font-size: 0.84rem;
}

.tag.tag-block {
    display: inline-block;
    max-width: 100%;
    border-radius: 16px;
    padding: 8px 12px;
    line-height: 1.35;
    white-space: normal;
}

details.card > summary {
    cursor: pointer;
    font-weight: 900;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.details-title {
    flex: 1;
    min-width: 0;
}

details.card > summary::-webkit-details-marker { display: none; }

details.card > summary::after {
    content: '▾';
    color: var(--muted);
    font-size: 0.92rem;
    margin-left: auto;
    transition: transform 150ms ease;
}

details[open].card > summary::after { transform: rotate(-180deg); }

details.card > summary + * { margin-top: 12px; }

.video-player {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #000;
}

/* Forms */
.form {
    display: grid;
    gap: 12px;
}

.form-grid {
    display: grid;
    /* Adaptive: avoids cramped 2-col forms inside narrow cards/sidebars. */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    font-weight: 900;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 14px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 0.98rem;
    color: var(--field-text);
}

.form-field textarea { min-height: 110px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.55);
    box-shadow: 0 0 0 4px rgba(var(--primary-hi-rgb), 0.20);
}

.form-row-full { grid-column: 1 / -1; }

.hint { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }

.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.meta-line strong { white-space: nowrap; }

.meta-line .pill,
.meta-line .tag {
    white-space: nowrap;
}

.meta-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.meta-row {
    display: grid;
    /* Avoid Firefox overlap when the value pill is long: keep label readable and let value wrap. */
    grid-template-columns: minmax(14ch, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.meta-label {
    color: var(--muted);
    font-weight: 800;
    min-width: 0;
}

.meta-row .meta-value {
    justify-self: end;
    text-align: right;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.meta-list .pill,
.meta-list .tag {
    padding: 6px 10px;
    font-size: 0.82rem;
}

@media (max-width: 380px) {
    .meta-row { grid-template-columns: 1fr; }
    .meta-row .meta-value { justify-self: start; text-align: left; max-width: none; }
}

@media (max-width: 520px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn { width: 100%; }

    .partner-card-top {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
    }
    .partner-logo {
        width: 96px;
        height: 72px;
        border-radius: 18px;
        padding: 8px;
    }
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 243, 230, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.checkbox input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-hi);
    flex: 0 0 auto;
}

.checkbox span { color: var(--ink); font-weight: 700; }
.checkbox a { color: #ffffff; text-decoration: underline; }

/* Quiz */
.quiz {
    display: grid;
    gap: 12px;
}

.quiz-q {
    border-radius: 16px;
    border: 1px solid rgba(255, 243, 230, 0.10);
    background: linear-gradient(180deg, rgba(32, 25, 22, 0.94), rgba(18, 15, 13, 0.92));
    padding: 14px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.quiz-q-title {
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.quiz-options {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.quiz-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    background: rgba(var(--primary-rgb), 0.05);
    cursor: pointer;
}

.quiz-option:hover {
    border-color: rgba(var(--primary-rgb), 0.30);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.05);
}

.quiz-option input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-2);
    flex: 0 0 auto;
}

.quiz-option span {
    color: var(--ink);
    font-weight: 700;
}

.flash {
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 243, 230, 0.10);
    background: linear-gradient(180deg, rgba(34, 27, 24, 0.94), rgba(18, 15, 13, 0.92));
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--ink);
}

.flash.success { border-color: rgba(22, 163, 74, 0.30); background: rgba(22, 163, 74, 0.14); color: #d9ffe5; }
.flash.error { border-color: rgba(220, 38, 38, 0.30); background: rgba(220, 38, 38, 0.14); color: #ffe0e0; }
.flash.info { border-color: rgba(var(--primary-rgb), 0.26); background: rgba(var(--primary-rgb), 0.14); color: #eef4ff; }

/* Tables */
.table-wrap {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 243, 230, 0.10);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, rgba(35, 28, 24, 0.96), rgba(16, 13, 12, 0.94));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    padding: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--ink);
}
th, td {
    padding: 14px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 243, 230, 0.08);
    vertical-align: middle;
}
th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(245, 232, 220, 0.74);
    background: rgba(255, 255, 255, 0.03);
}
td {
    color: var(--ink);
    background: transparent;
}
tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}
tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.10);
}

table input,
table select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    padding: 11px 12px;
    font-family: var(--font);
    font-size: 0.96rem;
    color: var(--field-text);
}

.inline-fields input::placeholder,
.inline-fields select::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder,
table input::placeholder,
table select::placeholder {
    color: var(--field-placeholder);
    opacity: 1;
}

.inline-fields input:-webkit-autofill,
.inline-fields select:-webkit-autofill,
.form-field input:-webkit-autofill,
.form-field textarea:-webkit-autofill,
table input:-webkit-autofill,
table select:-webkit-autofill {
    -webkit-text-fill-color: var(--field-text);
    box-shadow: 0 0 0 1000px var(--field-bg) inset;
    transition: background-color 9999s ease-out 0s;
}

.form-field select option,
.inline-fields select option,
table select option {
    color: var(--field-text);
    background: #1b1513;
}

table input[type="number"] { min-width: 110px; }

/* Portal plans table (Admin > Configurações) */
.portal-plans-table th,
.portal-plans-table td { white-space: nowrap; }
.portal-plans-table td:nth-child(2),
.portal-plans-table th:nth-child(2) { white-space: normal; }

.portal-plans-table input[type="number"] { min-width: 130px; text-align: center; }
.portal-plans-table td:nth-child(5) input[type="checkbox"] { width: 18px; height: 18px; }

table input:focus,
table select:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.55);
    box-shadow: 0 0 0 4px rgba(var(--primary-hi-rgb), 0.20);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.82rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.status.pending { background: rgba(var(--accent-rgb), 0.18); border-color: rgba(var(--accent-rgb), 0.30); color: #ffe7d3; }
.status.approved { background: rgba(22, 163, 74, 0.16); border-color: rgba(22, 163, 74, 0.28); color: #e3ffeb; }
.status.rejected { background: rgba(220, 38, 38, 0.16); border-color: rgba(220, 38, 38, 0.28); color: #ffe3e3; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(12, 10, 10, 0.92);
    padding: 22px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    gap: 14px;
    align-items: start;
}
.footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.footer-form .inline-fields { gap: 8px; }
.footer-form .inline-fields input { min-width: 0; flex: 1 1 180px; }
.footer-form .btn { white-space: nowrap; }

.footer-links {
    display: grid;
    gap: 8px;
    align-content: start;
}
.footer-links a.small { width: fit-content; }
.small { color: var(--muted); font-size: 0.92rem; }

.resume-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.resume-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    display: grid;
    gap: 14px;
}

.timeline {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(15, 23, 42, 0.16);
}

.timeline-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.timeline-meta {
    font-weight: 900;
    font-size: 0.92rem;
    color: var(--muted);
}

.profile-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 22px rgba(2, 6, 23, 0.08);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    font-weight: 900;
    color: var(--primary-2);
}

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

.avatar-lg {
    width: 84px;
    height: 84px;
}

.author-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.85);
}

.lms-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.lms-nav {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.lms-list {
    display: grid;
    gap: 10px;
}

.lms-module {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.86);
    padding: 12px;
}

.lms-module strong {
    display: block;
    font-family: var(--font-head);
    letter-spacing: -0.01em;
    font-size: 0.95rem;
}

.lms-lessons {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.lms-lesson-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--primary-2);
    font-weight: 800;
}

.lms-lesson-link:hover {
    border-color: rgba(var(--primary-rgb), 0.32);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.06);
}

.lms-lesson-link.is-active {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.26);
    color: #7a2f0a;
}

.progressbar {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.progressbar > div {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.project-admin-grid,
.rental-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.project-admin-card,
.rental-admin-card {
    display: grid;
    gap: 14px;
}

.project-admin-preview,
.rental-admin-preview,
.rental-media {
    border-radius: calc(var(--radius) - 6px);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.9));
}

.project-admin-preview img,
.rental-admin-preview img,
.rental-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-admin-preview,
.rental-admin-preview {
    aspect-ratio: 16 / 9;
}

.project-admin-meta {
    display: grid;
    gap: 6px;
}

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

.rental-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rental-media {
    aspect-ratio: 16 / 10;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rental-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.rental-media > .rental-main-launch {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.rental-card h3,
.project-card h3 {
    margin: 0;
}

.home-rental-strip {
    margin-top: 6px;
    grid-auto-columns: minmax(96px, 128px);
    gap: 8px;
}

.home-rental-strip .project-gallery-item {
    gap: 0;
}

.home-rental-strip .project-gallery-thumb {
    border-radius: 12px;
    aspect-ratio: 4 / 3;
}

.project-carousel {
    position: relative;
}

.project-viewport {
    overflow: hidden;
}

.project-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.project-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.project-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.12));
    position: relative;
}

.project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-media-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(16, 20, 34, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 18px;
}

.project-cat {
    margin: 6px 0 0;
    color: var(--primary-2);
    font-weight: 800;
}

.project-gallery-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    align-items: center;
}

.project-gallery-strip {
    margin-top: 14px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 190px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.project-gallery-item {
    display: grid;
    gap: 8px;
}

.project-gallery-launch {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.project-gallery-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.project-gallery-thumb img,
.project-gallery-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease, filter 180ms ease;
}

.project-gallery-launch:hover .project-gallery-thumb img,
.project-gallery-launch:hover .project-gallery-thumb video,
.project-gallery-launch:focus-visible .project-gallery-thumb img,
.project-gallery-launch:focus-visible .project-gallery-thumb video {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.project-gallery-thumb.is-video video {
    background: #000;
}

.project-gallery-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 72, 219, 0.92);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.project-gallery-caption {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.project-lightbox[hidden] {
    display: none;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 22px;
}

.project-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 14, 0.82);
    backdrop-filter: blur(14px);
}

.project-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: min(92vh, 960px);
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 18, 18, 0.96), rgba(10, 11, 18, 0.96));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.project-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.project-lightbox-stage {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 12px;
    align-items: center;
}

.project-lightbox-media {
    position: relative;
    min-height: 58vh;
    max-height: 70vh;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    touch-action: none;
}

.project-lightbox-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(11, 96, 255, 0.92);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(11, 96, 255, 0.24);
}

.project-lightbox-image,
.project-lightbox-video {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #06070d;
}

.project-lightbox-image {
    --lightbox-scale: 1;
    --lightbox-pan-x: 0px;
    --lightbox-pan-y: 0px;
    transform: translate3d(var(--lightbox-pan-x), var(--lightbox-pan-y), 0) scale(var(--lightbox-scale));
    transform-origin: center center;
    transition: transform 180ms ease;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
}

.project-lightbox-media.is-zoomable .project-lightbox-image {
    cursor: zoom-in;
}

.project-lightbox-media.is-zoomed .project-lightbox-image {
    cursor: grab;
}

.project-lightbox-media.is-dragging .project-lightbox-image {
    cursor: grabbing;
    transition: none;
}

.project-lightbox-video[hidden],
.project-lightbox-image[hidden] {
    display: none;
}

.project-lightbox-nav {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.project-lightbox-nav:hover,
.project-lightbox-close:hover {
    background: rgba(var(--primary-rgb), 0.28);
}

.project-lightbox-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 0 6px 4px;
}

.project-lightbox-kicker {
    margin: 0 0 6px;
    color: rgba(208, 217, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-lightbox-title {
    margin: 0;
    color: #fff;
}

.project-lightbox-caption {
    margin: 10px 0 0;
    color: rgba(245, 247, 255, 0.78);
    line-height: 1.65;
}

.project-lightbox-hint {
    margin: 10px 0 0;
    color: rgba(208, 217, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.5;
}

body.is-lightbox-open {
    overflow: hidden;
}

.project-admin-gallery {
    display: grid;
    gap: 14px;
}

.project-admin-gallery-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.project-admin-gallery-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-admin-gallery-thumb img,
.project-admin-gallery-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
    color: var(--primary-2);
    font-size: 1.45rem;
    font-weight: 800;
    cursor: pointer;
    z-index: 2;
}

.project-nav.prev { left: -12px; }
.project-nav.next { right: -12px; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main-layout { grid-template-columns: 1fr; }
    .hero-main-visual { min-height: 420px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.grid-portal-plans { grid-template-columns: 1fr; }
    .rental-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .resume-layout { grid-template-columns: 1fr; }
    .resume-sidebar { position: static; }
    .lms-layout { grid-template-columns: 1fr; }
    .lms-nav { position: static; }
    .project-lightbox-stage { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .project-lightbox-nav { width: 44px; height: 44px; }
}

@media (max-width: 720px) {
    .nav {
        display: none;
        position: absolute;
        top: calc(var(--header-h) + 8px);
        left: 12px;
        right: 12px;
        background: linear-gradient(180deg, rgba(28, 21, 19, 0.98), rgba(16, 13, 12, 0.98));
        border: 1px solid rgba(255, 243, 230, 0.10);
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
        backdrop-filter: blur(18px);
    }
    .nav.is-open { display: flex; }
    .nav a,
    .nav summary {
        padding: 12px 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 243, 230, 0.06);
    }
    .nav-menu {
        position: static;
        min-width: 0;
        padding: 8px 0 0 10px;
        margin: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
    }
    .nav-menu a {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 243, 230, 0.06);
    }
    .mobile-toggle { display: inline-grid; place-items: center; }
    .header-cta { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .rental-grid { grid-template-columns: 1fr; }
    .project-admin-grid,
    .rental-admin-grid,
    .project-track { grid-template-columns: 1fr; }
    .project-nav { display: none; }

    .partner-item { flex-basis: 180px; }
    .partner-year { grid-template-columns: 1fr; }

    .course-card::before {
        background-size: 260px 260px;
        background-position: right -60px bottom -80px;
        opacity: 0.14;
    }

    .hero-card.course-hero::after {
        background-size: 440px 440px;
        background-position: right -150px bottom -180px;
        opacity: 0.12;
    }

    .hero-main-card {
        padding: 18px;
    }

    .hero-main-layout {
        gap: 18px;
    }

    .hero-main-copy .lead {
        max-width: none;
    }

    .hero-main-visual {
        min-height: 340px;
        border-radius: 24px;
    }

    .project-lightbox {
        padding: 12px;
    }

    .project-lightbox-dialog {
        padding: 14px;
        border-radius: 22px;
    }

    .project-lightbox-stage {
        grid-template-columns: 1fr;
    }

    .project-lightbox-media {
        min-height: 42vh;
    }

    .project-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .project-lightbox-nav.prev {
        left: 10px;
    }

    .project-lightbox-nav.next {
        right: 10px;
    }

    .project-lightbox-meta {
        padding-right: 44px;
    }

    .project-lightbox-zoom {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .service-visual {
        grid-template-columns: 1fr;
    }

    .service-card-head {
        align-items: start;
    }
}

@media (min-width: 860px) {
    .service-plan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }
}

/* HELPDESK MODULE START */
.helpdesk-public-grid,
.helpdesk-track-grid,
.helpdesk-admin-grid {
    display: grid;
    gap: 20px;
}

.helpdesk-catalog-list,
.helpdesk-timeline {
    display: grid;
    gap: 16px;
}

.helpdesk-catalog-item {
    padding: 0;
    overflow: hidden;
}

.helpdesk-catalog-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 18px;
}

.helpdesk-catalog-item summary::-webkit-details-marker {
    display: none;
}

.helpdesk-catalog-item summary strong {
    display: block;
    font-size: 1.02rem;
}

.helpdesk-catalog-item summary small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.helpdesk-catalog-item[open] summary {
    border-bottom: 1px solid rgba(255, 243, 230, 0.08);
}

.helpdesk-catalog-body {
    padding: 18px;
}

.helpdesk-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.helpdesk-checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
}

.helpdesk-inline-note {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 243, 230, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.helpdesk-inline-note p {
    margin: 8px 0 0;
}

.helpdesk-side-card {
    align-self: start;
}

.helpdesk-timeline-item .lead {
    margin-top: 12px;
}

.helpdesk-ticket-card {
    display: grid;
    gap: 14px;
}

@media (min-width: 721px) {
    .helpdesk-public-grid,
    .helpdesk-track-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    }

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

@media (max-width: 720px) {
    .helpdesk-checks {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* HELPDESK MODULE END */
/* RENTAL MODULE START */
.rental-public-grid,
.rental-admin-grid,
.finance-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rental-public-card,
.rental-order-card,
.finance-card,
.rental-summary-card,
.rental-calculator-card,
.signature-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rental-public-card.is-selected {
    border-color: rgba(44, 109, 255, 0.45);
    box-shadow: 0 16px 40px rgba(7, 13, 30, 0.24);
}

.rental-summary-list {
    display: grid;
    gap: 10px;
}

.rental-summary-list.compact {
    gap: 8px;
}

.rental-summary-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rental-summary-list > div:last-child {
    border-bottom: 0;
}

.rental-step-list,
.rental-bank-list,
.rental-admin-links {
    display: grid;
    gap: 12px;
}

.rental-type-toolbar {
    display: grid;
    gap: 12px;
}

.rental-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.rental-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.rental-type-chip:hover,
.rental-type-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(44, 109, 255, 0.42);
    background: rgba(44, 109, 255, 0.10);
}

.rental-type-chip.is-active {
    border-color: rgba(44, 109, 255, 0.52);
    background: linear-gradient(135deg, rgba(44, 109, 255, 0.18), rgba(44, 109, 255, 0.10));
    box-shadow: 0 14px 30px rgba(8, 18, 45, 0.26);
}

.rental-type-chip__label {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.rental-type-chip__count {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 800;
}

.rental-sort-form {
    display: grid;
    gap: 6px;
    justify-self: end;
}

.rental-sort-form label {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.rental-sort-form select {
    min-height: 44px;
    min-width: 240px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 21, 40, 0.85);
    color: #fff;
    font-weight: 700;
}

@media (min-width: 981px) {
    .rental-type-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}

@media (max-width: 980px) {
    .rental-sort-form {
        justify-self: stretch;
    }

    .rental-sort-form select {
        width: 100%;
        min-width: 0;
    }
}

.rental-view-switch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 14px;
}

.rental-view-switch .btn {
    min-height: 38px;
}

.rental-view-switch .btn.is-active {
    background: linear-gradient(135deg, rgba(44, 109, 255, 0.94), rgba(20, 76, 219, 0.92));
    border-color: rgba(44, 109, 255, 0.52);
    color: #fff;
}

.rental-public-grid.is-list {
    grid-template-columns: 1fr;
}

.rental-public-grid.is-list .rental-media {
    aspect-ratio: 16 / 7;
}

@media (max-width: 720px) {
    .rental-view-switch {
        margin-bottom: 10px;
    }

    .rental-public-grid.is-list .rental-media {
        aspect-ratio: 16 / 9;
    }
}

.rental-step-item,
.rental-bank-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.rental-admin-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.order-meta-grid,
.rental-track-grid {
    display: grid;
    gap: 16px;
}

.order-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.rental-track-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.signature-canvas {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 18px;
    border: 1px dashed rgba(44, 109, 255, 0.4);
    background: #fff;
    touch-action: none;
}

.signature-preview,
.signature-thumb {
    display: block;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: 8px;
}

.signature-preview {
    width: 100%;
    max-width: 320px;
}

.signature-thumb {
    width: 120px;
}

.rental-request-grid,
.rental-track-grid {
    align-items: start;
}

.rental-summary-card,
.rental-calculator-card {
    position: sticky;
    top: 110px;
}

.finance-card strong {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.05;
}

.order-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gogas-assistant {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 85;
    display: grid;
    justify-items: end;
    gap: 12px;
    pointer-events: none;
}

.gogas-assistant > * {
    pointer-events: auto;
}

.gogas-fab {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 16px 10px 12px;
    border: 1px solid rgba(112, 168, 255, 0.24);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 70, 217, 0.98), rgba(44, 109, 255, 0.94));
    color: #fff;
    box-shadow: 0 22px 46px rgba(9, 36, 95, 0.38);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.gogas-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 50px rgba(9, 36, 95, 0.44);
}

.gogas-fab-icon,
.gogas-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.gogas-fab-icon img,
.gogas-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gogas-fab-label {
    font-weight: 900;
    letter-spacing: 0.01em;
}

.gogas-nudge {
    max-width: min(320px, calc(100vw - 40px));
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(var(--primary-hi-rgb), 0.26);
    background: rgba(18, 16, 15, 0.96);
    color: rgba(248, 244, 238, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    text-align: left;
    display: grid;
    gap: 6px;
    cursor: pointer;
}

.gogas-nudge-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.18);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gogas-panel {
    width: min(380px, calc(100vw - 24px));
    border-radius: 24px;
    border: 1px solid rgba(var(--primary-hi-rgb), 0.18);
    background: linear-gradient(180deg, rgba(20, 16, 15, 0.98) 0%, rgba(17, 14, 13, 0.97) 100%);
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.gogas-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid rgba(255, 243, 230, 0.08);
    background:
        radial-gradient(160px 90px at 12% 0%, rgba(var(--primary-rgb), 0.18) 0%, rgba(var(--primary-rgb), 0) 100%),
        linear-gradient(180deg, rgba(27, 22, 21, 0.96), rgba(20, 16, 15, 0.96));
}

.gogas-panel-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gogas-panel-brand strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}

.gogas-panel-brand span:last-child {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(240, 229, 218, 0.68);
}

.gogas-close {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 243, 230, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.gogas-messages {
    display: grid;
    gap: 12px;
    max-height: 360px;
    padding: 16px;
    overflow-y: auto;
}

.gogas-message {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.gogas-message p {
    margin: 0;
    white-space: pre-wrap;
}

.gogas-message-bot {
    justify-self: start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 243, 230, 0.08);
    color: rgba(246, 242, 235, 0.96);
}

.gogas-message-user {
    justify-self: end;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.94), rgba(var(--primary-hi-rgb), 0.9));
    color: #fff;
}

.gogas-links,
.gogas-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gogas-links {
    margin-top: 10px;
}

.gogas-link,
.gogas-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-hi-rgb), 0.24);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(246, 242, 235, 0.95);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.gogas-link:hover,
.gogas-chip:hover {
    color: #fff;
    background: rgba(var(--primary-rgb), 0.18);
}

.gogas-shortcuts {
    padding: 0 16px 16px;
}

.gogas-form {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.gogas-form textarea {
    min-height: 84px;
    resize: vertical;
    padding: 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(var(--primary-hi-rgb), 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: #201916;
    font: inherit;
}

.gogas-send {
    justify-self: end;
}

@media (max-width: 980px) {
    .rental-track-grid,
    .rental-request-grid {
        grid-template-columns: 1fr;
    }

    .rental-summary-card,
    .rental-calculator-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .gogas-assistant {
        right: 12px;
        left: 12px;
        bottom: 12px;
        justify-items: stretch;
    }

    .gogas-nudge,
    .gogas-panel {
        width: 100%;
        max-width: none;
    }

    .gogas-fab {
        justify-content: center;
    }

    .gogas-message {
        max-width: 94%;
    }
}

.pill-danger {
    background: rgba(182, 35, 57, 0.18);
    border-color: rgba(246, 117, 140, 0.35);
    color: #ffdbe2;
}

.priority-normal {
    background: rgba(55, 120, 255, 0.16);
    border-color: rgba(90, 150, 255, 0.28);
    color: #dfeaff;
}

.priority-urgent {
    background: rgba(255, 153, 0, 0.18);
    border-color: rgba(255, 187, 85, 0.3);
    color: #ffe8bd;
}

.priority-critical {
    background: rgba(220, 46, 77, 0.18);
    border-color: rgba(255, 105, 135, 0.34);
    color: #ffd8e1;
}

.helpdesk-attachment-box {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.helpdesk-attachment-list {
    display: grid;
    gap: 10px;
}

.helpdesk-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.helpdesk-attachment-item span {
    color: #fff;
    font-weight: 600;
}

.rental-specs-box {
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.rental-specs-box summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-weight: 700;
    color: #fff;
}

.rental-specs-box summary::-webkit-details-marker {
    display: none;
}

.rental-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px 16px;
}

.rental-spec-grid div,
.rental-condition-box {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rental-spec-grid span,
.rental-condition-box span {
    display: block;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 6px;
}

.rental-spec-grid strong,
.rental-condition-box strong {
    display: block;
    color: #fff;
}

.rental-condition-box {
    margin: 0 16px 16px;
}

.rental-spec-grid-summary {
    padding: 0;
}

@media (max-width: 720px) {
    .rental-spec-grid {
        grid-template-columns: 1fr;
    }
}
/* RENTAL MODULE END */

/* STUDENT PORTAL - Premium login/dashboard */
body.student-portal {
    color-scheme: dark;
    background:
        radial-gradient(900px 560px at 18% -6%, rgba(224, 94, 160, 0.14) 0%, rgba(224, 94, 160, 0) 62%),
        radial-gradient(860px 520px at 86% 0%, rgba(221, 145, 81, 0.12) 0%, rgba(221, 145, 81, 0) 64%),
        linear-gradient(180deg, #20253b 0%, #262a42 58%, #222740 100%);
    min-height: 100vh;
}

body.student-portal .site-header,
body.student-portal .site-footer,
body.student-portal .gogas-assistant {
    display: none !important;
}

body.student-portal .page {
    padding: 0;
}

body.student-portal .page > .container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.student-portal .flash {
    width: min(720px, calc(100vw - 26px));
    margin: 18px auto 0;
    border-radius: 14px;
}

/* Auth */
body.student-portal-auth .flash { margin-top: 22px; }

.student-auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 26px 16px;
}

.student-auth-card {
    width: min(860px, 100%);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(30, 35, 57, 0.96), rgba(24, 29, 46, 0.96));
    box-shadow: 0 28px 56px rgba(8, 10, 20, 0.36);
    padding: clamp(20px, 3vw, 34px);
    color: #f7f9ff;
}

.student-auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.student-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.student-auth-brand img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26);
}

.student-auth-brand strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.06rem;
    line-height: 1.05;
    letter-spacing: 0.03em;
}

.student-auth-brand span {
    display: block;
    color: rgba(234, 221, 210, 0.78);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.student-auth-locale {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(228, 148, 96, 0.36);
    color: #efbf9b;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.student-auth-card h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.student-auth-card > p {
    margin: 8px 0 0;
    color: rgba(231, 219, 208, 0.78);
}

.student-auth-form {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.student-auth-field {
    display: grid;
    gap: 8px;
}

.student-auth-field > label {
    color: rgba(238, 226, 214, 0.96);
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-auth-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 21, 35, 0.92);
    padding: 0 14px;
}

.student-auth-input input {
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f5f8ff !important;
    min-height: 48px;
    outline: none;
}

.student-auth-input span {
    color: #ef9f74;
    font-size: 1rem;
}

.student-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: space-between;
}

.student-auth-links a {
    color: #d8c1ad;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
}

.student-auth-links a:hover {
    color: #ffd5b6;
}

.student-auth-submit {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(95deg, #d45ea2 0%, #c17380 46%, #bd9656 100%);
    box-shadow: 0 18px 34px rgba(27, 18, 38, 0.34);
    cursor: pointer;
}

.student-auth-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Dashboard */
.student-portal-layout {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    min-height: 100vh;
    padding: 16px;
}

.student-portal-sidebar {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(28, 32, 53, 0.97), rgba(21, 25, 43, 0.97));
    box-shadow: 0 18px 34px rgba(7, 9, 18, 0.30);
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    align-items: start;
    gap: 14px;
    padding: 10px 8px;
}

.student-portal-logo,
.student-portal-nav a,
.student-portal-logout {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: #f2f6ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.08rem;
}

.student-portal-logo {
    margin-bottom: 4px;
    background: linear-gradient(140deg, rgba(213, 94, 160, 0.16), rgba(198, 149, 92, 0.16));
}

.student-portal-nav {
    display: grid;
    gap: 10px;
}

.student-portal-nav a:hover,
.student-portal-nav a.is-active,
.student-portal-logout:hover {
    background: linear-gradient(140deg, rgba(213, 94, 160, 0.18), rgba(198, 149, 92, 0.18));
    border-color: rgba(229, 159, 104, 0.34);
}

.student-portal-main {
    display: grid;
    gap: 14px;
}

.student-portal-topbar {
    min-height: 64px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(30, 35, 57, 0.95), rgba(24, 29, 46, 0.95));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
}

.student-portal-topbar p {
    margin: 0;
    color: rgba(236, 225, 214, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.84rem;
    font-weight: 700;
}

.student-portal-profile-quick {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 6px 10px;
    text-decoration: none;
}

.student-portal-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(213, 94, 160, 0.18);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.student-portal-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-portal-profile-quick strong {
    display: block;
    font-size: 0.88rem;
}

.student-portal-profile-quick small {
    display: block;
    color: rgba(236, 225, 214, 0.74);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.68rem;
}

.student-portal-section {
    margin: 0;
}

.student-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

.student-panel {
    border-radius: 20px !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    background: linear-gradient(180deg, rgba(30, 35, 57, 0.95), rgba(24, 29, 46, 0.95)) !important;
}

.student-panel h1,
.student-panel h2,
body.student-portal-dashboard .section-head h2,
body.student-portal-dashboard .section-head h3,
body.student-portal-dashboard summary {
    color: #ffffff;
}

.student-kpis {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.student-kpis div {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
}

.student-kpis strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.student-kpis span {
    display: block;
    margin-top: 2px;
    color: rgba(236, 225, 214, 0.74);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.student-portal-dashboard .card {
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(30, 35, 57, 0.95), rgba(24, 29, 46, 0.95));
}

body.student-portal-dashboard .hint,
body.student-portal-dashboard .small,
body.student-portal-dashboard .card p {
    color: rgba(236, 225, 214, 0.80);
}

body.student-portal-dashboard .pill {
    border-color: rgba(229, 159, 104, 0.34);
    background: rgba(220, 137, 96, 0.18);
    color: #ffd7bd;
}

body.student-portal-dashboard details.card > summary {
    cursor: pointer;
}

body.student-portal-dashboard table th,
body.student-portal-dashboard table td {
    color: rgba(240, 232, 222, 0.90);
}

body.student-portal-dashboard .table-wrap {
    border-radius: 14px;
    overflow: hidden;
}

@media (max-width: 1080px) {
    .student-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .student-portal-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .student-portal-sidebar {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 1fr;
        align-items: center;
        padding: 8px;
    }

    .student-portal-nav {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .student-portal-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-kpis {
        grid-template-columns: 1fr;
    }
}

/* DASHBOARD TEXT CONTRAST */
body.site-theme-corporate.dashboard-portal .hero-card h1,
body.site-theme-corporate.dashboard-portal .hero-card h2,
body.site-theme-corporate.dashboard-portal .hero-card h3,
body.site-theme-corporate.dashboard-portal .section-head h2,
body.site-theme-corporate.dashboard-portal .section-head h3,
body.site-theme-corporate.dashboard-portal .card h3,
body.site-theme-corporate.dashboard-portal details > summary {
    color: #1c3457;
}

body.site-theme-corporate.dashboard-portal .hero-card .lead,
body.site-theme-corporate.dashboard-portal .hint,
body.site-theme-corporate.dashboard-portal .small,
body.site-theme-corporate.dashboard-portal .card p,
body.site-theme-corporate.dashboard-portal .card li,
body.site-theme-corporate.dashboard-portal td,
body.site-theme-corporate.dashboard-portal th {
    color: #4b617f;
}

body.site-theme-corporate.dashboard-portal table th {
    color: #2f476a;
}

body.site-theme-corporate.dashboard-portal table td {
    color: #364f70;
}

body.site-theme-corporate.dashboard-portal .pill {
    color: #1a4287;
    border-color: rgba(71, 110, 176, 0.35);
    background: rgba(71, 110, 176, 0.14);
}

body.student-portal-dashboard .hint,
body.student-portal-dashboard .small,
body.student-portal-dashboard .card p {
    color: rgba(244, 236, 226, 0.92);
}

body.student-portal-dashboard table th,
body.student-portal-dashboard table td {
    color: rgba(248, 241, 232, 0.95);
}

body.student-portal-dashboard .student-kpis span,
body.student-portal-dashboard .student-auth-links a,
body.student-portal-dashboard .student-portal-profile-quick small {
    color: rgba(242, 231, 219, 0.86);
}

body.site-theme-corporate.dashboard-portal a {
    color: #174596;
    font-weight: 700;
}

body.site-theme-corporate.dashboard-portal a:hover {
    color: #0f3578;
}

body.site-theme-corporate.dashboard-portal .subnav a {
    color: #2b4467;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(58, 87, 132, 0.20);
}

body.site-theme-corporate.dashboard-portal .subnav a:hover {
    color: #143f8d;
    background: rgba(215, 228, 248, 0.78);
}

body.site-theme-corporate.dashboard-portal .subnav a.active {
    color: #ffffff;
}

body.site-theme-corporate.dashboard-portal .status.pending {
    color: #7b300b;
}

body.site-theme-corporate.dashboard-portal .status.approved {
    color: #0e5a2a;
}

body.site-theme-corporate.dashboard-portal .status.rejected {
    color: #8f1f2c;
}

body.student-portal-dashboard a {
    color: #ffd7bc;
}

body.student-portal-dashboard a:hover {
    color: #fff2e6;
}

body.student-portal-dashboard .student-portal-profile-quick strong {
    color: #ffffff;
}

/* DASHBOARD NAV + TABLE READABILITY (requested) */
body.dashboard-portal .subnav a {
    color: #2a61c7;
    font-weight: 800;
}

body.dashboard-portal .subnav a:hover {
    color: #174fb9;
}

body.dashboard-portal .subnav a.active {
    color: #174fb9;
    background: rgba(220, 232, 250, 0.94);
    border-color: rgba(82, 118, 175, 0.28);
}

body.dashboard-portal .subnav a.active:hover {
    color: #123f9d;
    background: rgba(206, 223, 247, 0.98);
}

body.dashboard-portal .table-wrap table {
    background: linear-gradient(180deg, #2a3550 0%, #1f2a42 100%);
    border-radius: 14px;
}

body.dashboard-portal .table-wrap table th,
body.dashboard-portal .table-wrap table td {
    color: rgba(247, 251, 255, 0.96);
}

body.dashboard-portal .table-wrap table thead th {
    color: #ffffff;
}

body.dashboard-portal .table-wrap table a {
    color: #ffffff;
    font-weight: 700;
}

body.dashboard-portal .table-wrap table a:hover {
    color: #dbe9ff;
}

body.dashboard-portal .nav-pill-count {
    color: #1d55bf;
    background: rgba(220, 232, 250, 0.9);
}

body.dashboard-portal .table-wrap .pill {
    color: #ffffff;
    border-color: rgba(177, 204, 245, 0.46);
    background: rgba(79, 112, 171, 0.52);
}

body.dashboard-portal .card ul.hint,
body.dashboard-portal .card ul.hint li,
body.dashboard-portal .card ul.hint strong {
    color: rgba(246, 251, 255, 0.95);
}
