/* motif-php-site/assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --motif-bg: #07130D;
    --motif-bg-2: #092217;
    --motif-card: #0B2A1C;
    --motif-card-elevated: #103625;
    --motif-surface: #174E38;
    --motif-green: #0D3B29;
    --motif-border: rgba(58, 134, 96, 0.35);
    --motif-border-strong: #1E6B4B;
    --motif-orange: #FF7A30;
    --motif-orange-hover: #FF8B4A;
    --motif-orange-active: #E86624;
    --motif-orange-soft: #FFC29F;
    --motif-white: #F4F4F1;
    --motif-muted: #B9C3BC;
    --motif-low: #7D8C84;
    --motif-error: #FF5F5F;
    --motif-success: #37D67A;
    --motif-warning: #FFB84D;
    --motif-radius-sm: 10px;
    --motif-radius-md: 14px;
    --motif-radius-lg: 18px;
    --motif-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --motif-orange-glow: 0 16px 40px rgba(255, 122, 48, 0.22);
    --motif-green-glow: 0 20px 70px rgba(23, 78, 56, 0.45);

    --primary-green: var(--motif-green);
    --deeper-green: var(--motif-bg);
    --card-green: var(--motif-card);
    --accent-orange: var(--motif-orange);
    --accent-orange-hover: var(--motif-orange-hover);
    --white: var(--motif-white);
    --soft-text: #DCE4DF;
    --muted-grey: var(--motif-muted);
    --badge-green: var(--motif-success);

    --font-heading: "Motif Heading", "Space Grotesk", "Sora", "Montserrat", Arial, sans-serif;
    --font-body: "Motif Body", "Inter", "Plus Jakarta Sans", "Montserrat", Arial, sans-serif;
    --motif-pattern: url('/assets/images/Motif_pattern.svg');
}

/* Community / Forum */
.footer-disclaimer {
    max-width: 900px;
    margin: 22px auto 0;
    color: var(--motif-low);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.community-hero,
.forum-hero {
    position: relative;
    overflow: hidden;
    margin: 36px 0 28px;
    padding: 44px;
    border: 1px solid var(--motif-border);
    border-radius: var(--motif-radius-lg);
    background:
        linear-gradient(145deg, rgba(16, 54, 37, 0.94), rgba(7, 19, 13, 0.96)),
        var(--motif-pattern);
    box-shadow: var(--motif-shadow);
}

.community-hero::before,
.forum-hero::before,
.community-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--motif-pattern);
    background-size: 260px auto;
    opacity: 0.02;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.community-hero > *,
.forum-hero > * {
    position: relative;
    z-index: 1;
}

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

.community-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.community-card,
.post-card,
.profile-card,
.network-card,
.message-card {
    background: linear-gradient(145deg, rgba(16, 54, 37, 0.96), rgba(9, 34, 23, 0.96));
    border: 1px solid var(--motif-border);
    border-radius: var(--motif-radius-lg);
    padding: 28px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.community-card + .community-card,
.post-card + .post-card,
.message-card + .message-card {
    margin-top: 18px;
}

.community-toolbar,
.forum-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    background: var(--motif-surface);
    border: 1px solid var(--motif-border);
    border-radius: var(--motif-radius-md);
}

.community-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.community-pill,
.community-tabs a,
.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid var(--motif-border);
    border-radius: 999px;
    background: rgba(23, 78, 56, 0.65);
    color: var(--motif-white);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.community-pill.active,
.community-tabs a.active,
.category-pill.active {
    background: var(--motif-orange);
    border-color: var(--motif-orange);
    color: var(--motif-bg);
}

.community-avatar {
    vertical-align: middle;
}

.profile-hero-avatar {
    margin-bottom: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.profile-photo-editor {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--motif-border);
    border-radius: var(--motif-radius-md);
    background: rgba(7, 19, 13, 0.38);
}

.form-help {
    margin: 8px 0 0;
    color: #DCE4DF;
    font-size: 13px;
    line-height: 1.5;
}

.form-help.warning {
    color: #FFE6D5;
}

.checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--motif-white) !important;
    letter-spacing: 0;
    text-transform: none;
}

.link-button {
    color: var(--motif-orange);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.link-button:hover {
    color: var(--motif-orange-soft);
}

.community-meta,
.forum-meta,
.post-meta {
    color: var(--motif-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.post-title {
    margin: 10px 0 12px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1;
}

.post-body,
.forum-post-body,
.comment-body {
    color: #DCE4DF;
    font-size: 16px;
    line-height: 1.7;
}

.post-actions,
.comment-actions,
.community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.community-grid,
.forum-category-grid,
.network-grid,
.profile-grid,
.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.forum-thread-list,
.post-list,
.comment-list,
.message-list {
    display: grid;
    gap: 16px;
}

.forum-thread-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.community-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--motif-border);
    border-radius: 12px;
    background: rgba(23, 78, 56, 0.45);
    color: var(--motif-white);
}

.community-alert.success {
    background: rgba(55, 214, 122, 0.10);
    border-color: rgba(55, 214, 122, 0.45);
    color: #C8FFD9;
}

.community-alert.error {
    background: rgba(255, 95, 95, 0.10);
    border-color: rgba(255, 95, 95, 0.45);
    color: #FFD6D6;
}

.community-warning,
.safety-note {
    padding: 14px 16px;
    border: 1px solid rgba(255, 184, 77, 0.45);
    border-radius: 12px;
    background: rgba(255, 184, 77, 0.10);
    color: #FFE5B8;
}

.masked-contact {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid rgba(255, 184, 77, 0.55);
    border-radius: 999px;
    background: rgba(255, 184, 77, 0.12);
    color: #FFE5B8;
    font-size: 12px;
    font-weight: 800;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(55, 214, 122, 0.12);
    border: 1px solid rgba(55, 214, 122, 0.42);
    color: #C8FFD9;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.verified-badge img {
    width: 18px;
    height: 18px;
}

.score-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(244, 244, 241, 0.12);
}

.score-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--motif-orange), var(--motif-orange-soft));
}

.score-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--motif-muted);
    font-size: 13px;
    font-weight: 800;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.motif-badge {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 122, 48, 0.12);
    border: 1px solid rgba(255, 122, 48, 0.35);
    color: var(--motif-orange-soft);
    font-size: 12px;
    font-weight: 800;
}

.message-bubble {
    max-width: 78%;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(23, 78, 56, 0.72);
    border: 1px solid var(--motif-border);
}

.message-bubble.mine {
    margin-left: auto;
    background: rgba(255, 122, 48, 0.16);
    border-color: rgba(255, 122, 48, 0.38);
}

.safety-modal,
.community-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.62);
}

.safety-modal.is-open,
.community-modal.is-open {
    display: flex;
}

.modal-card {
    width: min(100%, 560px);
    padding: 32px;
    border-radius: var(--motif-radius-lg);
    border: 1px solid var(--motif-border);
    background: linear-gradient(145deg, rgba(16, 54, 37, 0.98), rgba(7, 19, 13, 0.98));
    box-shadow: var(--motif-shadow);
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--motif-border);
    border-radius: var(--motif-radius-md);
}

.admin-table-wrap table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table-wrap th,
.admin-table-wrap td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(58, 134, 96, 0.22);
    text-align: left;
    vertical-align: top;
}

.admin-table-wrap th {
    background: var(--motif-card-elevated);
    color: var(--motif-white);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.community-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.community-empty {
    padding: 34px;
    border: 1px dashed var(--motif-border);
    border-radius: var(--motif-radius-lg);
    color: var(--motif-muted);
    text-align: center;
}

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

    .community-sidebar {
        position: static;
    }

    .community-grid,
    .forum-category-grid,
    .network-grid,
    .leaderboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-toolbar,
    .forum-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .community-hero,
    .forum-hero {
        padding: 28px 22px;
    }

    .community-grid,
    .forum-category-grid,
    .network-grid,
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        max-width: 100%;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--motif-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 12% 6%, rgba(255, 122, 48, 0.08), transparent 32rem),
        radial-gradient(circle at 85% 12%, rgba(23, 78, 56, 0.52), transparent 36rem),
        linear-gradient(180deg, var(--motif-bg), #06150E 58%, var(--motif-bg));
    color: var(--motif-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    text-rendering: geometricPrecision;
}

body,
p,
input,
select,
textarea,
table,
td,
th,
.card,
.form-control,
.nav-links a,
label {
    font-family: var(--font-body);
}

body::selection {
    background: rgba(255, 122, 48, 0.35);
    color: var(--motif-white);
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--motif-orange);
    text-decoration: none;
    transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

a:hover {
    color: var(--motif-orange-soft);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable="true"]:focus-visible {
    outline: none;
    border-color: var(--motif-orange) !important;
    box-shadow: 0 0 0 4px rgba(255, 122, 48, 0.18) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.section-title,
.btn,
.badge,
button,
.logo,
.footer-logo,
.tab-btn,
.tab-btn-v,
.btn-filter {
    font-family: var(--font-heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--motif-white);
    font-weight: 800;
    letter-spacing: 0;
}

h1 {
    font-size: 58px;
    line-height: 0.98;
}

h2 {
    font-size: 40px;
    line-height: 1.05;
}

h3 {
    font-size: 24px;
    line-height: 1.1;
}

p {
    margin-top: 0;
}

.container {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.site-main {
    flex: 1;
    position: relative;
}

.site-header,
.motif-pill-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(10, 46, 27, 0.10);
    padding: 14px 20px;
    transition: background 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.site-header.is-scrolled,
.motif-pill-header.is-scrolled {
    background: rgba(10, 46, 27, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.motif-pill-header .nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
}

.motif-pill-header .nav-shell-left,
.motif-pill-header .nav-shell-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.motif-pill-header .nav-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.motif-pill-header .nav-brand img {
    height: 52px !important;
    width: auto !important;
    max-width: 230px !important;
    display: block !important;
    transition: filter 250ms ease;
}

.motif-pill-header.is-scrolled .nav-brand img {
    filter: brightness(0) invert(1);
}

.motif-pill-header .nav-pill {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 860px;
    margin: 0 auto;
    background: rgba(10, 46, 27, 0.05);
    color: #0a2e1b;
    border: 1px solid rgba(10, 46, 27, 0.10);
    border-radius: 999px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: visible;
    box-shadow: none;
    transition: background-color 250ms ease, border-color 250ms ease;
}

.motif-pill-header.is-scrolled .nav-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.motif-pill-header .nav-pill a,
.motif-pill-header .nav-pill button,
.motif-pill-header .nav-pill .nav-dropdown-toggle {
    color: #0a2e1b !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    transition: color 220ms ease;
}

.motif-pill-header.is-scrolled .nav-pill a,
.motif-pill-header.is-scrolled .nav-pill button,
.motif-pill-header.is-scrolled .nav-pill .nav-dropdown-toggle {
    color: #ffffff !important;
}

.motif-pill-header .nav-pill a:hover,
.motif-pill-header .nav-pill a.active,
.motif-pill-header .nav-pill a.is-active,
.motif-pill-header .nav-pill button:hover,
.motif-pill-header .nav-pill button.active,
.motif-pill-header .nav-pill button.is-active,
.motif-pill-header .nav-pill .nav-dropdown-toggle:hover,
.motif-pill-header .nav-pill .nav-dropdown-toggle.active,
.motif-pill-header .nav-pill .nav-dropdown-toggle.is-active,
.motif-pill-header.is-scrolled .nav-pill a:hover,
.motif-pill-header.is-scrolled .nav-pill a.active,
.motif-pill-header.is-scrolled .nav-pill a.is-active,
.motif-pill-header.is-scrolled .nav-pill button:hover,
.motif-pill-header.is-scrolled .nav-pill button.active,
.motif-pill-header.is-scrolled .nav-pill button.is-active,
.motif-pill-header.is-scrolled .nav-pill .nav-dropdown-toggle:hover,
.motif-pill-header.is-scrolled .nav-pill .nav-dropdown-toggle.active,
.motif-pill-header.is-scrolled .nav-pill .nav-dropdown-toggle.is-active {
    color: #f37b2d !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.motif-pill-header .nav-separator {
    color: rgba(10, 46, 27, 0.35);
    font-weight: 900;
    user-select: none;
    transition: color 250ms ease;
}

.motif-pill-header.is-scrolled .nav-separator {
    color: rgba(255, 255, 255, 0.35);
}

.motif-pill-header .nav-register-btn {
    flex: 0 0 auto;
    background: #f37b2d;
    color: #ffffff !important;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: none;
    transition: all 0.2s ease;
}

.motif-pill-header .nav-register-btn:hover {
    background: #ff8a3d;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.motif-pill-header .desktop-register-btn {
    display: inline-flex;
}

.motif-pill-header .nav-pill .mobile-register-btn {
    display: none !important;
}

/* Dropdown styles */
.motif-pill-header .nav-dropdown {
    position: relative;
}

.motif-pill-header .nav-dropdown-toggle {
    cursor: pointer;
    gap: 4px;
    white-space: nowrap;
}

.motif-pill-header .nav-dropdown-toggle .arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.motif-pill-header .nav-dropdown:hover .nav-dropdown-toggle .arrow,
.motif-pill-header .nav-dropdown.is-open .nav-dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.motif-pill-header .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border: 1px solid rgba(10, 46, 27, 0.1);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.motif-pill-header .nav-dropdown-menu li {
    width: 100%;
}

.motif-pill-header .nav-dropdown-menu a {
    display: block !important;
    padding: 10px 20px !important;
    color: #0a2e1b !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: left !important;
    transition: all 0.2s ease;
    border-bottom: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.motif-pill-header .nav-dropdown-menu a:hover {
    color: #f37b2d !important;
    background: rgba(10, 46, 27, 0.04) !important;
}

.motif-pill-header .nav-dropdown-menu a.active,
.motif-pill-header .nav-dropdown-menu a.is-active {
    color: #f37b2d !important;
    background: rgba(10, 46, 27, 0.02) !important;
}

.motif-pill-header .nav-dropdown-menu .dropdown-header {
    padding: 8px 20px 4px;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(10, 46, 27, 0.5);
    font-weight: 900;
    letter-spacing: 0.05em;
}

.motif-pill-header .nav-dropdown-menu .dropdown-divider {
    height: 1px;
    background: rgba(10, 46, 27, 0.08);
    margin: 6px 0;
}

@media (min-width: 981px) {
    .motif-pill-header .nav-dropdown:hover .nav-dropdown-menu,
    .motif-pill-header .nav-dropdown.is-open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(4px);
    }
}

/* Badges */
.motif-pill-header .portal-badge {
    background: #f37b2d;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 50%;
    padding: 1px 5px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    line-height: 1;
}

.motif-pill-header .unread-badge {
    background: #f37b2d;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: auto;
    line-height: 1;
}

.motif-pill-header .mobile-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #f37b2d;
    border-radius: 8px;
    background: #f37b2d;
    cursor: pointer;
}

.motif-pill-header .mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #0a2e1b;
    border-radius: 999px;
    transition: transform 220ms ease, opacity 220ms ease;
}

.motif-pill-header .mobile-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.motif-pill-header .mobile-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.motif-pill-header .mobile-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn,
button.btn,
input[type="submit"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--motif-orange);
    border-radius: var(--motif-radius-sm) !important;
    background: var(--motif-orange);
    color: var(--motif-bg) !important;
    box-shadow: var(--motif-orange-glow);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--motif-orange-hover);
    background: var(--motif-orange-hover);
    color: var(--motif-bg) !important;
    box-shadow: 0 18px 42px rgba(255, 122, 48, 0.30);
}

.btn:active {
    transform: translateY(0);
    background: var(--motif-orange-active);
    border-color: var(--motif-orange-active);
}

.btn-secondary {
    background: transparent !important;
    color: var(--motif-white) !important;
    border: 1px solid rgba(244, 244, 241, 0.72) !important;
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--motif-orange) !important;
    color: var(--motif-orange) !important;
    background: rgba(255, 122, 48, 0.08) !important;
}

.btn-danger {
    background: var(--motif-error) !important;
    border-color: var(--motif-error) !important;
    color: var(--motif-bg) !important;
}

.btn-sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
    letter-spacing: 0.035em;
}

.btn-remove {
    color: #FFD6D6;
    background: rgba(255, 95, 95, 0.10);
    border: 1px solid rgba(255, 95, 95, 0.36);
    border-radius: var(--motif-radius-sm);
    padding: 8px 10px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 32px;
    border: 1px solid var(--motif-border) !important;
    border-radius: var(--motif-radius-lg) !important;
    background: linear-gradient(145deg, rgba(16, 54, 37, 0.94), rgba(9, 34, 23, 0.94)) !important;
    box-shadow: var(--motif-shadow);
    color: #DCE4DF;
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.card:not(.resume-editor-card):hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 48, 0.55) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(23, 78, 56, 0.85);
    border: 1px solid rgba(58, 134, 96, 0.45);
    color: var(--motif-white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.badge-yellow {
    background: var(--motif-orange) !important;
    border-color: var(--motif-orange) !important;
    color: var(--motif-bg) !important;
}

.badge-green {
    background: rgba(55, 214, 122, 0.12) !important;
    border-color: rgba(55, 214, 122, 0.45) !important;
    color: #C8FFD9 !important;
}

.badge-gray {
    background: rgba(23, 78, 56, 0.85) !important;
    border-color: var(--motif-border) !important;
    color: #DCE4DF !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
}

label,
.form-group label {
    color: var(--motif-white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(58, 134, 96, 0.55) !important;
    border-radius: var(--motif-radius-sm) !important;
    background: #061F14 !important;
    color: var(--motif-white) !important;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

textarea,
textarea.form-control,
.rich-editor {
    min-height: 120px;
    padding: 16px 18px !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--motif-low);
}

select.form-control,
select {
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--motif-orange);
}

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

.filters-bar,
.forum-toolbar,
.page-cv-examples #filter-status-bar {
    border: 1px solid rgba(58, 134, 96, 0.45) !important;
    border-radius: var(--motif-radius-md) !important;
    background: var(--motif-surface) !important;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.filters-bar {
    padding: 24px !important;
    margin-bottom: 34px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    align-items: end;
}

.hero,
.forum-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(9, 34, 23, 0.98), rgba(7, 19, 13, 0.96)),
        radial-gradient(circle at 82% 18%, rgba(255, 122, 48, 0.17), transparent 28rem) !important;
}

.hero::before,
.forum-hero::before,
.page-login .site-main::before,
.page-register .site-main::before,
.page-dashboard .site-main::before,
.page-jobs .site-main::before,
.page-cv-examples .site-main::before,
.page-noticeboard .site-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--motif-pattern);
    background-repeat: repeat;
    background-size: 560px auto;
    opacity: 0.02;
    filter: brightness(0) invert(1);
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
    padding: 92px 0 72px;
    text-align: left;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 56px;
}

.hero-image-panel {
    position: relative;
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--motif-border);
    border-radius: var(--motif-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    background: var(--deeper-green);
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide.prev-active {
    opacity: 0;
    z-index: 1;
}

/* Page Hero Reusable Component */
.page-hero {
    position: relative;
    background: #0a2e1b;
    color: #ffffff;
    padding: 72px 20px;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--motif-pattern);
    background-size: 260px auto;
    opacity: 0.015;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 1;
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 42px !important;
    align-items: center !important;
}

.page-hero-copy {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 42px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(4, 29, 17, 0.74);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.page-hero-copy-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    filter: blur(2px) saturate(0.85);
    transform: scale(1.08);
    z-index: 0;
}

.page-hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,29,17,0.92), rgba(4,29,17,0.62));
    z-index: 1;
}

.page-hero-copy > *:not(.page-hero-copy-bg) {
    position: relative;
    z-index: 2;
}

.page-hero-label {
    display: inline-flex;
    width: fit-content;
    background: rgba(243,123,45,0.15);
    color: #f37b2d;
    border: 1px solid rgba(243,123,45,0.28);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.page-hero-title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.page-hero-subtitle {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 520px;
    margin: 0;
}

.page-hero-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-hero-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 340px;
    background: #103826;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}

.page-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,46,27,0.20), rgba(10,46,27,0.02) 48%, rgba(255,122,48,0.10));
    pointer-events: none;
}

.page-hero-image {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-hero .badge {
    background: rgba(255, 118, 40, 0.15);
    color: var(--motif-orange);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .page-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .page-hero-copy {
        padding: 30px;
        min-height: auto;
    }

    .page-hero-media {
        min-height: 260px;
        height: 260px;
        width: 100%;
    }

    .page-hero-image {
        min-height: 260px;
    }
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 20px;
    color: var(--motif-white);
    font-size: 76px;
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero p {
    max-width: 620px;
    margin: 0 0 34px;
    color: #DCE4DF;
    font-size: 18px;
    line-height: 1.65;
}

.hero .badge,
.page-jobs .container > div:first-child span,
.page-index .container > div span[style*="accent-orange"],
.page-noticeboard .container > div:first-child h1 + p,
.page-cv-examples .hero .badge {
    letter-spacing: 0.12em;
}

.page-index .hero .btn + .btn,
.hero .btn-secondary {
    margin-left: 0;
}

.page-index .hero div[style*="display: flex"],
.page-cv-examples .hero div[style*="display: flex"] {
    justify-content: flex-start !important;
    gap: 14px !important;
    flex-wrap: wrap;
    margin-top: 34px !important;
}

.page-index .site-main > .container,
.page-cv-examples #examples-browser,
.page-jobs .site-main > .container,
.page-noticeboard .site-main > .container,
.page-dashboard .site-main > .container,
.page-forum .site-main > .container,
.page-forum-thread .site-main > .container,
.page-admin-forum .site-main > .container,
.page-job-details .site-main > .container,
.page-cv-example .site-main > .container,
.page-privacy-policy .site-main > .container,
.page-disclaimer .site-main > .container,
.page-cv-safety-checklist .site-main > .container,
.page-post-notice .site-main > .container,
.page-admin-notices .site-main > .container,
.page-apply .site-main > .container,
.page-billing .site-main > .container,
.page-payment-success .site-main > .container,
.page-payment-cancelled .site-main > .container,
.page-email-application .site-main > .container,
.page-cover-letter-builder .site-main > .container {
    padding-top: 56px;
    padding-bottom: 56px;
}

.jobs-list {
    display: grid;
    gap: 26px;
    margin-top: 20px;
}

.page-index .jobs-list,
.page-jobs .jobs-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-jobs .jobs-list > .card,
.page-index .jobs-list > .card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--motif-bg-2) !important;
}

.page-jobs .jobs-list > .card h2,
.page-index .jobs-list > .card h3 {
    color: var(--motif-white) !important;
    font-size: 26px !important;
    font-weight: 900;
    line-height: 1.1;
}

.page-jobs .jobs-list > .card .btn-secondary {
    width: 100%;
    border: 2px solid var(--motif-orange) !important;
    color: var(--motif-orange) !important;
}

.page-cv-examples .hero,
.page-jobs .site-main,
.page-noticeboard .site-main,
.page-dashboard .site-main {
    position: relative;
    isolation: isolate;
}

#category-filters,
#level-filters {
    display: flex;
    justify-content: center;
    gap: 12px !important;
    flex-wrap: wrap;
}

.btn-filter {
    min-height: 34px !important;
    padding: 0 18px !important;
    border: 1px solid var(--motif-border) !important;
    border-radius: 999px !important;
    background: var(--motif-surface) !important;
    color: var(--motif-white) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: all 220ms ease;
}

.btn-filter:hover {
    border-color: var(--motif-orange) !important;
    color: var(--motif-orange-soft) !important;
}

.btn-filter.active {
    background: var(--motif-orange) !important;
    border-color: var(--motif-orange) !important;
    color: var(--motif-bg) !important;
}

.page-cv-examples #grouped-sections > div > h2,
.page-dashboard h2,
.page-noticeboard h1,
.page-jobs h1 {
    text-transform: uppercase;
}

.page-login .site-main,
.page-register .site-main {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 72px) !important;
    padding: 56px 0 !important;
    background:
        linear-gradient(145deg, rgba(7, 19, 13, 0.95), rgba(9, 34, 23, 0.94)),
        radial-gradient(circle at 50% 12%, rgba(255, 122, 48, 0.12), transparent 28rem);
}

.page-login .site-main > .container,
.page-register .site-main > .container {
    width: 100%;
}

.auth-wrapper {
    width: min(100%, 460px);
    max-width: 460px;
    margin: 0 auto;
    padding: 0;
}

.auth-header {
    margin-bottom: 0;
    padding: 42px 42px 0;
    text-align: center;
}

.auth-header::before {
    content: "";
    display: block;
    height: 68px;
    width: 112px;
    margin: 0 auto 28px;
    background: rgba(244, 244, 241, 0.96) url('/assets/images/Motif_stacked.svg') center / 54px auto no-repeat;
    border: 1px solid rgba(244, 244, 241, 0.25);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.auth-header h1 {
    margin-bottom: 12px;
    font-size: 44px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-header p {
    margin-bottom: 32px;
    color: var(--motif-muted);
    font-size: 16px;
    line-height: 1.5;
}

.auth-wrapper > .card {
    width: min(100%, 460px);
    padding: 42px !important;
    border: 1px solid rgba(58, 134, 96, 0.45) !important;
    border-radius: var(--motif-radius-lg) !important;
    background: linear-gradient(145deg, rgba(16, 54, 37, 0.96), rgba(7, 19, 13, 0.96)) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.auth-wrapper .btn {
    width: 100%;
    min-height: 56px;
    margin-top: 10px;
}

.auth-wrapper a {
    color: var(--motif-orange-soft);
}

.auth-wrapper a:hover {
    color: var(--motif-orange);
}

.page-dashboard .container > div:first-child {
    position: relative;
    padding: 34px !important;
    border: 1px solid var(--motif-border) !important;
    border-radius: var(--motif-radius-lg);
    background: linear-gradient(145deg, rgba(16, 54, 37, 0.92), rgba(7, 19, 13, 0.90));
    box-shadow: var(--motif-green-glow);
}

.page-dashboard .container > div:first-child::before {
    content: "";
    display: block;
    width: 168px;
    height: 40px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: rgba(244, 244, 241, 0.96) url('/assets/images/Motif_horizontal.svg') center / 132px auto no-repeat;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #DCE4DF;
}

thead,
thead tr {
    background: var(--motif-card-elevated) !important;
}

th {
    color: var(--motif-white) !important;
    font-family: var(--font-heading) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td,
th {
    border-bottom: 1px solid rgba(58, 134, 96, 0.22);
}

.page-resume-builder .site-main > .container {
    width: 100%;
    max-width: 100% !important;
    padding: 0 24px !important;
}

.page-resume-builder .site-main {
    background:
        radial-gradient(circle at 82% 10%, rgba(255, 122, 48, 0.08), transparent 28rem),
        linear-gradient(180deg, var(--motif-bg), #06150E);
}

.page-resume-builder .site-main > .container > div[style*="position: sticky"] {
    top: 72px !important;
    z-index: 90;
    margin-left: -24px !important;
    margin-right: -24px !important;
    padding: 16px 24px !important;
    background: rgba(9, 34, 23, 0.96) !important;
    border-bottom: 1px solid var(--motif-border) !important;
    backdrop-filter: blur(18px);
}

.resume-builder-workspace {
    display: grid;
    grid-template-columns: minmax(420px, 0.82fr) minmax(760px, 1.35fr);
    gap: 24px;
    align-items: stretch;
    min-height: calc(100vh - 210px);
    margin-top: 24px;
}

.resume-editor-card {
    min-width: 320px;
    display: flex;
    flex-direction: row;
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--motif-radius-lg) !important;
    background: var(--motif-bg-2) !important;
    border: 1px solid rgba(58, 134, 96, 0.45) !important;
    box-shadow: var(--motif-shadow);
}

.resume-editor-card > div:first-child {
    width: 164px !important;
    background: #061F14 !important;
    border-right: 1px solid var(--motif-border) !important;
}

.resume-editor-card > div:nth-child(2) {
    max-height: calc(100vh - 250px) !important;
    padding: 28px !important;
}

.tab-btn,
.tab-btn-v {
    color: var(--motif-muted);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.tab-btn-v {
    width: 100%;
    padding: 13px 18px !important;
    border: 0;
    border-left: 4px solid transparent !important;
    background: transparent;
    color: var(--motif-muted) !important;
    text-align: left;
    cursor: pointer;
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.tab-btn-v:hover,
.tab-btn-v.active {
    background: rgba(255, 122, 48, 0.10) !important;
    color: var(--motif-orange) !important;
    border-left-color: var(--motif-orange) !important;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

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

.template-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 14px;
    border: 1px solid rgba(58, 134, 96, 0.45) !important;
    border-radius: var(--motif-radius-sm) !important;
    background: rgba(7, 19, 13, 0.62) !important;
    color: var(--motif-white);
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.template-card:hover,
.template-card.active {
    transform: translateY(-2px);
    border-color: var(--motif-orange) !important;
    background: rgba(255, 122, 48, 0.10) !important;
}

.template-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.template-name {
    color: var(--motif-white);
    font-size: 13px;
    font-weight: 800;
}

.accent-preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.accent-preset {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(244, 244, 241, 0.2);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease;
}

.accent-preset:hover,
.accent-preset.active {
    transform: scale(1.08);
    border-color: var(--motif-white);
}

.repeater-item {
    margin-bottom: 15px;
    padding: 18px;
    border: 1px solid var(--motif-border);
    border-radius: var(--motif-radius-md);
    background: rgba(16, 54, 37, 0.72);
}

.repeater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
}

.rich-toolbar .btn {
    min-height: 34px;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.page-resume-builder .form-help,
.page-resume-builder .post-meta,
.page-resume-builder .community-meta {
    color: #DCE4DF !important;
}

.page-resume-builder .btn[disabled],
.page-resume-builder .btn-secondary[disabled],
.page-resume-builder button[disabled] {
    color: #DCE4DF !important;
    border-color: rgba(220, 228, 223, 0.32) !important;
    background: rgba(220, 228, 223, 0.08) !important;
    opacity: 1;
}

.page-resume-builder .rich-editor,
.page-resume-builder .form-control {
    color: var(--motif-white) !important;
}

.rich-text p {
    margin: 0 0 8px;
}

.rich-text ul,
.rich-text ol,
.forum-post-body ul,
.forum-post-body ol {
    margin: 8px 0 8px 22px;
    padding-left: 18px;
}

.rich-text li,
.forum-post-body li {
    margin-bottom: 4px;
}

.preview-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    border: 1px solid rgba(58, 134, 96, 0.45) !important;
    border-radius: var(--motif-radius-lg) !important;
    background: var(--motif-card-elevated) !important;
    box-shadow: var(--motif-shadow);
}

.preview-header {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px !important;
    border-bottom: 1px solid var(--motif-border) !important;
    background: rgba(9, 34, 23, 0.96) !important;
    backdrop-filter: blur(14px);
}

.preview-iframe {
    width: 210mm;
    min-width: 210mm;
    max-width: none;
    min-height: 297mm;
    flex: 0 0 auto;
    margin: 28px auto;
    border: none;
    background: #ffffff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.36);
}

.print-page-content {
    width: 210mm;
    min-height: 297mm;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.print-page-content img {
    max-width: 140px;
    max-height: 140px;
    object-fit: cover;
}

.print-page-content > div,
.resume-extra-section {
    page-break-inside: avoid;
}

.example-watermarked {
    position: relative;
}

.example-watermarked::before {
    content: "EXAMPLE";
    position: absolute;
    top: 42%;
    left: 10%;
    right: 10%;
    z-index: 0;
    transform: rotate(-28deg);
    color: rgba(0, 0, 0, 0.11);
    font-family: var(--font-heading);
    font-size: 72pt;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

.example-watermarked > * {
    position: relative;
    z-index: 1;
}

.forum-hero {
    padding: 42px;
    margin-bottom: 28px;
    border: 1px solid rgba(58, 134, 96, 0.45);
    border-radius: var(--motif-radius-lg);
    box-shadow: var(--motif-green-glow);
}

.forum-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 18px;
    margin-bottom: 28px;
}

.forum-search {
    flex: 1 1 260px;
}

.forum-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

.forum-thread-list {
    display: grid;
    gap: 14px;
}

.forum-thread-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.forum-meta {
    color: var(--motif-muted);
    font-size: 13px;
}

.forum-post-body {
    color: #DCE4DF;
    line-height: 1.7;
}

.forum-post-body p {
    margin: 0 0 10px;
}

.forum-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer,
.motif-footer {
    background: #0a2e1b;
    color: #ffffff;
    padding: 42px 20px 28px;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.motif-footer .footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.motif-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.motif-footer .footer-brand img {
    height: 72px !important;
    width: auto !important;
    max-width: 260px !important;
    display: block !important;
}

.motif-footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 0;
}

.motif-footer .footer-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 16px;
    transition: color 0.2s ease;
}

.motif-footer .footer-links a:hover {
    color: #f37b2d !important;
}

.motif-footer .footer-disclaimer {
    max-width: 1080px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    text-align: center;
}

.motif-footer .footer-copy {
    color: #f37b2d !important;
    font-weight: 900;
    font-size: 13px;
    margin: 0;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease var(--reveal-delay, 0ms), transform 600ms ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1280px) {
    .page-index .jobs-list,
    .page-jobs .jobs-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resume-builder-workspace {
        grid-template-columns: minmax(380px, 500px) minmax(700px, 1fr);
    }
}

@media (max-width: 1100px) {
    .resume-builder-workspace {
        grid-template-columns: 1fr;
    }

    .resume-editor-card {
        max-width: none;
    }

    .resume-preview-card {
        min-height: 760px;
    }
}

@media (max-width: 900px) {
    .page-resume-builder .site-main > .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: hidden;
    }

    .page-resume-builder .site-main > .container > div[style*="position: sticky"] {
        position: static !important;
        top: auto !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
        align-items: flex-start !important;
    }

    .page-resume-builder .site-main > .container > div[style*="position: sticky"] > div {
        width: 100%;
        min-width: 0 !important;
    }

    .resume-builder-workspace {
        grid-template-columns: 1fr !important;
        gap: 18px;
        min-height: auto;
        width: 100%;
        overflow: visible;
    }

    .resume-editor-card {
        flex-direction: column;
        min-width: 0;
        width: 100%;
    }

    .resume-editor-card > div:first-child {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--motif-border) !important;
        scrollbar-width: thin;
    }

    .tab-btn-v {
        flex: 0 0 auto;
        width: auto !important;
        min-width: max-content;
        border-left: 0 !important;
        border-bottom: 3px solid transparent !important;
        border-radius: var(--motif-radius-sm);
        text-align: center;
        white-space: nowrap;
    }

    .tab-btn-v.active {
        border-bottom-color: var(--motif-orange) !important;
    }

    .resume-editor-card > div:nth-child(2) {
        max-height: none !important;
        overflow: visible !important;
        padding: 20px !important;
    }

    .template-grid,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .rich-toolbar {
        flex-wrap: wrap;
    }

    .preview-panel {
        width: 100%;
        max-width: 100%;
        min-height: 620px;
        align-items: flex-start;
        overflow-x: auto;
        overflow-y: auto;
    }

    .preview-header {
        min-width: 100%;
        position: sticky;
        left: 0;
    }

    .preview-iframe {
        width: 210mm;
        min-width: 210mm;
        margin: 16px;
    }
}

@media (max-width: 1100px) {
    .motif-pill-header .nav-shell {
        gap: 12px;
    }

    .motif-pill-header .nav-brand img {
        height: 48px !important;
        max-width: 180px !important;
    }

    .motif-pill-header .nav-pill {
        padding: 12px 14px;
        gap: 6px;
    }

    .motif-pill-header .nav-pill a,
    .motif-pill-header .nav-pill button {
        font-size: 13px;
    }

    .motif-pill-header .nav-register-btn {
        min-height: 48px;
        padding: 0 20px;
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 34px;
    }

    .motif-pill-header .nav-shell-left,
    .motif-pill-header .nav-shell-right {
        flex: 0 0 auto;
    }

    .motif-pill-header .nav-shell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .motif-pill-header .nav-pill,
    .motif-pill-header.is-scrolled .nav-pill {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff !important;
        border: 1px solid rgba(10, 46, 27, 0.10) !important;
        border-radius: 12px !important;
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        z-index: 999;
        margin-top: 10px;
        width: auto;
    }

    .motif-pill-header .nav-pill.is-open,
    .motif-pill-header.is-scrolled .nav-pill.is-open {
        display: flex;
    }

    .motif-pill-header .nav-separator {
        display: none !important;
    }

    .motif-pill-header .nav-pill a,
    .motif-pill-header .nav-pill button,
    .motif-pill-header .nav-pill .nav-dropdown-toggle,
    .motif-pill-header.is-scrolled .nav-pill a,
    .motif-pill-header.is-scrolled .nav-pill button,
    .motif-pill-header.is-scrolled .nav-pill .nav-dropdown-toggle {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 12px 10px !important;
        border-bottom: 1px solid rgba(10, 46, 27, 0.08) !important;
        box-sizing: border-box !important;
        color: #0a2e1b !important;
    }

    .motif-pill-header .nav-dropdown {
        width: 100%;
    }

    .motif-pill-header .nav-dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        background: rgba(10, 46, 27, 0.03);
        border: none;
        box-shadow: none;
        padding: 5px 0 5px 15px;
        width: 100%;
        margin-top: 5px;
    }

    .motif-pill-header .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .motif-pill-header .nav-dropdown-menu a {
        color: #0a2e1b !important;
        font-weight: 700 !important;
        padding: 10px 15px !important;
        border-bottom: none !important;
    }

    .motif-pill-header .nav-dropdown-menu a:hover,
    .motif-pill-header .nav-dropdown-menu a.active,
    .motif-pill-header .nav-dropdown-menu a.is-active {
        color: #f37b2d !important;
        background: transparent !important;
    }

    .motif-pill-header .nav-dropdown-menu .dropdown-header {
        color: rgba(10, 46, 27, 0.5);
        padding: 8px 15px 4px;
    }

    .motif-pill-header .nav-dropdown-menu .dropdown-divider {
        background: rgba(10, 46, 27, 0.08);
    }

    .motif-pill-header .desktop-register-btn {
        display: none !important;
    }

    .motif-pill-header .nav-pill .mobile-register-btn {
        display: inline-flex !important;
        width: 100% !important;
        margin-top: 10px;
        box-sizing: border-box !important;
    }

    .motif-pill-header .mobile-nav-toggle {
        display: inline-flex;
    }

    .hero {
        min-height: auto;
        padding: 72px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero .container::after {
        min-height: 280px;
    }

    .motif-footer .footer-links {
        gap: 16px;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-main > .container,
    .page-index .site-main > .container,
    .page-cv-examples #examples-browser,
    .page-jobs .site-main > .container,
    .page-noticeboard .site-main > .container,
    .page-dashboard .site-main > .container {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .hero {
        padding: 56px 0;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 30px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 16px;
    }

    .page-index .hero div[style*="display: flex"],
    .page-cv-examples .hero div[style*="display: flex"] {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-secondary {
        width: 100%;
    }

    .btn-sm {
        width: auto;
    }

    .card {
        padding: 24px !important;
    }

    .filters-grid,
    .grid-2,
    .page-index .jobs-list,
    .page-jobs .jobs-list {
        grid-template-columns: 1fr;
    }

    .auth-header {
        padding: 28px 28px 0;
    }

    .auth-wrapper > .card {
        padding: 28px !important;
    }

    .resume-editor-card {
        flex-direction: column;
    }

    .resume-editor-card > div:first-child {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto;
        padding: 12px !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--motif-border) !important;
    }

    .tab-btn-v {
        flex: 0 0 auto;
        width: auto;
        border-left: 0 !important;
        border-bottom: 3px solid transparent !important;
        border-radius: var(--motif-radius-sm);
        text-align: center;
    }

    .tab-btn-v.active {
        border-bottom-color: var(--motif-orange) !important;
    }

    .resume-editor-card > div:nth-child(2) {
        max-height: none !important;
        padding: 22px !important;
    }

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

    .preview-panel {
        align-items: flex-start;
        min-height: 680px;
    }

    .preview-iframe {
        width: 210mm;
        min-width: 210mm;
        margin: 16px;
    }

    .forum-hero {
        padding: 24px 18px;
    }

    .forum-thread-row {
        grid-template-columns: 1fr;
    }

    .forum-thread-row > .forum-meta {
        text-align: left !important;
    }

    .site-footer {
        padding: 48px 0 28px;
    }
}

/* Antigravity Visual Polish Overrides */
.section-light {
    background: #ffffff;
    color: #1f2a24;
    padding: 72px 20px;
}

.section-soft {
    background: #f5f7f3;
    color: #1f2a24;
    padding: 72px 20px;
}

.section-green {
    background: #0a2e1b;
    color: #ffffff;
    padding: 72px 20px;
}

.content-shell {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards on light sections */
.section-light .card,
.section-soft .card,
.section-light .post-card,
.section-soft .post-card,
.section-light .network-card,
.section-soft .network-card,
.section-light .community-card,
.section-soft .community-card,
.section-light .dashboard-card,
.section-soft .dashboard-card,
.section-light .profile-card,
.section-soft .profile-card,
.section-light .message-card,
.section-soft .message-card,
.section-light .job-card,
.section-soft .job-card,
.section-light .template-card,
.section-soft .template-card {
    background: #ffffff !important;
    color: #1f2a24 !important;
    border: 1px solid #e6ebe6 !important;
    box-shadow: 0 12px 35px rgba(10,46,27,0.08) !important;
}

/* Text on white cards must be dark */
.section-light .card h1,
.section-light .card h2,
.section-light .card h3,
.section-light .card h4,
.section-soft .card h1,
.section-soft .card h2,
.section-soft .card h3,
.section-soft .card h4,
.section-light .post-card h1,
.section-light .post-card h2,
.section-light .post-card h3,
.section-soft .post-card h1,
.section-soft .post-card h2,
.section-soft .post-card h3,
.section-light .network-card h1,
.section-light .network-card h2,
.section-light .network-card h3,
.section-soft .network-card h1,
.section-soft .network-card h2,
.section-soft .network-card h3,
.section-light .profile-card h1,
.section-light .profile-card h2,
.section-light .profile-card h3,
.section-soft .profile-card h1,
.section-soft .profile-card h2,
.section-soft .profile-card h3,
.section-light .community-card h1,
.section-light .community-card h2,
.section-light .community-card h3,
.section-soft .community-card h1,
.section-soft .community-card h2,
.section-soft .community-card h3,
.section-light .dashboard-card h1,
.section-light .dashboard-card h2,
.section-light .dashboard-card h3,
.section-soft .dashboard-card h1,
.section-soft .dashboard-card h2,
.section-soft .dashboard-card h3 {
    color: #1f2a24 !important;
}

/* Body text on white cards */
.section-light p,
.section-soft p,
.section-light .post-card p,
.section-soft .post-card p,
.section-light .network-card p,
.section-soft .network-card p,
.section-light .profile-card p,
.section-soft .profile-card p,
.section-light .dashboard-card p,
.section-soft .dashboard-card p,
.section-light .community-card p,
.section-soft .community-card p {
    color: #4d5a52 !important;
}

/* Warnings and alerts in light sections */
.section-light .community-warning,
.section-soft .community-warning,
.section-light .safety-note,
.section-soft .safety-note {
    background: #fff8e7 !important;
    border-color: #ffe0b2 !important;
    color: #b26a00 !important;
}

.section-light .community-alert.success,
.section-soft .community-alert.success {
    background: #e8f5e9 !important;
    border-color: #c8e6c9 !important;
    color: #2e7d32 !important;
}

.section-light .community-alert.error,
.section-soft .community-alert.error {
    background: #ffebee !important;
    border-color: #ffcdd2 !important;
    color: #c62828 !important;
}

.section-light .masked-contact,
.section-soft .masked-contact {
    background: #fff8e7 !important;
    border-color: #ffe0b2 !important;
    color: #b26a00 !important;
}

/* Subtle Motif pattern on light sections */
.section-light::before,
.section-soft::before {
    opacity: 0.005 !important;
}

/* Light-theme message bubbles for Inbox and Private Messages */
.section-light .message-bubble,
.section-soft .message-bubble {
    background: #eef2ef !important;
    border-color: #d7ded9 !important;
    color: #1f2a24 !important;
}

.section-light .message-bubble.mine,
.section-soft .message-bubble.mine {
    background: #fff0e6 !important;
    border-color: #ffd8bf !important;
    color: #1f2a24 !important;
}

.section-light .message-bubble p,
.section-soft .message-bubble p,
.section-light .message-bubble.mine p,
.section-soft .message-bubble.mine p {
    color: #1f2a24 !important;
}

.section-light .message-bubble .post-meta,
.section-soft .message-bubble .post-meta {
    color: #5c6e63 !important;
}

/* Motif frontend-only assistant */
.motif-assistant {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 980;
    font-family: var(--font-body, Arial, sans-serif);
}

.motif-assistant-toggle {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #f37b2d;
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(10, 46, 27, 0.28), 0 8px 22px rgba(243, 123, 45, 0.24);
    font-family: var(--font-heading, Arial, sans-serif);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.motif-assistant.is-open .motif-assistant-toggle {
    display: none;
}

.motif-assistant-panel {
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: 560px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(10, 46, 27, 0.12);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(4, 29, 17, 0.28);
}

.motif-assistant-panel[hidden] {
    display: none;
}

.motif-assistant-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    background: #0a2e1b;
    color: #ffffff;
}

.motif-assistant-title {
    color: #ffffff;
    font-family: var(--font-heading, Arial, sans-serif);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
}

.motif-assistant-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.35;
}

.motif-assistant-close {
    min-width: 54px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.motif-assistant-messages {
    min-height: 240px;
    padding: 16px;
    overflow-y: auto;
    background: #f5f7f3;
}

.motif-assistant-message {
    width: fit-content;
    max-width: 88%;
    margin: 0 0 10px;
    padding: 11px 13px;
    border-radius: 16px;
    color: #1f2a24;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.motif-assistant-message.user {
    margin-left: auto;
    border-bottom-right-radius: 6px;
    background: #f37b2d;
    color: #ffffff;
}

.motif-assistant-message.bot {
    margin-right: auto;
    border: 1px solid rgba(10, 46, 27, 0.08);
    border-bottom-left-radius: 6px;
    background: #ffffff;
}

.motif-assistant-typing {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    color: #4d5a52;
}

.motif-assistant-dot {
    display: inline-block;
    animation: motifAssistantDot 1.1s infinite ease-in-out;
}

.motif-assistant-dot:nth-child(3) {
    animation-delay: 0.15s;
}

.motif-assistant-dot:nth-child(4) {
    animation-delay: 0.3s;
}

.motif-assistant-actions,
.motif-assistant-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.motif-assistant-action,
.motif-assistant-quick {
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid rgba(10, 46, 27, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #0a2e1b;
    font-family: var(--font-heading, Arial, sans-serif);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}

.motif-assistant-action:hover,
.motif-assistant-quick:hover {
    border-color: #f37b2d;
    color: #f37b2d;
}

.motif-assistant-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(10, 46, 27, 0.12);
    background: #ffffff;
}

.motif-assistant-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(10, 46, 27, 0.16) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #1f2a24 !important;
    font-size: 14px;
}

.motif-assistant-input::placeholder {
    color: #6f7f75;
}

.motif-assistant-send {
    min-width: 64px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #0a2e1b;
    color: #ffffff;
    font-family: var(--font-heading, Arial, sans-serif);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.motif-assistant-toggle:focus-visible,
.motif-assistant-close:focus-visible,
.motif-assistant-action:focus-visible,
.motif-assistant-quick:focus-visible,
.motif-assistant-input:focus-visible,
.motif-assistant-send:focus-visible {
    outline: 3px solid rgba(243, 123, 45, 0.36);
    outline-offset: 3px;
}

@keyframes motifAssistantDot {
    0%, 60%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .motif-assistant-dot {
        animation: none;
    }
}

@media (max-width: 640px) {
    .motif-assistant {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .motif-assistant-panel {
        width: calc(100vw - 24px);
        max-height: 80vh;
    }

    .motif-assistant-messages {
        min-height: 220px;
        padding: 14px;
    }

    .motif-assistant-message {
        max-width: 94%;
    }

    .motif-assistant-quick-prompts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .motif-assistant-action,
    .motif-assistant-quick {
        min-height: 44px;
        flex: 0 0 auto;
    }

    .motif-assistant-form {
        grid-template-columns: 1fr;
    }

    .motif-assistant-send {
        width: 100%;
    }
}
